In this article, we will see how to create a Linux virtual machine with Xfce desktop step by step. Xfce desktop is very lightweight and easy to use for a Windows user. If you don’t have an Azure subscription, create a free account before you begin.
Sign in to the Azure portal.
Click on Create a resource and choose Ubuntu Server 18.04 VM
Also Read – How to connect SharePoint with PHP
In the Basics tab, under Project details, make sure the correct subscription is selected and then choose to Create new under Resource group. In the pop-up, type myResourceGroup for the name of the resource group and then choose OK.
Give a valid Virtual Machine Name to your VM and choose region. And In the Image column it will select Ubuntu Server 18.04 VM by default. If you want to changes Size then you can change it. Then choose Authentication type as Password as in the image. If you choose SSH public type, provide an RSA public key in single line format. (It is more complicated than giving a password. So I chose Password authentication.)
Under Inbound port rules > Public inbound ports, choose Allow selected ports and then select SSH (22) , HTTP (80) , HTTPS (443) and RDP (3389) from the drop-down.
and click on Next: Disks
Leave the remaining Tabs defaults. select the Review + create button at the bottom of the page.
On the Create a virtual machine page, you can see the details about the VM you are about to create. When you are ready, select Create.
After some time our VM will be created successfully. Navigate to the Icon. click on the go to Resouce after successfully deployment.
If you check in the inbound port rules in the Networking tab, we can see below rules are added.
Now, our VM is ready to connect with RDP and SSH.
Now we have to option to istall Xfce desktop.
1- Using Command Promp (CMD)
2- Using PuTTY Client.
So first we will use CMD
Open CMD. (Use window + R and Type CMD and Press Enter or Press Window Key or Click on then search CMD/ Command Prompt )
Now go Back to Azure VM and Click on Overview Tab and then Click On Connect.
Now Click on the SSH and then Copy Login VM using Local Account detail.
and Paste that in the CMD and Press enter then type Yes and again press enter and Now type your Password which you created.
Now You will see like this that means you are now logged in UBUNTU.
As we know, Xfce is a package and needs additional disk space. So it will ask for a confirmation like below.
Finally, our Xfce desktop is ready to use.