Monday, July 20, 2015

Setting up VNC Server


1. yum install tigervnc-server

2. login for each vnc user (e.g. unica, streamsadmin) and run:  vncpasswd

3. Edit '/etc/sysconfig/vncservers' with your favorite editor

4. Append the following lines :
VNCSERVERS="1:unica 2:streamsadmin"
VNCSERVERARGS[1]="-geometry 1024x768"
VNCSERVERARGS[2]="-geometry 1024x768"

5. Start the vnc server:
# service vncserver start

6. Ensure service is started on reboots :
# chkconfig vncserver on


7. Configure the firewall
    # iptables -I INPUT -m state --state NEW -p tcp --destination-port 5901 -j ACCEPT
    # iptables -I INPUT -m state --state NEW -p tcp --destination-port 5902 -j ACCEPT

NOTE : Each user requires an additional firewall port opened starting at 5901. Because we added two users above, we need to open two ports.

    # service iptables save

No comments:

Post a Comment