Xmananger串連CentOS6.4

來源:互聯網
上載者:User

一直在虛擬機器中進行操作著實有點麻煩,借用Xmanager遠端連線CentOS進行操作很方便快捷。google了一下相關的文章,發現很多第一步都是編輯/etc/gdm/custom.conf,但是發現自己的系統中沒有該檔案,很是鬱悶,這裡將全程的步驟說一下。


第一步:安裝gdm


yum -y install gdm

註:這裡也可以安裝xdm,若安裝xdm,還需修改/etc/X11/xdm/Xaccess,將下面語句的#刪去。

#*                #any host can get a login window


第二步:編輯/etc/gdm/custom.conf

在欄位[security]和[xdmcp]中插入下列語句

[security]AllowRemoteRoot=true[xdmcp]Port=177Enable=1

註:若安裝xdm,這步還是一樣的


第三步:設定防火牆

在/etc/sysconfig/iptables檔案中加入以下語句,開啟udp的177連接埠。

-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 177 -j ACCEPT

當然,也可以直接將防火牆關閉,則不需要添加語句,前一句關閉防火牆開機啟動,後一句關閉防火牆,然後重啟。

chkconfig iptables offservice iptables stop

註:由於我目前學習的還是基礎知識,沒必要用到防火牆,所以我是直接關閉防火牆的。


第四步:參看虛擬機器系統的ip地址

ifconfig

650) this.width=650;" src="http://www.bkjia.com/uploads/allimg/131227/23055325W-0.png" title="ifconfig" alt="194742541.png" />

這裡的ip地址為192.168.67.130。


第五步:用Xmanager串連CentOS

650) this.width=650;" src="http://www.bkjia.com/uploads/allimg/131227/2305534149-1.png" title="xmanager串連" alt="195353946.png" />

然後輸入使用者名稱和密碼就OK了。

650) this.width=650;" src="http://www.bkjia.com/uploads/allimg/131227/2305531Q1-2.png" title="串連上後" alt="195453742.png" />

本文出自 “7247558” 部落格,請務必保留此出處http://evanlinux.blog.51cto.com/7247558/1303175

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.