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
brains
May 12, 2004

eddiewalker posted:

I have a Pi3b attached to a Meanwell PSU along with a bunch of other things, and I’d like to be able to just flip off the mains regularly without the Pi eating it’s SD card.

Is there anything like a “2 minute battery, graceful shutdown pi-hat” I can throw on?

I had a lot of issues with this originally so i tried USB boot with no SD card and that didn't quite solve it either- occasionally it refused to boot back up off the USB drive.

i ended up with a blank SD card with nothing but a good bootcode.bin on it, and a full install on the USB drive. it has gone through many unattended power cycles since then and reboots itself without any issue. since the SD card has nothing being written to it, it never corrupts, and the USB bootcode.bin is unused so it won't corrupt either.

Adbot
ADBOT LOVES YOU

brains
May 12, 2004

Pilchenstein posted:

The reinstall got everything fully up to date so I've no idea what went wrong when I did it myself. Kodi wasn't playing 4k on the previous install but I never got to try it with more video ram allocated so hopefully that'll have helped.

The pi is out of the way behind the telly so swapping cards over would be a bit of a chore too. I'll just stick with raspbian and kodi for now and see how I get on.
PXE boot it instead

brains
May 12, 2004

Subjunctive posted:

For something like this, wouldn’t you want just have a read-only boot trampoline on the sdcard and then run your real root off the hard drives?

when i was using a pi as a JBOD file server, this is what i did. nothing but bootcode.bin on the SD card, and the pi then booted into a usb thumbdrive with the actual OS install. not as stable as a hard drive, but leagues ahead of just relying on an SD card and a dirt cheap solution. if i was still using it for something important these days i think i'd PXE boot it, though.

brains
May 12, 2004

beefnoodle posted:

It can’t block DNS over HTTP, which is how lots of ads get delivered these days.

https://www.nigelayen.com/technology/dns-over-https-and-pihole-on-raspberry-pi/

Blue Footed Booby posted:

I'm not the most knowledgeable guy about networks and the internet, but I have set up pihole. By default pihole doesn't use https, meaning that it only blocks ads from dns over http. The article you linked is about setting up dns over https (for a pihole that's also a DHCP server).

the pihole can disable browser DoH through use of a canary domain. another thing to keep in mind is that for full effect of a pihole (or any DNS filtering), you need to configure your edge firewall/router to intercept any outbound port 53 traffic and send it to the pihole. this will catch any devices or software that have hardcoded DNS servers (like google).

when it comes to blocking ads, DNS filtering like the pihole are really meant to be used in conjunction with browser script blockers that pull most of the weight, like ublock origin. the main function of a DNS filter is to intercept malicious domain requests as well as telemetry/tracker domains, and basic content blocking. a lot of ads are served from the same domain now, like youtube, so only something that gets in the browser and blocks the scripts from loading will be effective.

brains
May 12, 2004

i use a pi 3b for steamlink and it works great. you'll want to used a wired connection, though- the wifi won't cut it. i never did get the xbox controller working wirelessly on the pi because it uses a usb dongle instead of a native bluetooth connection and i couldn't get it to cooperate so i just run it straight off the pc since they're in the same room. i've heard PS4 controllers have better compatibility but i'm not sure.

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