synology:pihole_synology
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
synology:pihole_synology [2019/03/13 19:56] – config:pihole_synology renamed to synology:pihole_synology Wulf Rajek | synology:pihole_synology [2023/05/29 11:55] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 50: | Line 50: | ||
===== Install Pi-hole ===== | ===== Install Pi-hole ===== | ||
< | < | ||
- | apt-get install lighttpd | + | apt-get install lighttpd |
</ | </ | ||
Port 80 is already in use, so modify lighttpd config: | Port 80 is already in use, so modify lighttpd config: | ||
Line 73: | Line 73: | ||
service cron restart | service cron restart | ||
service lighttpd restart | service lighttpd restart | ||
- | service dnsmasq restart | ||
</ | </ | ||
- | This will restart the webserver, dnsmasq | + | This will restart the webserver and cron with the new config. |
Now you should be able to access it with your browser on http:// | Now you should be able to access it with your browser on http:// | ||
Line 96: | Line 95: | ||
vi / | vi / | ||
</ | </ | ||
- | < | + | < |
#!/bin/sh | #!/bin/sh | ||
Line 102: | Line 101: | ||
case $1 in | case $1 in | ||
- | | + | |
- | / | + | / |
- | chroot / | + | chroot / |
- | | + | chroot / |
- | | + | chroot / |
- | chroot / | + | ;; |
- | ;; | + | stop) |
- | stop) | + | chroot / |
- | chroot / | + | chroot / |
- | | + | chroot / |
- | | + | / |
- | chroot / | + | ;; |
- | / | + | restart) |
- | ;; | + | $0 stop |
- | restart) | + | sleep 1 |
- | $0 stop | + | $0 start |
- | sleep 1 | + | ;; |
- | $0 start | + | *) |
- | ;; | + | echo " |
- | *) | + | ;; |
- | echo " | + | |
- | ;; | + | |
esac | esac | ||
</ | </ | ||
Line 150: | Line 147: | ||
sudo / | sudo / | ||
- | pihole -up | + | #Regular update fails on synology due to not being able to check disk space, use override option 'do not follow recommendations' |
+ | #pihole -up | ||
+ | curl -L https:// | ||
#change the webserver port again: | #change the webserver port again: | ||
- | vi / | + | #vi / |
sed -i ' | sed -i ' | ||
service lighttpd restart | service lighttpd restart | ||
service pihole-FTL restart | service pihole-FTL restart | ||
- | service dnsmasq restart | ||
#leave chroot | #leave chroot | ||
Line 164: | Line 162: | ||
#update might require: | #update might require: | ||
- | From / | + | cd / |
+ | git pull | ||
</ | </ | ||
synology/pihole_synology.1552506986.txt.gz · Last modified: (external edit)