Skip to content

Instantly share code, notes, and snippets.

@bgyarfas
Created April 8, 2022 19:39
Show Gist options
  • Save bgyarfas/f15995f96051b5c47d20fc23359b78e8 to your computer and use it in GitHub Desktop.
Save bgyarfas/f15995f96051b5c47d20fc23359b78e8 to your computer and use it in GitHub Desktop.
Setup remote desktop (RDP i.e. Microsoft Remote Desktop) for xubuntu 20.04
#!/bin/bash
# Sets up the xrdp service. Use the microsoft remote desktop client and you use your ubuntu credentials to login
sudo apt update
sudo apt install xrdp
if ! systemctl is-active --quiet xrdp; then
echo "WARNING: The xrdp service is not running!"
fi
sudo adduser xrdp ssl-cert
sudo systemctl restart xrdp
if ! systemctl is-active --quiet xrdp; then
echo "WARNING: The xrdp service is not after a restart! You might want to check 'systemctl status xrdp'"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment