无法在Centos7上启动Xserver

时间:2016-12-02 11:22:22

标签: gnome pam xserver

我正在努力在Centos 7.2服务器上设置桌面环境。我按以下方式连接到服务器: -

  • 虽然putty ssh在我的用户的跳转框上然后从跳转框

  • 使用我的ID

  • ssh到Centos 7.2服务器上

我已安装并尝试过以下台式机:
Gnome桌面 - >无法使它工作(最后做了一个sudo yum groupremove of it)
肉桂 - >还在苦苦挣扎

已安装以下软件包: -

sudo yum --enablerepo=epel -y install cinnamon*    
sudo yum install xorg*

我在startx上一直低于错误: -

xauth:  file /home/ma357577/.serverauth.4007 does not exist  

(EE)  
Fatal server error:  
(EE) PAM authentication failed, cannot start X server.  
        Perhaps you do not have console ownership?  
(EE)  
(EE)  
Please consult the The X.Org Foundation support  
         at http://wiki.x.org  
 for help.  
(EE)  
xinit: giving up  
xinit: unable to connect to X server: Connection refused  
xinit: server error  
Couldn't get a file descriptor referring to the console 

我试过了 重命名/etc/pam.d/xserver(但如果没有这个,它会回到/etc/pam.d/other,因此完全受限制) 并按如下所示更改xserver文件: -

\#%PAM-1.0  
auth       sufficient   pam_rootok.so  
\#auth       required    pam_console.so  
auth      sufficient    pam_console.so  nullok  
account    required     pam_permit.so   nullok  
session    optional     pam_keyinit.so force revoke 

这些变化似乎都没有效果。在谷歌搜索了很多,但仍然卡住了。

热切地寻求帮助!提前致谢。

问候
罗汉

1 个答案:

答案 0 :(得分:0)

查看此说明Configuring VNC Server

您想使用xined服务。