ubuntu配置更新修改IP地址
在向大家詳細介紹ubuntu系統修改之前,首先讓大家了解下ubuntu系統,然后全面介紹ubuntu系統,希望對大家有用。ubuntu系統設置Ubuntu 將有規律和計劃的不斷發布; 每 6 個月發布一個新版本。你可以使用當前穩定版本或者開發版本。每一種版本的安全升級將支持 18 個月。
1、ubuntu系統修改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系統修改DNS: sudo gedit /etc/resolv.conf
nameserver 202.194.15.12
3、使網絡生效:sudo /etc/init.d/networking restart
Ubuntu8.04虛擬機更換host主機后開機無法加載網卡,提示:No such device
刪除緩存文件,重啟后解決。
sudo rm /etc/udev/rules.d/70-persistent-net.rules
reboot
ubuntu系統配置更新“源”
在ubuntu系統(其他linux系統,如Redhat,Open SUSE,Fedora Core也差不多)里,“源”就是指系統更新用的服務器,源地址,自然就是指更新服務器的地址了。 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系統ubuntu 8.10 臺灣源。其他的都不穩定,大家想要的話,可以去網上搜索,很多的,我這里只給出我認為最穩定,速度也不錯的臺灣源:
#Ubuntu.cn99.com 更新服務器(推薦廣東電信用戶使用。
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
【編輯推薦】