LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 12-06-2019, 05:58 PM   #136
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled

Yea, as I was playing around with it the service file only writes 127.0.0.1(?) to resolv.conf. Why or how any other nameservers are in there is beyond me. But it has been working fine here.

But I agree, we can just comment (or patch) out the related lines, that is if we don't want to add openresolv as a dependency. I could set the SlackBuild up to check and patch them out if /usr/sbin/resolvconf is not found.

Otherwise I have been testing using the service file with openresolv and it has been working normal. The only issue that I ran into is if you check /var/log/pihole-FTL.log you will see that it tries to create /run/pihole-FTL.pid and /run/pihole-FTL.port, then complains about something. BUT the default config is set up to use /var/run/pihole-FTL.pid, etc.

This app is starting to feel a little half-baked to me.

Edit:
I did have to adjust the path in the service file for resolvconf from /sbin/resolvconf to /usr/sbin/resolvconf

Last edited by Skaendo; 12-06-2019 at 06:56 PM.
 
Old 12-10-2019, 12:04 AM   #137
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by PROBLEMCHYLD View Post
I'll do what I can.
Quote:
Originally Posted by SavoTU View Post
I have just installed on a clean system the slackbuilds do as expected making things much simpler.
Well if everything has been going well with pi-hole for everyone, I am going to finalize it.

It seems that even though it tries to create /run/pihole-FTL.{pid,port} it doesn't matter because /var/run/pihole-FTL.{pid,port} are created and used.

SO, I am going to add openresolv as a dependency, add the service file as rc.pihole-FTL, add info about how to start it at boot time and edit the uid/gid to something more reasonable, that is also not already accounted for at SBo.

Finally, I am going to move them from GitHub to my NotABug HackBuild repo. (link in sig)

I am/have targeted this for current (15) but if needed, php-7.1 for 14.2 is here thanks to volkerdi. Remember that you will need the alpine SlackBuild/source from 14.2 along side of php so it builds correctly. And you should also fix mod_php as explained here.

I expect to have this all done within a few days, next weekend at the latest.

I also would like to put your names somewhere in the SlackBuilds (SavoTU and PROBLEMCHYLD), so any thoughts about that?
 
1 members found this post helpful.
Old 12-10-2019, 12:13 AM   #138
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
Cool, I'm still around just been busy until the next holidays and after that it's all work from there. I just dug out another old laptop to do some testing. It's a Toshiba, I'll list the specs tomorrow. Thanks for your hard work and dedication.
 
1 members found this post helpful.
Old 12-10-2019, 06:31 PM   #139
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
Here are the specs, https://support.dynabook.com/support...mTOCLink=false

I'm pretty sure its standard because I haven't change anything since back in the day. It's been in the closet for about 3 1/2 years. I might soup it since Intel can't get their schit together. I've never been an AMD fanboy, but since Intel is losing ATM, I don't have much of a choice. This will be my test bed.
 
Old 12-10-2019, 07:15 PM   #140
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by PROBLEMCHYLD View Post
Here are the specs, https://support.dynabook.com/support...mTOCLink=false

I'm pretty sure its standard because I haven't change anything since back in the day. It's been in the closet for about 3 1/2 years. I might soup it since Intel can't get their schit together. I've never been an AMD fanboy, but since Intel is losing ATM, I don't have much of a choice. This will be my test bed.
Yea, I am also on the dump Intel bandwagon.

But those specs make me think that I have a C640 and a D410 sitting in the closet just collecting dust. Maybe I can salvage one of them into a pi-hole.

I have made some more (minor) updates to the pi-hole SlackBuilds, but it wont be until later tonight that I can upload them. The testrig is running a test build right now.
 
1 members found this post helpful.
Old 12-10-2019, 07:22 PM   #141
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
Quote:
Originally Posted by Skaendo View Post
Yea, I am also on the dump Intel bandwagon.

But those specs make me think that I have a C640 and a D410 sitting in the closet just collecting dust. Maybe I can salvage one of them into a pi-hole.

I have made some more (minor) updates to the pi-hole SlackBuilds, but it wont be until later tonight that I can upload them. The testrig is running a test build right now.
The next few days, I'm gonna be extremely busy, but this weekend I'll have time to test. Either way, I'll report my findings. Thanks again.............!!!!!!!!!!!!!!!!!
 
1 members found this post helpful.
Old 12-10-2019, 08:12 PM   #142
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Well, it's done?

rc.pihole-FTL has been created and openresolv has been added as a dependency.

The UID/GID has been set to 500 unless someone from SBo wants to reserve something different.

I have added another option CRON=no/yes, (default is no) to add a cron file in /etc/cron.d that should update the adlists weekly and flush the daily log. This should be considered "testing", as I have not tested it yet. The adlist job should create a log '/var/log/pihole_updateGravity.log', make sure to check if it is working correctly. Otherwise, you can set your own cron jobs via crontab.

I will try to submit it to SBo once Slackware 15 is released, but IDK it just seems a bit "hacky". If they don't want it there, I'll keep it in my HackBuilds. If they do accept it, the UID/GID will likely change again.

Next, I am going to tread in dangerous waters and start setting up my pi-hole server. I think that I successfully had a static IP working on my testrig when I had it wired in so I think that I'll be ok.
 
Old 12-10-2019, 09:32 PM   #143
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
If I get time before the weekend I'll test, if not I'll report back and during the weekend. Thanks again....
 
1 members found this post helpful.
Old 12-14-2019, 04:57 AM   #144
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
Will you be revising the slackbuild on github?
 
Old 12-14-2019, 05:42 AM   #145
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by PROBLEMCHYLD View Post
Will you be revising the slackbuild on github?
Updates? I will once it is in my HackBuilds repo. It's not easy for me to maintain my GitHub repos. I keep all that on a different PC and it gets wiped out regularly. And, I don't particularly like GitHub.

Otherwise I think that it is ready. Is there something that needs to be fixed?
 
Old 12-14-2019, 05:50 AM   #146
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
No, I don't think so. I'll report later. Got the system ready to go.
 
Old 12-14-2019, 11:33 AM   #147
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
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
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -uprN pi-hole-4.3.2/advanced/Scripts/version.sh pi-hole-4.3.2.cust/advanced/Scripts/version.sh
|--- pi-hole-4.3.2/advanced/Scripts/version.sh 2019-09-15 17:52:21.000000000 +0200
|+++ pi-hole-4.3.2.cust/advanced/Scripts/version.sh 2019-09-24 17:39:11.828971157 +0200
--------------------------
patching file advanced/Scripts/version.sh
Using Plan A...
Hunk #1 succeeded at 20.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -uprN pi-hole-4.3.2/pihole pi-hole-4.3.2.cust/pihole
|--- pi-hole-4.3.2/pihole 2019-09-15 17:52:21.000000000 +0200
|+++ pi-hole-4.3.2.cust/pihole 2019-09-24 17:39:11.786971218 +0200
--------------------------
patching file pihole
Using Plan A...
Hunk #1 succeeded at 57.
Hunk #2 succeeded at 75.
Hunk #3 succeeded at 300.
Hunk #4 succeeded at 322.
Hunk #5 succeeded at 335.
Hunk #6 succeeded at 374.
Hmm... Ignoring the trailing garbage.
done
Hmm... Looks like a unified diff to me...
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -uprN AdminLTE-4.3.2/scripts/pi-hole/php/footer.php AdminLTE-4.3.2.cust/scripts/pi-hole/php/footer.php
|--- a/AdminLTE-4.3.2/scripts/pi-hole/php/footer.php 2019-09-22 01:06:20.000000000 +0200
|+++ b/AdminLTE-4.3.2/scripts/pi-hole/php/footer.php 2019-09-24 17:39:11.836971145 +0200
--------------------------
File to patch:

It hangs at compile.

Last edited by PROBLEMCHYLD; 12-14-2019 at 11:34 AM.
 
Old 12-14-2019, 12:31 PM   #148
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by PROBLEMCHYLD View Post
It hangs at compile.
Ooops. Yea that's my fault, fixed.

I moved some things around and forgot that that gets extracted and patched later in the SlackBuild.
 
Old 12-14-2019, 03:58 PM   #149
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
Great job!!!!!!
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2019-12-14_15-54-14.png
Views:	56
Size:	232.1 KB
ID:	32104  
 
1 members found this post helpful.
Old 12-14-2019, 05:26 PM   #150
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by PROBLEMCHYLD View Post
Great job!!!!!!


Did you use the cron job? If so, you'll want to watch the logs and make sure that it is working correctly.
 
  


Reply



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 07:43 AM
Has anyone managed to get a Webcam (or PC CAMERA) working in Slackware 13.0? Norseman01 Linux - Hardware 1 11-03-2012 02: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 04: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 01:09 AM
Look at what I managed to do today with slackware! cereal83 Slackware 22 04-01-2006 02:41 AM

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

All times are GMT -5. The time now is 09:27 AM.

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
Open Source Consulting | Domain Registration