debian 4.0rc2 安装记

阅读更多

1.安装

下载了debian-4rc2-CD1.iso(180M的那个也不错,40M的还是要在安装中下载不少东西)
刻录
安装,...
选安装源的时候,我选了否,选'是'的时候要下载很久,莫名其妙
选择组件,什么都没选。
2.配置
dpkg-reconfiguration locales
增加了中文 zh-CN.UTF-8 等
reboot
login
vi /etc/apt/sources.list 修改安装源


apt-get update
apt-get dist-upgrade 很慢,连security.debian.org Ctrl-C了

 

将DHCP改为静态

修改 /etc/network/interfaces
iface eth0 inet static
address 192.168.0.16
netmask 255.255.255.0
gateway 192.168.0.1
/etc/resolv.conf里面设置DNS服务器,
nameserver 192.168.0.1

 

3.安装常用软件
apt-get install gpm
apt-get install rcconf
apt-get install ssh
apt-get install apache2

 

F&Q

Q:remove后,rcconf里还有配置信息,如何完全卸载包:

A:apt-get remove --purge apache

 

Q:Apache2 安装了,不能访问

A: /etc/init.d/apache2 start,see some error?

 

Q:如何安装jdk5

A:#vi /etc/apt/sources.list

Add the following lines

# for sun-java packages in unstable
deb http://ftp.debian.org/debian/ unstable non-free
deb-src http://ftp.debian.org/debian/ unstable non-free

Save and exit the file.

Now you need to Update apt using the following command

#apt-get update

Install jdk using the following command

#apt-get install sun-java5-jdk

Check the java version using the following command

#java -version

 

Q:what's your /etc/apt/sources.list like?

A: #vi /etc/apt/sources.list

 

deb http://mirrors.geekbone.org/debian/ etch main
deb http://debian.cn99.com/debian/ etch main
deb http://security.debian.org/ etch/updates main contrib
deb http://ftp.debian.org/debian/ unstable non-free

 

Q: how to install tomcat

A:#apt-get install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps

你可能感兴趣的:(Debian,SSH,JDK,Tomcat,Security)