VNC startup script with XFCE

Nov. 15, 2020

I was not able to get VNC working with the default `xstartup` script created by running `vncserver`. So, I used these modifications to make it work.

#!/bin/bash
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &

Return to blog