16.04怎么设置才能默认进入字符界面?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
JarodLee
帖子: 180
注册时间: 2007-09-02 18:54
来自: ghtxx.cn
联系:

16.04怎么设置才能默认进入字符界面?

#1

帖子 JarodLee » 2016-05-16 9:23

电脑平时用字符界面,偶尔到机房才用一下图形界面,现在搜到的方法都不能修改成功,总是还会进入GUI,麻烦高手给个步骤,谢谢。

root@A8u16:~# vi /etc/default/grub
root@A8u16:~# update-grub
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.0-22-generic
Found initrd image: /boot/initrd.img-4.4.0-22-generic
Found linux image: /boot/vmlinuz-4.4.0-21-generic
Found initrd image: /boot/initrd.img-4.4.0-21-generic
Adding boot menu entry for EFI firmware configuration
done
root@A8u16:~# reboot
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 16.04怎么设置才能默认进入字符界面?

#2

帖子 vickycq » 2016-05-16 9:29

检查目前状态

代码: 全选

$ ls -l /lib/systemd/system/default.target
lrwxrwxrwx 1 root root 16 May 12 16:05 /lib/systemd/system/default.target -> graphical.target
设置为默认启动字符界面

代码: 全选

systemctl set-default multi-user.target
返回默认启动图形界面

代码: 全选

systemctl set-default graphical.target
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 16.04怎么设置才能默认进入字符界面?

#3

帖子 poloshiao » 2016-05-16 9:33

http://askubuntu.com/questions/215089/s ... sing-grub2
Starting Linux in text mode using Grub2

http://askubuntu.com/questions/158551/a ... -grub-menu
Add console/text booting mode to grub menu

http://askubuntu.com/questions/114123/h ... nsole-mode
how can i create a menu entry for GRUB which boots ubuntu in console mode?

http://askubuntu.com/questions/307719/c ... en-to-text
change gui boot screen to text
头像
JarodLee
帖子: 180
注册时间: 2007-09-02 18:54
来自: ghtxx.cn
联系:

Re: 16.04怎么设置才能默认进入字符界面?

#4

帖子 JarodLee » 2016-05-16 15:22

谢谢两位兄弟的帮助,解决了,
问一下,改成字符模式启动后是不是不能使用xrdp服务了?一登录就显示为crash

附上.xsession-errors
Xsession: X session started for at 2016年 05月 16日 星期一 09:43:14 CST
2 X Error of failed request: BadValue (integer parameter out of range for operation)
3 Major opcode of failed request: 109 (X_ChangeHosts)
4 Value in failed request: 0x5
5 Serial number of failed request: 6
6 Current serial number in output stream: 8
7 localuser:root being added to access control list
8 X Error of failed request: BadValue (integer parameter out of range for operation)
9 Major opcode of failed request: 109 (X_ChangeHosts)
10 Value in failed request: 0x5
11 Serial number of failed request: 6
12 Current serial number in output stream: 8
13 openConnection: connect: 没有那个文件或目录
14 cannot connect to brltty at :0
15 (INFO-4177 /build/fcitx-J2yftF/fcitx-4.2.9.1/src/lib/fcitx/addon.c:151) 加载附加组件配置文件: fcitx-xkbdb 15 us.conf
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 16.04怎么设置才能默认进入字符界面?

#5

帖子 poloshiao » 2016-05-16 17:01

xrdp 服务
http://manpages.ubuntu.com/manpages/xen ... rdp.8.html
xrdp - a Remote Desktop Protocol (RDP) server
xrdp will not display a Windows desktop but an X window desktop to the user.
xrdp 需要 X window desktop 支援
回复