mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Updated Manual installation (markdown)
parent
5efabc08e0
commit
17a72406f2
@ -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.
|
||||
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user