Ubuntu 6.06 Server LTS 安裝試用
發表於 : 2006-07-19 19:15:20
1.SSH Server
放入光碟
sudo apt-get install ssh
2.設定套件庫
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
sudo vi /etc/apt/sources.list
把內容全部清光
複製貼上以下
####
# Dapper
####
## Major bug fix updates produced after the final release of the
## distribution.
deb http://tw.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu/ dapper universe main restricted multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ dapper universe
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://tw.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
# deb-src http://tw.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
deb http://security.ubuntu.com/ubuntu dapper-security universe
deb-src http://security.ubuntu.com/ubuntu dapper-security universe
3.更新
sudo apt-get update
sudo apt-get upgrade
4.安裝 Apache2
sudo apt-get install apache2
sudo /etc/init.d/apache2 restart
sudo apt-get install webalizer
/etc/apache2/apache2.conf
5.安裝 php4
sudo apt-get install php4
sudo apt-get install php4-cli
sudo apt-get install php4-mysql
sudo apt-get install php4-gd
sudo apt-get install php4-imap
sudo apt-get install php4-pear
sudo apt-get install phpMyAdmin
/etc/php4/apache2/php.ini
6.安裝MySQL
sudo apt-get install mysql-server
sudo cp /etc/mysql/my.cnf /etc/mysql/my.cnf.bkup
/etc/mysql/my.cnf
#bind-address = 127.0.0.1
7.找套件
sudo apt-cache search php4
列出套件
sudo apt-cache pkgnames | grep php
移除套件
apt-get remove
8.FTP
sudo apt-get install proftpd
選 standalone <----表示有人使用服務才啟動
9.校時
sudo ntpdate time.stdtime.gov.tw
sudo /etc/init.d/hwclock.sh restart
10.nmap
sudo apt-get install nmap
11.MTA
sudo apt-get install postfix
sudo apt-get install clamav
sudo apt-get install amavisd-new
sudo apt-get install spamassassin
/etc/postfix/main.cf
12.SAMBA
sudo apt-get install samba
sudo apt-get install samba-common
sudo apt-get install smbclient
sudo apt-get install smbfs
/etc/samba/smb.conf
放入光碟
sudo apt-get install ssh
2.設定套件庫
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
sudo vi /etc/apt/sources.list
把內容全部清光
複製貼上以下
####
# Dapper
####
## Major bug fix updates produced after the final release of the
## distribution.
deb http://tw.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu/ dapper universe main restricted multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ dapper universe
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://tw.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
# deb-src http://tw.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
deb http://security.ubuntu.com/ubuntu dapper-security universe
deb-src http://security.ubuntu.com/ubuntu dapper-security universe
3.更新
sudo apt-get update
sudo apt-get upgrade
4.安裝 Apache2
sudo apt-get install apache2
sudo /etc/init.d/apache2 restart
sudo apt-get install webalizer
/etc/apache2/apache2.conf
5.安裝 php4
sudo apt-get install php4
sudo apt-get install php4-cli
sudo apt-get install php4-mysql
sudo apt-get install php4-gd
sudo apt-get install php4-imap
sudo apt-get install php4-pear
sudo apt-get install phpMyAdmin
/etc/php4/apache2/php.ini
6.安裝MySQL
sudo apt-get install mysql-server
sudo cp /etc/mysql/my.cnf /etc/mysql/my.cnf.bkup
/etc/mysql/my.cnf
#bind-address = 127.0.0.1
7.找套件
sudo apt-cache search php4
列出套件
sudo apt-cache pkgnames | grep php
移除套件
apt-get remove
8.FTP
sudo apt-get install proftpd
選 standalone <----表示有人使用服務才啟動
9.校時
sudo ntpdate time.stdtime.gov.tw
sudo /etc/init.d/hwclock.sh restart
10.nmap
sudo apt-get install nmap
11.MTA
sudo apt-get install postfix
sudo apt-get install clamav
sudo apt-get install amavisd-new
sudo apt-get install spamassassin
/etc/postfix/main.cf
12.SAMBA
sudo apt-get install samba
sudo apt-get install samba-common
sudo apt-get install smbclient
sudo apt-get install smbfs
/etc/samba/smb.conf