Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hoangtuleulao/d172b183db2065d1511843772ea40c25 to your computer and use it in GitHub Desktop.
Save hoangtuleulao/d172b183db2065d1511843772ea40c25 to your computer and use it in GitHub Desktop.
Create a new Ubuntu VM in Azure with desktop and connect using RDP
http://c-nergy.be/blog/?p=10993
1. Create new Ubuntu Server 16.04 LTS in Azure
2. Open RDP in NSG
3. SSH to VM
4. sudo apt-get update
5. sudo apt-get install ubuntu-desktop
6. wget "http://www.c-nergy.be/downloads/install-xrdp-1.9.1.zip"
7. sudo apt-get install unzip
8. unzip install-xrdp-1.9.1.zip
9. nano install-xrdp-1.9.1.sh (remove Step1 Ubuntu version check)
10. chmod +x ~/Downloads/install-xrdp-1.9.1.sh
11. sudo ./install-xrdp-1.9.1.sh
Keyboard: Go to System Settings in the left menu => Text entry
Install docker
1. sudo apt-get update
2. sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
3. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
4. sudo apt-key fingerprint 0EBFCD88
5. sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
6. sudo apt-get update
7. sudo apt-get install docker-ce
8. sudo docker run hello-world
Install docker compose
1. Check https://github.com/docker/compose/releases
2. sudo curl -L https://github.com/docker/compose/releases/download/1.19.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
3. sudo chmod +x /usr/local/bin/docker-compose
4. docker-compose --version
Install Git (is installed by default):
1. sudo apt-get update
1. sudo apt-get install git
Ubuntu commands:
sudo poweroff
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment