Ask Your Question

Revision history [back]

Just to add a little more to the comments by @fidelleon...

You really should start just one desktop environment. Also, you don't need to add the ampersand (&) symbol at the end, you do not need to run these as a background task. My .vnc/xstartup contains this (I've truncated this for brevity):

#!/bin/sh

xrdb $HOME/.Xresources
if [ `hostname -s` == 'srv' ]; then
    startxfce4
else
if [ `hostname -s` == 'raspi' ]; then
    openbox-session
else
    startxfce4
fi
fi

As you can see, my home (nfs mounted on different systems) will launch different DE's based on which host it's running on. I like it this way, use whatever you feel comfortable with.