User Tools

Site Tools


synology:pihole_synology

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
synology:pihole_synology [2019/03/13 19:56] – config:pihole_synology renamed to synology:pihole_synology Wulf Rajeksynology:pihole_synology [2023/05/29 11:55] (current) – external edit 127.0.0.1
Line 50: Line 50:
 ===== Install Pi-hole ===== ===== Install Pi-hole =====
 <code> <code>
-apt-get install lighttpd dnsmasq+apt-get install lighttpd
 </code> </code>
 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 
 </code> </code>
  
-This will restart the webserver, dnsmasq and cron with the new config.+This will restart the webserver and cron with the new config.
 Now you should be able to access it with your browser on http://ip:port/admin/ Now you should be able to access it with your browser on http://ip:port/admin/
  
Line 96: Line 95:
 vi /usr/local/etc/rc.d/S99pihole.sh vi /usr/local/etc/rc.d/S99pihole.sh
 </code> </code>
-<code>+<code - /usr/local/etc/rc.d/S99pihole.sh>
 #!/bin/sh #!/bin/sh
  
Line 102: Line 101:
  
 case $1 in case $1 in
-        start) +    start) 
-            /var/packages/debian-chroot/scripts/start-stop-status start +        /var/packages/debian-chroot/scripts/start-stop-status start 
-                chroot /volume1/@appstore/debian-chroot/var/chroottarget service cron start +        chroot /volume1/@appstore/debian-chroot/var/chroottarget service cron start 
-                chroot /volume1/@appstore/debian-chroot/var/chroottarget service dnsmasq start +        chroot /volume1/@appstore/debian-chroot/var/chroottarget service lighttpd start 
-                chroot /volume1/@appstore/debian-chroot/var/chroottarget service lighttpd start +        chroot /volume1/@appstore/debian-chroot/var/chroottarget service pihole-FTL start 
-                chroot /volume1/@appstore/debian-chroot/var/chroottarget service pihole-FTL start +    ;; 
-        ;; +    stop) 
-        stop) +        chroot /volume1/@appstore/debian-chroot/var/chroottarget service cron stop 
-                chroot /volume1/@appstore/debian-chroot/var/chroottarget service cron stop +        chroot /volume1/@appstore/debian-chroot/var/chroottarget service lighttpd stop 
-                chroot /volume1/@appstore/debian-chroot/var/chroottarget service dnsmasq stop +        chroot /volume1/@appstore/debian-chroot/var/chroottarget service pihole-FTL stop 
-                chroot /volume1/@appstore/debian-chroot/var/chroottarget service lighttpd stop +        /var/packages/debian-chroot/scripts/start-stop-status stop 
-                chroot /volume1/@appstore/debian-chroot/var/chroottarget service pihole-FTL stop +    ;; 
-                /var/packages/debian-chroot/scripts/start-stop-status stop +    restart) 
-        ;; +        $0 stop 
-        restart) +        sleep 1 
-                $0 stop +        $0 start 
-                sleep 1 +    ;; 
-                $0 start +    *) 
-        ;; +        echo "Usage: $0 start|stop|restart" 
-        *) +    ;;
-                echo "Usage: $0 start|stop|restart" +
-        ;;+
 esac esac
 </code> </code>
Line 150: Line 147:
 sudo /var/packages/debian-chroot/scripts/start-stop-status chroot sudo /var/packages/debian-chroot/scripts/start-stop-status chroot
  
-pihole -up+#Regular update fails on synology due to not being able to check disk space, use override option 'do not follow recommendations' instead. 
 +#pihole -up 
 +curl -L https://install.pi-hole.net | bash /dev/stdin --i_do_not_follow_recommendations
  
 #change the webserver port again: #change the webserver port again:
-vi /etc/lighttpd/lighttpd.conf - change the port+#vi /etc/lighttpd/lighttpd.conf - change the port
 sed -i 's/server.port\(.*\)= 80/server.port\1= 2080/g' /etc/lighttpd/lighttpd.conf sed -i 's/server.port\(.*\)= 80/server.port\1= 2080/g' /etc/lighttpd/lighttpd.conf
  
 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 /etc/.pihole do a git pull+cd /etc/.pihole 
 +git pull
 </code> </code>
  
synology/pihole_synology.1552506986.txt.gz · Last modified: (external edit)