LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-22-2019, 08:23 PM   #16
slacktroll
Member
 
Registered: May 2011
Distribution: Slackware64/current
Posts: 175

Rep: Reputation: 44

Quote:
Originally Posted by MikelN View Post
You can just run Bind with an adblock hosts file to get the same effect. I'm using this https://github.com/StevenBlack/hosts it also includes malware servers and other stuff you can choose to block.
Thanks for the hosts file :^)

I don't understand why someone is over-engineering simple files as that, it's like a one-liner to just git clone the repo and overwrite /etc/hosts with whatever it's in there..

Surfing seems a bit faster!
 
Old 11-22-2019, 11:18 PM   #17
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Quote:
I don't understand why someone is over-engineering simple files as that
Because the hosts file then gets really big.

In a previous post, I shared using dnsmasq. That approach allows using these big hosts files while keeping the system hosts file small and manageable.

I have 274111 sites blocked in my big file.

Quote:
Surfing seems a bit faster!
"Seems"? I've been using dnsmasq in this manner for many years. I started in my dial-up days. I still block everything and anything. When I use a web browser outside the home I become like the proverbial deer in the headlight beam -- I just freeze because of the clutter and noise.
 
Old 11-23-2019, 12:27 AM   #18
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by upnort View Post
When I use a web browser outside the home I become like the proverbial deer in the headlight beam -- I just freeze because of the clutter and noise.
Same here. But I've been using a combo of hosts and browser ad blocker. I made the mistake of browsing on a friends PC and was overwhelmed by all the ads. My home network has grown quite a bit since the last time I posted in this thread so when PROBLEMCHYLD brought it back up, it looks more appealing now.

EDIT:
So I started looking at a source build of Pi-hole, and the Python runs DEEP.

Last edited by Skaendo; 11-23-2019 at 12:30 AM.
 
Old 11-23-2019, 08:57 AM   #19
lamerix
LQ Newbie
 
Registered: Mar 2018
Location: Bulgaria
Distribution: Slackware
Posts: 27

Rep: Reputation: Disabled
If you don't have issues running it in docker https://github.com/pi-hole/docker-pi-hole is an easy solution
 
Old 11-23-2019, 08:06 PM   #20
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
I was able to compile and install

fcgi
lighttpd
php


but the script its NOT letting me go any further with a line 1578: yum: command not found.

I think we might have to revise the script, which is above my pay-grade!!!.........
 
Old 11-23-2019, 08:40 PM   #21
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
yum is the package manager for Red Hat systems. Is the script you downloaded for Red Hat systems?
 
Old 11-23-2019, 08:55 PM   #22
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 was able to compile and install

fcgi
lighttpd
php


but the script its NOT letting me go any further with a line 1578: yum: command not found.

I think we might have to revise the script, which is above my pay-grade!!!.........
Quote:
Originally Posted by upnort View Post
yum is the package manager for Red Hat systems. Is the script you downloaded for Red Hat systems?


They don't have a script for Slackware, hence why I am going the source route that I said a few posts ago. But the Python dependencies run pretty deep and will take some time to sort it out.

Please know that I am building everything from scratch, in python3, and for personal use. But I will share the SlackBuilds when I am finished, just keep in mind that there will be conflicts with SBo packages because I name ALL my own Python libraries like: python3-$PRGNAM
 
Old 11-23-2019, 10:23 PM   #23
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Quote:
Originally Posted by upnort View Post
Code:
addn-hosts=/etc/hosts-blocked
addn-hosts=/etc/hosts-fb
addn-hosts=/etc/hosts-ms
cache-size=10000
log-queries
log-facility=/var/log/dnsmasq
where do current fresh up to date copies of hosts-??? come from? thanks
 
Old 11-23-2019, 10:45 PM   #24
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
Code:
https://github.com/pi-hole/pi-hole/#...omated-install

git clone --depth 1 https://github.com/pi-hole/pi-hole.git Pi-hole
cd "Pi-hole/automated install/"
sudo bash basic-install.sh
 
Old 11-24-2019, 12:17 AM   #25
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
Quote:
Originally Posted by Skaendo View Post

They don't have a script for Slackware, hence why I am going the source route that I said a few posts ago. But the Python dependencies run pretty deep and will take some time to sort it out.

Please know that I am building everything from scratch, in python3, and for personal use. But I will share the SlackBuilds when I am finished, just keep in mind that there will be conflicts with SBo packages because I name ALL my own Python libraries like: python3-$PRGNAM
Much appreciated. I will test your scripts and maybe we can coincide.
 
Old 11-24-2019, 12:43 AM   #26
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
Much appreciated. I will test your scripts and maybe we can coincide.
If you want I can set up a repo on notabug or github.
 
1 members found this post helpful.
Old 11-24-2019, 01:12 AM   #27
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
I got time since the holidays, let's do it..
 
Old 11-24-2019, 01:51 AM   #28
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 got time since the holidays, let's do it..
https://github.com/skaendo/pi-hole-test

I would like to dumb-down php and remove alpine since it is already installed (unless it is really needed like that to build) and probably make it version specific.

If you have a GitHub account I can add you by your username there.

NOTE:
pi-hole-ftl needs work first. Look in /new and see what's in there. There is going to need a user/group at least. Those files are for reference only.

And I have not yet added AdminLTE

Last edited by Skaendo; 11-24-2019 at 02:46 AM.
 
Old 11-24-2019, 10:38 AM   #29
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
I got this error on the pi-hole-ftl compile

Code:
dnsmasq/dhcp.c: In function ‘dhcp_packet’:
dnsmasq/dhcp.c:182:17: error: ‘SIOCGSTAMP’ undeclared (first use in this function)
   if (ioctl(fd, SIOCGSTAMP, &tv) == 0)
                 ^
dnsmasq/dhcp.c:182:17: note: each undeclared identifier is reported only once for each function it appears in
Makefile:120: recipe for target 'dnsmasq/obj/dhcp.o' failed
make: *** [dnsmasq/obj/dhcp.o] Error 1
 
Old 11-24-2019, 12:05 PM   #30
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 got this error on the pi-hole-ftl compile

Code:
dnsmasq/dhcp.c: In function ‘dhcp_packet’:
dnsmasq/dhcp.c:182:17: error: ‘SIOCGSTAMP’ undeclared (first use in this function)
   if (ioctl(fd, SIOCGSTAMP, &tv) == 0)
                 ^
dnsmasq/dhcp.c:182:17: note: each undeclared identifier is reported only once for each function it appears in
Makefile:120: recipe for target 'dnsmasq/obj/dhcp.o' failed
make: *** [dnsmasq/obj/dhcp.o] Error 1
I can't reproduce. The only dhcp.c in my log is as follows:
Code:
cc -c -o dnsmasq/obj/dhcp.o dnsmasq/dhcp.c -g3 -std=gnu11 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector-strong -Wp,-D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -fexceptions -fasynchronous-unwind-tables -Wl,-z,defs -Wl,-z,now -Wl,-z,relro -rdynamic -fno-omit-frame-pointer  -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB -DVERSION=\""pi-hole-2.80"\" -DHAVE_DNSSEC -DHAVE_DNSSEC_STATIC
And continues fine.

But I am working on a dirty install. I am going to reset my testrig and see if I can get it to error.
 
  


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 04:04 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