您的位置:首页 > 其它

Debian 最小化安装后基本设置

2014-02-26 14:00 597 查看
1. vi /etc/apt/sources.list
deb http://mirrors.163.com/debian wheezy main non-free contrib
deb http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian wheezy main non-free contrib
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free

deb http://mirrors.163.com/debian-security wheezy/updates main contrib non-free
deb-src http://mirrors.163.com/debian-security wheezy/updates main contrib non-free

deb http://mirrors.sohu.com/debian wheezy main non-free contrib
deb http://mirrors.sohu.com/debian wheezy-proposed-updates main contrib non-free
deb-src http://mirrors.sohu.com/debian wheezy main non-free contrib
deb-src http://mirrors.sohu.com/debian wheezy-proposed-updates main contrib non-free

deb http://mirrors.sohu.com/debian-security wheezy/updates main contrib non-free
deb-src http://mirrors.sohu.com/debian-security wheezy/updates main contrib non-free

如果要加入cdrom源
mount /dev/cdrom /media/cdrom0
apt-cdrom -m -d=/media/cdrom0 add

apt-get update

2. apt-get install vim openssh-server

3. vi /etc/hosts
remove or comment the line beginning with 127.0.1.1

vi /etc/hostname

vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.44.13
netmask 255.255.255.0
gateway 192.168.44.200
dns-nameservers 210.22.84.3

service networking restart




本文出自 “Ilovecat(个人笔记)” 博客,请务必保留此出处http://hj192837.blog.51cto.com/655995/1363739
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: