- Create a Ubuntu 18.04 LTS
- Enable xfce4 graphical desktop from here
- Install kubelet from here
| { | |
| "ConnectionStrings": { | |
| "DefaultConnection": "Data Source=.,1433;Initial Catalog=ekart;User Id=xxx;Password=xxx;" | |
| } | |
| } |
| REM Open the port 3389 of the network security group | |
| REM The name of the vm will change based on the distribution | |
| az vm open-port \ | |
| --resource-group myResourceGroups \ | |
| --name ubuntu-vm-lts \ | |
| --port 3389 |
| #!/bin/bash | |
| # Install the ufw service | |
| sudo apt install ufw | |
| # Add the port 3389 and 22 to the firewall | |
| sudo ufw allow from <source-machine-ip> to any port 3389 | |
| sudo ufw allow from <source-machine-ip> to any port 22 | |
| # Refresh the firewalld service |
| #!/bin/bash | |
| # Install the xRDP packages | |
| sudo apt install xrdp | |
| # Create the .xsession file under the home directory with the desktop environment information | |
| echo "xfce4-session" | tee .xsession | |
| # Check the status of the xRDP daemon service | |
| systemctl status xrdp |
| #!/bin/bash | |
| # Downloads the package lists from the repositories and "updates" them to get information | |
| # on the newest versions of packages and their dependencies. | |
| sudo apt update && sudo apt upgrade | |
| # Install the Xfce packages | |
| sudo apt install xfce4 xfce4-goodies |
| #!/bin/bash | |
| # To show the list of available targets | |
| systemctl list-units --type=target --all | |
| # To check the default target of the linux vm | |
| systemctl get-default | |
| # To set the default target of the linux vm | |
| sudo systemctl set-default graphical.target |
| REM Use the following command to connect to the vm with the user azureuser | |
| ssh azureuser@public-ip | |
| REM Use the following command to check the SSH debug trace | |
| ssh -v azureuser@public-ip | |
| REM Use the following command to change the password of the user azureuser inside Linux vm | |
| sudo passwd azureuser |