Setting up an Ubuntu 20.04 VPS

karnatisrinivas

Srinivas karnati

Posted on February 20, 2022

Setting up an Ubuntu 20.04 VPS

Creating an VPS

VPS, or Virtual Private Server, is an virtual machine configured to operate as a physical computer under virtualization software on a dedicated server. It stores all of the data and files that are useful for your application .You would interact with a VPS just as you would a physical, dedicated server.

I use Digital Ocean for creating my VPS. Ofcourse you can use any of the other service providers. Once you login into your account, you will be presented with the below screen.
Screenshot 2022-02-09 at 9.56.44 AM.png
Click on Create and then Droplets (VPS) , you will get a screen where you can choose the Operating system, and plan size.

Screenshot 2022-02-09 at 9.18.04 AM.png
Choose a region which is closest to your target users. This is basically the physical location where the server will be located. Finally, choose a password and click create droplet.

Screenshot 2022-02-09 at 9.18.34 AM.png

Once the Creation of droplet is done, you will see the details of the Server like Public IP, Private IP and some hardware details.

Screenshot 2022-02-09 at 9.20.08 AM.png

Accessing the Server

We will use an SSH Client to get access to the server's terminal (our VPS), and once we have access to the terminal, we can start executing commands on this server.

To log in to our server, we need to know its public IP address ( which we already have).

Execute the following command on the terminal

ssh root@yourserver_PublicIP
Enter fullscreen mode Exit fullscreen mode

Screenshot 2022-02-09 at 9.22.03 AM.png
Enter the password you have created while creating the droplet in DigitalOcean. Once you enter the password when prompted, you will be logged in as root user.

Screenshot 2022-02-09 at 9.22.44 AM.png

You an execute almost all the Linux Commands on your Ubuntu Server.

Screenshot 2022-02-09 at 9.23.57 AM.png

You can create non-root users, by useradd command.

useradd srinivas
Enter fullscreen mode Exit fullscreen mode

You will be asked to enter some information and a password. Once you are provided the details required, It will create a non root user profile in the server.

The exit command will close the server's terminal.

You can configure as many servers as you want of your choice( but beware of Billing ). Hope you got basic understanding on how to setup a VPS and how to access it. :)

💖 💪 🙅 🚩
karnatisrinivas
Srinivas karnati

Posted on February 20, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related