Ubuntu configuration after installation

来源:互联网 发布:阿芙面膜好用吗 知乎 编辑:程序博客网 时间:2024/05/22 10:44

After installation of Ubuntu,


1, apt-get install openssh-server, reboot if needed.


2, sudo passwd root, to set root password


3, Set static IP

vim /etc/network/interfaces

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.220.130.205
gateway 10.220.130.1
netmask 255.255.248.0
network 10.220.0.0
broadcast 10.220.0.255


4, Set DNS

vim /etc/resolvconf/resolv.conf.d/base

nameserver 143.127.160.13


resolvconf -u , check /etc/resolv.conf, don't change this file directly.




0 0
原创粉丝点击