DEV Community

Cover image for Set Up a Linux VM (Ubuntu), step by step
Ola
Ola

Posted on

Set Up a Linux VM (Ubuntu), step by step

A Linux machine is like a magic book on your computer that can do lots of cool things. Now, a Linux machine is like having a special magic book that's really good at following instructions and can change its story whenever you want.

ToyVMUbuntu
A Linux machine refers to a computer that is running the Linux operating system. Linux is an open-source operating system, meaning it's free to use and its source code is available for anyone to view, modify, and distribute. It's known for its stability, security, and flexibility, which is why it's widely used in servers, desktops, and even mobile devices.

Key Points:

  1. Open Source: Unlike Windows or macOS, Linux is open-source, so anyone can contribute to its development or customize it for their needs.
  2. Distributions: There are many versions of Linux, called distributions (or distros), such as Ubuntu, Fedora, and Debian. Each distro has its own set of features and tools.
  3. Command Line: While Linux has graphical user interfaces (GUIs), a lot of powerful features are accessed through the command line.
  4. Security and Stability: Linux is less prone to viruses and malware, making it a popular choice for servers and security-sensitive applications.
  5. Flexibility: Linux can run on a wide range of hardware, from old computers to modern servers and smartphones.

For this tut, we shall walk through the installation of Ubuntu on Microsoft Azure Platform.

Navigate to portal.azure.com and select Virtual Machine
Azure
Create an Azure virtual machine
create azure
Provide details of your virtual machine (Resource group, Virtual machine name, Image)
RG
Here we shall be using SSH for Administrator account
We have provided Username, and Key pair name
SSH
Set Inbound port (22)
Port
Now to the Monitoring tab - Disable boot diagnostic
Next, the tags are set for billing purposes
tags
Almost there, go to Review + create
RC
Next, download private key and create the resource
Iwork

Allow for deployment to be completed
deployment
Select your public IP
IP

Modify Idle time and give DNS name label (optional)
idle time
Open windows cmd
CMD
SSH into the machine

ssh -i /"path name"/KeyPairName.pem azureuser@20.15.105.5
For example;
_ssh -i /"C:\Users\King Fisher\Downloads"/OlaLinuxUbuntu22.pem azureuser@20.15.105.5_

Enter fullscreen mode Exit fullscreen mode

SSH

Hurray >> 🍾Working Ubuntu VM
SSH+CMD

Top comments (0)