如何让ubuntu启动时打印字符信息----字符启动
一、概述
要想实现字符启动,需要修改grub.cfg(启动配置文件),将“静态启动”改为“字符启动”。
但是grub.cfg通常只作为只读文件,修改它时实际上修改的是其他的文件然后再通过update-grub命令更新到此文件上。
二、相关文件说明
1、/boot/grub/grub.cfg
grub.cfg的开头注释内容如下:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
2、/etc/default/grub
grub文件的原始内容
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
三、实现步骤
1、将grub修改成如下内容
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"GRUB_CMDLINE_LINUX_DEFAULT="text"
GRUB_CMDLINE_LINUX=""
也就是将静态启动行注释掉,换成字符启动的。
2、更新/boot/grub/grub.cfg
#update-grub
四、如何切换到图形界面
方法一:
#/etc/init.d/lightdm start
方法二:
#startx
参考网页
1、http://www.startos.com/ubuntu/tips/2011031423787.html
最新文章
- mac搭建mamp环境
- 【编程题目】有 4 张红色的牌和 4 张蓝色的牌,主持人先拿任意两张,再分别在 A、B、C 三人额头上贴
- StringUtilsd的isEmpty、isNotEmpty、isBlank、isNotBlank
- oracle 10g 学习之oracle管理(3)
- MyEclipse新建Maven工程
- [Angular 2] Using Promise to Http
- [XMPP]iOS聊天软件学习笔记[一]
- node.js querystring处理参数
- navicat连接oracle数据库报ORA-28547: connection to server failed, probable Oracle Net admin error错误的解决方法
- Python学习笔记(八)
- 【HTML5】增强的表单
- 使用 JS 嵌入的方式来加载 Flash 插件,在各浏览器中播放视频
- Eclipse安装TestNG插件
- Linux 小知识翻译 - 「GCC」
- Python爬虫-05:Ajax加载的动态页面内容
- .net 事务处理
- OpenCV——LBP(Local Binary Patterns)特征检测
- shareSDK.js web版的使用
- SqlParameter 之 in
- MS SQL动态创建临时表