Thursday, January 31, 2008

VNC setup

How to enable VNC in GUI mode.
Try in home directory
# cd ./vnc
# vi ./xztartup
Now comment out last two lines and add startkde & at the end of the file as below

{
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
startkde &
OR
Gnome-session &
~
}
How to restart VNC server on a single user without disturbing connected vnc users
# /etc/init.d/vncserver restart usamantaray
( Username)

To kill the vnc for a particular user as below
# vncserver -kill :20

Where 20 is the vnc port no for that user.



How to configure the resolution of vnc client
# vi /etc/sysconfig/vncserver
Now edit the file with each username as below example
VNCSERVERS="1:obaltzer 2:ashweta 3:rpalakaveety 6:anitsure 7:pkadiyala 8:ssain"
VNCSERVERARGS[1]="-geometry 1280x992"