ubuntu配置更新修改IP地址
在向大家詳細介紹ubuntu系統(tǒng)修改之前,首先讓大家了解下ubuntu系統(tǒng),然后全面介紹ubuntu系統(tǒng),希望對大家有用。ubuntu系統(tǒng)設(shè)置Ubuntu 將有規(guī)律和計劃的不斷發(fā)布; 每 6 個月發(fā)布一個新版本。你可以使用當(dāng)前穩(wěn)定版本或者開發(fā)版本。每一種版本的安全升級將支持 18 個月。
1、ubuntu系統(tǒng)修改IP地址:sudo gedit /etc/network/interfaces
auto eth0
iface eth0 inet static
address 219.218.122.168
netmask 255.255.255.0
gateway 219.218.122.254
2、ubuntu系統(tǒng)修改DNS: sudo gedit /etc/resolv.conf
nameserver 202.194.15.12
3、使網(wǎng)絡(luò)生效:sudo /etc/init.d/networking restart
Ubuntu8.04虛擬機更換host主機后開機無法加載網(wǎng)卡,提示:No such device
刪除緩存文件,重啟后解決。
sudo rm /etc/udev/rules.d/70-persistent-net.rules
reboot
ubuntu系統(tǒng)配置更新“源”
在ubuntu系統(tǒng)(其他linux系統(tǒng),如Redhat,Open SUSE,Fedora Core也差不多)里,“源”就是指系統(tǒng)更新用的服務(wù)器,源地址,自然就是指更新服務(wù)器的地址了。 ubuntu“源文件”所在位置: /etc/apt 文件夾,名稱:sources.list
1. 編輯源的文件:sudo gedit /etc/apt/sources.list
2. 更新源上的包:sudo apt-get update
3. 備份源的文件:sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
4. ubuntu系統(tǒng)ubuntu 8.10 臺灣源。其他的都不穩(wěn)定,大家想要的話,可以去網(wǎng)上搜索,很多的,我這里只給出我認為最穩(wěn)定,速度也不錯的臺灣源:
#Ubuntu.cn99.com 更新服務(wù)器(推薦廣東電信用戶使用。
deb http://ubuntu.cn99.com/ubuntu/ feisty main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ feisty-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ feisty-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ feisty-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ feisty-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ feisty main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ feisty-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ feisty-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ feisty-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ feisty-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ feisty main restricted universe multiversedeb http://archive.ubuntu.com/ubuntu/ breezy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ breezy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ breezy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ breezy-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ breezy main restricted universe multiverse
#臺灣官方更新源(強烈推薦大陸電信用戶使用)
deb http://tw.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse
【編輯推薦】