github:https://github.com/AdguardTeam/AdGuardHome/
下载:https://github.com/AdguardTeam/AdGuardHome/releases/tag/v0.105.2
wget https://static.adguard.com/adguardhome/release/AdGuardHome_linux_armv7.tar.gz
tar xvf AdGuardHome_linux_armv7.tar.gz
It will unpack into a new directory called AdGuardHome
.
All you have to do is simply type this command to the Terminal:
cd AdGuardHome
sudo ./AdGuardHome -s install
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.Once it's up and running, you can access your AdGuard Home web interface on port 3000 by typing this in your browser — http://192.168.10.20:3000/
Don't forget to substitute 192.168.10.20
with IP of your Pi.
You can verify that it's working properly by running this on your Pi:
host doubleclick.net 127.0.0.1
If everything works correctly, you will get this output:
Using domain server:
Name: 127.0.0.1
Address: 127.0.0.1#53
Aliases:
Host doubleclick.net not found: 3(NXDOMAIN)
Now, once we've established that AdGuard Home works on our Raspberry Pi, you can use it on other computers in your network by changing their system DNS settings to use Pi's IP address (which is 192.168.10.20
in our case).
You have an option to password-protect your AdGuard Home's web interface so only you can access it.
To do so, stop it first:
sudo ./AdGuardHome -s stop
Then edit the configuration file:
sudo nano /home/pi/AdGuardHome/AdGuardHome.yaml
Find lines containing auth_name: ""
and auth_pass: ""
and replace them with username and password:
auth_name: "your-secret-name"
auth_pass: "your-secret-password"
Substitute name and password with your own, of course.
After you're done editing, save the file and start your AdGuard Home again:
sudo ./AdGuardHome -s start
After that, visiting web interface in a browser will ask for username and password.
查看cpu架构:
root@mv100:~# lscpu
Architecture: armv7l
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3