How to configure VNCServer in Redhat6.0

Source: Internet
Author: User
There are many tutorials or articles on how to configure VNCServer in Linux, but our problems cannot be completely solved in our environment, so here I will summarize how to configure VNCServer in RedHat6.0 and possible solutions to problems for your reference. Installation configuration http://www.linuxidc.com/Linux/2013-05/84941.htmCentOS6 for VNC

There are many tutorials or articles on how to configure the VNC Server in Linux, but our problems cannot be completely solved in our environment, so here I will summarize how to configure the VNC Server in RedHat 6.0 and possible solutions to problems for your reference.

Related reading:

Installation configuration http://www.linuxidc.com/Linux/2013-05/84941.htm for VNC

CentOS 6.3 install and configure the VNC http://www.linuxidc.com/Linux/2013-05/84668.htm

Install the VNC http://www.linuxidc.com/Linux/2013-05/84075.htm without detecting dependencies in Linux

CentOS6 VNC service installation configuration http://www.linuxidc.com/Linux/2013-04/82510.htm

VNC remote control installation and setup http://www.linuxidc.com/Linux/2013-01/77769.htm

Install VNC http://www.linuxidc.com/Linux/2012-07/64801.htm for Windows Remote Desktop Access Ubuntu 12.04

1. Check whether vnc-server is installed in the query system.

[Root @ localhost ~] # Rpm-qa | grep vnc

If the returned value is similar to the value of vnc-server-, it indicates that vnc-server has been installed.


2. Install vnc-server

Most of the methods found on the Internet are input.

[Root @ localhost ~] # Yum install tigervnc-server

However, the system prompts No package tigervnc-server available during execution in our environment.

Therefore, you can only execute

[Root @ localhost ~] # Yum search vnc

Find the available packages in the returned results, and then execute the corresponding packages.

[Root @ localhost ~] # Yum install vnc-server


3. Configure the vnc-server configuration file

Input

[Root @ localhost ~] # Vi/etc/sysconfig/vncservers

The content is as follows:

# 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

# .


# 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 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-nohttpd-localhost"

Follow the instructions in the annotations to know how to configure it.

Add

VNCSERVERS = "1: root"

In this way, the root user configuration is completed, and the VNCSERVERARGS Parameter Line can not be set.

Note the following two points:

1) VNCSERVERS = multiple users can be added to the backend and separated by spaces. For example:

VNCSERVERS = "1: myusername 15: otheruser" ---> here, "1" and "15" are the port numbers used for connection.

2) the data in [] After VNCSERVERARGS must be consistent with the value of the user corresponding to VNCSERVERS.

Basic VNCSERVERARGS parameters include:

-Geometry desktop size. The default value is 1024x768.

-Nohttpd does not listen to HTTP ports

-Nolisten tcp does not listen to port X

-Localhost only allows access from the Local Machine

-AlwaysShared: by default, only one vncviewer connection is allowed at the same time (also related to client configuration). Once 2nd connections are connected, 1st are disconnected. This parameter allows multiple vncviewer connections at the same time.

-SecurityTypes None password authentication is not required for Logon. The default value is VncAuth. password authentication is required.

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.