XRDP fails to start.

Hi. Having issues with xrdp daemon to start on my box.

chris@ASUS-ROG:~> uname -a
Linux ASUS-ROG 4.12.14-lp150.12.64-default #1 SMP Mon Jun 17 16:53:50 UTC 2019 (3edfd41) x86_64 x86_64 x86_64 GNU/Linux
chris@ASUS-ROG:~>

This is the journal’s log for the service manager https://paste.opensuse.org/18967798

It seems to be related to the pid file But I’m not sure what is going on.

Jul 01 14:24:31 ASUS-ROG systemd[1]: xrdp.service: PID file /var/run/xrdp.pid not readable (yet?) after start: No such file or directory


From /var/log/xrdp.log

[20190701-14:26:01] [ERROR] Cannot read certificate file /etc/xrdp/cert.pem: No such file or directory

Checking I find there is no cert.pem file. How do I create this file?

Thanks,
Chris.

Many utilities can generate your certs and create PEMs.
I use OpenSSH.

Although the process is mostly self-explanatory, you can read full documentation in the MAN pages.

TSU

Thanks Tsu,

I read in the xrdp.ini about using openssl -

; X.509 certificate and private key
; openssl req -x509 -newkey rsa:2048 -nodes -keyout key.pem -out cert.pem -days 365


I ran that and got the cert.pem file now. xrdp now seems to start ok(?)

chris@ASUS-ROG:~> sudo service xrdp status
* xrdp.service - xrdp daemon
   Loaded: loaded (/usr/lib/systemd/system/xrdp.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2019-07-02 09:20:22 AWST; 5min ago
     Docs: man:xrdp(8)
           man:xrdp.ini(5)
 Main PID: 14113 (xrdp)
    Tasks: 5 (limit: 4915)
   CGroup: /system.slice/xrdp.service
           |-14113 /usr/sbin/xrdp
           |-17833 /usr/sbin/xrdp
           |-17835 /usr/sbin/xrdp
           `-17837 /usr/sbin/xrdp

Jul 02 09:20:21 ASUS-ROG systemd[1]: Starting xrdp daemon...
Jul 02 09:20:21 ASUS-ROG systemd[1]: xrdp.service: PID file /var/run/xrdp.pid not readable (yet?) after start: No such file or directory
Jul 02 09:20:22 ASUS-ROG systemd[1]: Started xrdp daemon.
chris@ASUS-ROG:~>

But my remmina client on my laptop that is trying to connect to box running xrdp can’t connect with RDP. SSH connections are ok. And yes I have the setting for port 3389/tcp set in the firewall.

I’ll see if the man pages can shed any more light on this.

Have found that the remmina client is playing up. I started using xfreerdp as a client and that connects ok (sort of).

Anyone have experience with Remmina?

Thanks.

Has its own section in the LEAP documentation

https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.reference/cha.vnc.html#vnc.remmina

TSU

Has its own section in the LEAP documentation

https://doc.opensuse.org/documentati…ml#vnc.remmina

Thanks.
That doc only refers to using VNC and Remmina works fine with VNC and SSH but just doesn;t connect with RDP. xfreerdp client though works fine and I’ll stick with this. I may dig deeper with Remmina later when I get a bit of time.
Regards…

Just install the required supporting package for the protocol
The following describes not only your choice of package for RDP, also describes how to set up a default profile.

https://wiki.archlinux.org/index.php/Remmina

TSU