Aptana on Eclipse 3.2 Hardy

Posted by John
on Monday, 29 September 2008

Had some problems installing the Aptana plugin into Eclipse 3.2 on Hardy,

sudo aptitude install eclipse

Then,

sudo apt-get autoremove --purge gcj-4.2-base

Replace,

sudo aptitude install Sun-Java6-jdk

Then install remotely as normal

Eclipse 3.4 on Ubuntu Hardy

Posted by John
on Monday, 29 September 2008

Finally got a working install of Eclipse 3.4 on Ubuntu Hardy 64-bit, here's how...

sudo apt-get install openjdk-6-jdk

Now update your bashrc file,

nano ~/.bashrc

...adding this line at the end,

export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/

Then download Eclipse 3.4

wget http://ftp.osuosl.org/pub/eclipse/technology/epp/downloads/release/ganymede/R/eclipse-java-ganymede-linux-gtk.tar.gz
tar xzvf eclipse-java-ganymede-linux-gtk.tar.gz
mv eclipse eclipse3.4

And start with...

eclipse3.4/eclipse

Thanks goes to jhcore.com for this one

Update

This didn't work for me but it might help someone in different circumstances, will keep hacking at it; eventually it'll work.

ArchLinux NAS Box

Posted by John
on Sunday, 28 September 2008

To make the system shutdown when you press the power button, add the acpid package.

pacman -S acpid

Then add it to the DAEMONS array in rc.conf

DAEMONS = (...... acpid)

Then create a file for the event,

sudo nano /etc/acpi/events/power

With...

# /etc/acpi/events/power
# This is called when the user presses the power button

event=button/power (PWR.||PBTN)
action=/sbin/poweroff
ACPI Shutdown

Now add these two lines to the end of your kernel load in /boot/grub/menu.lst

acpi=on acpi=power-off

What this extra bit will do is force the machine to poweroff completely on shutdown, rather than halting with the power still running.

Installing VMWare Server on Ubuntu

Posted by John
on Tuesday, 23 September 2008

First install the pre-requisites;

sudo aptitude install linux-headers-`uname -r` build-essential
sudo aptitude install xinetd

Download VMWare Server .tar.gz file from here.

Remember to signup for a Serial Number, you'll need that during the install

Download the latest vmware-any-any-update patch here,

Now extract VMWare Server and terminal into it's directory, run,

cd vmware-server-distrib
sudo perl vmware-install.pl

When asked Before running VMware Server for the first time, you need to configure it by invoking the following command: "/usr/bin/vmware-config.pl". Do you want this program to invoke the command for you now? [yes] enter *NO* and patch VMWare with that file.

Extract the files within that patch and Terminal into it's directory,

cd vmware-any-any-update115
sudo ./runme.pl

It should prompt you to run vmware-config.pl, this time say YES and continue with the install.

Afterwards start vmware with,

vmware

You might get a load of errors like this,If you get compile errors, do this;

/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4' not found (required by /usr/lib32/libcairo.so.2)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib32/libstdc++.so.6)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4' not found (required by /usr/lib32/libcairo.so.2)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib32/libstdc++.so.6)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4' not found (required by /usr/lib32/libcairo.so.2)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib32/libstdc++.so.6)

That's because one part of the vmware package was compiled with a different version of gcc than the one you're running now, to fix that do:

sudo cp /lib/libgcc_s.so.1 /usr/lib/vmware/lib/libgcc_s.so.1/
sudo cp /usr/lib/libpng12.so.0 /usr/lib/vmware/lib/libpng12.so.0/

Now you should be able to start VMWare Server

(tested and working on Ubuntu Hardy 8.04 64-bit)

Batch Processing in GIMP

Posted by John
on Monday, 22 September 2008

There's a tool called David's Batch Processor which allows you to batch process images within the free Graphic Image Manipulation Package (GIMP).

To install on Ubuntu Hardy, first...

sudo aptitude install libgimp2.0-dev

Now download David's Batch Processor from here

Extract the file and Terminal into the directory, now make & install the plugin...

sudo make
sudo make install

...if it still doesn't compile make sure you have build-essentials installed, which can be added via,

sudo aptitude install build-essentials

After all this open GIMP (Application / Graphics / GIMP), Click the Xtns tab (next to File) and you should see Batch Process..; click it and you'll open David's Batch Processor.