首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >startx作为用户失败

startx作为用户失败
EN

Ask Ubuntu用户
提问于 2016-07-30 16:14:00
回答 2查看 12.9K关注 0票数 3

关于Ubuntu 16.04:

代码语言:javascript
复制
gz@gcomputer:~$ startx


X.Org X Server 1.18.3
Release Date: 2016-04-04
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.13.0-86-generic x86_64 Ubuntu
Current Operating System: Linux gcomputer 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-31-generic root=UUID=56fc92d2-1903-4263-b88e-d09bc15ef1d3 ro quiet splash
Build Date: 18 May 2016  01:07:07AM
xorg-server 2:1.18.3-1ubuntu2.2 (For technical support please see http://www.ubuntu.com/support) 
Current version of pixman: 0.33.6
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/gz/.local/share/xorg/Xorg.1.log", Time: Sat Jul 30 18:12:37 2016
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) 
Fatal server error:
(EE) parse_vt_settings: Cannot open /dev/tty0 (No such file or directory)
(EE) 
(EE) 
Please consult the The X.Org Foundation support 
     at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/home/gz/.local/share/xorg/Xorg.1.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.

^Cxinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: unexpected signal 2
Couldn't get a file descriptor referring to the console

为什么?

我找到了这个相关的问题。根据其公认的答案,我应该按以下方式编辑/etc/X11/Xwrapper.config

代码语言:javascript
复制
allowed_users=anybody
needs_root_rights=yes

我这么做了,但这对我没什么改变。

这些评论似乎表明,startx在Ubuntu中被破坏了。为什么会这样呢?如果是这样的话,也许我原来问题的答案是"startx不再可能了,因为.“,或者”让它成为可能会有.缺点“之类的?

代码语言:javascript
复制
root@gcomputer:~# dpkg-reconfigure x11-common
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
insserv: warning: script 'S04powernowd.early' missing LSB tags and overrides
insserv: warning: script 'powernowd.early' missing LSB tags and overrides

不知道这意味着什么。

EN

回答 2

Ask Ubuntu用户

发布于 2016-07-30 16:40:58

您可以尝试使用dpkg-reconfigure x11-common重新配置

来源:未修改的/etc/X11/Xwrapper.config文件,位于3个不同的14.04LTS系统上。请注意,16.04没有此文件。

附带注意:我的系统上相同的源代码包括行:allowed_users=console而不是allowed_users=anybody

相关来源稍后发现:http://karuppuswamy.com/wordpress/2010/09/26/how-to-fix-x-user-not-authorized-to-run-the-x-server-aborting/

票数 2
EN

Ask Ubuntu用户

发布于 2020-12-22 11:39:28

对于最后一个版本,此重新配置操作不起作用。您应该安装遗留程序包:

代码语言:javascript
复制
sudo apt-get install --no-install-recommends xserver-xorg xserver-xorg-legacy xinit xterm

并且您应该运行reconfigure操作以授予权限:

代码语言:javascript
复制
sudo dpkg-reconfigure xserver-xorg-legacy

在控制台菜单中,请选择任何人

另外,您应该检查用户是否在权限组中,例如视频组。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/804957

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档