First you need to gather the installation files in .ISO format for Ubuntu Server linux distribution. You can either transfer this file to a USB stick or use the .ISO in your hypervisor environment.
After installing the Ubuntu Server to your (virtual) machine you are need to proceed by getting the Ubuntu Server updated.
sudo apt-get update
sudo apt-get upgrade
sudo reboot
Automating the apt-get update/upgrade
sudo nano /nano /etc/apt/apt.conf.d/50unattended-upgrades
Upgrading to Pi-hole beta release
Check the version of the installed Ubuntu Server
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
Install Pi-hole
curl -sSL https://install.pi-hole.net | bash
Set/remove password for the web interface
pihole -a -p
Upgrade to the 5.0 beta release
#Upgrade the FTL components to 5.0 beta echo "release/v5.0" | sudo tee /etc/pihole/ftlbranch #Upgrade the CORE components to 5.0 beta pihole checkout core release/v5.0 #Upgrade the web interface to 5.0 beta pihole checkout web release/v5.0
Add custom entries to the ‘custom dns’
Editing the /etc/pihole/custom.list
restarting DNS resolver pihole restartdns
Synchronizing custom.list
sudo scp user@pihole01:/etc/pihole/custom.list /etc/pihole/custom.list