Access Linux From Windows RDP

Leon Jalfon
RhinOps by Sela
Published in
3 min readApr 27, 2020

In this post we will see how can we use Windows RDP to access our Linux server following 12 simple steps (obviously we talk about Linux distributions that have UI).

1) Access to the Linux machine and open the terminal (Ctrl+Alt+T)

2) Update the apt repository using the following command:

sudo apt-get update

3) Install xrdp using the following command:

sudo apt-get install xrdp –y

4) Install xfce4 with the command below:

sudo apt-get install xfce4 –y

5) Run the following command to make sure xRDP uses xfce4 (step 1 of 2):

echo xfce4-session >~/.xsession

6) Run the following command to make sure xRDP uses xfce4 (step 2 of 2):

sudo nano /etc/xrdp/startwm.sh

7) Add the following line before the last line of the file

startxfce4

8) Then, click “Ctrl+X”, click “Y” and click “Enter” to save the changes

9) Use the command below to make all these changes effective

sudo service xrdp restart

10) Open “Remote Desktop” write the machine IP and click connect

11) Enter your credentials and click “OK”

12) Now you are connected to the Linux machine using the windows remote desktop (it may look a little bit different)

--

--