2016-12-02 243 views
1

我努力在Centos 7.2服務器上設置桌面環境。我連接到服務器的方式如下: -無法在Centos7上啓動Xserver

  • 雖然膩子SSH到從跳箱子

  • SSH到CentOS的7.2服務器與我的用戶跳轉框,然後用我的ID

我已安裝並試用下面的桌面:
Gnome桌面 - >無法使它工作(終於做了須藤蔭它groupremove)
肉桂 - >還在掙扎

已經安裝了以下軟件包: -

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/因此完全受限制) 並更改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 

沒有任何更改似乎工作。在谷歌上搜索了很多,但仍然陷入困境。

急於求助!提前致謝。

問候
羅漢

+0

您是否找到解決方案? –

回答