Deploy with Ubuntu VPS (Part 1): How to get your own VPS?

Tram Ho

At work, what we always aim for is our self-worth. As a Web developer, I think just knowing the code is not enough, to increase myself, we need to do more things like, for example, building a server for example. Yes, I think this is what I need to pursue for the time to come. I taught myself and learn to be able to build my own server, feeling very excited. The first post in this series, I would like to share how to hire an Ubuntu VPS, create an Instance and manage a VPS (bow).

1. Sign up for VPS

Note: Visa or Master Card with your own name.

Currently, there are many Cloud Server service providers in the world such as Vultr, Linode, OVHcloud, ..v..v with many preferential promotions. When I first started studying, I signed up for Linode but for some miraculous reason I couldn’t verify my account, so I switched to Vultr. Here I register easier, Vultr is the service provider I am trusting to use for my website.

You can go straight to this link to sign up for the $ 100 package. Or you can go to this link to see more other incentive packages of Vultr.

After clicking the link, you will be taken to the Vultr site and enter your email and password for your account.

Next you enter the email entered above to authenticate your account.

After authentication, you will be taken to a page to enter personal information and card information.

Note: Remember to check the box “I just want to link my credit card – $ 0.00 deposit” to not deduct money from the card.

2. Install VPS (create a new Instance)

After successfully updating your payment information, you will be taken to the Products page, which is where you create a new Instance.

2.1. Select server

First, you will choose the server, there are 4 types of servers to choose from:

  1. Cloud Compute – Create a regular VPS (we will choose this server).
  2. High Frequency – New Vultr package with much higher CPU speed (3GHz and above).
  3. Bare Metal – A physical server service before, but running on the cloud, with many attractive unique features.
  4. Dedicated Cloud – Physical server (this is different from Bare Metal, I have not found it yet.

2.2. Choose where to host

Vultr currently has 17 server locations spread across the globe. We will prioritize the choice of location near Vietnam such as Japan, Korea, Singapore so that the speed of downloading to Vietnam is the fastest. Besides, there are also stable locations like the US (Seattle, New York, …)

Here I choose Singapore.

2.3. Select server type (Server Type)

Currently, major service providers also fully support Linux kernel operating systems such as CentOS, Debian, Ubuntu, … Besides, there is also Windows so you can make game server.

Here, I will choose Ubuntu 16.04 x64 (because I have only worked on Ubuntu and played games on Windows before).

2.4. Select Server Size

  • If the time of your promotion package is indefinitely, you should choose the lowest plan to save, this package is enough to maintain a blog. Later, we can upgrade if the demand increases without being affected at all.
  • And if the package has a time limit, then I would like to choose a little taller package, otherwise you will not use the offer at the end of the period.

Here I choose the $ 20/1 month package, with 2 CPUs, 4Gb RAM and 3000Gb bandwidth.

2.5. Additional Features

There are 3 options for you to add, we should choose the free and necessary ones:

  • Enable IPv6: Activate the IP address range v6, free, should choose.
  • Enable Auto Backups: Automatic backup, takes $ 4/1 month, this is up to you.
  • Enable Private Networking: Add internal IP to connect to VPS, if necessary, select.

Here I just choose IPv6 is enough for me.

2.6. Startup Script – SSH Keys – Server Hostname & Label

In the last 3 items, it is really not too important in our server build and deploy later.

  1. Startup Script : This Vultr allows you to run a VPS customization program (I’m not sure yet).
  2. SSH Keys : If we use SSH keys to log in, it will be safer than logging in directly with the root account. If you work with Git, you also understand how the SSH key is, right. This step we can add SSH key after creating VPS is also.
  3. Server Hostname & Label : The hostname part you enter your main domain name (virtual domain name is also okay, do not need to buy 1 domain name immediately for fee), any Label part can be imported.

After completing the above steps, you press Deploy Now and wait a few minutes for Vultr to initialize.

3. VPS management

After initializing a brand new VPS, you will be returned to the general management page.

Here is the list of servers you have created, to see more details, click on the bold server name and you will be able to access the server’s detail page.

From here, you can see the IP address and root account information to ssh on the server for the first time. However, when ssh up, remember to change the password of the root account too.

After adding ssh-key on your computer to the VPS above, to access and change the root password, just open the terminal on your local machine, type:

The first time ssh uses the root account, you must enter the password, click the eye icon to see the password. Next, change the password of the root account:

Proceed to enter the old pass, new pass. In other service providers, I do not know, but in Vultr, the new pass you set must follow the rules of Vultr pass, which makes me more secure when using this service.

Looking at the image above, you have already seen the parameters of my server, right, I won’t say the details.

4. Fasteners

In the first article in this series, I showed you how to get a pretty good VPS for myself. The village doctors come out, don’t laugh at my writing.

Thank you for reading! (bow).

Share the news now

Source : Viblo