Thursday, March 31, 2011


This guide will explain how to install sventon, the java subversion repository browser on Debian Lenny. You will need to be logged in as the root user.
First of all we need to enable the the “non-free”  repository within your APT sources.list.

Open /etc/apt/sources.list in your favorite editor:
vi /etc/apt/sources.list

Add the following lines:
deb http://ftp.debian.org/debian/ contrib non-free
deb-src http://ftp.debian.org/debian/ contrib non-free
and save the file.
Now we need to install Tomcat + Java JDK
apt-get update
apt-get install sun-java6-jdk tomcat5.5 tomcat5.5-webapps

By default, tomcat will listen on port 8180
If tomcat is running, you need to stop it.
/etc/init.d/tomcat5.5 stop

You now need to deploy the .war file from the sventon binary distribution, this can be downloaded from:
 http://developer.berlios.de/project/showfiles.php?group_id=3670
For this I will be using sventon-2.1.5-bin.zip
Download the .zip file and unzip it:
mkdir -p /root/tmp; cd /root/tmp
wget http://download.berlios.de/sventon/sventon-2.1.5-bin.zip
unzip sventon-2.1.5-bin.zip
cd sventon-2.1.5
cp svn.war /usr/share/tomcat5.5/webapps/

We then need to start-up tomcat to deploy the .war file:
/etc/init.d/tomcat5.5 start

Please allow a minute or so for tomcat to start then stop tomcat again and remove the war file:
/etc/init.d/tomcat5.5 stop
rm -rf /usr/share/tomcat5.5/webapps/svn.war
Then restart tomcat:
/etc/init.d/tomcat5.5 start

When tomcat starts you will be able to access the Sventon configuration via
http://(server-ip):8180/svn

Thursday, March 3, 2011

Crontabs

To edit the crontabs of a specific user use the below command:
$crontab -e -u username