1. Installation of the software
- Ensure you are logged in as 'root'
- If you have connectivity to RHN or a Satellite Server :
- # yum install tigervnc-server
- If you do not have connectivity to RHN or a Satellite Server :
- Create a local 'yum' repository
2. Configure VNC password for the user(s)
- Switch user to the user you want to use for VNC :
Note: Replace 'vncuser1' with the correct username
- Set the VNC password for the user :
- Repeat for each VNC user as necessary
3. Configure resolution for the user(s)
- Edit '/etc/sysconfig/vncservers' with your favorite editor
- Append the following lines :
- VNCSERVERS="1:vncuser1 2:vncuser2"
- VNCSERVERARGS[1]="-geometry 1024x768"
- VNCSERVERARGS[2]="-geometry 1024x768"
Note: Replace 'vncuser1' and 'vncuser2' with the correct usernames. You can add more users as needed. In addition, you can change the resolution value as needed.
4. Start the VNC server
- Start the service :
- # service vncserver start
- Ensure service is started on reboots :
5. 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.
Back to Top