Part 2.7 - Disaster Recovery with SRM & VNC
Bubblebridge is in place but since its a full fledged CentOs 6.3 desktop distro why not have proper access to it. So I thought I would enable VNC on it.
rpm -q tigervnc-server
yum install tigervnc-server tigervnc
Installation
Just to make sure check that vnc or rather tigervnc is installed executing the following:
rpm -q tigervnc-server
rpm -q tigervnc
If not present the following should cure that:
yum install tigervnc-server tigervnc
Setup
VNC user accounts. Unless you want to run as an already existing user the following would create a user (or if repeated) users for you. As root.
useradd
passwd
In my case I'll go with the bubblebridge user the above is already fixed.
Next step is to edit the server configuration file /etc/sysconfig/vncservers adding the following at the end.
VNCSERVERS="2:"
VNCSERVERARGS[2]="-geometry 800x600"
Now its time to setup the vncpasswd for the users by su:ing out of root to the users.su -
vncpasswd
exit
Check that the server starts and stops as intended and when it does add it to the set of auto started services.service vncserver stop
service vncserver start
chkconfig vncserver on
Update iptables to allow access
# Open VNC
-A INPUT -m state --state NEW -m tcp -p tcp -dport 5800
-A INPUT -m state --state NEW -m tcp -p tcp -dport 5900
-A INPUT -m state --state NEW -m tcp -p tcp -dport 6000
And finally restart iptables to allow access
service iptables restart
service vncserver start
chkconfig vncserver on
Update iptables to allow access
# Open VNC
-A INPUT -m state --state NEW -m tcp -p tcp -dport 5800
-A INPUT -m state --state NEW -m tcp -p tcp -dport 5900
-A INPUT -m state --state NEW -m tcp -p tcp -dport 6000
And finally restart iptables to allow access
service iptables restart
Comments