Note: This is setup on Fedora but should work on Linux in general.

Command for automatic install on Linux: Source - AdGuard Github

curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v

To finish setting up, go to the following URL: 127.0.0.1:3000 (NOTE: This may change to port 80 -> 127.0.0.1:80)

Troubleshooting: If the port 53 is already in use

Adguard port already in use

sudo lsof -i tcp:53

Output:
COMMAND   PID            USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
systemd-r 869 systemd-resolve   18u  IPv4  10792      0t0  TCP _localdnsstub:domain (LISTEN)
systemd-r 869 systemd-resolve   20u  IPv4  10794      0t0  TCP _localdnsproxy:domain (LISTEN)

To fix this do the following: source: Github.com/AdugardTeam..

sudo mkdir /etc/systemd/resolved.conf.d
cd /etc/systemd/resolved.conf.d
sudo nano adguardhome.conf
sudo mv /etc/resolv.conf /etc/resolv.conf.backup
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
systemctl reload-or-restart systemd-resolved

Content of adguardhome.conf

[Resolve]
DNS=127.0.0.1
DNSStubListener=no

Troubleshooting: Unable to connect to AdGuard login page -> It moved to 127.0.0.1:80

Solution 1: Visit 127.0.0.1:80

Solution 2:

  1. How to find AdGuardHome.yaml

    sudo find / -type f -name AdGuardHome.yaml

  2. If you want to change it back to port 3000, edit the following line you can access it on port 3000:

From To
address: 0.0.0.0:80 address: 0.0.0.0:3000

Blocklists you may want to add to AdGuard:

Porn blocking: Source: Github

https://raw.githubusercontent.com/columndeeply/hosts/main/hosts00
https://raw.githubusercontent.com/columndeeply/hosts/main/hosts01
https://raw.githubusercontent.com/columndeeply/hosts/main/hosts02
https://raw.githubusercontent.com/columndeeply/hosts/main/hosts03
https://raw.githubusercontent.com/columndeeply/hosts/main/hosts04

Various dns-blocklists: Source: Github