From 17a72406f228a63ab89547bd86f329e99cacd7f0 Mon Sep 17 00:00:00 2001 From: Bill Zimmerman Date: Sat, 25 Apr 2020 19:12:20 +0200 Subject: [PATCH] Updated Manual installation (markdown) --- Manual-installation.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Manual-installation.md b/Manual-installation.md index 6278cc6..eb3b846 100644 --- a/Manual-installation.md +++ b/Manual-installation.md @@ -168,6 +168,24 @@ sudo chown -c root:www-data /etc/raspap/openvpn/*.sh sudo chmod 750 /etc/raspap/openvpn/*.sh ``` +(Optional) Install Ad blocking, enabling the option in RaspAP's config. + +``` +sudo mkdir /etc/raspap/adblock +wget https://raw.githubusercontent.com/notracking/hosts-blocklists/master/hostnames.txt -O /tmp/hostnames.txt +wget https://raw.githubusercontent.com/notracking/hosts-blocklists/master/domains.txt -O /tmp/domains.txt +sudo cp /tmp/hostnames.txt /etc/raspap/adblock +sudo cp /tmp/domains.txt /etc/raspap/adblock +sudo cp installers/update_blocklist.sh /etc/raspap/adblock/ +sudo chown -c root:www-data /etc/raspap/adblock/*.* +sudo chmod 750 /etc/raspap/adblock/*.sh +sudo touch /etc/dnsmasq.d/090_adblock.conf +echo "conf-file=$raspap_dir/adblock/domains.txt" | sudo tee -a /etc/dnsmasq.d/090_adblock.conf > /dev/null +echo "addn-hosts=$raspap_dir/adblock/hostnames.txt" | sudo tee -a /etc/dnsmasq.d/090_adblock.conf > /dev/null +sudo sed -i '/dhcp-option=6/d' /etc/dnsmasq.d/090_raspap.conf +sudo sed -i "s/\('RASPI_ADBLOCK_ENABLED', \)false/\1true/g" includes/config.php +``` + Reboot and it should be up and running. ```