Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Linux Distributions»Fedora»How To Install XRDP (Remote Desktop) on Fedora

    How To Install XRDP (Remote Desktop) on Fedora

    By RahulJune 15, 20214 Mins Read

    Remote Desktop Protocol (RDP) is a protocol that allows users to access desktops on remote systems. The XRDP service provides you a graphical login to the remote machines using Microsoft RDP (​Remote Desktop Protocol). The XRDP also supports two-way clipboard transfer (text, bitmap, file), audio redirection, and drive redirection (mount local client drives on the remote machines).

    Advertisement

    This tutorial helps you to Install XRDP Server (Remote Desktop) on a Fedora Linux system. Also provides the instructions to install a Desktop environment on your system.

    Step 1 – Install Desktop Environment

    Fedora workstation comes with a default desktop environment. In case you have installed Fedora minimal version or server edition will not have desktop installed. The XRDP server is designed to controls only desktop systems. So you will need to add a desktop environment to your system.

    Open a terminal and upgrade all installed packages with the following command:

    sudo dnf upgrade 
    

    Once your system is updated, install search for the available Desktop environment for your system.

    sudo dnf grouplist -v 
    

    Choose a desktop environment to be installed on your system. The below command will install KDE Plasma desktop on your Fedora system.

    sudo dnf install @kde-desktop-environment 
    

    Make sure to use “@” before the package name as you are going to install a group of packages.

    Once the installation finished, restart your system to apply the changes.

    Step 2 – Install Xrdp (Remote Desktop) on Fedora

    The Xrdp packages are available under the default system repositories. You can install the remote desktop service (xrdp) on your Fedora system by executing the following command.

    sudo dnf install xrdp -y 
    

    Once the packages installed successfully, start the xrdp service and enable it to auto-start with system boots.

    sudo systemctl enable xrdp 
    sudo systemctl start xrdp 
    

    Verify the service is started successfully.

    sudo systemctl status xrdp 
    
    Running XRDP on Fedora (Remote Desktop Service)
    Running XRDP Service on Fedora

    The above output shows the Xrdp service is up and running.

    Step 3 – Adjust Firewall

    The XRDP service uses a standard remote desktop protocol port ie 3389. The fedora systems come with the active FireallD service. So you need to allow access on port 3389 in the firewall for the remote systems.

    Execute the following command to open firewall access:

    sudo firewall-cmd --permanent --add-port=3389/tcp 
    

    Reload the new rules.

    sudo firewall-cmd --reload 
    

    All right, Your system is ready to access over RDP protocol.

    Step 4 – Manage SELinux

    The systems have SELinux enforcing required to apply SELinux context on xrdp binaries. The following commands will allow the XRDP service to be accessible for remote users.

    sudo chcon --type=bin_t /usr/sbin/xrdp 
    sudo chcon --type=bin_t /usr/sbin/xrdp-sesman 
    

    At this stage, your system is ready with Remote desktop service. Now connect to your system using any RDP client.

    Step 5 – Connect to Remote Desktop

    The Xrdp service is successfully installed and ready to connect. On your Windows client, open the RDP client and enter the IP address of the Fedora system.

    You can launch the RDP client by typing "mstsc" in the run window or command line.

    Connect to Fedora Remote Desktop

    The first time, it will prompt a warning message due to the remote system is unknown for your system. Check the box in front of “Don’t ask me again for connection to this computer” and click Yes to continue.

    Accept Certificate Warning with Fedora Remote Desktop

    Once connected successfully, the remote system prompt for authentication. Enter the login credentials of the remote Fedora system to get remote desktop access.

    Authenticate Fedora on XRDP Remote Desktop

    On successful authentication, you’ll get remote desktop access.

    Access Fedora Remote Desktop with XRDP

    Hurrey, Now you can manage your remote Fedora system using the graphical interface.

    Conclusion

    This tutorial helped you to set up a remote desktop service on Fedora Linux using the Xrdp server. The tutorial also includes steps to install Desktop Environment on your Fedora system.

    Desktop fedora rdp Xrdp
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    Upgrade to Fedora 28

    Upgrade Fedora: A Step-by-Step Tutorial

    How To Install XRDP on Ubuntu 22.04

    How To Install XRDP on Ubuntu 22.04

    How To Install Apache Solr on Fedora

    How To Install Apache Solr 9.0 on Fedora 36/35

    View 3 Comments

    3 Comments

    1. user on May 4, 2022 5:58 am

      Tried this in Fedora XFCE, and XFCE session crashed when I tried to log in using RDP (there was a local session going on), and RDP was closed.

      Reply
    2. Vincenzo Ursano on February 22, 2022 1:29 am

      Thanks for the tutorial 😉

      Reply
    3. TomT on January 25, 2022 4:38 pm

      When I issue this command:
      sudo systemctl enable xrdp

      I get: Failed to enable unit: Unit file xrpd.service does not exist.

      ?
      TomT

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • How to List Manually Installed Packages in Ubuntu & Debian
    • 10 Bash Tricks Every Developer Should Know
    • How to Validate Email Address in JavaScript
    • Firewalld: Common Firewall Rules and Commands
    • 12 Apk Commands in Alpine Linux Package Management
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.