Quick vnc tips

1. To login to gnome of kde via vnc, in ~/vnc/xstartup, uncomment the 2 lines below “uncomment…”

#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -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 &

2. To start vnc for specific users automatically at bootup, in /etc/sysconfig/vncservers

VNCSERVERS="1:username"
VNCSERVERARGS[2]="-geometry 1280x1024"

Author: bpeh

Bernard Peh is a great passioner of web technologies and one of the co-founder of Sitecritic.net Website Design and Reviews. He works with experienced web designers and developers everyday, developing and designing commercial websites. He specialises mainly in SEO and PHP programming.