Skip to content

Day 2 Supplement: Creating an Ubuntu VM with GUI Based Remote Desktop and Docker Image

I’ll probably skip the creating of the a VM, and assume that you already have SSH access to a Ubuntu VM hosted on Azure.

Following this guide here, below are the list of commands


sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce
sudo groupadd docker
sudo usermod -aG docker $USER

https://docs.microsoft.com/en-us/azure/virtual-machines/linux/use-remote-desktop
##https://www.ktchost.com/blog/install-xrdp-and-x11rdp-on-ubuntu-server/

sudo apt-get install lxde -y
sudo apt-get install xrdp -y

/etc/init.d/xrdp start

sudo apt-get install xfce4
sudo echo “xfce4-session” > ~/.xsession
sudo /etc/init.d/xrdp start
sudo /etc/init.d/xrdp status

enabling ubuntu desktop https://sorcia25.wordpress.com/2018/03/02/how-to-setup-an-ubuntu-linux-vm-in-azure-with-remote-desktop-rdp-access-ubuntu-desktop-gui/ and https://buildazure.com/2018/02/28/how-to-setup-an-ubuntu-linux-vm-in-azure-with-remote-desktop-rdp-access/

restart VM

Published inUncategorized

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *