• Ubuntu 20.04 LTS

  • Add my public key to ~/.ssh/authorized_keys & disable password authentication

  • Extend the filesystem

    • Add the free space to the root partition using cfdisk.
    pvresize /dev/sda1
    lvresize /dev/ubuntu-vg/root /dev/sda1 --resizefs
    
  • Change hostname to korfezkoy

    • apt remove cloud-init
    • hostnamectl set-hostname korfezkoy
  • Disable summary at SSH login

    • chmod -x /etc/update-motd.d/*
  • Remove nameserver configuration from /etc/netplan/*.yaml


  • Add universe repository & install packages

    add-apt-repository universe
    apt install wireguard wireguard-dkms dnsmasq build-essential pkg-config zlib1g-dev bison flex
    
  • netdata /etc/netdata/netdata.conf

    Installation guide | Learn Netdata

  • Install config files

    Sign in to your account

    cd /
    tar xf YonetimVPSBackup.tar
    
  • dnsmasq & systemd-resolved /etc/dnsmasq.d/systemd-resolved.conf /etc/systemd/resolved.conf

  • wireguard /etc/wireguard

    • systemctl enable wg-quick@wg0
    echo "net.ipv4.ip_forward = 1
    net.ipv6.conf.all.forwarding = 1" | sudo tee /etc/sysctl.d/wg.conf > /dev/null
    sudo sysctl --system
    
  • Backup config files

    tar cf YonetimVPSBackup.tar /etc/netdata/netdata.conf /etc/dnsmasq.d/systemd-resolved.conf /etc/systemd/resolved.conf /etc/wireguard