Installation and simple configuration of Linux VNC server

Installation and simple configuration of Linux VNC server
 
Transfer: http://www.2cto.com/os/201309/241104.html
 
Installation and simple configuration and use of Linux VNC server

Summary : Installation and simple configuration and use of Linux vnc server. This article is only suitable for ordinary users (such as friends who install Linux in a virtual machine, etc.), and I don't care about network . If you need to use it on the Internet it is better to use a VPN or use SSL or wrap vnc communication. And open the firewall and configure the relevant conditions. These tutorials will be sent out at a later date.
Demonstration environment:
Virtual machine : VMware 10
System : rhel-server-6.3
Yum source: local CD-ROM image

Note : This article only meets the needs of ordinary users for the vnc server, and does not focus on network security. So, first turn off the firewall to avoid network errors (can't connect). Also, make sure the yum source has been configured.

1. Open the terminal and use the yum command to install vnc sever.
Command: yum install tigervnc-server -y



2, set vncserver to start with the system.
Command: chkconfig vncserver on
or: chkconfig vncserver --level 5 on


3, modify the vncserver configuration file.
Command: vim /etc/sysconfig/vncservers


4, configuration file. The place marked with yellow

":wq" in the picture is to save and exit, not the content in the configuration file.

5. Set the password of the vncserver (used by the vnc client to log in).
Note that before setting a password, please su to the user you want to set. The root user is used in this demo.
Command: vncpasswd


6, restart the vncserver service.
Command: service vncserver restart


7. If FAILED appears, it is usually because the configuration file is wrong. If the problem persists after checking, and the error prompt is similar to the following figure, then it is the version reason. Install or update x11.
Command: yum install pixman pixman-devel libXfont -y  
Please note that X in libXfont is capitalized.


8. After the installation is complete, restart the vncserver service again.
Command: service vncserver restart
This time there should be no unexpected green Ok.
(If there is an error message in this step, there is no need for it, and I don't like errors.)

9. Connect under Windows, there is no suspense in the installation of vnc, just go all the way down.
After installation is complete. Fill in the Linux
ip and colon desktop number at Vnc service, the number pointed by the arrow in the figure below. Click connect to go to the next step 10, do not explain, the next step. 11, ok, no accident should be connected. Then you can perform various operations like you do on this machine. Of course, if you restart the vncserver service, you still need to reconnect.











After I finished writing, I looked back, ah, I feel a little long-winded.
It's the same sentence at the beginning, this article is only suitable for ordinary users (such as friends who install Linux in a virtual machine, etc.), and I don't care about network security here. If you need to use it on the Internet, it is best to use VPN or SSL to log in or wrap vnc communication. And open the firewall and configure the relevant conditions.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327014311&siteId=291194637