How to access Ubuntu from Windows remotely

How to access Ubuntu from Windows remotely

Yes Follow these steps :

Step 1 – Install xRDP

Open Terminal (Crtl+Alt+T) and execute the following commands :

Step 2 – Install XFCE4 (Unity doesn’t seem to support xRDP in Ubuntu 20.10 although in Ubuntu 12.04 it was supported that’s why we install XFCE4)

The output will look something like this:

Step 3 – Configure xRDP

In this step we modify 2 files to make sure xRDP uses xfce4. First we need to create or edit our .xsession file in our home directory. We can either use nano or simply redirect an echo statement (easier):

The second file we need to edit is the startup file for xRDP, so it will start xfce4.

The content should look like this (pay attention to the last line and ignore . /etc/X11/Xsession):

Note: Only add startxfce4.

Step 4 – Restart xRDP

To make all these changes effective, restart xRDP as such:

Testing your xRDP connection

On the computer that will remotely control your Ubuntu machine, start you RDP client. Windows comes standard with a Remote Desktop client (mstsc.exe – you can start it from a command prompt, or find the shortcut to Remote Desktop under Accessories). Or Search ‘remote’ in start in Windows 7 or Windows 10.

How To Access Ubuntu From Windows Remotely
How To Access Ubuntu From Windows Remotely

Whichever client you use, most work with either the computer network name or IP address of your Ubuntu machine.

To find the IP address on your Ubuntu box, type:

(note: this is a capital “i”)

Enter the IP address of your Ubuntu Machine. For Example

remote2

Depending on your RDP client capabilities and settings (for example, Microsoft RDP Client allows automatic login), you might or might not see the login screen. Here we enter our Ubuntu username and password and click “OK”

 

rdp

You are done, enjoy

remote

4.7/5 - (4 votes)