Created
April 8, 2022 19:39
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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