How to install your own Ubuntu 20.04 Linux server | Part 2 of 10

linux hetzner cloud virtual server tutorial

In Part 2 of the tutorial we'll register and create a Hetzner Cloud Server, then we'll connect to it via ssh in a terminal.

Think first, then act: I'm in no business association with Hetzner. You'll find plenty Virtual Cloud Services on the market like DigitalOcean, AWS, Google Cloud and many more where you can basically do the same thing. I'm just sharing my individual solution here. You might choose a different provider based on your location. For instance there might be legal concerns because of privacy regulations in your country and you might want to have maximum performance in your target market if you serve a website from this server. Take all this into consideration and make a wise decision there. For my purposes Hetzner Cloud is simply the ideal solution.

2. Create Hetzner Cloud Server

  • Register at Hetzner cloud 2_1_01-JohnDevRebel_Blog-install-linux-ubuntu-20_04-create-server-tutorial-hetzner

  • Add new Project

  • Add Server

  • Set your server location

  • Select the Linux distribution

  • Select the installation type. I've chosen Standard but you might want to run a dedicated vCPU instead.

  • Starts small, rescale later

  • Let's skip Volumes and Networks and Firewalls for now to keep it simple

  • I recommend to activate Backups. It will save you from losing your server in case you unintentionally mess with your system configuration along the way. It added 20 % costs on top of the basic server costs. I find it reasonable for having 7 daily backups of your system at hand.

  • We'll skip SSH for now just because we'll come back to it later in the course

  • Last but not least give your server a name

  • Go ahead and buy. It will be set up in just a few seconds

  • Look at your creation. You did it.

3. Connect to Server

  • Check your email You have mail. Hetzner has sent you root login information via email for your first remote login.

  • Connect to Server via SSH & change password

The Course Syllable:

22.05.2021 – Part 1

  1. Introduction & reasoning

29.05.2021 – Part 2

  1. Create Hetzner Cloud Server
  2. Connect to Server

05.06.2021 – Part 3

  1. Update and upgrade Ubuntu installation and install apache2
  2. Install PHP

12.06.2021 – Part 4

  1. Establish ssh keys
  2. Add new sudo user
  3. Deactivate root user
  4. Make new sudo user owner of ssh service

19.06.2021 – Part 5

  1. Buy Domain and point it to Hetzner Server
  2. Create Virtual Host for domain

26.06.2021 – Part 6

  1. Get free Let's Encrypt SSL certificates
  2. Request certificate, active https and force SSL

03.07.2021 – Part 7

  1. Install Git on Remote Server
  2. Create CI/CD user and ssh keys for Gitlab on Remote Server

10.07.2021 – Part 8

  1. Create Gitlab Repository
  2. Establish ssh keys and configure CI/CD

17.07.2021 – Part 9

  1. Install MySQL
  2. Install phpMyAdmin

24.07.2021 – Part 10

  1. Summary of project development workflow
  2. I'll be back – The course update log

See you next week for more


Previous Post Next Post

This site uses cookies to store information on your computer. Some of these cookies are essential, while others help us to improve your experience by providing insights into how the site is being used. ×
Necessary Cookies

Necessary cookies enable core functionality such as page navigation and access to secure areas. The website cannot function properly without these cookies, and can only be disabled by changing your browser preferences.

Analytical Cookies

Analytical cookies help us to improve our website by collecting and reporting information on its usage.

Marketing cookies

We use marketing cookies to help us improve the relevancy of advertising campaigns you receive.