MATE desktop over VNC

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

Reply to
D.M. Procida
Loading thread data ...

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.
Reply to
I R A Darth Aggie

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

Reply to
D.M. Procida

Runs the command in the background so the shell can get on with the next instruction in the startup script.

Reply to
Rob Morley

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.