Introduction

Have you ever wanted to install Ubuntu Desktop and configure it with XRDP?

Here’s a short guide to get you through it.

Step 1: Installing Ubuntu Desktop

Let’s start by installing Ubuntu Desktop. Just run this command:

sudo apt -y install ubuntu-desktop

Grab a coffee while your terminal goes wild with text. It takes some time for the packages to install.

Step 2: Installing XRDP

Next, install XRDP to allow remote access:

sudo apt -y install xrdp

Enabling XRDP

Ensure XRDP starts automatically with this command:

sudo systemctl enable xrdp

Configuring Your Session

Tell XRDP to use the GNOME session:

echo gnome-session >~/.xsession

And add some important environment variables:

cat >> ~/.xsessionrc<< EOF
export GNOME_SHELL_SESSION_MODE=ubuntu
export XDG_CURRENT_DESKTOP=ubuntu:GNOME
export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
EOF

Step 5: Restarting XRDP

Restart XRDP to apply the changes:

sudo service xrdp restart

Your terminal might groan, but it’ll get the job done.

Step 6: Setting a Password

Set a password for your user:

sudo passwd azureuser

Enter a strong password when prompted.

And that’s it! Your Ubuntu Desktop is now remotely accessible. Enjoy your new setup!