CentOS 6.5 Install Vncserver and turn on Remote Desktop

Source: Internet
Author: User

VNC is a wide range of server management software, you can achieve graphical management, the following is a brief introduction to how to install VNC under centos6.5.

1. Download Vncserver

Yum Install Tigervnc tigervnc-server-y

2, Configuration Vncserver

Cd/etc/sysconfig VI Vncserver

The files in the

# vncservers= "2:myusername"
# vncserverargs[2]= "-geometry 800x600-nolisten tcp-localhost"

Before the # is removed and the user name and monitor resolution are modified according to individual needs, my result is

vncservers = "2:root"
Vncserverargs [2]= "-geometry 1024x768-nolisten tcp-localhost"

3, configure the current user's VNC login password, enter two consecutive times. This password is a VNC connection password and is not related to the system password. can be different.

[[email protected] ~] # vncpasswd

Password:
Verify :
[[email protected] ~] #

4, start the Vncserver service. The first time you start this operation, direct input Vncserver &

The system automatically establishes the relevant configuration and log files. The system prompts for a window with process number 1 after startup. If you need to start a two-window, then execute the vncserver command again.

[[email protected] X11]# Vncserver &
[1] 26864
[[email protected] X11]# xauth:creating New Authority file/root/. Xauthority

New ' Localhost.localdomain:1 (root) 'Desktop islocalhost.Localdomain:1

Creating defaultStartup script/Root/.VNC/Xstartup
startingapplications specifiedinch /Root/.VNC/Xstartup
Logfile is /Root/.VNC/localhost.Localdomain:1.log

5, the client uses vncviewer in the form of "Ip:1" to connect, enter the password and enter into the vncserver.

6. If you need to start the VNC service boot, execute the following command.

Chkconfig vncserver--level 345 on


Tips:

1, if the system display gray screen after entering, you need to modify the ~/.vnc/xstartup file, find the last line,

Will #twm & #注释掉这一行

Gnome-session & #添加这一行

2, if you need to control the server with a graphical interface, you need to install the Gnome interface. Methods are as follows

Yum Groupinstall "Desktop"
Yum Groupinstall "X window System"
Yum Groupinstall "Chinese support"
StartX

After the completion of the restart Vncserver service and then re-login.


This article from "Nicol Lock Silk Sorrow" blog, please make sure to keep this source http://smoke520.blog.51cto.com/9256117/1795612

CentOS 6.5 Install Vncserver and turn on Remote Desktop

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.