#/bin/bash # Kill any existing VNC servers echo We need to stop any VNC servers using sudo - you will be prompted for your password to proceed sudo vncserver -kill :* sudo killall Xtigervnc # 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 &
[vnc] name=Xvnc lib=libvnc.so username=na password=ask ip=127.0.0.1 port=ask5901 #xserverbpp=24 #delay_ms=2000