How To Access Debian Via Remote Desktop From Windows (XRDP)
How To Access Debian Via Remote Desktop From Windows (XRDP)
Introduction
Microsoft developed the Remote Desktop Protocol to streamline and secure connections between remote
Windows machines. However, the technology is not limited to Windows.
The Remote Desktop Connection app allows system administrators to connect to other operating systems,
including Debian, and manage remote workstations and servers.
Accessibility
Essential
1 Script | 8 Cookies
Advertising
39 Scripts
Analytics
22 Scripts | 3 Cookies
Entertainment
2 Scripts
Prerequisites
Preferences
https://phoenixnap.com/kb/debian-remote-desktop 1/16
24/12/2024, 11:39 How to Access Debian via Remote Desktop from Windows (xRDP)
A client Windows machine with network connectivity.
A host machine with Debian 12 installed.
Sudo or root privileges on the host machine.
The following steps explain how to install the lightweight XFCE desktop environment on Debian 12:
Note: This guide focuses on XFCE, but Debian 12 also supports other GUIs and desktop
environments, including GNOME, LXDE, KDE Plasma, and MATE.
1. Access the Debian command line and enter update the package database and upgrade existing packages:
2. Use the following command to install XFCE and the xfce4-goodies utility package:
https://phoenixnap.com/kb/debian-remote-desktop 2/16
24/12/2024, 11:39 How to Access Debian via Remote Desktop from Windows (xRDP)
sudo reboot
You have successfully installed the XFCE desktop environment on Debian 12.
https://phoenixnap.com/kb/debian-remote-desktop 3/16
24/12/2024, 11:39 How to Access Debian via Remote Desktop from Windows (xRDP)
1. Open the terminal in XFCE and use the following command to install xrdp:
https://phoenixnap.com/kb/debian-remote-desktop 4/16
24/12/2024, 11:39 How to Access Debian via Remote Desktop from Windows (xRDP)
2. Check the status of the xrdp server:
2. Locate the following lines and add a # (hashtag) at the beginning of each line:
https://phoenixnap.com/kb/debian-remote-desktop 5/16
24/12/2024, 11:39 How to Access Debian via Remote Desktop from Windows (xRDP)
This ensures that xrdp starts an XFCE session instead of other potential desktop environments.
3. Append the following line to the end of the file. It instructs xrdp to start an XFCE session when an RDP
connection is initiated:
startxfce4
https://phoenixnap.com/kb/debian-remote-desktop 6/16
24/12/2024, 11:39 How to Access Debian via Remote Desktop from Windows (xRDP)
4. Press Ctrl+X, followed by y, and then Enter to save the changes and exit the file.
2. Locate the port parameter in the [Globals] section and set the desired value. In this example, the RDP port is
49974:
port=49974
https://phoenixnap.com/kb/debian-remote-desktop 7/16
24/12/2024, 11:39 How to Access Debian via Remote Desktop from Windows (xRDP)
3. Press Ctrl+X, followed by y, and then Enter to save the changes and exit the file.
https://phoenixnap.com/kb/debian-remote-desktop 8/16
24/12/2024, 11:39 How to Access Debian via Remote Desktop from Windows (xRDP)
Note: Modify the command to open a port of your choice. Ensure that it matches the port
number defined in the xrdp configuration file.
Note: Several tools that can help you check open ports in Linux.
https://phoenixnap.com/kb/debian-remote-desktop 9/16
24/12/2024, 11:39 How to Access Debian via Remote Desktop from Windows (xRDP)
The output confirms the firewall rules have been updated.
Note: If trying to access the Debian machine from outside its local network, you might need to
configure port forwarding on the router or adjust external firewalls.
https://phoenixnap.com/kb/debian-remote-desktop 10/16
24/12/2024, 11:39 How to Access Debian via Remote Desktop from Windows (xRDP)
4. (Optional) The different tabs in the Remote Desktop Connection app allow users to customize and fine-tune
the RDP session settings for optimal performance. This includes adjusting the screen size and color, devices to
use, etc.
5. Enter the IP address or name of the remote Debian system in the Computer field. If you changed the default
port number for RDP connections on Debian, enter the port number after the IP address in the following format:
IP_address:port_number
For example:
234.432.55.109:49974
Note: Consult the following article if you need help locating IP addresses in Linux.
6. Type the username of the Debian user for the RDP connection.
https://phoenixnap.com/kb/debian-remote-desktop 11/16
24/12/2024, 11:39 How to Access Debian via Remote Desktop from Windows (xRDP)
8. Click Connect.
https://phoenixnap.com/kb/debian-remote-desktop 12/16
24/12/2024, 11:39 How to Access Debian via Remote Desktop from Windows (xRDP)
You can now interact with the Debian machine via the established RDP session.
https://phoenixnap.com/kb/debian-remote-desktop 13/16
24/12/2024, 11:39 How to Access Debian via Remote Desktop from Windows (xRDP)
Conclusion
By following the steps in this guide, you have established an RDP session from your Windows system to a
remote Debian machine.
Check out our comprehensive Linux network commands cheat sheet if you need help managing or
troubleshooting network connections on Debian.
Vladimir Kaplarevic
Vladimir is a resident Tech Writer at phoenixNAP. He has more than 7 years of experience in implementing e-
commerce and online payment solutions with various global IT services providers. His articles aim to instill a
passion for innovative technologies in others by providing practical advice and using an engaging writing style.
SysAdmin, Web
Servers
16 Best Syslog
Servers for Linux
and Windows
March 31, 2022
https://phoenixnap.com/kb/debian-remote-desktop 14/16
24/12/2024, 11:39 How to Access Debian via Remote Desktop from Windows (xRDP)
A syslog server
gathers and organizes
log messages from
various devices on the
network. This article
explains what a syslog
server is, its purpose,
and lists examples for
the best free and paid
syslog servers.
READ MORE
Networking
How to Run a
Traceroute on
Linux, Windows &
macOS
August 16, 2021
Networking, SysAdmin
What is ACL in
Networking &
How to Implement
It?
April 21, 2022
https://phoenixnap.com/kb/debian-remote-desktop 15/16
24/12/2024, 11:39 How to Access Debian via Remote Desktop from Windows (xRDP)
READ MORE
Networking
Public vs. Private
IP Address:
What's the
Difference
June 14, 2022
https://phoenixnap.com/kb/debian-remote-desktop 16/16