博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ubuntu 10.04 开机增加命令界面
阅读量:4135 次
发布时间:2019-05-25

本文共 1161 字,大约阅读时间需要 3 分钟。

有时候复制一些资料,修改配置文件等工作,不需要进入图形界面,如何在开始菜单增加一个命令界面呢?

一、修改grub.cfg属性

grub.cfg默认为只读的,我们要修改它,必须加上写属性。

sudo chmod +w /boot/grub/grub.cfg

三、修改grub.cfg

sudo vim /boot/grub/grub.cfg

打开文件之后,发现第一个菜单项:
menuentry 'Ubuntu,Linux 2.6.32-22-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {


recordfail
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set 7dde7e5c-249c-4128-b148-8ebae100cc7a
linux /boot/vmlinuz-2.6.32-22-generic-pae root=UUID=7dde7e5c-249c-4128-b148-8ebae100cc7a ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic-pae
}

我们把他复制一份,之后修改一下:
menuentry 'Ubuntu,Linux 2.6.32-22-generic-pae(commmand mode)' --class ubuntu --class gnu-linux --class gnu --class os {


recordfail
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set 7dde7e5c-249c-4128-b148-8ebae100cc7a
linux /boot/vmlinuz-2.6.32-22-generic-pae root=UUID=7dde7e5c-249c-4128-b148-8ebae100cc7a ro text
initrd /boot/initrd.img-2.6.32-22-generic-pae
}

注(修改两处):
1、在菜单项里写入command mode ,这个作为标识,随意写!如“text mode”
2、把quiet splash删除,加上text

四、其他
保存重新开机就会发现多了这么一个项目。
我们如果想在命令行模式进入图形界面怎么办?还用重新启动计算机吗?当然是不用的。
1、开启图形界面
/etc/init.d/gdm  start
2、关闭图形界面
/etc/init.d/gdm  stop

转载地址:http://hhsvi.baihongyu.com/

你可能感兴趣的文章
海量数据相似度计算之simhash和海明距离
查看>>
DeepLearning tutorial(5)CNN卷积神经网络应用于人脸识别(详细流程+代码实现)
查看>>
DeepLearning tutorial(6)易用的深度学习框架Keras简介
查看>>
DeepLearning tutorial(7)深度学习框架Keras的使用-进阶
查看>>
流形学习-高维数据的降维与可视化
查看>>
Python-OpenCV人脸检测(代码)
查看>>
python+opencv之视频人脸识别
查看>>
人脸识别(OpenCV+Python)
查看>>
6个强大的AngularJS扩展应用
查看>>
网站用户登录系统设计——jsGen实现版
查看>>
第三方SDK:讯飞语音听写
查看>>
第三方SDK:JPush SDK Eclipse
查看>>
第三方开源库:imageLoader的使用
查看>>
自定义控件:飞入飞出的效果
查看>>
自定义控件:动态获取控件的高
查看>>
第三方开源库:nineoldandroid:ValueAnimator 动态设置textview的高
查看>>
第三方SDK:百度地图SDK的使用
查看>>
Android studio_迁移Eclipse项目到Android studio
查看>>
JavaScript setTimeout() clearTimeout() 方法
查看>>
CSS border 属性及用border画各种图形
查看>>