• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to Install Xrdp Server (Remote Desktop) on Rocky Linux 8.6

  • 00:40 cat /etc/os-release
  • 00:59 dnf groupinstall "server with GUI"
  • 02:29 dnf install epel-release
  • 03:01 dnf install xrdp
  • 03:44 systemctl enable xrdp
  • 04:00 systemctl start xrdp
  • 04:12 systemctl status firewalld.service
  • 04:24 systemctl stop firewalld.service
  • 04:42 systemctl status xrdp
  • 04:54 ifconfig
7535

To Install Xrdp Server (Remote Desktop) on Rocky Linux 8.6

Introduction:

Xrdp is an open-source application of the Microsoft Remote Desktop Protocol (RDP) that allows us to graphically control a remote system. With RDP, we can log in to the remote machine and build a real desktop session the same as if you had logged in to a local machine.

Step 1: Check the installed version of OS by using the below command

[root@linuxhelp ~]# cat /etc/os-release 
NAME="Rocky Linux"
VERSION="8.6 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.6"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.6 (Green Obsidian)"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky Linux"
ROCKY_SUPPORT_PRODUCT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8"

Step 2: Install Gnome on your remote machine by using the below command

[root@linuxhelp ~]# dnf groupinstall "server with GUI"
Rocky Linux 8 - AppStream                                       4.2 MB/s | 8.8 MB     00:02    
Rocky Linux 8 - BaseOS                                          1.4 MB/s | 3.7 MB     00:02    
Rocky Linux 8 - Extras                                          9.8 kB/s |  11 kB     00:01    
Last metadata expiration check: 0:00:01 ago on Wed 13 Jul 2022 06:20:52 PM EDT.
No match for group package "hpijs"
Upgraded:
  NetworkManager-1:1.36.0-7.el8_6.x86_64                                                        
  NetworkManager-adsl-1:1.36.0-7.el8_6.x86_64                                                   
  NetworkManager-bluetooth-1:1.36.0-7.el8_6.x86_64                                              
  NetworkManager-config-server-1:1.36.0-7.el8_6.noarch                                          
  NetworkManager-libnm-1:1.36.0-7.el8_6.x86_64                                                  
  NetworkManager-team-1:1.36.0-7.el8_6.x86_64                                                   
  NetworkManager-tui-1:1.36.0-7.el8_6.x86_64                                                    
  NetworkManager-wifi-1:1.36.0-7.el8_6.x86_64                                                   
  NetworkManager-wwan-1:1.36.0-7.el8_6.x86_64                                                   
  alsa-sof-firmware-1.9.3-4.el8_6.noarch                                                        
  bpftool-4.18.0-372.13.1.el8_6.x86_64 

Step 3: Now install EPEL repository by using the below command

[root@linuxhelp ~]# dnf install epel-release
Last metadata expiration check: 0:03:29 ago on Wed 13 Jul 2022 06:20:52 PM EDT.
Dependencies resolved.
================================================================================================
 Package                   Architecture        Version                Repository           Size
================================================================================================
Installing:
 epel-release              noarch              8-13.el8               extras               23 k

Transaction Summary
================================================================================================
Install  1 Package

Total download size: 23 k

Complete!

Step 4: Install the Xrdp package by using the below command

[root@linuxhelp ~]# dnf install xrdp
Extra Packages for Enterprise Linux 8 - x86_64                  7.3 MB/s |  12 MB     00:01    
Extra Packages for Enterprise Linux Modular 8 - x86_64          713 kB/s | 1.0 MB     00:01    
Last metadata expiration check: 0:00:01 ago on Wed 13 Jul 2022 06:25:12 PM EDT.
Dependencies resolved.
================================================================================================
 Package                  Architecture       Version                     Repository        Size
================================================================================================
Installing:
 xrdp                     x86_64             1:0.9.19-1.el8              epel             470 k


Installing dependencies:
 imlib2                   x86_64             1.4.9-8.el8                 epel             222 k
Installing weak dependencies:
 xrdp-selinux             x86_64             1:0.9.19-1.el8              epel              24 k

Transaction Summary
================================================================================================
Install  3 Packages

Total download size: 716 k
Installed size: 2.8 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): xrdp-selinux-0.9.19-1.el8.x86_64.rpm                     161 kB/s |  24 kB     00:00    
(2/3): imlib2-1.4.9-8.el8.x86_64.rpm                            625 kB/s | 222 kB     00:00    
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.

Step 5: Start the Xrdp service and enable it by using the below command

[root@linuxhelp ~]# systemctl start xrdp
[root@linuxhelp ~]# systemctl enable xrdp
Created symlink /etc/systemd/system/multi-user.target.wants/xrdp.service → /usr/lib/systemd/system/xrdp.service.

Step 6: Check the status of firewalld by using the below command

[root@linuxhelp ~]# systemctl status firewalld.service 
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2022-06-27 08:49:28 EDT; 2 weeks 2 days ago

     Docs: man:firewalld(1)
 Main PID: 1037 (firewalld)
    Tasks: 3 (limit: 17274)
   Memory: 34.6M
   CGroup: /system.slice/firewalld.service
           └─1037 /usr/libexec/platform-python -s /usr/sbin/firewalld --nofork --nopid

Step 7: Stop the firewalld service by using the below command

[root@linuxhelp ~]# systemctl stop firewalld.service

Step 8: Check the status of Xrdp by using the below command

[root@linuxhelp ~]# systemctl status xrdp
● xrdp.service - xrdp daemon
   Loaded: loaded (/usr/lib/systemd/system/xrdp.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2022-07-13 18:26:54 EDT; 44s ago
     Docs: man:xrdp(8)
           man:xrdp.ini(5)
 Main PID: 43046 (xrdp)
    Tasks: 1 (limit: 17274)
   Memory: 1.0M
   CGroup: /system.slice/xrdp.service
           └─43046 /usr/sbin/xrdp --nodaemon

Step 9: Check the IP Address of the system by using the below command

[root@linuxhelp ~]# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.6.122  netmask 255.255.254.0  broadcast 192.168.7.255
        inet6 fe80::20c:29ff:feb8:f7db  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:b8:f7:db  txqueuelen 1000  (Ethernet)
        RX packets 359113  bytes 537991751 (513.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 31454  bytes 2329677 (2.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0



lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 2048  bytes 179576 (175.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2048  bytes 179576 (175.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:f2:20:6b  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Step 10: Open your local Xrdp client and connect to the remote as shown in the below image

snap 1

Step 11: On the login screen, enter click “YES” as shown in the below image

snap 2

Step 12: you should see the default Gnome desktop as shown in the below image

Snap 3

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to Install Xrdp Server (Remote Desktop) on Rocky Linux 8.6. Your feedback is much welcome.

Tags:
michael
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

How do I open an Xrdp file in Ubuntu?

A

Install the XRDP Package from Ubuntu Repository
Click on the terminal icon and the Terminal console will open. ...
You will be then informed about the package size. ...
Wait for the completion. ...
You might be prompted for a password. Enter the password and press enter

Q

Do I have performed a standard installation of Xrdp but when I try to perform a remote connection, I have a blank or grey screen? How can I fix this?

A

Since Ubuntu 12.10, the Unity Desktop is not supported with Xrdp. You will need to install an alternate desktop environment and tell your Ubuntu system to use this alternate desktop session.

Q

How do I change my Xrdp port?

A

When assigning port numbers, you can just start at the default port 3389 and go on: 3390, 3391, and so on. To change the default port of Xrdp, open the /etc/xrdp/xrdp.ini file as root, edit the port entry in the Global section

Q

Is there any workaround to connect to Unity via Xrdp?

A

There is indeed a quick and dirty way to connect to an Ubuntu machine and connect to the Unity Desktop. As mentioned, this is a workaround where you use the XRDP interface to basically perform a VNC connection

Q

Do I use Multiple Users Connect via Xrdp?

A

Yes, multiple users can connect via the Xrdp software solutions. For each user that needs to connect, you will need to configure the .xsession file. You can either manually create this file or you can use the following procedure to automate the creation of the .xsession file

Related Tutorials in How to Install Xrdp Server (Remote Desktop) on Rocky Linux 8.6

Related Tutorials in How to Install Xrdp Server (Remote Desktop) on Rocky Linux 8.6

How to install Xrdp Server (Remote Desktop) on Oracle Linux 8.5
How to install Xrdp Server (Remote Desktop) on Oracle Linux 8.5
Oct 17, 2022
How to install and update OpenSSL on Debian 11.3
How to install and update OpenSSL on Debian 11.3
Oct 21, 2022
How to Install and Configure Mega in Linux
How to Install and Configure Mega in Linux
Jul 19, 2016
How to use Aureport command on Linux
How to use Aureport command on Linux
Nov 28, 2017
How to install Development tools on Linux
How to install Development tools on Linux
Jun 12, 2018
How to Install mod_ssl and SSL certificate on Oracle Linux
How to Install mod_ssl and SSL certificate on Oracle Linux
Dec 30, 2021
How to install Nextcloud on Ubuntu 22.04 version
How to install Nextcloud on Ubuntu 22.04 version
Jun 23, 2023
How to install ClipGrab in Linux
How to install ClipGrab in Linux
Jul 16, 2016

Related Forums in How to Install Xrdp Server (Remote Desktop) on Rocky Linux 8.6

Related Forums in How to Install Xrdp Server (Remote Desktop) on Rocky Linux 8.6

Linux
jayce class=
shasum command not found
May 5, 2017
Linux
stephan class=
How to list all samba users
Jan 12, 2018
pv command
muhammad class=
pvcreate command not found error
May 9, 2017
Linux
henry class=
Starting NFS daemon: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
Apr 25, 2017
ifconfig command
jackbrookes class=
what is the location of the ifconfig program on your machine?
Jan 4, 2018
Linux
baseer class=
single command to apply setfacl for multiple user at a time
Jan 23, 2018
Linux
beulah class=
What does mean by 0 0 value in fstab file
Jan 2, 2018
CentOS
mason class=
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
Nov 20, 2018

Related News in How to Install Xrdp Server (Remote Desktop) on Rocky Linux 8.6

Related News in How to Install Xrdp Server (Remote Desktop) on Rocky Linux 8.6

Anbox, the Android-to-Linux tool the developers have been waiting for
Anbox, the Android-to-Linux tool the developers have been waiting for
Apr 17, 2017
Linus Torvalds stops signing Linux kernel RC tarballs
Linus Torvalds stops signing Linux kernel RC tarballs
May 17, 2017
Capsule8 Launches Linux-Based Container Security Platform
Capsule8 Launches Linux-Based Container Security Platform
Feb 14, 2017
Symantec updates Management console product
Symantec updates Management console product
Nov 22, 2017
Latest Linux driver release feature seven AMD Vega
Latest Linux driver release feature seven AMD Vega
Mar 23, 2017
A Newer and a Faster Window Manager for Tina (Linux Mint 19.2)
A Newer and a Faster Window Manager for Tina (Linux Mint 19.2)
Apr 9, 2019
Microsoft makes its Azure App service now available on Linux Systems
Microsoft makes its Azure App service now available on Linux Systems
Sep 7, 2017
Docker friendly Alpine Linux gets hardened Node.js
Docker friendly Alpine Linux gets hardened Node.js
Apr 19, 2017
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Elijah ?
Remote Desktop Connection Has Stopped Working

When accessing my remote machine server using remote desktop on a windows machine I am getting this error

forum (1)

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.