针对刚安装好的Debian进行环境的设定:
1)修改/etc/apt/sources.list设定套件mirror来源
#[Packages]-------------------------------
deb http://ftp.tw.debian.org/debian/ etch main contrib non-free
deb-src http://ftp.tw.debian.org/debian/ etch main contrib non-free
#[Security Update]------------------------
deb http://security.debian.org/ etch/updates main contrib non-free
deb-src http://security.debian.org/ etch/updates main contrib non-free
2)安装sudo套件,并更改/etc/sudoers开放权限
# User privilege specification
root ALL=(ALL) ALL
user ALL=(ALL) ALL
3)安装openssh-server套件,更改/etc/ssh/sshd_config
# What ports we listen for (更改预设port)
Port 5566
# Authentication (禁止root远端登入)
PermitRootLogin no
4)检查Host Name设定状况
a)设定档/etc/hosts
#[IP] [FQDN] [hostname]
127.0.0.1 localhost.localdomain localhost
192.168.1.10 debian.domain.net debian
b)设定档/etc/hostname
debian.domain.net
5)安装常用套件
build-essential、binutils、automake、unzip、unrar、screen、vim、dstat、ntpdate
6)校正系统时间
ntpdate time.stdtime.gov.tw
hwclock -w
7)如果使用ping测试网路状况,出现下列结果:
kcw@server:~$ ping www.debian.org
ping: unknown host www.debian.org
即是DNS未正确设定,造成网址无法解析成IP Address,此时应该检查DNS伺服器设定/etc/resolv.conf
nameserver 168.95.1.1
Summerserenity 于 2008-06-18 08:13:22发表:
Debian确实稳定异常,我转了一大圈又回到了Debian,还是感到她好。