Posts Tagged ‘Ubuntu’

setting java environment under ubuntu

May 20th, 2010

you can set all the environment vars in /etc/environment.

for example:

PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games”
JAVA_HOME=”/usr/lib/jvm/java-6-sun/jre”
CLASSPATH=”.:$JAVA_HOME/lib:/home/xxxxxx/other-packages/lucene-3.0.1″

UPDATE:

use bash> source /etc/environment to refresh the system variables.

How to set up SVN server on Ubuntu

January 20th, 2010

An excellent instruction: http://odyniec.net/articles/ubuntu-subversion-server/. It tells you how to set up the svn server via svn protocol and make the sever run at startup. Note, when setting up the initialization script, you may need to install initscripts first by:

sudo apt-get install initscripts

Otherwise, you may get an error like this: /lib/init/vars.sh: No such file or directory …

More detail: https://help.ubuntu.com/8.04/serverguide/C/subversion.html.