Skip to content

Instantly share code, notes, and snippets.

@jmewes
Created January 3, 2018 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jmewes/2cb042035dafd83cb0ae53d0002e5997 to your computer and use it in GitHub Desktop.
Save jmewes/2cb042035dafd83cb0ae53d0002e5997 to your computer and use it in GitHub Desktop.
How to start a RDP server on Ubuntu?
# Create a new user if only root is available
useradd -m $USER_NAME
passwd $USER_NAME
echo "$USER_NAME ALL=(ALL:ALL) ALL" >> /etc/sudoers
su $USER_NAME
sudo apt update
# Install a graphical user interface if necessary
sudo install xfce4 # uses relatively few resources, or
sudo install ubuntu-desktop # the standard Ubuntu desktop
# Install xrdp and start RDP server
sudo apt install xrdp
echo "xfce4-session" > ~/.xsession
sudo service xrdp start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment