Skip to content

Instantly share code, notes, and snippets.

@wahyusa
Last active June 20, 2022 04:07
Show Gist options
  • Save wahyusa/a3f25a8cc650bc592f017100d70af4d6 to your computer and use it in GitHub Desktop.
Save wahyusa/a3f25a8cc650bc592f017100d70af4d6 to your computer and use it in GitHub Desktop.
How to install Ubuntu Desktop on DigitalOcean Droplet and Connect with RDP 2022

How to Install Ubuntu Desktop on DigitalOcean Droplet and Connect with RDP 2022

Original source from Bobby Iliev answer on DO Community

Create Droplet

In my case, I am only use password for droplet and not using SSH Key Please create droplet with optimal specification to run ubuntu, you can check ubuntu system requirement

TLDR

2 GHz dual core processor 4 GiB RAM (system memory)

But it depends on your usage, it just recommendation for example I wanted to run VS Code + Firefox on ubuntu desktop, so I prefer the higher droplet XD

Well you can also install xubuntu or lubuntu which is a lite version alternative

Install stuff

  1. Connect with ssh or you can use digital ocean console as well
  2. Then as usual update dependecies and just copy paste things XD

Update dependecies

sudo apt-get update

Here are the gnome ubuntu desktop

sudo apt-get install ubuntu-desktop

Now XRDP the magic

sudo apt-get install xrdp

You should enable XRDP on system boot

systemctl enable xrdp

In case you may have firewall let's open port 3389 for RDP Connection

sudo ufw allow 3389/tcp

Voila!! now you can reboot or just connect with your RDP client to your IPV4 Droplet as usual Then it will use root account and password you've provide in Digital ocean droplet access settings

And, if you feel lag or something like that someone said you can change the crypt level on xrdp settings like this

Open xrdp settings file, find crypt_level then change it to low if you don't understand nano.. after you finish editing just press CTRL+X Y Enter

nano  /etc/xrdp/xrdp.ini

Then if you are windows user like me, you can also set up your windows RDP client like this

  1. Find RDP
  2. Choose more/show option
  3. On display tab, you should see color section then you can choose a lower color High Color (15 bit)
  4. Then if you want to reduce internet usage, in experience tab you may choose connection speed in to the lower one like Modem (56kbps)

Well, I am just a beginner if you found any mistakes or have any suggestion feel free to send it in the comment below.. of course you need github account XD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment