0%

ubuntu-上网

一、如何设定/改变/启用 root 使用者的密码
sudo passwd root
二、ubuntu设置上网,首先删除network connect
sudo apt-get remove network-manager --purge
编辑系统文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
sudo gedit /etc/network/interfaces
auto lo
iface lo inet loopback

//静态IP地址如下:

auto eth0
iface eth0 inet static
address 202.38.245.225
netmask 255.255.255.128
gateway 202.38.245.254
hwaddress ether 06:23:F1:06:23:AC

//自动获取IP地址如下:

DHCP
auto eth0
iface eth0 inet dhcp

//Restart the network
sudo /etc/init.d/networking restart

//修改DNS

sudo gedit /etc/resolv.conf
nameserver 202.103.24.68