VNC deployment in RHEL6.1

Source: Internet
Author: User
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...

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.