XManager5基於gdm串連centos圖形介面

來源:互聯網
上載者:User


centos6

參考了很多資料,花了幾個鐘終於把XManager串連centos搞定.

第一步:

如果是新裝的linux centos7,需要先配置好yum,執行命令:

cd /etc/yum.repos.d

rm -rf *
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
yum makecache


如果為centos6,則為wget http://mirrors.163.com/.help/CentOS6-Base-163.repo


先下載圖形介面GNOME
yum groupinstall "Desktop" -y
yum groupinstall "X Window System" -y
yum groupinstall "Chinese Support" -y
 
第二步:
修改/etc/X11/xdm/Xaccess
如果沒有xdm該目錄,則需要安裝xdm
yum install xdm  -y
用vi開啟後找到
#*                        #*any host can get a login window
將前面的#去掉(即去掉兩個#號)變成
*                        *any host can get a login window

第三步:
修改/etc/gdm/custom.conf

[daemon]

[security]

AllowRemoteRoot=true  //添加1

[xdmcp]
Port=177   //添加2
Enable=1    //添加3 Enable為true也可以

[gui]

[greeter]

[chooser]

[debug]

如果startx啟動出現如下
[root@cloud ssh]#startx
xauth:  creating new authority file /root/.serverauth.3234


Fatal server error:
Server is already active for display 0
        If this server is no longer running, remove /tmp/.X0-lock
        and start again.

(EE)
Please consult the CentOS support
         at http://wiki.centos.org/Documentation
 for help.
(EE)


或者gdm啟動出現如下
[root@cloud ssh]#gdm

** (gdm-binary:3256): WARNING **: Failed to acquire org.gnome.DisplayManager

** (gdm-binary:3256): WARNING **: Could not acquire name; bailing out

都沒有影響.

接下來使用XManager4串連

我使用的是Xstart


填寫主機名稱,協議選SSH,使用者名稱,密碼,命令選GNOME,點擊run就行了. 註:命令是要選擇的,不是手動敲

 



附註:
Sent password.
Sent password.
Access granted.
Sent X11 forwarding request...
Failed.
如果出現以上情況就修改
/etc/ssh/sshd_config
#X11Forwarding no
修改為:X11Forwarding yes
然後重啟ssh
service sshd restart


感謝: http://blog.csdn.net/wandrong/article/details/20393733


centos7.2


參考: https://www.zhukun.net/archives/7798

http://blog.csdn.net/wuzhimang/article/details/51523867

執行命令:


yum install -y xterm
yum install -y gnome-core xfce4 firefox
yum install -y gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal


修改/etc/gdm/custom.conf,修改內容:

[daemon]

[security]

AllowRemoteRoot=true  //添加1

[xdmcp]
Port=177   //添加2
Enable=1    //添加3 Enable為true也可以


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.