Install MATE desktop with xrdp on Ubuntu Server
Login to ubuntu server using SSH and run the following command to install MATE desktop environment
1 |
apt install ubuntu-mate-desktop |
Create a normal user. We will use this user to login to XRDP desktop.
1 |
useradd -m -s /bin/bash desktop |
You can change user name “desktop” to any other username you need. Make the user super user
1 |
usermod -aG sudo desktop |
Switch to desktop user
1 |
su - desktop |
Create .xsession file
1 |
echo "mate-session" > ~/.xsession |
Exit back to user root
1 |
exit |
Install xrdp package
1 |
apt install xrdp |
Create file
1 |
vi /etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla |
with following content
1 2 3 4 5 6 |
[Allow Colord all Users] Identity=unix-user:* Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile ResultAny=no ResultInactive=no ResultActive=yes |
Restart xrdp
1 |
systemctl restart xrdp |
Now you should be able to connect to remote ubuntu server using RDP.
back to xrdp