一、概述

要想实现字符启动,需要修改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

2、http://zhidao.baidu.com/link?url=cZc1GYSJBRxiHT-8SeJW1TVOWFE6jeJLE3AD2NotwVBfGNk9hYKecuRlI_iQ0inKw_FM5cSm0wrH4zXIExZHta

最新文章

  1. mac搭建mamp环境
  2. 【编程题目】有 4 张红色的牌和 4 张蓝色的牌,主持人先拿任意两张,再分别在 A、B、C 三人额头上贴
  3. StringUtilsd的isEmpty、isNotEmpty、isBlank、isNotBlank
  4. oracle 10g 学习之oracle管理(3)
  5. MyEclipse新建Maven工程
  6. [Angular 2] Using Promise to Http
  7. [XMPP]iOS聊天软件学习笔记[一]
  8. node.js querystring处理参数
  9. navicat连接oracle数据库报ORA-28547: connection to server failed, probable Oracle Net admin error错误的解决方法
  10. Python学习笔记(八)
  11. 【HTML5】增强的表单
  12. 使用 JS 嵌入的方式来加载 Flash 插件,在各浏览器中播放视频
  13. Eclipse安装TestNG插件
  14. Linux 小知识翻译 - 「GCC」
  15. Python爬虫-05:Ajax加载的动态页面内容
  16. .net 事务处理
  17. OpenCV——LBP(Local Binary Patterns)特征检测
  18. shareSDK.js web版的使用
  19. SqlParameter 之 in
  20. MS SQL动态创建临时表

热门文章

  1. java19 先开服务器,再开客户端
  2. Linux系统及应用问题分析排查工具
  3. systemtap 技巧系列 +GDB
  4. css :after和:before
  5. JAVA_基础面试题
  6. 转:ORACLEERP开发基础之EBS开发基础
  7. Windows Thrift安装及HelloWorld
  8. MyBatis自动获取主键,MyBatis使用Oracle返回主键,Oracle获取主键
  9. SQL Server调优系列进阶篇 - 查询优化器的运行方式
  10. Golang在视频直播平台的高性能实践