Strictly Programming

Setting up some software in Ubuntu 6/7/8.0.x

Posted in Ubuntu by sqllyw on 12/08/2008

A. Install ssh server:

sudo apt-get install ssh

B. Setting up Java in Ubuntu 6.06/6.10(works also with ubuntu 7 and 8.0.x)

1. Update first /etc/apt/sources.list
add :
deb dapper universe multiverse
deb-src dapper universe multiverse

then apt update

2. apt-get install sun-java5-bin
apt-get install sun-java5-jdk

export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-
export CATALINA_HOME=/usr/share/tomcat5 // for tomcat 5, can be omitted

• /etc/environment (try this file first)
• /etc/profile

For example, to set a variable called JAVA_HOME and append it to PATH:
for /etc/environment:

(A colon followed by no directory is treated as the current working directory)
for /etc/profile:
export JAVA_HOME=”/usr/lib/j2sdk1.5-sun”

The above info can be found :

C. Setting up Tomcat 5.5 using apt-get

apt-get install tomcat5

It will be installed in /usr/share/tomcat5.

/etc/init.d/tomcat5 {start|stop|restart|force-reload|status}
dont use

to test, copy *.war to /usr/share/tomcat5/webapps(not ROOT inside)
start tomcat, under bin, ./

above info can be found : Here

D. Setting up Tomcat 5.5 manually

To setup tomcat 5.5 manually:

download the gz file

copy the gz file to /usr/local, then run following command

tar xvfz apache-tomcat-5.5.23.tar.gz

vi environment

Add following:


to start tomcat 5, $/CATALINA_HOME/bin/

E. Setting up FTP Server

apt-get install vsftpd
vi /etc/vsftpd.conf

/etc/init.d/vsftpd start
/etc/init.d/vsftpd stop

F. Install imap/pop3

apt-get install dovecot-common dovecot-imapd dovecot-pop3d

vi /etc/dovecot/dovecot.conf

disable_plaintext_auth = no
/etc/init.d/vovecot stop
/etc/init.d/vovecot start

or invoke-rc.d dovecot restart

G. Setup mysql server

apt-get install mysql-server-5.0

Get list of installed packages
A good link can be found here

H. Setup Trac
Trac’s home page
This is a good guide that works for me, please click here

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: