Linux/Virtual Server Setup Guide: Difference between revisions

From Wiki
mNo edit summary
Line 30: Line 30:
<blockquote>
<blockquote>
<pre>
<pre>
apt update
apt install mc aptitude nmap plocate
</pre>
</pre>
</blockquote>
</blockquote>

Revision as of 19:12, 21 November 2023

Step 1: Prepare local linux terminal

  • Install Windows Subsystem for Linux / Ubuntu
  • Open local linux terminal and complete initial setup

Step 2: Generate Cloud VM (Hetzner, Netcup,...)

  • Install latest Ubuntu LTS
  • Set username / password
  • Write down information required for next steps:
    • VM IP, VM username, VM password

Step 3: Adjust DNS entries

  • Make sure the desired DNS entries point to the (new?) IP of the VM. (IPv4 + IPv6)
  • Verify from the local terminal that the DNS entry is pointing to the correct ip
nslookup {hostname}

Step 4: Set up VM

  • Open local linux terminal
  • Connect to VM:
ssh {user}@{hostname}

Install basics

apt update
apt install mc aptitude nmap plocate

Uninstall snapd


Install fail2ban


Add swapfile


Install Docker


Install munin-node


Install wireguard


Optimize terminal looks