• Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate
TecNStuff
Menu
  • Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate

How to Install Xrdp Server (Remote Desktop) on Debian 10

Written by Admin, Updated On May 27, 2020
debian, rdp
How to Install Xrdp Server (Remote Desktop) on Debian 10

Xrdp is an open-source implementation of the Microsoft Remote Desktop Protocol (RDP) server. It allows you to graphically control a remote machine. Using Xrdp, you can login to remote machine same as Microsoft Remote Desktop Protocol (RDP). In this tutorial, we will show you how to install Xrdp (Remote Desktop) on Debian 10 system.

Prerequisites#

Make sure you have logged in as a root or user with sudo privileges.

Installing Desktop Environment#

By default, Linux servers do not have a desktop environment installed and managed by command line only. So first, we need to install desktop environment for Xrdp.

There are several desktop environments (DE) available in Debian repositories. We will install the Xfce desktop environment, it is perfect for the remote servers. You can install another desktop environment if you would like, but Xfce is a lightweight, stable, and fast desktop environment.

sudo apt update
sudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils

Installing Xrdp#

Standard Debian repositories includes Xrdp package. Run the following command to install:

sudo apt install xrdp

Once the installation complete, Xrdp service will be start automatically.

You can verify that service is running by typing:

sudo systemctl status xrdp

It will show output like below:

● xrdp.service - xrdp daemon
   Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2020-05-25 11:09:10 UTC; 4s ago
  ...

Next, you have to add the xrdp user to the group “ssl-cert” group:

sudo adduser xrdp ssl-cert

Restart the Xrdp service for changes to take effect:

sudo systemctl restart xrdp

That’s it! Xrdp is installed on your Debian system and ready to use.

Configuring Firewall#

If you are using ufw to manage firewall on your Debian server, you’ll need to open the Xrdp port. The Xrdp listens on port 3389 on all interfaces.

For example to give access to the Xrdp server to a specific IP address or IP range, run the following command:

sudo ufw allow from 192.168.43.0/24 to any port 3389

It’s done. Now you are able to connect your Xrdp server using RDP client on Windows system. If you are running macOS, you can install the Microsoft Remote Desktop application from the Mac App Store. Linux users can use an RDP client such as Remmina or Vinagre.

Conclusion#

In this guide explained how to install xrdp on Debian 10 system. You can connect Xrdp server and manage through graphic interface from Windows, macOS or Linux system.

If you have any questions or feedback, feel free leave a comment below.

If our content helps you, please consider buying us a coffee

Thank you for your support.

Share On
Share on Facebook
Share on Twitter
Share on Reddit
Share on Tumblr
 Previous Article Lsmod Command in Linux (List Kernel Modules)
Next Article   How to Mount and Unmount File Systems in Linux

Related Posts

  • How to Change Hostname Debian 11

    How to Change Hostname on Debian 11

    February 3, 2023
  • How to Install Python 3.11 on Debian 11

    How to Install Python on Debian 11

    January 25, 2023
  • How to Install Mongodb on Debian 11

    How to Install MongoDB on Debian 11 Linux

    January 11, 2023

1 Comment

  1. Paul Nyoumi Reply
    March 19, 2021 at 10:00 pm

    can you complete this tutorial by showing the connection using for example windows remote desktop?

Leave a Reply Cancel reply

DigitalOcean Referral Badge

Popular Posts

  • How to Install SSH Keys on Ubuntu 22.04
    How to Set up SSH Keys on Ubuntu 22.04 January 7, 2023
  • How to Install Mongodb on Debian 11
    How to Install MongoDB on Debian 11 Linux January 11, 2023
  • How to Install Puppet Agent on Ubuntu 22.04
    How to Install Puppet Agent on Ubuntu 22.04 January 22, 2023
  • How to Install Python 3.11 on Debian 11
    How to Install Python on Debian 11 January 25, 2023
  • How to Change-Hostname Ubuntu 22.04
    How to Change Hostname on Ubuntu 22.04 January 19, 2023
© 2020 TecNStuff All rights reserved. This website is using and storing cookies on your browser. By using this website you agree our Privacy Policy.  Follow us -  Twitter | Facebook