Created
January 3, 2018 20:27
-
-
Save jmewes/2cb042035dafd83cb0ae53d0002e5997 to your computer and use it in GitHub Desktop.
How to start a RDP server on Ubuntu?
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
# 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