Configuration installation of VNC (Virtual Network Computing)
VNC (Virtual Network Computing) is a Linux system (or BSD, MAC, etc.) commonly used graphical remote management tools, using the RFB protocol
VNC, like SSH, is also divided into the client and server side, we need to be remote access to the server to install the VNC server side, the other computer installed VNC client program to connect with it
In CentOS 6/rhel 6 we use TIGERVNC as our own VNC tool, which is not installed by default, and if we want to use the VNC service, we have to follow the procedure
1.yum to install the Tigervnc tool
Yum-y Install Tigervnc-server
2. After installing the Tigervnc-server server-side program we need to configure it, the configuration file is/etc/sysconfig/vncservers
This profile does not have any configuration information by default, so if we need to use the VNC service, we should modify its configuration information:
Vi/etc/sysconfig/vncservers Add a configuration later
vncservers= "1:xiaojiang"//after the configuration file with such a configuration, vncservers= "1:xiaojiang", the content behind the quotation marks is that I want to open the service for which user, 1 is actually equivalent to the port number, For example, I want to open a VNC service for the first user Xiaojiang, the port number is 1, if you need to add a VNC service for other users, then continue to add later, for example vncservers= "1:xiaojiang 2:root" so we have two VNC services , one is Xiaojiang user login, the other is the root user login
3. Once configured, VNC also needs to have a separate VNC password, so we want to create a separate VNC password for each VNC-enabled user, via the vncpasswd command ("NOTE:" must be switched to that user, or the VNC service will not start up)
Create user
Useradd Xiaojiang
Switch users
Su-xiaojiang
Set the VNC password
[Email protected] ~]$ VNCPASSWD
Password:
Verify:
4. After setting up a separate VNC password for the user, we start the Vncserver service at this time
Su-root
/etc/init.d/vncserver start
5. Check if VNC is up and listening port number is 5901
[Email protected] ~]# NETSTAT-ANPLT | grep LISTEN
TCP 0 0 0.0.0.0:42687 0.0.0.0:* LISTEN 1509/rpc.statd
TCP 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 3331/xvnc
6. Clear the firewall rules, connect with the VNC client on Windows, and note the port number when entering IP and creating the configuration file 192.168.31.66:1
This article is from the "92868888" blog, please be sure to keep this source http://92868888.blog.51cto.com/12381417/1910642
Configuration installation of VNC (Virtual Network Computing)