[SOLVED] Has Anyone Managed To Install Pihole On Slackware?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Modem -> WRT3200AC (hidden network) -> WRT600N (DD-WRT, setup as a switch, wireless enabled)
I have a web facing server behind the WRT600N. I also have 5 computers (2 of them not too often) and one PS3 connected wirelessly to one or the other at any given time. Therefore, I will need to do any work on my network in the middle of the night.
So where does the pi-hole land in the mess? I will probably be using a old Dell Dimension C521 that I have stuffed in a closet for now. I would like to use a old Dell Inspiron E1705 (9000) laptop that I have but it has a x86 processor and I need a new power supply for it. So I'll switch it over to that when I get the chance, considering if pi-hole runs on x86 (I cannot see why not).
I just don't like messing with my routers, I converted the 600N to DD-WRT and then set it up as a switch just for my server. The thing is that I have never been able to successfully get any computer to use a static IP. It would be nice to get the server on a static IP I suppose, but it works fine for now.
But my biggest issue is that I need to replace the outlet that my network is plugged into.
You should be fine. My Dell C600 is only Pentium 3 1.2 Ghz. I have a Cable Modem /Router Hitron and a Belkin N300. Both are hidden. Hitron is 5ghz and Belkin 2.4ghz. I have the belkin firewall replacing my hitron because the cable company leaves ports open doing their spying as usual. I then have Pi hole not set to give out DHCP. The 5G Hitron does that. DHCP is also disabled on the belkin. Pi hole Dns is configured through Hitron, which gives out the IP and dns for my network.
Not had the time to test the updated slackbuild but did manage to get the web admin working.
The admin site uses sudo to make talk to the pihole process I am not a fan of it and not sure on the security implications but if you add the below to /etc/sudoers you will be able to make and save changes with apache and i assume the process is the same for lighthttp.
Code:
apache ALL=NOPASSWD: /usr/bin/pihole
As for your network setup are they daisy chained or are both networks connected to different ports on the router? Which devices do the dhcp are they all on the same subnet?
Code:
Modem -> WRT3200AC (hidden network) -> WRT600N (DD-WRT, setup as a switch, wireless enabled)
or
Code:
Modem -> WRT3200AC (hidden network)
-> WRT600N -> server
~> wifi pc etc
Whilst I have been tested i have installed pihole on my desktop (which is always on) then set it as the dns server on my modem. My PC and the voip box are connected via ethernet everything else is wireless. All dns queries are coming to me
As for your network setup are they daisy chained or are both networks connected to different ports on the router? Which devices do the dhcp are they all on the same subnet?
Daisy chained just like this:
Code:
Modem -> WRT3200AC -> WRT600N
My modem is just a cable modem with one LAN jack and no WiFi. It's a Arris TM822.
The WRT600N is only a switch, but it does have WiFi Internet access through it.
I can connect wired or wireless to either the WRT3200 or WRT600 and use Internet.
DHCP is handled through the WRT3200AC.
I am thinking that I need to drop the pi-hole PC on the WRT3200AC.
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- a/gravity.sh
|+++ b/gravity.sh
--------------------------
patching file gravity.sh
Using Plan A...
Hunk #1 succeeded at 19.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- a/pihole
|+++ b/pihole
--------------------------
patching file pihole
Using Plan A...
Hunk #1 succeeded at 17.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|
|--- a/advanced/Scripts/piholeDebug.sh
|+++ b/advanced/Scripts/piholeDebug.sh
--------------------------
patching file advanced/Scripts/piholeDebug.sh
Using Plan A...
Hunk #1 succeeded at 68.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|
|--- a/advanced/Scripts/webpage.sh
|+++ b/advanced/Scripts/webpage.sh
--------------------------
patching file advanced/Scripts/webpage.sh
Using Plan A...
Hunk #1 succeeded at 16.
Hmm... Ignoring the trailing garbage.
done
install: cannot stat 'advanced/Scripts/uninstall.sh': No such file or directory
Doesn't build any further...
Last edited by PROBLEMCHYLD; 11-30-2019 at 04:07 PM.
The admin site uses sudo to make talk to the pihole process I am not a fan of it and not sure on the security implications but if you add the below to /etc/sudoers you will be able to make and save changes with apache and i assume the process is the same for lighthttp.
I'm not sure about the security implications either, but it is nice to hear that Apache is a option. I'll have to add your virtual-host config in there somewhere.
Did you also uncomment mod_php in httpd.conf?
About my network, would it be feasible to put pi-hole on my server? It is kind of a PITA because it is only running a GitLab instance, and un-bundling nginx is such a hassle. I've tried. Many times. I just cannot get it right.
[problemchyld@darkstaresktop] $ pihole-FTL
FATAL: Opening of FTL log (/var/log/pihole-FTL.log) failed!
Make sure it exists and is writeable by user problemchyld
[problemchyld@darkstaresktop] $
[problemchyld@darkstaresktop] $ pihole-FTL
FATAL: Opening of FTL log (/var/log/pihole-FTL.log) failed!
Make sure it exists and is writeable by user problemchyld
[problemchyld@darkstaresktop] $
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.