There are multiple options of installing AdGuard Home. You can use Docker, SnapStore, download and run it manually. In this post, I'll use the automated installation script.
Run the following command first:
sudo apt update
sudo apt install nano bind9-host curl dnsutils
Go to AdGuard Home page and download binaries for your architecture (64-bit [[Linux]] in this example).
To download AdGuard Home and unpack it execute following commands:
wget https://static.adguard.com/adguardhome/release/AdGuardHome_linux_amd64.tar.gz
tar xvf AdGuardHome_linux_amd64.tar.gz
You can find out the directory where you've unpacked it to by running these commands:
cd AdGuardHome
Run
sudo ./AdGuardHome -s install
to install AdGuard Home as a system service.
Here are the other commands you might need to control the service.
AdGuardHome -s uninstall- uninstalls the AdGuard Home service.AdGuardHome -s start- starts the service.AdGuardHome -s stop- stops the service.AdGuardHome -s restart- restarts the service.AdGuardHome -s status- shows the current service status.
Visit the web interface
You can access your AdGuard Home web interface on port 3000 by typing this in your browser — http://1.2.3.4:3000/
Replace 1.2.3.4 with the IP address of your VPS.
Configure your devices to use your AdGuard Home
Now, once you've established that AdGuard Home works on your VPS, you can use it on your machine by changing system DNS settings to use your VPS's public IP address.
