Detailed process for installing the VNC (tigervnc) service in CentOS 6.5

Source: Internet
Author: User

Detailed process for installing the VNC (tigervnc) service in CentOS 6.5

1. vnc Server Construction Process

1. Check whether tigervnc is installed.

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

Tigervnc-1.1.0-5.el6_4.1.x86_64

Tigervnc-server-1.1.0-5.el6_4.1.x86_64

2. Edit the vncservers configuration file.

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

VNCSERVERS = "1: root 2: bob" // where 1 indicates the desktop number, and later specifies that if multiple users can be set to continue writing, the user must be a user existing in the system, the maximum value is 6, and the port is 5901-5906.

VNCSERVERARGS [1] = "-geometry 1024x768-nolisten tcp"

VNCSERVERARGS [2] = "-geometry 1024x768-nolisten tcp"

3. The/root/. vnc/passwd password file is generated when the root user's vnc logon password is set for the first time.

[Root @ localhost ~] # Vncserver

Password:

Verify:

4. Set bob's vnc logon password. The/home/bob/. vnc/passwd password file is generated.

[Root @ localhost ~] # Su-bob

[Bob @ localhost ~] $ Vncserver

Password:

Verify:

5. Modify the/root/. vnc/xstartup file under the root user to start GNOME desktop or KDE Desktop.

[Bob @ localhost ~] $ Exit

Logout

[Root @ localhost ~] # Vim/root/. vnc/xstartup

# Twm &// Comment the row

Append the following line at the end:

Gnome-session & // if it is a KDE Desktop, change it to startkde &

6. Modify the/home/bob/. vnc/xstartup file under the user bob to start GNOME desktop or KDE Desktop.

[Bob @ localhost ~] # Vim/home/bob/. vnc/xstartup

# Twm &// Comment the row

Append the following line at the end:

Gnome-session & // if it is a KDE Desktop, change it to startkde &

7. Start and close the service and build the service.

8. Deploy the vnc viewer on windows. You can simply install it in a silly way. The connection method is ip: 1, ip: 2, and so on, corresponding to different users.

Ii. Other vnc commands

1. Disable the root user's vnc desktop, and then the connection is denied (bob is not affected at this time, and bob is disabled. The vnc desktop is the same as the root user ).

[Root @ localhost ~] # Vncserver-kill: 1

Killing Xvnc process ID 5962.

Xvnc seems to be deadlocked.Kill the process manually and then re-run

/Usr/bin/vncserver-kill: 1

To clean up the socket files.

Restart the root user's vnc desktop.

[Root @ localhost ~] # Vncserver: 1

New 'localhost. localdomain: 1 (root) 'desktop is localhost. localdomain: 1

Starting applications specified in/root/. vnc/xstartup

Log file is/root/. vnc/localhost. localdomain: 1.log

2. Modify the vnc logon password set by the root user when starting the vncserver for the first time (switch to the bob user and change the password to the root user ).

[Root @ localhost ~] # Vncpasswd

Password:

Verify:

To log on again, you must set a new password.

Iii. VNC details

VNC (Virtual Network Computer) is short for Virtual Network Computer. VNCIs an excellent remote control tool software developed by the famousAT&TDeveloped by the European Research Laboratory. VNCIs based onUNIXAndLinuxThe free open-source software of the operating system provides powerful remote control capabilities and is efficient and practical.AndMACAny remote control software in.InLinuxMedium, VNCIncludes the following commands: vncserver, vncviewer, vncpasswd, andVncconnect. In most cases, you only need two of the commands: vncserverAndVncviewer.

Working Process:

1) start on the serverVNC Server.

2)The VNC client uses a browser orVNCViewerConnect to the VNC Server.

3)The VNC Server sends a dialog window to the client, requiring you to enter the connection password and the VNC Server display device to be accessed.

4) after the client enters the online password, the VNC Server verifies that the client has the access permission.

5) if the client passesVNC ServerThe client requires the VNC Server to display the desktop environment.

6)The VNC Server uses X ProtocolThe X Server is required to control the display of the screen to the VNC Server.

7)VNC ServerX ServerThe desktop environment is sent to the client using the VNC communication protocol,The client is also allowed to control the desktop environment and input device of the VNC Server.

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.