ubuntu 12.04设置默认字符启动,设置静态ip,更换源
2016-11-13 17:19
344 查看
设置为默认字符界面启动的做法:
(1)、查看文件/etc/init/rc-sysinit.conf,在第14行附近:确认“env DEFAULT_RUNLEVEL=2”。2是新装系统默认的,确保不被修改。
(2)、编辑文件 /etc/init/lightdm.conf,在第12行附近,原句“ and runlevel [!06]” 改为“ and runlevel [!026]”。
设置静态ip的做法:
(1)修改/etc/network/interfaces文件,向结尾追加:
auto eth0
iface eth0 inet static
address 192.168.0.33
gateway 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
其中的ip地址不一定如上面这样
(2)修改DNS,文件是/etc/resolvconf/resolv.conf.d/base
写入:
nameserver 192.168.80.2
nameserver 8.8.8.8
更换源:
文件/etc/apt/sources.list
网易源:
deb http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted
(1)、查看文件/etc/init/rc-sysinit.conf,在第14行附近:确认“env DEFAULT_RUNLEVEL=2”。2是新装系统默认的,确保不被修改。
(2)、编辑文件 /etc/init/lightdm.conf,在第12行附近,原句“ and runlevel [!06]” 改为“ and runlevel [!026]”。
设置静态ip的做法:
(1)修改/etc/network/interfaces文件,向结尾追加:
auto eth0
iface eth0 inet static
address 192.168.0.33
gateway 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
其中的ip地址不一定如上面这样
(2)修改DNS,文件是/etc/resolvconf/resolv.conf.d/base
写入:
nameserver 192.168.80.2
nameserver 8.8.8.8
更换源:
文件/etc/apt/sources.list
网易源:
deb http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted
相关文章推荐
- Ubuntu 11.10 修改默认运行级别,启动到字符界面(12.04也适用)
- Linux下的Ubuntu16.04.3如何设置默认启动后为字符界面(即命令行界面)
- <转>ubuntu 12.04设置开机启动图形应用程序,替换默认图形桌面
- 关于Ubuntu 12.04 修改默认运行级别,启动字符界面的个人理解
- 关于Ubuntu 12.04修改默认运行级别,启动字符界面
- ubuntu 12.04设置开机启动图形应用程序,替换默认图形桌面
- 关于Ubuntu 12.04修改默认运行级别,启动字符界面
- Ubuntu 12.04 修改默认启动为字符界面
- Ubuntu 12.04设置启动为字符界面
- 设置ubuntu12.04默认从命令行界面启动
- ubuntu设置默认启动字符界面
- 如何在 CentOS、ubuntu 当中设置默认启动命令行
- ubuntu双系统开机默认启动windows设置
- Ubuntu 10.04设置开机启动到字符界面
- ubuntu设置开机默认进入字符界面方法
- ubuntu设置开机启动图形应用程序,替换默认图形桌面 【转】
- Ubuntu-图形界面和字符界面转换、指定默认启动界面
- windows双系统卸载linux ubuntu设置默认启动xp
- Ubuntu 默认启动到命令行 12.04
- ubuntu11.10设置启动进入字符界面(转)