Redhat to install the vnc environment:
Red Hat Enterprise Linux Server release 6.0 (Santiago)
Tigervnc-server-1.0.90-0.15.20110314svn4359.el6.x86_64
1 Installation
When installing Linux, you can select from the installation package. If no installation is available, you can find it in the installation disk.
The component name of the server is vnc-server. Run the rpm-q vnc-server command.
Its output should be package vnc-server is not installed
If the server is not installed, use this command to install it: yum install vnc-server.
2 Configuration
Set password,
Each user in linux can start a vncserver to connect the client. Therefore, each user in linux needs to set a password.
Method: su-to the user, enter: vncpasswd as prompted to enter the password, and then enter the password for client connection.
Configure connection parameters:
Vi/etc/sysconfig/vncservers, add the following content:
VNCSERVERS = "1: root 2: joe" Note: 1, 2, and 3 represent windows. For example, the root user uses window 1, and the joe User 2,
VNCSERVERARGS [1] = "-geometry 640x480-depth 24" NOTE: Specify the resolution and color number for the root user. [1] indicates "1: root"
VNCSERVERARGS [2] = "-geometry 1024x768-depth 16" NOTE: Specify the resolution and color number for the joe User
3 boot
Chkconfig vncserver on
5 Client Connection
First, my iptables service is not enabled. For configuration, refer to iptables first.
Be sure to enter the port number without the 10061 error.
====================
Other commands:
Start vncserver: service vncserver start
Restart vncserver: service vncserver restart
Set vnc password: vncpasswd
View the list of existing services: vncserver-list
Stop a server: vncserver-kill: Service Number
Start a server: vncserver can view the newly added port number through netstat-ant