Saturday, April 27, 2019

Remote desktop on Ubuntu-Mate for Raspberry pi

The long-awaited Ubuntu-Mate 18.04 for Raspberry pi is disclosed !!

I immediately installed for my Raspberry pi3.

However, the remote desktop from windows (xRDP) does not work well but only shows black screen.

From web information, several configurations are required for xRDP on ubuntu-mate 18.04.

My setting for xRDP and more is below.

1.
sudo apt-get update
sudo apt-get upgrade

2. (not for xRDP)
sudo apt-get install hardinfo ntp cifs-utils

3.
sudo apt-get install tightvncserver xrdp

4. EDIT "/etc/xrdp/startwm.sh"
Insert below two lines 
             unset DBUS_SESSION_BUS_ADDRESS
             exec mate-session
before the line "test -x /etc/X11/Xsession && exec /etc/X11/Xsession"

5. EDIT "/etc/X11/Xwrapper.config"
Add below to the last line
           allowed_users=anybody
           needs_root_rights=no

6. EDIT "/boot/config.txt" (not for xRDP)
Add below to the last line
           # turn power LED into heartbeat
           dtparam=pwr_led_trigger=heartbeat

7.
sudo reboot