http://arthurln.iteye.com/blog/436725
1、添加non-free源
gedit /etc/apt/sources.list
添加如下内容:
deb http://ftp.us.debian.org/debian/ lenny contrib
deb-src http://ftp.us.debian.org/debian/ lenny contrib
deb http://ftp2.de.debian.org/debian/ lenny main non-free
deb-src http://ftp2.de.debian.org/debian/ lenny main non-free
deb http://security.debian.org/ lenny/updates main non-free
deb-src http://security.debian.org/ lenny/updates main non-free
注意:最好选择最近的站点 如:Hongkong
deb http://ftp.hk.debian.org/debian/ lenny contrib
deb-src http://ftp.hk.debian.org/debian/ lenny contrib
deb http://ftp.hk.debian.org/debian/ lenny main non-free
deb-src http://ftp.hk.debian.org/debian/ lenny main non-free
deb http://security.debian.org/ lenny/updates main non-free
deb-src http://security.debian.org/ lenny/updates main non-free
deb http://volatile.debian.org/debian-volatile lenny/volatile main
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main
更新软件列表
aptitude update
2、下载并安装jdkaptitude install sun-java6-jdk
3、替换系统中现存的java环境
update-java-alternatives -s java-6-sun
4、添加环境变量(跟其他系统下一样,这是可选的)
gedit /etc/environment 添加
JAVA_HOME=/usr/lib/jvm/java-6-sun/ [*]JRE_HOME=/usr/lib/jvm/java-6-sun/jre [*]CLASSPATH=.:/usr/lib/jvm/java-6-sun/lib/dt.jar:/usr/lib/jvm/java-6-sun/lib/tools.jar
5、安装tomcat
aptitude install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps (jenny支持的最高版本)
/etc/init.d/tomcat5.5 stop
接下来编辑文件 /var/lib/tomcat5.5/conf/tomcat-users.xml ,修改文件内容如下:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="admin"/>
<role rolename="manager"/>
<role rolename="tomcat"/>
<user username="tomcat" password=”tomcatpassword” roles="tomcat,admin,manager"/>
</tomcat-users>
/etc/init.d/tomcat5.5 start
6、安装mysql
aptitude install mysql-server
7、安装mysql client
aptitude install mysql-client