startx launches the MATE desktop, now that I have installed and configured it. However, if I launch a desktop environment by starting a VNC session, it uses the default Raspian desktop.
What do I need to do to get the MATE desktop over VNC?
Daniele
startx launches the MATE desktop, now that I have installed and configured it. However, if I launch a desktop environment by starting a VNC session, it uses the default Raspian desktop.
What do I need to do to get the MATE desktop over VNC?
Daniele
It looks like you have to create a ~/.vnc/xstartup file, and in that file you'll need this:
mate-session &
from
They suggest a longer xstartup file:
---snip--- #!/bin/sh
# Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS # exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & mate-session &---snip---
Not sure how relevant that will be on a Pi.
Thanks, that works. Why the "&"? It seems to work without too.
What is meant by a "normal" desktop? As opposed to?
I don't have either of those, or
and instead have:
plus a mysterious:
Daniele
Runs the command in the background so the shell can get on with the next instruction in the startup script.
Have something to add? Share your thoughts — no account required.
Ask the community — no account required