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

How to Install Xrdp Server On Debian 11.4

  • 00:27 lsb_release -a
  • 00:41 apt-get update
  • 00:58 apt install xrdp
  • 01:20 systemctl start xrdp
  • 01:32 systemctl status xrdp
  • 01:44 systemctl enable xrdp
  • 02:01 sudo adduser xrdp ssl-cert
  • 02:30 systemctl restart xrdp
  • 02:42 sudo ufw status
  • 02:55 sudo ufw allow 3389
  • 03:09 sudo ufw status
  • 03:25 ip a
7576

To Install Xrdp Server (Remote Desktop) On Debian 11.4

Introduction:

The Xrdp server is a free and open-source implementation of Microsoft's Remote Desktop Protocol (RDP) that allows other operating systems (such as Linux and BSD-style) to provide fully functional RDP-compatible remote desktops.

Installation Procedure:

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

root@debian:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye

Step 2: Next Update APT repository cache by using the below command

root@debian:~# apt-get update
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://deb.debian.org/debian bullseye InRelease
Reading package lists... Done

Step 3: Now Install the Xrdp package by using below command.

root@debian:~# apt install xrdp
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  dbconfig-common dbconfig-mysql default-mysql-client galera-4 icc-profiles-free libaio1 libcgi-fast-perl libcgi-pm-perl
  libconfig-inifiles-perl libdbd-mariadb-perl libdbi-perl libfcgi-bin libfcgi-perl libfcgi0ldbl libhtml-template-perl
  libjs-bootstrap4 libjs-codemirror libjs-jquery libjs-jquery-mousewheel libjs-jquery-timepicker libjs-jquery-ui
  libjs-openlayers libjs-popper.js libjs-sizzle libjs-sphinxdoc libjs-underscore libmariadb3 libonig5 libterm-readkey-perl
  libzip4 mariadb-client-10.5 mariadb-client-core-10.5 mariadb-common mariadb-server-10.5 mariadb-server-core-10.5 mysql-common
  node-jquery rsync socat
Use 'apt autoremove' to remove them.
Suggested packages:
  guacamole xrdp-pulseaudio-installer
The following NEW packages will be installed:
  xrdp
0 upgraded, 1 newly installed, 0 to remove and 214 not upgraded.


Need to get 446 kB of archives.
After this operation, 3,022 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 xrdp amd64 0.9.12-1.1 [446 kB]
Fetched 446 kB in 0s (1,613 kB/s)
Selecting previously unselected package xrdp.
(Reading database ... 143193 files and directories currently installed.)
Preparing to unpack .../xrdp_0.9.12-1.1_amd64.deb ...
Unpacking xrdp (0.9.12-1.1) ...
Setting up xrdp (0.9.12-1.1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.31-13+deb11u3) ...

Step 4: Start the Xrdp service by using the below command.

root@debian:~# systemctl start xrdp

Step 5: Check the status of Xrdp by using the below command.

root@debian:~# systemctl status xrdp
● xrdp.service - xrdp daemon
     Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2023-07-04 20:45:02 CDT; 6min ago
       Docs: man:xrdp(8)
             man:xrdp.ini(5)
    Process: 535 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, status=0/SUCCESS)
    Process: 546 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=0/SUCCESS)
   Main PID: 555 (xrdp)
      Tasks: 1 (limit: 4623)
     Memory: 1.5M
        CPU: 60ms
     CGroup: /system.slice/xrdp.service
             └─555 /usr/sbin/xrdp

Jul 04 20:45:01 debian xrdp[546]: (546)(140658685122368)[INFO ] address [0.0.0.0] port [3389] mode 1


Jul 04 20:45:01 debian xrdp[546]: (546)(140658685122368)[INFO ] listening to port 3389 on 0.0.0.0
Jul 04 20:45:01 debian xrdp[546]: (546)(140658685122368)[INFO ] xrdp_listen_pp done
Jul 04 20:45:01 debian xrdp[546]: (546)(140658685122368)[DEBUG] Closed socket 7 (AF_INET6 :: port 3389)
Jul 04 20:45:01 debian systemd[1]: xrdp.service: Can't open PID file /run/xrdp/xrdp.pid (yet?) after start: Operation not permit>
Jul 04 20:45:02 debian systemd[1]: Started xrdp daemon.
Jul 04 20:45:03 debian xrdp[555]: (555)(140658685122368)[INFO ] starting xrdp with pid 555
Jul 04 20:45:03 debian xrdp[555]: (555)(140658685122368)[INFO ] address [0.0.0.0] port [3389] mode 1
Jul 04 20:45:03 debian xrdp[555]: (555)(140658685122368)[INFO ] listening to port 3389 on 0.0.0.0
Jul 04 20:45:03 debian xrdp[555]: (555)(140658685122368)[INFO ] xrdp_listen_pp done

Step 6: Next Enable the Xrdp service by using the below command

root@debian:~# systemctl enable xrdp
Synchronizing state of xrdp.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable xrdp

Step 7: Add Xrdp user to SSL-Cert group by using the below command

root@debian:~# sudo adduser xrdp ssl-cert
Adding user `xrdp' to group `ssl-cert' ...
Adding user xrdp to group ssl-cert
Done.

Step 8: Restart the xrdp service by using the below command

root@debian:~# systemctl restart xrdp

Step 9: Check the status from firewall by using the below command

root@debian:~# sudo ufw status
Status: inactive

Step 10: Allow port in firewall using the below command

root@debian:~# sudo ufw allow 3389
Skipping adding existing rule
Skipping adding existing rule (v6)

Step 11: Again, Check the status from firewall by using the below command

root@debian:~# sudo ufw status
Status: inactive

Step 12: Next, check the IP Address of the system by using the below command

root@debian:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:0c:29:e3:e1:a1 brd ff:ff:ff:ff:ff:ff
    altname enp2s1
    inet 192.168.6.131/23 brd 192.168.7.255 scope global noprefixroute ens33
       valid_lft forever preferred_lft forever
    inet6 fe80::20c:29ff:fee3:e1a1/64 scope link noprefixroute
       valid_lft forever preferred_lft forever

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

Step 14: On the login screen, enter click �YES�� as shown in the image snap 2

Step 15: This is the login page of Xrdp. 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 Debian 11.4. Your feedback is much welcome.

Tags:
isaac
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What is the difference between RDP and Xrdp?

A

Xrdp is a free and open-source implementation of the Microsoft RDP (Remote Desktop Protocol) server that enables operating systems other than Microsoft Windows (such as Linux and BSD-style operating systems) to provide a fully functional RDP-compatible remote desktop experience.

Q

What is the Xrdp port number?

A

Xrdp listens on port 3389 and if you are behind a UFW firewall, you need to open the port to allow inbound traffic from an RDP client.

Q

Does the Xrdp use VNC?

A

In order to relay the graphics and controls between the X Window System and the user, XRDP can utilize several forwarding modes: Xvnc: This mode works by using a VNC server installation.

Q

Is the Xrdp secure?

A

RDP has 3 security levels between the RDP server and the RDP client. Low, medium, and high. Low is 40-bit, data from the client to server is encrypted, the medium is 40-bit encryption both ways, and high is 128-bit encryption both ways. The Xrdp currently supports all 3 encryption levels via the Xrdp.

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 session file. You can either manually create this file or you can use the following procedure to automate the creation of the session file.

Related Tutorials in How to Install Xrdp Server On Debian 11.4

Related Tutorials in How to Install Xrdp Server On Debian 11.4

How to install Gparted on Debian 9.0
How to install Gparted on Debian 9.0
Sep 13, 2017
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Sep 19, 2018
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 qBittorrent on Debian 9.0
How to install qBittorrent on Debian 9.0
Sep 8, 2017
How to Install FileZilla in Debian
How to Install FileZilla in Debian
Nov 29, 2016
How to Install and Configure Mega in Linux
How to Install and Configure Mega in Linux
Jul 19, 2016
How to install Nmap on Debian 9.0
How to install Nmap on Debian 9.0
Sep 9, 2017

Related Forums in How to Install Xrdp Server On Debian 11.4

Related Forums in How to Install Xrdp Server On Debian 11.4

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 On Debian 11.4

Related News in How to Install Xrdp Server On Debian 11.4

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 Sebastian ?
How to change non required to required field in SuiteCRM Custom/Default Modules

How to change not required to the required field in SuiteCRM Custom/Default Modules?

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.