A Step-by-Step Guide to Installing XRDP on Ubuntu

Davindra Ramadhan,dev

XRDP provides a convenient way to access your Ubuntu machine remotely through a graphical user interface. This guide will walk you through the step-by-step process of installing XRDP on an Ubuntu system

Prerequisites

Before proceeding, ensure you have the following:

An Ubuntu machine (tested on Ubuntu 22.04 LTS). sudo (administrator) privileges. Basic knowledge of command line.

Installation Steps

Step 1: Update Package Repositories

Open a terminal and update the package repositories to ensure you have the latest information about available packages.

sudo apt update && sudo apt upgrade -y

Step 2: Install XRDP Package

sudo apt install xrdp -y

Step 3: Start XRDP Service

After installation, start the XRDP service

sudo systemctl start xrdp

Step 4: Configure Firewall

If you have the UFW (Uncomplicated Firewall) disabled enter "sudo ufw enable" in the command line, allow traffic on the XRDP port (default is 3389):

sudo ufw allow 3389/tcp

Step 5: Verify XRDP Installation

Check if XRDP is running and listening on the default port:

sudo systemctl status xrdp

Step 6: Connect to the Remote Desktop

Open the Remote Desktop Client on your local machine

Enter the IP address or hostname of your Ubuntu machine.

Provide your Ubuntu username and password when prompted.

© Davindra Ramadhan.