How to Install XRDP on Ubuntu 18.04: 5 Easy Steps

How to Install XRDP on Ubuntu 18.04

Post Date: June 4, 2021
Last Updated: December 05, 2026

Introduction

Install XRDP on Ubuntu 18.04 to enable remote desktop access to your Ubuntu server from Windows, Linux, or other supported operating systems. XRDP is an open-source implementation of the Remote Desktop Protocol (RDP) that allows users to access and manage Linux systems through a graphical desktop interface.

By configuring XRDP on Ubuntu 18.04, administrators can remotely manage server applications, access desktop environments, execute administrative tasks, and monitor system activities without requiring direct physical access to the server.

XRDP supports remote connections through popular applications such as Windows Remote Desktop Connection and Remmina. This makes it easier for system administrators and developers to manage Ubuntu servers from their local machines.

In this tutorial, we will explain how to install XRDP on Ubuntu 18.04, configure the required firewall settings, restart the XRDP service, and establish a remote desktop connection.

Prerequisites

Before starting the XRDP installation on Ubuntu 18.04, make sure you have the following requirements:

  1. Ubuntu 18.04 Server: A running Ubuntu 18.04 server with SSH access.
  2. Root or Sudo Access: Administrative privileges to install packages and configure system services.
  3. Desktop Environment: An existing graphical desktop environment on the Ubuntu server. If one is not installed, you need to install and configure a compatible desktop environment.
  4. Internet Connectivity: An active internet connection to download and install XRDP packages from the Ubuntu repositories.
  5. Firewall Access: Permission to configure firewall rules and allow TCP port 3389 for remote desktop connections.
  6. RDP Client: Windows Remote Desktop Connection or a Linux RDP client such as Remmina.
  7. User Credentials: A valid Ubuntu user account with a password to authenticate the remote desktop session.

How to Install Remote Desktop (Xrdp) on Ubuntu 18.04

Step 1: Log in to your ubuntu server via ssh.

Step 2: Install XRDP packages using the commands.
# sudo apt-get update
# apt-get install xrdp

Proper XRDP Configuration ensures that the remote desktop service is accessible and that the required firewall settings are correctly applied.

Step 3: Allow RDP port 3389 in your server firewall if the firewall is enabled.

Step 4: Restart the XRDP service by using the command.
# sudo /etc/init.d/xrdp restart

Step 5: Now you can verify the remote connection. You should be able to connect to the server via XRDP with your server root username and password. If you are using Linux as your Local desktop, you can connect to the server via the Remmina app. If you are using Windows as your local desktop, Windows users have an RDP connection application by default on their machines.

Once the XRDP service is restarted, you can establish Remote Desktop Access to your Ubuntu server using Windows Remote Desktop Connection or Remmina.

Need help installing XRDP, configuring remote desktop access, managing Ubuntu servers, or securing your Linux infrastructure? Talk to our Linux and DevOps experts to discuss your requirements.

Conclusion

Installing XRDP on Ubuntu 18.04 provides a convenient way to access and manage Linux servers through a graphical remote desktop connection. By installing the XRDP package, configuring firewall access, and restarting the service, administrators can establish remote connections from Windows and Linux systems.

XRDP simplifies remote server administration, reduces the need for direct console access, and provides a familiar desktop experience for managing Ubuntu environments.

Following these steps helps administrators Install XRDP and enable graphical remote access to their Ubuntu 18.04 servers.

For professional Linux server management, remote access configuration, and infrastructure maintenance services, contact Pheonix Solutions.

FAQs

1. What is XRDP in Ubuntu?

XRDP is an open-source implementation of the Remote Desktop Protocol (RDP) that allows users to connect to Linux systems through a graphical desktop environment using an RDP client.

2. Which port does XRDP use in Ubuntu 18.04?

XRDP uses TCP port 3389 by default for remote desktop connections. You must allow this port through the server firewall to establish remote access.

3. Can I connect to Ubuntu 18.04 using Windows Remote Desktop?

Yes. You can use the built-in Windows Remote Desktop Connection application to connect to your Ubuntu server using its IP address, Ubuntu username, and password.

4. Can I use Remmina to connect to an Ubuntu XRDP server?

Yes. Remmina supports RDP connections and can be used from a Linux desktop to remotely access an Ubuntu server running XRDP.

5. Do I need a desktop environment to use XRDP?

Yes. XRDP requires a compatible graphical desktop environment to provide a remote desktop session. If your Ubuntu server has only a command-line installation, you must install and configure a desktop environment.

Official Documentation

Talk to our Linux & Server Management Experts

Installing XRDP on Ubuntu 18.04 enables businesses and system administrators to access and manage Linux servers through a graphical remote desktop connection. Proper XRDP configuration helps simplify remote server administration, improve accessibility, and manage Linux environments without requiring direct physical access.

At Pheonix Solutions, our team helps businesses manage Linux servers, configure remote desktop access, implement cloud infrastructure, troubleshoot server issues, and maintain reliable production environments.

We can help you with:

  • DevOps and Cloud Services to configure Linux environments, automate infrastructure management, implement deployment workflows, and manage cloud-based applications.
  • VPS Hosting to provision and configure virtual private servers for remote desktop access, application hosting, development environments, and business workloads.
  • Dedicated Hosting to provide dedicated server resources for business applications, Linux workloads, remote server management, and performance-demanding environments.
  • Security and Server Maintenance to secure Linux servers, configure firewalls, manage security updates, troubleshoot remote access issues, and maintain server security.
  • Software Maintenance and Support to troubleshoot application issues, maintain Linux-based environments, optimize server performance, and support ongoing infrastructure operations.

Need help installing XRDP, configuring remote desktop access, managing Ubuntu servers, or securing your Linux infrastructure? Talk to our Linux and DevOps experts to discuss your requirements.

admin

Our team has expertise across software and web development, WordPress, e-commerce, mobile applications, UI/UX, cloud and infrastructure, DevOps, CI/CD, API integration, security, testing, automation, and technical support. The team also works with AI-based software solutions, LLMs, AI workflows, AI agents, and intelligent application development to help businesses automate processes and build smarter digital solutions. We focus on developing, deploying, maintaining, and optimising secure, scalable, and reliable technology solutions while helping businesses adopt modern technologies and drive digital transformation.

Leave a Comment

Blog newsletter

One email a month. Only what we learned.

New posts, post-mortems and the occasional strong opinion. No drip campaigns.

No spam. Unsubscribe anytime.

Work with Pheonix Solutions

Have a project in mind? Let’s build it together.

Web, mobile, cloud and DevOps, built and supported by the engineers behind these articles.

Scroll to Top