How can i create a VM with ubuntu desktop in digital ocean?

Posted October 30, 2019 14.2k views
Ubuntu 18.04

Hi, i’m a developer and i’m new to digital ocean and i like to create a VM with ubuntu desktop to develop client software in rdp or vnc, how can i create a VM with it?


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


What you could do is the following:

  • Setup a new Ubuntu droplet with enough resources

  • SSH to the new droplet and run:

sudo apt-get update
  • Then if you like Gnome desktop, install the following:
sudo apt-get install ubuntu-desktop
  • After that install XRDP:
sudo apt-get install xrdp
  • Enable XRDP to start on boot:
systemctl enable xrdp
  • If you have a firewall make sure that the 3389 port is open:
sudo ufw allow 3389/tcp
  • Add a new low privileged account:

Then you can use any RDP client to connect to your server with your new account.

Hope that this helps!

by Justin Ellingwood
When you first create a new Ubuntu 18.04 server, there are a few configuration steps that you should take early on as part of the basic setup. This will increase the security and usability of your server and will give you a solid foundation for subsequent...