[Ubuntu] 14.04 关闭桌面
2015-02-01 11:17
232 查看
一直在用Ubuntu的桌面来做调试环境,最近发现桌面会有崩溃的时候,占用资源也比较大,所以想把桌面关闭,只用command界面。
我的系统是Ubuntu14.04
Ctrl+Alt+F1 可以转到命令行,但是没有把桌面关掉
Alt+F7 可以回到桌面
参考一个别人的的提问
http://askubuntu.com/questions/16371/how-do-i-disable-x-at-boot-time-so-that-the-system-boots-in-text-mode
这个回答中对于不同情况给了详细的说明。
使用 Ctrl+Alt+t 打开命令行界面
sudo service lightdm stop
这样进入了一个黑屏的界面。。但是呢,用ssh连接什么还是可以的,要的就是这么个结果。
如果想恢复桌面
sudo service lightdm start
下面是认同最多的一个答案:
For Ubuntu 11.10 and higher
Edit /etc/default/grub with your favorite editor,
Find out this line:
Change it to:
Update Grub:
No need to remove / disable
conf, it
already does that for you.
You will still be able to use X by typing
you logged in.
本文出自 “orangleliu笔记本” 博客,转载请务必保留此出处http://blog.csdn.net/orangleliu/article/details/43370405
作者orangleliu 采用署名-非商业性使用-相同方式共享协议
我的系统是Ubuntu14.04
Ctrl+Alt+F1 可以转到命令行,但是没有把桌面关掉
Alt+F7 可以回到桌面
参考一个别人的的提问
http://askubuntu.com/questions/16371/how-do-i-disable-x-at-boot-time-so-that-the-system-boots-in-text-mode
这个回答中对于不同情况给了详细的说明。
使用 Ctrl+Alt+t 打开命令行界面
sudo service lightdm stop
这样进入了一个黑屏的界面。。但是呢,用ssh连接什么还是可以的,要的就是这么个结果。
如果想恢复桌面
sudo service lightdm start
下面是认同最多的一个答案:
For Ubuntu 11.10 and higher
Edit /etc/default/grub with your favorite editor,
sudo nano /etc/default/grub
Find out this line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Change it to:
GRUB_CMDLINE_LINUX_DEFAULT="text"
Update Grub:
sudo update-grub
No need to remove / disable
lightdmupstart
conf, it
already does that for you.
lightdm.conf
# Check kernel command-line for inhibitors, unless we are being called # manually for ARG in $(cat /proc/cmdline); do if [ "$ARG" = "text" ]; then plymouth quit || : stop exit 0 fi done
You will still be able to use X by typing
startxafter
you logged in.
本文出自 “orangleliu笔记本” 博客,转载请务必保留此出处http://blog.csdn.net/orangleliu/article/details/43370405
作者orangleliu 采用署名-非商业性使用-相同方式共享协议
相关文章推荐
- ubuntu 14.04桌面版关闭图形界面
- ubuntu 14.04 桌面版关闭图形界面
- ubuntu 14.04 桌面版关闭图形界面
- [Ubuntu] 14.04 关闭桌面
- ubuntu 14.04 桌面版关闭图形界面
- ubuntu14.04桌面版关闭图形界面
- [Ubuntu] 14.04 关闭桌面
- ubuntu14.04 root登录桌面
- ubuntu14.04快捷键控制笔记本触摸板的开启与关闭
- Ubuntu 14.04 时间、声音、输入法、桌面等无法设置
- 在Parallels中Ubuntu 14.04的桌面不正常问题
- 【原创】在旧的台式机上安装Ubuntu14.04桌面版、麒麟版和服务器版
- 【原创】在旧的台式机上安装Ubuntu14.04桌面版、麒麟版和服务器版
- 用快捷键或桌面软件强制关闭Ubuntu无响应程序
- ubuntu 14.04 unity 登录(login)之后桌面没有图标或者空白的解决方案
- ubuntu14.04装完系统更新后桌面挂了
- 解决Ubuntu 14.04 Unity桌面环境登录后冻结问题
- Ubuntu 升级14.04后桌面低配启动崩溃
- windows下远程访问ubuntu14.04桌面
- Ubuntu 或 UbuntuKyKin14.04 Unity桌面风格与Gnome桌面风格的切换