Connect to Linux Machine Using Windows Remote Desktop

January 25, 2017

no comments

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

AccessLinuxFromWinRD_1.png

 

2) Update the apt and install xrdp using the following command:

– -> sudo apt-get update

AccessLinuxFromWinRD_2.png

 

3) Install xrdp using the following command:

–> sudo apt-get install xrdp –y

AccessLinuxFromWinRD_3.png

 

4) Install xfce4 with the command below:

–> sudo apt-get install xfce4 –y

AccessLinuxFromWinRD_4.png

 

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

–> echo xfce4-session >~/.xsession

AccessLinuxFromWinRD_5.png

 

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

–> sudo nano /etc/xrdp/startwm.sh

AccessLinuxFromWinRD_6.png

 

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

–> startxfce4

AccessLinuxFromWinRD_7.png

 

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

AccessLinuxFromWinRD_8.png

 

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

–> sudo service xrdp restart

AccessLinuxFromWinRD_9.png

 

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

AccessLinuxFromWinRD_10.png

 

11) Enter your credentials and click “OK”

AccessLinuxFromWinRD_11.png

 

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

AccessLinuxFromWinRD_12.png

 

Add comment
facebook linkedin twitter email

Leave a Reply