deepin中如何做到不默认启动xwindow?
Tofloor
poster avatar
genuine2015
deepin
2015-07-02 00:09
Author
也就是说,开机时runlevel就是3了
Reply Favorite View the author
All Replies
cxbii
deepin
2015-07-02 17:37
#1
Reply View the author
genuine2015
deepin
2015-07-02 17:42
#2
cxbii 发表于 2015-7-2 09:37
http://wiki.deepin.org/index.php?title=%E5%88%9D%E5%A7%8B%E5%8C%96

不过,在debian系列中,运行级别2345是一样的。不过我为了省内存,不想开机启动图形界面。请问我应该怎么办?
Reply View the author
cxbii
deepin
2015-07-02 17:44
#3
https://bbs.deepin.org/post/31210
不过,在debian系列中,运行级别2345是一样的。不过我为了省内存,不想开机启动图形界面。请问我应该怎么 ...

还有一种方法就是用grub实现
http://wiki.deepin.org/index.php ... 6.E9.85.8D.E7.BD.AE

Reply View the author
Feng Yu
deepin
2015-07-02 18:07
#4
本帖最后由 abcfy2 于 2015-7-2 10:09 编辑

还有一种方案。其实你注意RH系列的系统,所谓的几个运行级别只不过是设置了不同的启动服务而已。对于debian系,不区分2-5级别,因为2-5级别的运行的服务完全相同。

那么就很简单了,只要开机的时候禁止DM服务(Desktop Manager,桌面管理)和别的图形桌面需要运行的服务就行了,通常只需要禁止DM服务,别的图形服务一般依赖于DM服务的启动。

Ubuntu和Deepin使用的DM都是lightdm(KDE桌面系统通常使用的是kdm,Gnome桌面系统通常使用的是gdm),禁止开机自动启动:
sudo bash -c 'echo manual > /etc/init/lightdm.override'
在命令行下想启动桌面,只需要启动dm服务即可。sudo service lightdm start
Reply View the author