ubuntu系統(tǒng)網(wǎng)絡(luò)配置
ubuntu系統(tǒng)默認(rèn)root用戶是不能登錄的,密碼也是空的。
如果要使用root用戶登錄,必須先為root用戶設(shè)置密碼
打開終端,輸入:sudo passwd root 然后按回車
此時(shí)會(huì)提示你輸入密碼,在password:后輸入你現(xiàn)在登錄的用戶的密碼
然后系統(tǒng)提示你輸入新的UNIX密碼
Enter new UNIX password:這里輸入你想為root設(shè)置的密碼,要輸入兩次
此時(shí)系統(tǒng)會(huì)出現(xiàn)密碼設(shè)置成功的提示
最后退出終端,重啟計(jì)算機(jī),選擇用戶進(jìn)入系統(tǒng)的地方,選擇其他
然后輸入root 再輸入root的密碼就可能登錄了!
其實(shí)用普通用戶登錄,在終端里輸入命令:sudo -s -H也同樣能夠切換到root權(quán)限
Ubuntu網(wǎng)絡(luò)配置如下:
Ubuntu上連了兩塊網(wǎng)卡,eth0為外網(wǎng)的eth1為內(nèi)網(wǎng)的
eth0上IP為自動(dòng)獲取
eth1上為手工設(shè)置
1、打開Ubuntu的/etc/network/interfaces文件 。默認(rèn)內(nèi)容如下:
auto lo
iface lo inet loopback
2、如果以DHCP方式配置網(wǎng)卡,則改為:
auto eth0
iface eth0 inet dhcp
也可以在命令行下直接輸入下面的命令來獲取地址
sudo dhclient eth0
3、如果你想配置靜態(tài)IP地址,你需要編輯/etc/network/interfaces,并輸入以下幾行(假設(shè)你的網(wǎng)卡是eth0):sudo vi /etc/network/interfaces
# The primary network interface
auto eth0
iface eth0 inet static //指定為static
address 192.168.3.90 //IP地址
gateway 192.168.3.1 //網(wǎng)關(guān)
netmask 255.255.255.0 //子網(wǎng)掩碼
network 192.168.3.0 //這個(gè)……網(wǎng)絡(luò)?有沒有勻可
broadcast 192.168.3.255 //廣播 有沒有勻可
4、編輯好以后步驟后退出,你需要通過以下命令重新啟動(dòng)你的網(wǎng)絡(luò)設(shè)備:sudo /etc/init.d/networking restar
5、設(shè)置Ubuntu網(wǎng)絡(luò)配置系統(tǒng)的hostname使用以下命令格式來改系統(tǒng)的hostname,或者直接編輯/etc/hostname sudo hostname newname
6、設(shè)置DNS
sudo vi /etc/resolv.conf
enter the following details
search test.com
nameserver 192.168.3.2
以上介紹Ubuntu網(wǎng)絡(luò)配置。
為方便大家使用,腳本網(wǎng)站特為大家準(zhǔn)備了一篇圖文并茂的
不得不承認(rèn),Ubuntu系統(tǒng)的網(wǎng)絡(luò)設(shè)置是樓主見過的最簡潔明了的。如果你用過Win7,再和Ubuntu一比,相形見絀。那么,本文就介紹一下Ubuntu系統(tǒng)下的網(wǎng)絡(luò)設(shè)置吧(樓主的大本Acer用的是linux deepin 11.06)。
新聞熱點(diǎn)
疑難解答
圖片精選