1. First install the vnc Server yuminstalltigervnc-server2, start the vnc service to run vncserver or servicevncserverstart &
1. First install the vnc Server
Yum install tigervnc-server
2. Start the vnc service
Run vncserver or service vncserver start
New 'was1. com: 1 (root) 'desktop is was1.com: 1
Starting applications specified in/root/. vnc/xstartup
Log file is/root/. vnc/was1.com: 1.log
Set a remote logon password. Do not use a keypad. In vncpasswd, a keypad is equivalent to upper, lower, and left. www.linuxidc.com does not have a digital function. Remember
3. Modify/etc/sysconfig/vncservers
# 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 this URL:
# Http://kbase.RedHat.com/faq/docs/DOC-7028
# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
# Use "-localhost" to prevent remote VNC clients connecting tables t when
# Doing so through a secure tunnel. See the "-via" option in
# 'Man vncviewer 'manual page.
# VNCSERVERS = "2: myusername"
# VNCSERVERARGS [2] = "-geometry 800x600-nolisten tcp-localhost"
VNCSERVERS = "1: root 2: test"
VNCSERVERARGS [2] = "-geometry 800x600"
Can be copied
# VNCSERVERS = "2: myusername"
# VNCSERVERARGS [2] = "-geometry 800x600-nolisten tcp-localhost"
Modify the configurations of these two rows. Geometry 800x600 indicates a remote desktop with a resolution of 800*600. nolisten tcp does not listen on tcp localhost and only allows local host connection.
Restart service vncserver restart after Configuration Modification
4. Install vnc on the client
Windows users can directly download and install vnc
Tigervnc needs to be installed in linux
Vncviewer root @ server address: 1 or 2
5. Set vncserver to start automatically on the server
Chkconf vncserver on
6. Finally, you must set up a firewall for the vnc server to disable the firewall...