Thursday, February 14, 2008

setting JAVA_HOME in MacOS X for running geronimo

when trying geronimo, I had problem with the JAVA_HOME variable. The solution is to execute this command before running the geronimo:

// go to the bin directory of geronimo, depends on your own location
daniel-adinugrohos-macbook-pro:~ adinugro$ cd Desktop/geronimo/geronimo-tomcat6-jee5-2.0.2/bin

// set JAVA_HOME varible
daniel-adinugrohos-macbook-pro:bin adinugro$ export JAVA_HOME=/Library/Java/Homedaniel-adinugrohos-macbook-pro:bin

// execute the geronimo
adinugro$ ./startup.sh

that's all. check whether your geronimo running from your fav browser and go to http://localhost:8080

Sunday, December 9, 2007

installing vmware-server on gutsy server

First of all you need to install these packages through apt:

1. build-essentials
2. xinetd
3. linux-headers* (try to just install them for server, or just inslall all of them)

Download the vmware server from www.vmware.com
then, extract it:
% tar xvfz VMware-server-1.0.4-56528.tar.gz

enter to the directory, vmware-server-distrib, install it by running vmware-install.pl
% cd vmware-server-distrib
% sudo ./vmware-install.pl

just used the default values for the setting.

Friday, December 7, 2007

untar files in linux

If the file is ended with tar.gz, then use

$ tar xvfz filename.tzr.gz


but, if the file is ended with .tar.bz2, then use

$tar xvjf filename.tar.bz2