linux 作業系統安裝配置vnc

來源:互聯網
上載者:User

標籤:linux vnc

                 在營運的工作過程中,有時候需要我們用VNC去串連Linux伺服器,比如:財務裝個金蝶的財務軟體,而且還要求放在機房。這個變態的軟體在啟動的時候,需要我們去點擊它的圖形介面去啟動它。這時,VNC就派上用場了。


一.設定檔

# The VNCSERVERS variable is a list of display:user pairs.

#

# Uncomment the lines below to start a VNC server on display :2

# as my ‘myusername‘ (adjust this to your own).  You will also

# need to set a VNC password; run ‘man vncpasswd‘ to see how

# to do that.  

#

# DO NOT RUN THIS SERVICE if your local area network is

# untrusted!  For a secure way of using VNC, see

# <URL:http://www.uk.research.att.com/archive/vnc/sshvnc.html>.


# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.


# Use "-nohttpd" to prevent web-based VNC clients connecting.


# Use "-localhost" to prevent remote VNC clients connecting except when

# doing so through a secure tunnel.  See the "-via" option in the

# `man vncviewer‘ manual page.


# VNCSERVERS="2:myusername"

# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"

VNCSERVERS="1:root"

VNCSERVERARGS[1]="-geometry 800x600"


二.啟動

[[email protected] ~]# /etc/init.d/vncserver restart 

Shutting down VNC server: 1:root                           [  OK  ]

Starting VNC server: 1:root 

New ‘demo:1 (root)‘ desktop is demo:1


Starting applications specified in /root/.vnc/xstartup

Log file is /root/.vnc/demo:1.log


                                                           [  OK  ]

2.查看進程:

[[email protected] ~]# netstat -ntupl|grep vnc

tcp        0      0 0.0.0.0:5801                0.0.0.0:*                   LISTEN      25350/Xvnc          

tcp        0      0 0.0.0.0:5802                0.0.0.0:*                   LISTEN      24658/Xvnc          

tcp        0      0 0.0.0.0:5901                0.0.0.0:*                   LISTEN      25350/Xvnc          

tcp        0      0 0.0.0.0:5902                0.0.0.0:*                   LISTEN      24658/Xvnc          

tcp        0      0 0.0.0.0:6001                0.0.0.0:*                   LISTEN      25350/Xvnc          

tcp        0      0 0.0.0.0:6002                0.0.0.0:*                   LISTEN      24658/Xvnc          

tcp        0      0 :::6001                     :::*                        LISTEN      25350/Xvnc          

tcp        0      0 :::6002                     :::*                        LISTEN      24658/Xvnc    


本文出自 “8055082” 部落格,轉載請與作者聯絡!

linux 作業系統安裝配置vnc

聯繫我們

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