Hi all, I know this has been asked before and I’ve tried loads of different “solutions” but I’m still experiencing an issue.
So I’ve got dietpi 6.30 installed on a Pi3b+ and it’s usually managed via SSH however for some reason I can’t get RDP to work. I know VNC has been mentioned but I manage multiple machines and use RDP for all of them so I’d like to do the same with my Pi.
From dietpi-software I installed XRDP which subsequently installs LXDE and TigerVNC as part of the process.
When I try to connect to the Pi using the official RDP client for Mac it opens with a black screen and if I leave it for a few minutes the attached message is displayed.
So you know all the steps… I initiate the RDP connection and I instantly hit an all black screen, then after a few mins I get the aforementioned message in the screenshot. If I click OK on the message it takes me to the XRDP login page where I can select different session options.
If I select the default “Xorg” and input my login credentials I just get a blank teal colour and after a few minutes I get the same message screenshot in the OP.
My other session options are;
Xvnc
vnc-any
neutrinordp-any
If I select Xvnc I get message attached.
In dietpi-config > AutoStart Options it’s current set to number 2 (Desktops - automatic login), does this need to adjusted to anything else? Before tinkering with RDP it was set to 0 (Local Terminal - Manual Login) as I only accessed via SSH.
Autostart option can be set to 0 : Manual login (default) . No need to have it set to something else. Even on my test it was not switched and still set to 0. Furthermore VNC is running on a different port than xrdp expects. Let’s check
Apologies, I’d not removed the “-” from the port number so it stated “=-5901”. I’ve since rectified this and I was able to see the desktop using the Xvnc option from the Xrdp login page.
I still have the black screen issue after the initial connection and I seemingly have to wait for the default connection method to time out (which is about 5 minutes) before I can see the Xrdp login page.
Please can you advise how to adjust the default connection method so I don’t have the black screen issue, and out of curiosity why does the Xorg option not work?
Edit,
After running through the recreation steps once more, I now cannot access via Xvnc when I could only a few minutes ago. I’ve changed no settings in that time and the password is 100% correct. See screenshot.
currently I don’t know why you a running into the initial 5 minutes timeout. For me it looks like that your xrdp is trying to connect right from the beginning to a Xorg session. But usually it should display the selection screen first. Even on my test I was not able to replicate this behaviour.
The black screen is obviously frustrating so do you think it’s worth me flashing a clean dietpi img to a spare micro sd card and starting from scratch? If you can’t replicate the 5 min black screen I obviously have an incorrect setting somewhere and it could be difficult to locate.
With regards to the other machines I manage, they run Lubuntu with Xrdp installed and when I connect to them from MS RD client it simply logs me in with the stored credentials and displays the desktop. How come I can’t replicate this with dietpi?
ok now I can imagine what happen with the 5 Minutes. You already enter login information into the Win RDP Client? Correct? Because I did not do that. I just open RDP Client and enter the IP Address. User credentials I just specify once xrdp was started. Can you remove login information from RDP client and try again pls.
Ahhhhh, yes it displays the xrdp login page straight away and I’m able to log in. I was under the impression that RD credentials were mandatory. Thanks
As for my other question, how is it I can’t have the credentials stored in the RD client and it auto login like I do with the Lununtu machines? Is there anything I can change to achieve this?
yep I found a way around. It looks like xrdp is using the first option Xorg if you enter credentials right from the beginning. Therefore you would need to bring Xvnc in top if the list.
nano /etc/xrdp/xrdp.ini
hash # all entries for [Xorg] like this (near same location where you changed the port.
Great Thread, helped me 3 yrs after in exact the same way! Meanwhile, is there something like changing the list entries in xrdp session. I mean out commenting… ah did you try change the sequence in the ini file?
Indeed! Worked, so just putting XORG behind XVNC works in the same way it seems! so you can comment it in…btw. with Ubuntu I faced in the past issues, that it only worked with XORG. Why is this and why here not?
Hello,
I’m using XRDP for years on my Manjaro (similar to arch-linux) systems now.
I found that it works more reliable with Xorg than VNC connections, so I have removed the vnc stuff …
But it did not work out of the box with xorg :(.
As I remember I had to install additional xrdp-xorg drivers and change xrdp configs. Maybe that this is the same problem with dietpi default installation.