LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-29-2019, 12:35 AM   #61
PROBLEMCHYLD
Member
 
Registered: Apr 2015
Posts: 872

Rep: Reputation: Disabled

Code:
|diff -uprN FTL-4.3.1/Makefile FTL-4.3.1.cust/Makefile
|--- FTL-4.3.1/Makefile	2019-05-25 21:37:26.000000000 +0200
|+++ FTL-4.3.1.cust/Makefile	2019-07-08 16:19:36.739040125 +0200
--------------------------
patching file Makefile
Using Plan A...
Hunk #1 succeeded at 20.
Hunk #2 succeeded at 88.
patch unexpectedly ends in middle of line
Hunk #3 succeeded at 97.
done
./pi-hole-ftl.SlackBuild: line 94: [[: 5.4.0: syntax error: invalid arithmetic operator (error token is ".4.0")
fatal: Not a git repository (or any of the parent directories): .git
Making FTL version on branch master - v4.3.1 (2019-07-08)
mkdir -p obj
 
1 members found this post helpful.
Old 11-29-2019, 12:54 AM   #62
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,134

Rep: Reputation: Disabled
Quote:
Originally Posted by PROBLEMCHYLD View Post
Code:
|diff -uprN FTL-4.3.1/Makefile FTL-4.3.1.cust/Makefile
|--- FTL-4.3.1/Makefile	2019-05-25 21:37:26.000000000 +0200
|+++ FTL-4.3.1.cust/Makefile	2019-07-08 16:19:36.739040125 +0200
--------------------------
patching file Makefile
Using Plan A...
Hunk #1 succeeded at 20.
Hunk #2 succeeded at 88.
patch unexpectedly ends in middle of line
Hunk #3 succeeded at 97.
done
./pi-hole-ftl.SlackBuild: line 94: [[: 5.4.0: syntax error: invalid arithmetic operator (error token is ".4.0")
fatal: Not a git repository (or any of the parent directories): .git
Making FTL version on branch master - v4.3.1 (2019-07-08)
mkdir -p obj
Last one for tonight, I'm tired.
Does it patch and work if you change the -ge to > ?
 
Old 11-29-2019, 01:00 AM   #63
PROBLEMCHYLD
Member
 
Registered: Apr 2015
Posts: 872

Rep: Reputation: Disabled
Quote:
Originally Posted by Skaendo View Post
Last one for tonight, I'm tired.
Does it patch and work if you change the -ge to > ?
YES!!!
 
1 members found this post helpful.
Old 11-29-2019, 01:06 AM   #64
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,134

Rep: Reputation: Disabled
Quote:
Originally Posted by PROBLEMCHYLD View Post
YES!!!
Sweet. I'll have to continue tomorrow. Too much turkey today.
 
Old 11-29-2019, 01:12 AM   #65
PROBLEMCHYLD
Member
 
Registered: Apr 2015
Posts: 872

Rep: Reputation: Disabled
Quote:
Originally Posted by Skaendo View Post
Sweet. I'll have to continue tomorrow. Too much turkey today.
Lol, I chose the HAM.

BTW, lighttpd is needed to use the Web Interface. See you later today.
 
Old 11-29-2019, 02:08 PM   #66
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 187

Rep: Reputation: 38
Cheers for this, its took me a little while but i have it up and blocking adds here on Slackware 64 current ish. I got it logging queries last night but finally have it blocking adds this evening turns out all i needed was cp /etc/dnsmasq.conf and add the upstream dns. I have linked the web dir into Slackware's www root and the admin console does allow viewing but not updating the config files.

Some brief notes:
current has PHP 7.3.10 so skipped your version
bumped the alpine version to compile it on current
I had to change the location of pihole in a few scripts as it is looking in /usr/local/bin
pihole -g needed wildcard_regex_converter.sh
ran sh mimic_setupVars.sh

Created /etc/pihole/adlists.list with the below lists.
Code:
# The below list amalgamates several lists we used previously.
# See `https://github.com/StevenBlack/hosts` for details
##StevenBlack's list
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts

##MalwareDomains
https://mirror1.malwaredomains.com/files/justdomains

##Cameleon
http://sysctl.org/cameleon/hosts

##Zeustracker
https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist

##Disconnect.me Tracking
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt

##Disconnect.me Ads
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt

##Hosts-file.net
https://hosts-file.net/ad_servers.txt
cp /etc/dnsmasq.conf.orig /etc/dnsmasq.conf
uncoment
Code:
conf-dir=/etc/dnsmasq.d/,*.conf
added upstream dns to /etc/pihole/setupVars.conf

Code:
PIHOLE_DNS_1= 1.1.1.1
PIHOLE_DNS_2= 1.0.0.1
and to /etc/dnsmasq.d/01-pihole.conf
Code:
server=1.1.1.1
server=1.0.0.1

Added this to /etc/httpd/extra/httpd-vhosts.conf
Code:
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName pihole
        ServerAlias pi.hole

        DocumentRoot /var/www/htdocs/pihole
        <Directory /var/www/htdocs/pihole>
                Options FollowSymLinks MultiViews
                AllowOverride all
                Order deny,allow
                allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/pihole_error.log
        LogLevel warn
        CustomLog ${APACHE_LOG_DIR}/pihole_access.log combined
</VirtualHost>
 
1 members found this post helpful.
Old 11-29-2019, 03:07 PM   #67
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,134

Rep: Reputation: Disabled
Quote:
Originally Posted by SavoTU View Post
Cheers for this, its took me a little while but i have it up and blocking adds here on Slackware 64 current ish. I got it logging queries last night but finally have it blocking adds this evening turns out all i needed was cp /etc/dnsmasq.conf and add the upstream dns. I have linked the web dir into Slackware's www root and the admin console does allow viewing but not updating the config files.
Great to hear that it is working for you!

I'll be working on this some more today and any help like copies of core files (not Slackware files) with what you have changed or directly via GitHub would be much appreciated.

Documentation on setting it up (README, GitHub Wiki, etc) would be a great help as well.

Last edited by Skaendo; 11-29-2019 at 03:09 PM.
 
Old 11-29-2019, 03:46 PM   #68
PROBLEMCHYLD
Member
 
Registered: Apr 2015
Posts: 872

Rep: Reputation: Disabled
This is why lighttpd is needed if you want to change the settings with a web interface. It's a convenience thing for me. I can change the settings from any device on my network.
 
Old 11-29-2019, 03:47 PM   #69
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 187

Rep: Reputation: 38
Sure if I get time after the kids have gone to bed i will nuke my setup pull your changes then start again making better notes. I will also take a copy of the clean files to diff against.

The documentation has been poor at best, as i am sure you have noticed most things just advise running pihole -r. Most of the info i got was from people running cat on config files and working out what i was missing.

In the mean time I know that i changed the PI_HOLE_BIN_DIR in

/opt/pihole/gravity.sh # line 20
/usr/bin/pihole # line 20

Looking through my bash history I had to create or update

/etc/pihole/dns-servers.conf
Code:
Gogle (ECS);8.8.8.8;8.8.4.4;2001:4860:4860:0:0:0:0:8888;2001:4860:4860:0:0:0:0:8844
OpenDNS (ECS);208.67.222.222;208.67.220.220;2620:0:ccc::2;2620:0:ccd::2
Level3;4.2.2.1;4.2.2.2;;
Comodo;8.26.56.26;8.20.247.20;;
DNS.WATCH;84.200.69.80;84.200.70.40;2001:1608:10:25:0:0:1c04:b12f;2001:1608:10:25:0:0:9249:d69b
Quad9 (filtered, DNSSEC);9.9.9.9;149.112.112.112;2620:fe::fe;2620:fe::9
Quad9 (unfiltered, no DNSSEC);9.9.9.10;149.112.112.10;2620:fe::10;2620:fe::fe:10
Quad9 (filtered + ECS);9.9.9.11;149.112.112.11;2620:fe::11;
Cloudflare;1.1.1.1;1.0.0.1;2606:4700:4700::1111;2606:4700:4700::1001
 
1 members found this post helpful.
Old 11-29-2019, 03:58 PM   #70
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,134

Rep: Reputation: Disabled
Quote:
Originally Posted by SavoTU View Post
Sure if I get time after the kids have gone to bed i will nuke my setup pull your changes then start again making better notes. I will also take a copy of the clean files to diff against.
I am going through your notes and fixing what I can. I suppose bug reports are the best. The setting it up documentation (README) is what I need most.

I think that I have gotten the bin directories figured out, patch added.

The dns-servers is queued.

I don't think that there is a big rush on anything. I have just been plugging along.

Still need to work on a rc.pihole. I am thinking about using rc.lighttpd and editing it for pihole.

Last edited by Skaendo; 11-29-2019 at 04:04 PM.
 
1 members found this post helpful.
Old 11-29-2019, 06:33 PM   #71
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,134

Rep: Reputation: Disabled
Ok,

Before working on the rc.pihole-ftl I need what is in GitHub tested.

There are a couple of things that need to be done manually still according to SavoTU:

run 'sh mimic_setupVars.sh'

cp /etc/dnsmasq.conf.orig /etc/dnsmasq.conf
uncoment
Code:
conf-dir=/etc/dnsmasq.d/,*.conf
Add upstream dns to /etc/pihole/setupVars.conf

Code:
PIHOLE_DNS_1= 1.1.1.1
PIHOLE_DNS_2= 1.0.0.1
and to /etc/dnsmasq.d/01-pihole.conf
Code:
server=1.1.1.1
server=1.0.0.1
Those will probably need to be manually edited when everything is done as well.

I need feedback on where the default pihole-FTL.pid, pihole-FTL.log, pihole-FTL.port, and FTL.sock is.

Once I have the rc.pihole-ftl made and working properly, I would like the pi-hole functions tested. Things like updating pi-hole itself will not work I'm pretty sure along with a few other things.

I still need to finish going through the Arch patches and cherry-pick what we need and don't need, but that will have to happen after pi-hole functions are tested.

There might be some additional configuring needed according to:
https://wiki.archlinux.org/index.php...Pi-hole_server

Note to SavoTU:
If you are not using the included php.SlackBuild on GitHub, you don't need to worry about alpine either. It is only there to satisfy the php.SlackBuild when building on 14.2.

Last edited by Skaendo; 11-29-2019 at 06:55 PM.
 
Old 11-29-2019, 09:01 PM   #72
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 187

Rep: Reputation: 38
Its late so this is a little rushed but wanted to get some thing down for you.

Out with the old in with the new

Code:
removepkg pi-hole-ftl
removepkg pihole
removepkg pi-hole
rm -r /opt/pihole/
rm -r /etc/pihole/
rm /etc/dnsmasq.conf
sh pi-hole-ftl.SlackBuild 
installpkg /tmp/pi-hole-ftl-4.3.1-x86_64-1endo.tgz
sh pi-hole.SlackBuild 
installpkg /tmp/pi-hole-4.3.2-x86_64-1endo.tgz
dnsmasq.conf needs creating otherwise pihole-FTL wont follow the link to 01-pihole.conf

Code:
cp /etc/dnsmasq.conf.orig /etc/dnsmasq.conf
uncomment  conf-dir=/etc/dnsmasq.d/,*.conf
get block lists

pihole -g
Code:
Installation Failure: /etc/pihole/setupVars.conf does not exist! 
Please run 'pihole -r', and choose the 'reconfigure' option to fix.
sh /etc/pihole/mimic_setupVars.sh

pihole -g

Code:
  [✗] /usr/bin/pihole: line 118: service: command not found

  [✗] DNS service is NOT running
I forgot to start pihole-FTL and its not able to oops.

Code:
pihole-FTL 
dnsmasq: bad address at line 33 of /etc/dnsmasq.d//01-pihole.conf


change @DNS@
pihole-FTL
FTL started!


pihole -g
Code:
...
...
 [✓] Reloading DNS service  <- Not sure this is true
  [✓] Pi-hole Enabled
No Internet so restart pihole-FTL

still no internet!
from the log file
warning: interface @INT@ does not currently exist

vi /etc/dnsmasq.d/01-pihole.conf
Code:
remove interface=@INT@
add this as it worked last time and all advise i could see was to remove interface=
except-interface=nonexisting
pihole-FTL

still no internet but pihole is setup and logging requests

pihole -d
Code:
Sourcing setup variables
[i] Sourcing /etc/pihole/setupVars.conf...
/etc/pihole/setupVars.conf: line 5: 1.1.1.1: command not found
/etc/pihole/setupVars.conf: line 6: 1.0.0.1: command not found
removed space from /etc/pihole/setupVars.conf


I did not save after the removal of @INT@ from /etc/dnsmasq.d/01-pihole.conf so I still did not have internet but after that quick edit all is good.
 
1 members found this post helpful.
Old 11-29-2019, 09:07 PM   #73
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 187

Rep: Reputation: 38
Sorry forgot to add that when it was still not working (during the @INT issue of my own making) I reverted my /etc/dnsmasq.d/01-pihole.conf to the below (whitespace removed just now)

Quote:
addn-hosts=/etc/pihole/gravity.list
addn-hosts=/etc/pihole/black.list
addn-hosts=/etc/pihole/local.list
localise-queries
no-resolv
server=1.1.1.1
server=1.0.0.1
cache-size=10000
log-queries
log-facility=/var/log/pihole.log
local-ttl=2
log-async
except-interface=nonexisting
 
1 members found this post helpful.
Old 11-29-2019, 09:10 PM   #74
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,134

Rep: Reputation: Disabled
Quote:
Originally Posted by SavoTU View Post
I did not save after the removal of @INT@ from /etc/dnsmasq.d/01-pihole.conf so I still did not have internet but after that quick edit all is good.
Thank you. I'll do more fine-tuning and hopefully have something closer to finished tomorrow.
 
Old 11-30-2019, 03:29 AM   #75
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,134

Rep: Reputation: Disabled
Ok, It has got to be close now. GitHub

Last time it should need to be tested, and then I'll finalize it and call it done. After that, I will still fix bugs etc, but I think that it is good enough for now. All the scripts have been added, and need to test the hell out of everything. Things that do not work (I have a good idea of what) will be hacked out, and scripts removed (commented out).

So have at it and give it everything that you have and test everything that you can.

Make sure to read the README and README.Slackware!!!

I'm going to need some suggestions about how I should have my home network setup. I have a bunch of things on my network and should get some opinions if I have it setup "correctly". The way I have it now 'works', but I might have things out of order.

But it's after 2AM here now and I am not thinking straight anymore.

Last edited by Skaendo; 11-30-2019 at 03:30 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] slackware 14.2 - Anybody managed to install spotify??? jhsdcsjdcvbdj Slackware 8 03-12-2017 08:43 AM
Has anyone managed to get a Webcam (or PC CAMERA) working in Slackware 13.0? Norseman01 Linux - Hardware 1 11-03-2012 03:22 PM
managed to make files owned by 1016 and cannot delete, i'm using slackware 12 The_spacekadet Linux - Software 2 02-25-2008 05:01 AM
managed to make files owned by 1016 and cannot delete, i'm using slackware 12 The_spacekadet Linux - Newbie 2 02-25-2008 02:09 AM
Look at what I managed to do today with slackware! cereal83 Slackware 22 04-01-2006 03:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration