Last active
October 11, 2017 13:58
-
-
Save nordineb/534685ba41b8145f44c596e4eea135e5 to your computer and use it in GitHub Desktop.
RDP to a linux VM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
az group create -l westeurope -n testlinuxRG | |
az vm create -n ubuntuvm -g testlinuxRG --image UbuntuLTS --generate-ssh-keys | |
### SSH into the VM | |
sudo apt-get update | |
sudo apt-get install xfce4 | |
sudo apt-get install xrdp | |
echo xfce4-session >~/.xsession | |
sudo service xrdp restart | |
sudo netstat -plnt | grep rdp | |
tail -f /var/log/syslog | |
sudo useradd azureuser | |
sudo passwd azureuser | |
exit | |
az vm open-port --port 3389 --priority 500 -n ubuntuvm -g testlinuxRG | |
### Remote desktop with sesman-Xvnc | |
az group delete -n testlinuxRG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment