Episode 1 : My server SETUP

Hi every one, i am actually building my dedicated server and i came across numerous issues without always finding the solution to the problem i encountered. Bearing that in mind, i decided to make a tutorial detailing the best solution icould fine and how i achieved my goal.

This tutorial is going to cover the following subjects without being limited to :

  1. My server setup
    1. Provider
    2. Hardware specs
    3. The installed operating system
    4. My disk partitioning
    5. Setting backup store for vms and container backups
    6. Setting up a private network for the containers and virtual machines
    7. Setting up port forwarding to be able to connect directly through ssh to the containers and virtual machines
    8. Installation of fish
    9. lxc containners
    10. Proxmox bindmounts explained
    11. Installing a dhcp server
    12. Securing the different sites with lets encrypt
    13. Installing Gitea
    14. Installing emby
    15. Installing nextcloud
    16. Installing a torrent server linked to emby and remote controlled by web or by smartphone
    17. Setting up a personnal blog with hugo with support of disqus comments
    18. Installing OSx Catalina
    19. Todo : install Taiga
    20. Todo : setting up a small dns server
    21. Todo setting up a secured mail server

The tutorial will be divided in multiple parts with this being the first episode

Current setup 27/01/2020

alt test

Provider

Hardware specification

### Operating System

Disk Partitionning

In order to have a modular setup and disposable vms, i decided to store the data of the different containers in the home partition using bind mounts in order to be able to delete when needed a container and quickly spawn a new why keeping the data associated to the service previously running in the deleted container.

  • root : 102400
  • swap : 8192
  • /var : 51200
  • /mnt/data : 51200
  • /mnt/backup : 204800
  • /var/lib/vz : 204800
  • /home : the reste of the 2 Terra byte of space ( approximatively 1.2T )

One every thing is setup, you should have the following output when running the lsblk command

sda      8:0    0    1.8T  0 disk 
├─sda1   8:1    0 1004.5K  0 part 
├─sda2   8:2    0    100G  0 part /
├─sda3   8:3    0      8G  0 part [SWAP]
├─sda4   8:4    0     50G  0 part /var
├─sda5   8:5    0     50G  0 part /mnt/data
├─sda6   8:6    0    200G  0 part /mnt/backup
├─sda7   8:7    0    200G  0 part /var/lib/vz
├─sda8   8:8    0    1.2T  0 part /home
└─sda9   8:9    0      1M  0 part 
{{ template "_internal/disqus.html" . }}