Created
February 9, 2022 09:07
-
-
Save davutg/19595fa829938366104b8a1aa308fcb5 to your computer and use it in GitHub Desktop.
Install xrdp/xfce4 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
ssh username@your_server_ip | |
sudo apt-get update | |
sudo apt-get install xrdp | |
sudo apt-get install xfce4 | |
#Optional | |
sudo apt-get install xfce4-terminal | |
sudo sed -i.bak '/fi/a #xrdp multiple users configuration \n xfce-session \n' /etc/xrdp/startwm.sh | |
sudo adduser xrdp ssl-cert | |
sudo adduser 'username' ssl-cert | |
sudo ufw allow 3389/tcp | |
sudo /etc/init.d/xrdp restart | |
sudo service xrdp stop | |
sudo nano /etc/xrdp/startwm.sh | |
#comment out below and add startxfce4 | |
#test -x /etc/X11/Xsession && exec /etc/X11/Xsession | |
#exec /bin/sh /etc/X11/Xsession | |
sudo service xrdp start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment