Developer Center

How to Install Ubuntu Desktop on a Droplet

Published on May 31, 2024

How to Install Ubuntu Desktop on a Droplet


DigitalOcean Droplets do not come with a Graphical User Interface (GUI) installed upon creation and are instead usually accessed and managed using the command line. However, you can install Ubuntu Desktop on a Droplet and use a remote desktop client to log in to and interact with the Droplet like a desktop computer. This can allow you to manage certain tools more easily and provide a more familiar environment for you to interact with your server.

In this tutorial, you will set up a display manager on a Droplet, install Ubuntu Desktop, and log in to the Droplet’s GUI using Microsofts Remote Desktop.


To complete this tutorial, you need:

  • A Droplet with at least a 2 GHz dual core processor, 4 GiB of RAM, and 25 GB of storage. The Droplet should be running Ubuntu 20.04 or higher. These are the minimum requirements to run Ubuntu Desktop on your Droplet.
  • To install Microsoft Remote Desktop on your local machine. Microsoft Remote Desktop is available for both Windows and macOS.

Step 1: Install and Set Up xrdp

In order for your local machine to interact with the Droplet’s GUI, you need to install a display server on the Droplet. This server allows remote desktop clients to capture your local machine’s mouse clicks and keyboard strokes and send them to the Droplet’s GUI. You can do this by installing xrdp, a free and open-source display server based on Microsoft’s RDP (Remote Desktop Protocol).

To install xrdp, log in to your Droplet using SSH and then update and upgrade the packages on the Droplet:

sudo apt-get update

Follow the prompts until all the packages have been upgraded.

After upgrading the packages, install xrdp on your machine:

sudo apt-get install xrdp

Once installed, enable xrdp to start on boot by running:

sudo systemctl enable xrdp

This command adds xrdp to the list of applications that Ubuntu automatically starts upon boot.

Lastly, make sure that your Droplet’s UFW firewall rules have been set to accept TCP connections on port 3389:

sudo ufw allow 3389/tcp

This is the port that your remote desktop client attempts to connect to on the Droplet.

Step 2: Install Ubuntu Desktop

Once you have set up xrdp as the Droplet’s display server, you can install the Ubuntu Desktop GUI on your Droplet. Ubuntu has many GUI options available, all with varying degrees benifits and advantages, such as GNOME, KDE Plasma Desktop, and MATE Desktop. Ubuntu Desktop is Ubuntu’s official GUI and is based on the popular GNOME desktop environment for Linux.

To install Ubuntu Desktop on your Droplet, run the following command and follow the prompts:

sudo apt-get install ubuntu-desktop

The installation may take several minutes to download and complete.

Step 3: Create a User

After installing Ubuntu Desktop, you need to create a user on the Droplet that is not the root user. You can use this user name and password to log in to the Droplet’s GUI.

To create new user, use the useradd utility and follow the prompts, replacing your_new_username with your desired username:

adduser your_new_username

The utility guides you through creating a password for the new user and adding any additional information to the user’s profile.

Once you have created the new user, reboot your Droplet to apply all of the changes:


Step 4: Log in to the Droplet

Once your Droplet has rebooted, you can log in to your Droplet using Microsoft Remote Desktop.

To do this, open Microsoft Remote Desktop on your local machine and then click the ‘+’ or the Add PC button to add a new remote connection. In the Add PC window, enter the Droplet’s public IPv4 address to the PC name field.


For a more comfortable user experience, we recommend clicking the Display tab, unchecking the Start session in full screen option, and picking a resolution appropriate for your onscreen work environment.

Once you have set up the connection’s options, click Add. Microsoft Remote Desktop adds the connection as a PC.

To log in to the Droplet, hover your mouse over the new PC, click the three-dots menu (), and then click Connect. When prompted, enter the new user’s username and password. The client logs you into the Droplet’s desktop and your window should look like this.


Step 5: Install Google Chrome (optional)

Ubuntu Desktop does not come with a web browser installed on it. To download Google Chrome onto your new desktop, open a terminal on the Droplet and use the wget utility to download Chrome:


You can find the Terminal application in the Activities menu on the desktop.


After Chrome has downloaded, install it using apt install:

sudo apt install ./google-chrome-stable_current_amd64.deb

Once you have installed Chrome, you can open it from the Activities menu in the upper-left corner of the screen.


In this tutorial, you:

  • Installed xrdp on a Droplet.
  • Installed the Ubuntu Desktop GUI on the Droplet.
  • Created a new user to access the GUI.
  • Logged in to the Droplet’s new dekstop GUI using Microsoft Remote Desktop.
  • (Optionally) Installed Google Chrome on the Droplet.

What’s Next?

After setting up your Ubuntu remote desktop, you can explore all of the features it has to offer and continue to install any programs you need as you would on any PC.

Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

Learn more about our products

About the authors

Still looking for an answer?

Ask a questionSearch for more help

Was this helpful?

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

after the tutorial i got a ssh timeout. Now i tested it again with the complete Gnome package. Onyl with the recovery console i got acces (directly to GUI). I tried to reconfigure the ssh but without success… now when i try to “sudo apt update” i see some failures to fetch specific Digital Ocean Links for Security stuff… but i dont know… (Important: ubuntu 24.04 LTS!)

after reboot, the droplet times out, can you help with this?

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Join the Tech Talk
Success! Thank you! Please check your email for further details.

Please complete your information!

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel