Posted: . At: 8:58 AM. This was 6 months ago. Post ID: 18650
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


Setting up and using Xrdp on Alma Linux.


I have installed Xrdp on Alma Linux, I have got it running, but I can not get the connection to work over a LAN.

(jcartwright@localhost) 192.168.1.5 ~  $ systemctl status xrdp
● xrdp.service - xrdp daemon
     Loaded: loaded (/usr/lib/systemd/system/xrdp.service; disabled; preset: disabled)
     Active: active (running) since Tue 2023-10-24 08:14:15 AEDT; 4min 58s ago
       Docs: man:xrdp(8)
             man:xrdp.ini(5)
   Main PID: 12115 (xrdp)
      Tasks: 1 (limit: 99303)
     Memory: 1.8M
        CPU: 3ms
     CGroup: /system.slice/xrdp.service
             └─12115 /usr/sbin/xrdp --nodaemon

The port is blocked by the firewall.

This is all of the firewall settings I currently have.

[root@localhost jcartwright]# firewall-cmd --list-all
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: eno1
  sources: 
  services: cockpit dhcpv6-client http ssh
  ports: 
  protocols: 
  forward: yes
  masquerade: no
  forward-ports: 
  source-ports: 
  icmp-blocks: 
  rich rules:

I just need to add the RDP service and I may then access the RDP server remotely.

This is very easy, I just added an RDP service to the firewall.

[root@localhost jcartwright]# firewall-cmd --add-service=rdp
success

Then I could read the status again and see the changes.

[root@localhost jcartwright]# firewall-cmd --list-all
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: eno1
  sources: 
  services: cockpit dhcpv6-client http rdp ssh
  ports: 
  protocols: 
  forward: yes
  masquerade: no
  forward-ports: 
  source-ports: 
  icmp-blocks: 
  rich rules:

This was not too hard.

Then I could connect from a Macintosh computer and then access the RDP connection.

Connecting to an Xrdp server remotely is very easy.

This was very easy to work out, the Alma Linux firewall is very easy to use and this makes using this distribution a lot of fun.

To remove a service added to the firewall, use this command.

[root@localhost jcartwright]# firewall-cmd --remove-service=rdp
success

Now I can see it is no longer on the list.

[root@localhost jcartwright]# firewall-cmd --list-services
cockpit dhcpv6-client http ssh

And below is a screenshot showing the RDP connection on a Macbook to my Alma Linux desktop.

Connected to an Alma Linux desktop with RDP.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.