分页: 1 / 1

ubuntu server安装xfce4后如何切换到图形界面?

发表于 : 2016-07-27 19:23
babydragonyi
系统为Ubuntu Server 16.04

在安装xfce之前只更新过默认安装的软件。

执行了以下命令安装了xfce4桌面环境:

代码: 全选

sudo apt-get install xfce4 xfce4-goodies
其他的没设置过。

但是只有root用户才能正常执行

代码: 全选

startxfce4
或者使用

代码: 全选

sudo
提升权限,才能进入xfce4界面。
使用普通用户执行

代码: 全选

startxfce4
时会报错:

代码: 全选

Fatal server error:
[ 16606.747] (EE) parse_vt_settings: Cannot open /dev/tty0 (No such file or directory)
[ 16606.747] (EE)
[ 16606.747] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[ 16606.747] (EE) Please also check the log file at "/home/sdustoj/.local/share/xorg/Xorg.0.log" for additional information.
[ 16606.747] (EE)
请问怎么样设置能够让普通用户也能进入xfce环境呢?

Re: ubuntu server安装xfce4后如何切换到图形界面?

发表于 : 2016-07-27 19:35
vickycq
尝试
1. 在 /etc/X11/Xwrapper.config 中设置 allowed_users=console 或 anybody
2. 用户加入 video 组(不加也可以?)


若无特殊需求 可选用一款 dm

Re: ubuntu server安装xfce4后如何切换到图形界面?

发表于 : 2016-07-27 19:54
poloshiao
ubuntu server安装xfce4后如何切换到?
1. 如果你要預設開機直接登入图形界面
安裝 xubuntu-desktop 套件 然後重新開機 就直接開機到 图形登入界面
sudo apt install xubuntu-desktop
1-1. http://packages.ubuntu.com/xenial/xubuntu-desktop
Package: xubuntu-desktop (2.206) [universe]
1-2. 如果安裝過程 問你要選擇何種 DM (display manager) 選 lightdm
startxfce4
2. 從 tty1 啟動图形登入界面
sudo systemctl start lightdm

sudo systemctl restart lightdm

3. 從 tty1 關閉图形界面
sudo systemctl stop lightdm
3-1. 從 图形界面 關閉图形界面 並且出現 tty1
sudo systemctl stop lightdm

4. 參閱
https://xubuntu.org/news/xubuntu-16-04-1-release
Xubuntu 16.04.1 Release

Re: ubuntu server安装xfce4后如何切换到图形界面?

发表于 : 2016-07-27 20:26
babydragonyi
vickycq 写了:尝试
1. 在 /etc/X11/Xwrapper.config 中设置 allowed_users=console 或 anybody
2. 用户加入 video 组(不加也可以?)

若无特殊需求 可选用一款 dm
前面两个尝试好像没什么效果,而且/etc/X11/Xwrapper.config这个文件好像本来不存在,
不过装了lightdm之后是能进去了。。

请问这个是什么情况导致的呢?

Re: ubuntu server安装xfce4后如何切换到图形界面?

发表于 : 2016-07-27 22:28
vickycq
babydragonyi 写了:前面两个尝试好像没什么效果
抱歉 之前未看清主楼的错误信息 "parse_vt_settings: Cannot open /dev/tty0 (No such file or directory)"

此问题可能出在 startxfce4 脚本中。可尝试使用 startx
可测试:
1. sudo systemctl set-default multi-user.target (临时设置默认不启动 lightdm);
2. 重新启动计算机,在 tty1 以普通用户身份登录后执行 startx,应该可以正常进入 xfce4。若执行 startxfce4 或 X 则出现主楼错误;
3. sudo systemctl set-default graphical.target (恢复默认启动 lightdm);
4. 重新启动计算机,恢复原状态

xserver >= 1.16 使用普通用户身份运行 参考
https://bbs.archlinux.org/viewtopic.php?id=184496
https://bugs.archlinux.org/task/41257
https://www.reddit.com/r/debian/comment ... ular_user/
http://hansdegoede.livejournal.com/14268.html
正常使用 lightdm 也可不必追究。
babydragonyi 写了:而且/etc/X11/Xwrapper.config这个文件好像本来不存在,
理论上讲 安装 xfce4 后:
xfce4 推荐 xorg
xorg 依赖 xserver-xorg
xserver-xorg 依赖 xserver-xorg-core
xserver-xorg-core 依赖 xserver-common
xserver-common 依赖 x11-common
安装并配置 x11-common 时,会生成 /etc/X11/Xwrapper.config

Re: ubuntu server安装xfce4后如何切换到图形界面?

发表于 : 2016-07-30 2:38
manami5
先把前面安装的xfce4和xfce4-goodies卸载掉
然后apt search tasksel,再用apt install安装所有搜索到的套件
然后用sudo tasksel命令选择并安装XFCE4
以后就可以用systemctl isolate graphical.target切换到桌面
用systemctl isolate multi-user.target切换到纯命令列模式
如果希望开机不启动桌面,开机仅启动命令行,就用systemctl isolate multi-user.target命令将系统默认的运行模式设为命令行模式。
https://help.ubuntu.com/community/Tasksel
https://wiki.ubuntu.com/systemd

Re: ubuntu server安装xfce4后如何切换到图形界面?

发表于 : 2016-07-30 16:39
vpnsubmit
请问这个是什么情况导致的呢?
บาคาร่าออนไลน์

Re: ubuntu server安装xfce4后如何切换到图形界面?

发表于 : 2021-07-25 19:37
winneis