Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Klyith
Aug 3, 2007

GBS Pledge Week

Laserface posted:

so my question is, whats the point of a pi-hole?

getting semi-effective ad blocking on phones or ipads that don't have ublock

otherwise it's completely inferior to ublock


also note that chrome and firefox now use DNS-over-HTTPS by default, which the pihole doesn't cover out of the box. so you were probably getting zero adblocking in your test. to have the pihole work these days you either need to disable DoH in the broswer, block DoH on the router & pihole, or add DoH to the pi.

Adbot
ADBOT LOVES YOU

dupersaurus
Aug 1, 2012

Futurism was an art movement where dudes were all 'CARS ARE COOL AND THE PAST IS FOR CHUMPS. LET'S DRAW SOME CARS.'

Laserface posted:

well after my HiFi Berry RPi i have the bug and bought a zero to make a pi-hole.

something I have noticed is that turning off ublock origin on a page like the daily mail still sees a ton of ads from adsense.

so my question is, whats the point of a pi-hole?

I read somewhere (maybe here?) that ad serving has changed in ways that makes piholes much less effective compared to browser-based blockers.

Laserface
Dec 24, 2004

Thanks, I'll look into that.

Im running ublock on my laptop and adblock plus on my iPhone so if the pi-hole is going to be mostly useless i might repurpose it into another volumio target or something. My TV and xbox thankfully dont get advertisements.

Tweak
Jul 28, 2003

or dont whatever








Floor is lava posted:

Got a piboy dmg set up. Got all kinds of wonky problems. Seems that if i have the screw too tight near the power switch it won't budge. The switch sometimes only seems to partially power the pi and the hat doesn't completely boot all the way. The lcd brightness wheel only seems to have 100% brightness or OFF. Took it apart and flipped the power switch part a few times to make sure it wasn't somehow upsidedown. I also reseated all the ribbon cables and the gpio pins. Already flashed it with the latest firmware and am using the official image.

I can't speak to the LCD wheel since mine appears to work fine, but the power switch button absolutely gets stuck if you twist the closest screw to it too tight.

NPR Journalizard
Feb 14, 2008

Laserface posted:

Thanks, I'll look into that.

Im running ublock on my laptop and adblock plus on my iPhone so if the pi-hole is going to be mostly useless i might repurpose it into another volumio target or something. My TV and xbox thankfully dont get advertisements.

Im still looking for something that will adblock sbs on demand. They get past ublock, which is annoying.

Laserface
Dec 24, 2004

NPR Journalizard posted:

Im still looking for something that will adblock sbs on demand. They get past ublock, which is annoying.

Youtube gets past it now, when this 3mo free trial of YT premium runs out i fear i will be left not choice but to pony up.

evil_bunnY
Apr 2, 2003

Laserface posted:

Youtube gets past it now, when this 3mo free trial of YT premium runs out i fear i will be left not choice but to pony up.
YT mosdef doesn't go through ublock origin

NPR Journalizard
Feb 14, 2008

Laserface posted:

Youtube gets past it now, when this 3mo free trial of YT premium runs out i fear i will be left not choice but to pony up.

Yeah, double check that, because I am only running ublock now, and dont get YT ads on devices that are covered by it.

CatHorse
Jan 5, 2008

Laserface posted:

Youtube gets past it now, when this 3mo free trial of YT premium runs out i fear i will be left not choice but to pony up.
In browser there is ublock and on android newpipe or vanced. Android tv smarttube next

Flipperwaldt
Nov 11, 2011

Won't somebody think of the starving hamsters in China?



As long as the crappy ublock exists, better refer to the proper ublock origin as ublock origin.

Laserface
Dec 24, 2004

MikusR posted:

In browser there is ublock and on android newpipe or vanced. Android tv smarttube next

My TV is WebOS (thank gently caress, android is trash)

Tuxedo Gin
May 21, 2003

Classy.

Anybody have experience using laptop 4G modems on a Pi?

I've got a Huawei ME906J (12d1:1573) in a USB carrier board plugged in to my Pi4 (arm64 OS). Upon plugin and boot the system sees device and adds a wwan0 but gives it a 169.254 IP. This is where I'm stuck. There are a billion pages and tutorials, but many are for specific shields/HATS or specific chips. Many others are outdated (telling me to use wvdial).

I installed ModemManager from the repo (a bit of an older version, apparently) and it can see the modem, but using commands to connect with my APN info give me:
code:
error: couldn't connect the modem: 'GDBus.Error:org.freedesktop.libmbim.Error.Status.Failure: Failure'
Searches don't give me any information about why this error is getting thrown, so I don't even know how to begin troubleshooting. I've messed with the command options a bit (adding more or removing some of the options) but the error remains the same.

Any suggestions?

CatHorse
Jan 5, 2008

Laserface posted:

My TV is WebOS (thank gently caress, android is trash)
My TV is WebOS and I use an Android Box because no ads and WebOS is trash.

Laserface
Dec 24, 2004

Sorry you're wrong as hell and like bad operating systems

endlessmonotony
Nov 4, 2009

by Fritz the Horse

Laserface posted:

Sorry you're wrong as hell and like bad operating systems

All operating systems are bad operating systems.

YOSPOS.

xzzy
Mar 5, 2009

Dumb help me use google question: I want an SD card reader on my rpi, which is easy, there's billions of USB options out there. But I want one that has that nice spring loaded push to lock/unlock feature and I'm not sure what that function is actually called.

If it matters, I'm gonna be stripping it out of its case and mounting it in a custom case along with the pi. So if there's a maker version of one of these that would be sweet.

Warbird
May 23, 2012

America's Favorite Dumbass

That’s a good question. Most everything USBwise is going to be a similar friction hold like the pi has, due to it being cheaper I’d imagine. For a full on camera grip and hold, I honestly have no idea. Wouldn’t mind knowing myself.

CatHorse
Jan 5, 2008

xzzy posted:

Dumb help me use google question: I want an SD card reader on my rpi, which is easy, there's billions of USB options out there. But I want one that has that nice spring loaded push to lock/unlock feature and I'm not sure what that function is actually called.

If it matters, I'm gonna be stripping it out of its case and mounting it in a custom case along with the pi. So if there's a maker version of one of these that would be sweet.

Boot from USB and use the built in one.

Blue Footed Booby
Oct 4, 2006

got those happy feet

MikusR posted:

Boot from USB and use the built in one.

Since he's building a custom case I don't think he wants the board's rear end hanging out.

xzzy
Mar 5, 2009

Well I could work around that, and it's not a bad idea but for the fact I need to use full size SD cards and my trusty first gen pi doesn't have the beans to do what I want (an SD card backer-upper that rsyncs to an SSD).

I did find the right term for those clicky SD slots though, they're called "push/push slots". I can find the components easily enough, but as near as I can tell nothing exists that can connect to a usb port. So I ordered a unit from digikey that I'll break open and stick in the case how I want. The current plan is to get an old VHS tape, gut it, stuff the pi and an lcd screen into it, and use the spring loaded door to sort of protect all the ports. The VHS tape isn't perfect but it's about the right size and it saves me from heading down the road of getting into 3D printing, which I'd like to do someday I just am not sure I'd use it enough to justify buying in.

In approximately 5 years when I actually finish the project I'll post pictures.

spiny
May 20, 2004

round and round and round

xzzy posted:

Dumb help me use google question: I want an SD card reader on my rpi, which is easy, there's billions of USB options out there. But I want one that has that nice spring loaded push to lock/unlock feature and I'm not sure what that function is actually called.

If it matters, I'm gonna be stripping it out of its case and mounting it in a custom case along with the pi. So if there's a maker version of one of these that would be sweet.

'latching' is the term I'd use

edit: I need to read all the replies first :)

Baconroll
Feb 6, 2009
I'm after some advise - I've gone from being a Linux system admin at work, to 18 months ago a very bored Cloud Admin with doing very very little command line stuff and getting kind of jaded.

I was thinking I could do a home Pi project of some kind to spark some enthusiasm in tinkering with computers again - possibly with Pi clustering.

Any suggestions for Pi Cluster related projects that have some practical use in the home environment (e.g. home automation, ip camera security face recognition etc) ?

diremonk
Jun 17, 2008

Has anyone moved their install over to a USB flash or SSD drive? I've heard that using a USB SSD might help in the long run of the drive wearing out but before I spend the cash I'd like to get an opinion that isn't from a RasPi fan site or a random comment on Reddit. I don't think I would really benefit from the possible speed increase of a SSD since I am only really running SWAG and Home Assistant on it, but I'd rather have it now than in six months have to rebuild everything again.

Rand Brittain
Mar 25, 2013

"Go on until you're stopped."
On my Lakka box it made no appreciable speed difference.

Klyith
Aug 3, 2007

GBS Pledge Week

diremonk posted:

Has anyone moved their install over to a USB flash or SSD drive? I've heard that using a USB SSD might help in the long run of the drive wearing out

Most Pi sd cards don't "wear out" as in actually wearing out the flash. Any competent distro made for the Pi does minimal logging and unnecessary writes. sd cards die because:
• they're cheap crap
• a power outage at just the wrong moment can kill them


The places where it makes sense to put additional storage on a Pi are where you need large amounts (fileserver / media device) and applications that need to do lots of writes. Otherwise, when everything you need easily fits on a 32 or 64gb card that costs under $10, just buy a new card if the first one fails.

It's not some guaranteed thing either, my pi's been running for 2 years just fine.

diremonk
Jun 17, 2008

Klyith posted:

Most Pi sd cards don't "wear out" as in actually wearing out the flash. Any competent distro made for the Pi does minimal logging and unnecessary writes.

The places where it makes sense to put additional storage on a Pi are where you need large amounts (fileserver / media device) and applications that need to do lots of writes. Otherwise, when everything you need easily fits on a 32 or 64gb card that costs under $10, just buy a new card if the first one fails.


Good to know, I'll just get another card since the one I have is some no-name brand that I threw in just to get things back up and running when another one did die. I've read that Home Assistant can be hard on cards due to logging, but I'll see how well it does over the next couple of months.

xzzy
Mar 5, 2009

The part of SD cards that does wear out is the cases and it really bugs me. I still have a couple early SD cards, like a 32 megabyte one from the early 2000's and it's built like a tank. The case is glass fiber reinforced and has a nice solid feel to it.

All my modern class 10 era stuff splits at the seam a year of insertion and removal from my camera, they can't even glue them closed properly.

xzzy
Mar 5, 2009

Anyone ever seen an issue where using blkid in a udev rules file results in the pi kernel panicing on boot?

It's not a terribly complicated rule:

code:
IMPORT{program}="/sbin/blkid -o udev -p %N"
ACTION=="add", KERNEL=="sd[a-z][0-9]", ENV{ID_FS_LABEL_FATBOOT}=="EOS_DIGITAL", SYMLINK+="MediaSource", TAG+="systemd", ENV{SYSTEMD_ALIAS}="/dev/MediaSource", ENV{SYSTEMD_WANTS}+="mount-source@%k.service"
But on boot I'll get a kernel panic complaining about a blkid process, and the system reboots a couple seconds later. If I'm fast with the ssh command I can remove the udev file and on the next boot the system stays running, so it's pretty clear to me this config file is the cause.

If the system is up, I install the config file, and run 'udevadm control --reload-rules' everything stays up and the rule will properly mount the storage (it's an SD card on a usb card reader) where I want it. But on the next reboot, it's a panic cycle.

This is an 'Raspberry Pi 4 Model B Rev 1.4' using the os lite install, there are no pending updates to install. It's a pretty clean OS too, all I've done is add this udev file and a couple systemd units to mount the disks.

me your dad
Jul 25, 2006

I'm trying to set up Pi-Hole and I'm having trouble setting the DNS. When I add the Raspberry Pi IP address as the DNS, it breaks my internet access (DNS error).

My router is an ASUS RT-AC66U B1. I set up Pi-Hole on a Raspberry Pi 3 and the last step I got to was when it instructed me to "Configure your devices to use the Pi-Hole as their DNS server".

On my router, I have the Pi IP address in the DNS Server field on DHCP tab of the LAN page. This did not break my internet access, but a quick visit to a new site still showed ads being displayed.



Here's where things broke - I changed the setting for "Connect to DNS Server Automatically" to No, and entered the Pi IP address there. When I applied the changes, it killed my internet access.



Does anyone know what I am missing?

Warbird
May 23, 2012

America's Favorite Dumbass

Set your WAN DNS setting to “Yes”. I have the same router/interface and that’s how mine is rolling. Was there a specific reason you opted for “No”?

Get you internet access going first then we can eyeball why blocking may not be working as expected.

me your dad
Jul 25, 2006

I set it to "No" so that I could manually enter the numbers. I currently have it to "Yes", and I have internet access.

I just went to a news website and saw ads.

evil_bunnY
Apr 2, 2003

There's no reason to gently caress with the DNS settings on your router, you want to edit your DHCP config so that the leases you send out have the Pi address instead of the router.
Paste us your IP config on the client when you modify stuff.

me your dad
Jul 25, 2006

evil_bunnY posted:

There's no reason to gently caress with the DNS settings on your router, you want to edit your DHCP config so that the leases you send out have the Pi address instead of the router.
Paste us your IP config on the client when you modify stuff.

Sorry, I'm really inexperienced with networking so I'm not sure how to do this.

My original intent (aside from ad blocking) was to use Pi-Hole for web filtering so I can keep our kids off porn sites. Am I making this overly complicated?

evil_bunnY
Apr 2, 2003

me your dad posted:

Sorry, I'm really inexperienced with networking so I'm not sure how to do this.

My original intent (aside from ad blocking) was to use Pi-Hole for web filtering so I can keep our kids off porn sites. Am I making this overly complicated?
No (except you should talk to your kids about porn, as a general rule don't try and fix social issues with tech).
Ad blocking and porn blocking could be accomplished the same way, until your kids figure out they can just set another dns server. then you need new firewall rules. then they vpn out, and you need to block that, etc etc until you've turned the whole family into computer touchers.

From what I can tell you're using the external DNS server settings of the router to try and accomplish what you want, instead of trying to pass the right DNS server to the DHCP clients to begin with.

Again, post on the IP config on the client you're testing from. You might still be seeing add simply because the names are still cached for example.

KozmoNaut
Apr 23, 2008

Happiness is a warm
Turbo Plasma Rifle


Yeah, leave the WAN DNS settings at the default, those only affect the world-facing connection, not your own network. As long as you're pushing the Pi-Hole's IP to your clients via DNS, it should work.

Are you seeing any queries on the Pi-Hole's web interface?

evil_bunnY posted:

Ad blocking and porn blocking could be accomplished the same way, until your kids figure out they can just set another dns server. then you need new firewall rules. then they vpn out, and you need to block that, etc etc until you've turned the whole family into computer touchers.

I think most computer touchers start out bypassing parental/school restrictions on computers and networks. I know I certainly did, just so I could uh... Play Quake 2.

Laserface
Dec 24, 2004

me your dad posted:

On my router, I have the Pi IP address in the DNS Server field on DHCP tab of the LAN page. This did not break my internet access, but a quick visit to a new site still showed ads being displayed.

Does anyone know what I am missing?

If you check my previous posts you'll find that most ads aren't actually blocked by a pihole anymore without additional setup.

It's mostly only useful for devices that can't run adblockers in browser like a tv/console/fridge.

kliras
Mar 27, 2021
You also need to flush the DNS for the changes to propagate iirc. "ipconfig /flushdns" on PC in command prompt for instance.

njsykora
Jan 23, 2012

Robots confuse squirrels.


KozmoNaut posted:

I think most computer touchers start out bypassing parental/school restrictions on computers and networks. I know I certainly did, just so I could uh... Play Quake 2.

Yeah my favourite saying about web blockers is if you want to know how to get around a web block, ask a bunch of schoolkids. One kid when I was in school figured out how to get into the network storage and sneaked a Doom install in so we could play deathmatch over the school network.

xzzy
Mar 5, 2009

All these seem like good arguments to press forward with installing the pihole. It's an important education tool.

Adbot
ADBOT LOVES YOU

CFox
Nov 9, 2005
I'll agree with others that whatever limits you setup are going to be bypassed but that's a whole different conversation. As an alternative to a Pi-Hole have you looked into just setting an alternate DNS provider on your router? I see that adguard offers "family protection" DNS servers that should block ads and porn sites: https://adguard.com/en/adguard-dns/overview.html

As far as I know adguard is a good service, I used it before in the past on my router to block ads but haven't in a long time.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply