Skip to content

Instantly share code, notes, and snippets.

@pishangujeniya
Last active January 11, 2024 14:10
Show Gist options
  • Save pishangujeniya/814db5e1cb1d4d4ae555ab97b05f7008 to your computer and use it in GitHub Desktop.
Save pishangujeniya/814db5e1cb1d4d4ae555ab97b05f7008 to your computer and use it in GitHub Desktop.
Configuring xRDP in Ubuntu with Unity as Desktop Environment

Configuring xRDP in Ubuntu with Unity as Desktop Environment

Run the following commands in the terminal

sudo apt-get --yes update

sudo apt install --yes xrdp

sudo apt-get install --yes xserver-xorg-core

sudo apt-get install --yes xorgxrdp

sudo nano /etc/polkit-1/localauthority.conf.d/02-allow-colord.conf
  • Copy Paste the polkit and then Ctrl+O (Save) and then Ctrl+X (Exit)
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.color-manager.create-device" || action.id == "org.freedesktop.color-manager.create-profile" || action.id == "org.freedesktop.color-manager.delete-device" || action.id == "org.freedesktop.color-manager.delete-profile" || action.id == "org.freedesktop.color-manager.modify-device" || action.id == "org.freedesktop.color-manager.modify-profile") && subject.isInGroup("{users}"))
{
return polkit.Result.YES;
}
});
sudo ufw allow 3389/tcp

sudo /etc/init.d/xrdp restart

sudo systemctl status xrdp

sudo systemctl enable xrdp

sudo apt-get install --yes xserver-xorg-input-all
  • Get IP address

  • Log out of ubuntu

  • Connect from Windows RDP.

Links & Credits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment