5

I would like to connect via RD from Windows 10 to Linux Ubuntu Mate 20.04.1 on Raspberry PI 4 (8GB).

I install XRDP, XORGXRDP and allow ports, but I still after connect to XDRP get a black screen like this with Error: Could not acquire name on session bus

enter image description here

If I type CTRL+ALT+T terminal is open enter image description here

Anybody help?

3 Answers 3

7

After messing around with a lot of xrdp settings over the past few days - with no success in solving the problem, I found a workaround!

I saw a section in the blog post Ubuntu 18.04 – Detected issues with xRDP on Ubuntu 18.04 that described how the ability to log a userid in to both a (physical) "console" session and an RDP (Remote Display Protocol) session had been removed! Here is specifically what it said:

It used to be possible to have the same user connected locally and remotely (even do the session where not the same). This capability has been removed from some time now and we do not why and if it’s possible to implement this feature back (we have not checked that yet).

So after seeing that, I created a new userid and logged it in from Windows-10 using RDP, and it brings up a new MATE desktop perfectly now!

I'm still not sure why I was still getting a blank screen when I tried to login my RDP session directly as "root" earlier, but no worries - I didn't really want to do that past simple debugging anyway... I still don't understand why I was able to logon to both my physical console and an RDP session on my 4GB Pi-4, but not on my 8GB Pi-4 in the first place - when both were running slightly different versions of Ubuntu MATE 20.04.x. I'll have to try to diagnose that when I get my 4GB Pi-4 reconnected up again.

I hope this works for others and that at some point it may be possible to put out a better, more specific error message if an RDP logon is done for a userid that is already logged onto a physical console. That would have saved a lot of time and trouble tracking down a workaround!

2
  • I install VPN and the problem was solved Commented Sep 14, 2020 at 7:52
  • Man, you saved my day! Commented Jul 29, 2021 at 21:00
3

I restarted my xRDP process over CLI while RDP still being logged on and got the same error. I ran sudo loginctl and I can see my previous RDP session is still on. Then I terminated the session sudo loginctl terminate-session <your session ID> and now the error is gone. Hope this helps.

2
  • 1
    I was trying to ssh Linux Mint from Windows 10 and getting Error: Could not acquire name on session bus. After terminating sessions as in this answer, it worked.
    – Gustavo
    Commented Aug 3, 2021 at 15:13
  • sudo loginctl terminate-seat <your seat id> will also work
    – Davidw
    Commented Mar 27 at 18:42
2

Just rebooting my machine solved the issue

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .