How to run xfce4 on debian on VNC startup?

BBedit picture BBedit · Oct 2, 2013 · Viewed 7.2k times · Source

I have a debian server. It is running the latest stable version of Debian.

The following commands have been entered:

apt-get install xfce4 xfce4-goodies

I have also added startxfce4 to the VNC startup file.

However, I get this black and white dotted screen when I start vnc:

xfce4

Is there a way to make the xfce4 desktop run properly?

(it's a server, so i dont have the monitor, physical access etc)

Answer

w1100n picture w1100n · Apr 21, 2016
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 &

#it works for me