#/bin/bash # # Kill any existing servers vncserver -kill :* # Remove any previous stale/dead Xauth files xauth remove $HOSTNAME:1 xauth remove $HOSTNAME:2 xauth remove $HOSTNAME:3 xauth remove $HOSTNAME:4 # Start vncserver vncserver :1 -localhost -geometry 1800x1000 -depth 24
# Start Gnome 3 Desktop # [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup # Or # [ -x /etc/X11/Xvnc-session ] && exec /etc/X11/Xvnc-session # [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources # Or /usr/bin/vncconfig -iconic & /usr/bin/dbus-launch --exit-with-session /usr/bin/gnome-session &