Enable Mate desktop with vnc

Once you install vnc4server on Linux, you need to tweak $HOME/.vnc/xstartup file to enable complete desktop (in my case Mate) through VNC. Following is the file which worked for me:

!/bin/sh
 unset DBUS_SESSION_BUS_ADDRESS
 [ -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" &
 x-window-manager &
 mate-session &        

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.