Rdp black screen linux

Xrdp on Ubuntu 20.04

I installed Ubuntu 20.04 and then installed xrdp. Whenever i tried to connect, either from another Ubuntu 20.04 box using either xfreerdp or krdc, or from a Mac, a black screen would show up, and then immediately disconnect. i made sure i did not have any other sessions on the server going on at the same time. After a while, i gave up and tried the script at: https://www.c-nergy.be/products.html it didn’t make a difference this is the only output from /var/log/xrdp.log

[20200529-18:17:16] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.0.216 port 45006 [20200529-18:17:16] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.199 port 3389) [20200529-18:17:16] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389) [20200529-18:17:16] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem [20200529-18:17:16] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem [20200529-18:17:16] [DEBUG] TLSv1.3 enabled [20200529-18:17:16] [DEBUG] TLSv1.2 enabled [20200529-18:17:16] [DEBUG] Security layer: requested 3, selected 1 [20200529-18:17:16] [INFO ] connected client computer name: coruscant [20200529-18:17:16] [INFO ] adding channel item name cliprdr chan_id 1004 flags 0xc0a00000 [20200529-18:17:16] [INFO ] TLS connection established from ::ffff:192.168.0.216 port 45006: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 [20200529-18:17:16] [DEBUG] xrdp_00000506_wm_login_mode_event_00000001 [20200529-18:17:16] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini [20200529-18:17:16] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file [20200529-18:17:17] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.199 port 3389) [20200529-18:17:17] [DEBUG] xrdp_mm_module_cleanup 

Источник

Читайте также:  Linux one step back

Black Screen Remote Desktop to Ubuntu from Windows with XRDP

We have noticed that a lot of people hit the same issue over and over again. When trying to connect via remote desktop protocol (rdp) to the Ubuntu machine, and after providing the credentials in the xRDP Login page, the user will only see a black screen displayed and the desktop interface is never loaded and displayed. This post will basically explain why this happens and how to reproduce the issue.

Black Screen when Remote Desktop to Ubuntu

Let’s assume that you have installed xRDP to enable Remote Desktop service on an Ubuntu machine. And you are still logged on into your Ubuntu machine system locally with your user account.

Now, you move to a Windows machine then connect to the Ubuntu using RDP.

If the credentials are correct, you will see your remote desktop session showing a black screen.

Remove Black Screen when Remote Desktop to Ubuntu

This situation will happen (or can happen) when the same user account is used concurrently locally and remotely. In other words, the problem is related to the fact that the same user account is already logged in locally and a remote connection is attempted at the same time.

To solve this issue, there is a simple fix. You need to ensure the account you are using to login via the remote desktop client is not currently logged on locally on the Ubuntu target machine. If this is the case, perform a logout operation.

Try again the remote desktop session and you will be able to perform your remote desktop connection and that your desktop interface will be loaded and made available for you.

Читайте также:  Linux on windows tablets

Allow multiple sessions (local and remote) for the same user

If you don’t want to logout the current user, you can allow a user to login via xRDP even if the same user account is already logged on locally on the Ubuntu machine.

Method 1: Using dbus-launch approach

You will simply need to modify your /etc/xrdp/startwm.sh file and appending a one liner that will allow you to basically acquire the desktop while performing your remote connection even if you are already logged on locally. To implement this trick, simply open the /etc/xrdp/startwm.sh with your favorite text editor.

sudo nano /etc/xrdp/startwm.sh

At the below line before this line test -x /etc/X11/Xsession && exec /etc/X11/Xsession. Then save the file.

Источник

Оцените статью
Adblock
detector