Rhel6 vncserver settings 1. installation Package: tigervnc-server2. to configure/etc/sysconfig/vncserverVNCSERVERS, you can use vnc to link to vncserver. To connect multiple users to vncserver, you must configure multiple users in the following format: VNCSERVERS = "1: user1 2: user2... n: usern "1 indicates using port 5901 2 using port 5902 VNCSERVERARGS [n] to determine the vnc connection. The numbers in some option square brackets represent the user-geometry's usage rate in the previous configuration-nolisten tcp blocks tcp connection-localhost only listens to 127.0.0.1. Therefore, the configuration here is VNCSERVERARGS [1] = "-geometry 800x600" VNCSERVERARGS [2] = "-geometry 800x600" 3. set the vnc password to set the vnc password su-user1vncpasswd su-user2vncpasswd for each user. start vncserver/etc/init. d/vncserver startchkconfig -- level 345 vncserver on 5. open firewall iptable-I INPUT-p tcp-m multiport -- dport 5901: 5903-m state -- state new -- syn-j ACCEPT 6. other vncserver-list can be used to view the vnc activity of the current user. vncserver-kill can end the activity link. To add a link to other users, run the following command: vncserver: 3-name user3-geometry 800x600 note that you need to switch to user3 to run this command. If it is executed under root or another user, it will connect to this user, instead of user3,-name indicates the name of The vnc link rather than the user name.