运行等级不需修改,系统默认2,inittab文件也不需要,在启动项内核加上text参数就可以了。
方法一:
chmod +w /boot/grub/grub.cfg //添加可写权限
vi /boot/grub/grub.cfg //打开grub配置文件
在相对应的启动选项中找到“quiet splash”,其中splash是设置启动画面,可留可不留。不留的话就直接把splash改成text,留的话就是“quiet splash text”。
编辑 /boot/grub/grub.cfg
找到linux /boot/vmlinuz-2.6.31-20-generic root=UUID=2d09215f-5e7d-44d3-9fe5-8d87aa0e21b7 ro quiet splash
类似这样
在最后添加一个text,变为
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=2d09215f-5e7d-44d3-9fe5-8d87aa0e21b7 ro quiet splash text
保存退出
chmod -w /boot/grub/grub.cfg //
Reboot
方法二:
vi /etc/default/grub
同样找到“quiet splash",方法同上!
改完后保存退出
upda-grub //关键
reboot
通过以上,开机就直接进入文本模式了!