MATE desktop over VNC

Dec 04, 2015 3 Replies

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

formatting link

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.

Consulting Minister for Consultants, DNRC I can please only one person per day. Today is not your day. Tomorrow isn't looking good, either. I am BOFH. Resistance is futile. Your network will be assimilated.

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.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required