Ubuntu 20.04 Remote Desktop Access from Windows 10 - LinuxConfig.org

Greetings.

I followed the instructions and I am stuck on XDRP login screen.
It says:

Connecting to sesman IP 127.0.0.1 port 3350
sesman connect ok
sending login info to session manager, please wait
login failed for display 0

I am confident that I entered my correct credentials.

Please advice.

I think you have the wrong port in the tutorial port 3389 is used. I guess you have to correct that in your Remote Desktop Connection settings.
Since I am using a Xubuntu client with Remina to establish the remote connection I canā€™t help you there.

This worked perfectly for me!

Hi all, thanks for the guidance - Linux newbie here. I got as far as Step 6 and was greeted by Windows RDP with - ā€œRD canā€™t connect to the remote for either 1) Remote access to server not enabled, 2) Remote computer turned off, or 3) Remote computer not on network. Make sure of 2 and 3 and remote access is enabled.ā€ I have no idea whether or how Remote Acces is enabled on my Zorin (Ubuntu?) system.
Any suggestions? TIA

Hi GeoffWhere,

Welcome to our forums.

I would suggest testing the remote machineā€™s port you are trying to connect to. With this step you can ensure that you reach the remote machine on the network, and it is listening on the port you try to connect to. I would do something like:

telnet <remore-machine-name-or-IP-address> 3389

Where 3389 is the default TCP port for RDP session, and it is the one you opened at step 3.

Dear Sandmann, thank you for stepping in, much appreciated.
Hereā€™s what I did:
Open terminal
user@system_name:-$ telnet 192.168.xxx.xxx 3389
Trying 192.168.XXX.XXX ā€¦
Connected to 192.168.XX.XXX.
Escape character is ā€˜^]ā€™

No further response - where do i go from here?

As you may be able to determine from my request and from the above, Iā€™m quite at sea here and have no idea what Iā€™m doing with regard to this. What i find most puzzling is that Windows Fiile Manager shows the Zorin machine as a network share but I cant view the files in the share folder.

In another vein, I have 2 HDDs installed, one is system drive (sdb) the other is the HDD I want to use as my share storage (sdb1), apparently owned by root. How do I allocate that drive to my user ownership, or is that unnecessary?

You should run this telnet command from the machine you would like to reach the remote session from - I assume thatā€™s the Windows machine, not the Zorin one.

About your other question, there is something amiss here. Your primary HDD drive may be sdb, but the other one canā€™t be sdb1, because sdb1 stands for the first partition of the sdb drive. Apart from that, you really donā€™t need to change a driveā€™s (deviceā€™s) permissions - to use the space on it as a normal user, you need to create a filesystem on it (if there is not one on it already), mount the filesystem, and give permissions within the filesystem to your normal user - on directories, files, whatever it needs to access.

Thanks for that update re Telnet,
Iā€™ve enabled Telnet on my Windows 10 system and the result from this test was that Telnet just seems to hang, no response. I donā€™t know whether/how to configure the Gufw Firewall on the Zorin side (Iā€™ve had it rurned off prior to this) but after enabling it I notice a rule to allow 3389 in for tcp & tcp(V6), but still no connection at either desktop.

  • I have 3 systems on this LAN:
  • 1x Windows 10 office system (Outlook, Word, Pā€™point, etc.);
  • 1x FreeNAS/Plex Server;
  • 1x Zorin system that will become my MIDI plaything and, with its 4TB HDD, another backup layer to FreeNAS Snapshots and the 2x legacy retail-class NAS drives that backup my office system.

My goal is this: I want to be able to occasionally share files between the 3 systems but primarily to manage the backups as above, as well as use the FreeNAS system for media storage and to host Plex Server across the LAN. As such, I need those systems to be interconnected and accesible from both Zorin and Windows systems (FreeNAS can operate in the background, no need for shell level access, except form the Windows/Zorin desktop File Manager).
In my futile attempts to set all this up I keep hitting walls, primarily because of my inexperience outside the Windows realm. For example, while setting up FreeNAS I somehow managed to screw up Folder/File Permissions and have been struggling for months to correct that situation. I got part of the way using Midnight Commander on the FreeNAS system but it was too time intensive to reset the Permissions manually as I could only figure out how to do that on a file/folder one by one basis. Iā€™ve since discovered how to use the Zorin File Manager to access the FreeNAS Shares, but changes to Permissions seems to be inconsistent at folder and file level (some change, some donā€™t).
Ideally Iā€™d like to run a Shell command on the FreeNAS Shares to reset folder/file Permissions, but (a) I donā€™t know the syntax and (b) I donā€™t know whether this is possible/safe. Maybe MC is a better tool for this but it doesnā€™t appear to allow top to bottom folder/file manipulations.
While Iā€™m the first to recognise Iā€™m well over my head here, once I get this sorted out and everything backed up, I can hopefully leave it all alone and get on with things.
Iā€™m hoping you may be able to offer some help or guidance to a suitable resource and I thank you for your helpful input so far.
Cheers, Geoff

Well, that ā€œhangā€ might as well be the success of the test, at least that was what I was able to dig up - telnet on Windows apparently shows blank page if the port is open. Which is just what we wanted to check. So it seems that there is a service listening there. Did you set something up according to the guide here, or this Zorin system runs out of the box?

Itā€™s an ā€˜out of the boxā€™ Zorin (plus some poking around by me in an attempt to configure). I did follow the guide to setting up RDP and it didnā€™t work first time (maybe I shouldnā€™t have followed the instruction to delete some stuff?).
I just tried it again without the ā€˜deleteā€™- success!
I get the Windows desktop screen then a script saying: ā€˜sesmanā€™ connection to ip 127.0.0.1, port 3350, then ā€˜login successfulā€™, then ā€˜starting connectionā€™ then ā€˜connection problem giving up some problem OKā€™.
Not sure which of the drop down options on the login in window for session - xorg, x11rdp, etc . .
Maybe thatā€™s the blockage?

So you are now able to connect, and even login, only not able to start a remote session. Thatā€™s great progress. Can you find any error messages in the logfiles? You could check the .xsession-errors file in the userā€™s home directory, and also /var/log/xrdp.log or something similar.

And Iā€™d say you could choose x11rdp from the options.

I could do that if I knew where to look.
Opening ā€˜Zorin Filesā€™ shows a Home Directory but, according to the search bar at top of screen, no sign of anything resembling ā€˜.xsession-errorsā€™ or ā€˜/var/log/xdrp.logā€™.
Thanks for the encouragement.

I would suggest using the command line. It may be alien at first, but enables much faster and clearer work in the long run.

If you open a terminal, you can type for example:

$ ls -al

Which will list all the files in the given (home) directory. You can narrow your search with grep:

$ ls -al | grep xession

Which will show only the file(s) that match the pattern.

You may not have permission to read the xrdp.log, so you need to use sudo to access it. For example, if you would like to print the whole file, you could execute the following:

$ sudo cat /var/log/xrdp.log

Thanks, this worked with the latest official Windows 10 Pro, 20H2, to use xrdp from it after installing xrdp to Ubuntu 20.04, fixing the black screen I got ever time/every way. Donā€™t forget that Windowā€™s also has to have firewall changes (from Control Panel) to allow port 3389 through for itā€™s own Remote Desktop (at least on Pro.) I had to restart my Ubuntu VirtualBox for it to take effect. Onto trying it on another non-VirtualBox setup to get into my wifeā€™s system that is running on a NUC. Thanks Paolo!

I have to create an account to comment. Yeah the tutorial works great and like others I got Black screen. It just because we got an account that logged in. We just need to log out.
With GUI: gnome-session-quit
Without GUI: exit
Or we just need to reboot the server if we donā€™t know how.

Enter the Ubuntuā€™s remote desktop share IP address or hostname.

How do I find out Ubuntuā€™s IP address?

I found the wired LAN ip address, but I am a bit sceptical that Windows Remote Desktop application will be able to connect to the PC running Ubuntu that I wish to remotely control only based on that.

Hi Neven,

Welcome to our forums.

The easiest way to get your IP address is executing the following on the terminal:

$ ip a

For example, on one of my virtual machines the output is the following:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 52:54:00:e1:98:06 brd ff:ff:ff:ff:ff:ff
    inet *192.168.1.8*   /24 brd 192.168.1.255 scope global dynamic noprefixroute ens3
           valid_lft 60348sec preferred_lft 60348sec
        inet6 fe80::d39e:9aea:1c44:5562/64 scope link noprefixroute 
           valid_lft forever preferred_lft forever

Here I have set asterisks on the machineā€™s IP address on my LAN. If the machine you try to connect from is on the same LAN, and you did not set any firewall restrictions, thatā€™s indeed the only information needed to be able to connect.

Hi. I changed port from 3389 to 3350. And because of keyboard difference, one character was different in Turkish ve English keyboard. I wrote password into user field and deleted it for check. Then I wrote as a English keyboard and it worked.