RedHat 配置與使用VNC Linux中使用VNC

來源:互聯網
上載者:User

http://www.ategpu.com/2009/06/04/redhat-as-5-vncserver%E5%8F%8Avncviewer%E7%9A%84%E8%AF%A6%E7%BB%86%E9%85%8D%E7%BD%AE.html

配置vnc

#vi /etc/sysconfig/vncservers

找到vncservers="1:myusername"這個字串,去掉注釋,把myusername改為你的登入使用者名稱。然後儲存退出。

找到vi .vnc/xstatup檔案

留下unset SESSION_MANAGER

      exec /etc/X11/xinit/xinitrc(去掉注釋)其餘的全部刪除

#vi /etc/sysconfig/iptables

在其中加入5901連接埠,然後儲存退出

#service iptables restart

#service vncserver restart

完成

======================================================================

如需立即啟動vncserver服務,運行以下命令:

# service vncserver start

如需引導時自動啟動vncserver服務,運行以下命令:

# chkconfig vncserver on

注意:這個命令執行後不會有輸出,會直接返回命令提示字元,如:(提示在root使用者下)

# chkconfig vncserver on

# chkconfig --list vncserver

vncserver 0:off 1:off 2:on 3:on 4:on 5:on 6:off

提示:在安裝和操作過程中一定要注意使用者與VNC的關係.每個使用者都可以有自己的VNCSERVER.

 

====================================================================

前提是redhat 的系統,只在這上面試過。

linux 通過vnc訪問遠程linux案頭。

在本地linux中輸入vncviewer命令,全部搞定。

 

相關文章

聯繫我們

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