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
tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe
I'm helping a friend set up an RPi (4, 2gb, jealous) as a little fileserver, Plex server and pihole. Maybe a torrent box thing as well if she needs that at some point.

I'm interested in the Overlay File System option in raspi-config so that she doesn't have to rebuild the thing after a random power failure.



It seems like this is what this fantastic tutorial does https://medium.com/@andreas.schallwig/how-to-make-your-raspberry-pi-file-system-read-only-raspbian-stretch-80c0f7be7353, but all in one option within raspi-config. If I hit this button on my completely unprepared RPi 3 that runs a vpn and pihole and stuff, what's going to happen? Will I be able to turn it off again from within raspi-config?

Adbot
ADBOT LOVES YOU

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe
Crossposting from the Linux thread:

Having kind of a weird issue here with my raspberry pi 3. I run it headless as a pihole and VPN thingy, mostly. Noticed the other night that it wasn't letting me SSH in, so I pulled it off the network and now I'm booting with a monitor attached.

It boots up fine, unless it's connected to ethernet. If the ethernet cable is plugged in, it seems to complete the boot process, then gracefully turns itself off immediately. If I turn it on disconnected, wait for boot, and then plug in the ethernet, it proceeds to turn itself off. The shutdown is verbose but the log moves very fast. So much so that I had to film a slow motion video of it on my iphone to see what it was saying. What kind of keywords should I be using to track down the issue, if this is at all common?

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

Warbird posted:

That’s bizarre. Does the issue persist across SD cards? If not I’d just back up whatever configs you need and red lash the card. PiHole and PiVPN scripts should have you back up and running pretty quick.

That’s a good question. Should I just DD this card to a new one and try to boot it up to test this?

And yeah, I don’t think there’s actually too much on here to worry about just reformatting the thing. Maybe this time go with a read-only file system to preserve the SD card. But I’d rather not, you know?

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

mewse posted:

That's really strange. Did you install a safe shutdown script to go with a case's power button or something?

If there was something wacky going on with the network stack / dhclient I'd expect it to hang, not gracefully do a full shutdown.

Yeah, it's extremely odd. It reproduced in an RPi 2 I tested so it's maybe not hardware. I noticed that eth0 is reading an ipv6 address as well without anything plugged in and disabled ipv6 using this guide. No luck so I'll give a fresh SD with a new OS a go.

Edit: Huh, turns out that it's the UPS monitoring program, nut, causing this. I got through a dietpi install, which was extremely cool and I think I'll stick with it, but when I got to installing nut (no systemd in dietpi, eh?) and copying my configs over, it caused the same problem! Removing nut, nut-client, and nut-server resolves the reboot on ethernet problem.

I just don't know what to do to track this down. Why did it happen all of a sudden? That nut config has been fine for two years now. Do I even need it with dietpi?

tuyop fucked around with this message at 23:34 on Jan 5, 2021

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

Skyarb posted:

Yeah I'm aware which is why I was hoping for a good babies first pi tutorial

You're going to need Balena Etcher and an 8gb+ SD card, and an SD card reader. This is in addition to the Pi hardware (the device, a power supply that does at least 15W for the latest RPi, a keyboard+mouse and a monitor with HDMI and a cable with mini-hdmi on one end. Descriptions of each are here: https://projects.raspberrypi.org/en/projects/raspberry-pi-setting-up/1

1. Download Raspbian or Raspbian Lite (command line interface only): https://www.raspberrypi.org/downloads

2. Insert your SD card into your computer and start Balena Etcher. Select the card from the prompt, then select the downloaded OS file from 1.

3. Once this is complete, plug in all your peripherals and THEN start the RPi by inserting the power plug.

4. This will boot the pi, if you downloaded Raspbian (non-lite), you'll see a splash screen and be able to login.

Default credentials are username: pi and password: raspberry

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe
No problem. For your specific project I think the steps are going to be:

1. Create a mount point and mount your drive(s).
2. Edit fstab so that those devices will mount to the mount points on boot. This part is risky because if you mess it up your pi might not boot again, in which case you'll just have to re-image your card and that's half the fun.
3. Download and configure smb or nfsutils, which are the programs that will share your mounted drives to the network and interpret and route traffic to/from those drives.
4. On your client computer, mount or connect to the host RPi and carry on.

Some things that'll make life easier are: plug the pi into your router directly. Assign it a static IP (and a useful hostname).

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe
Anyone get the Linuxserver versions of sonarr and radarr images to work properly on an rpi 3b? They just won’t display their webpages, and don’t even seem to be creating config files in the mounted directories, even after clowning those directories with the right user.

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

tuyop posted:

Anyone get the Linuxserver versions of sonarr and radarr images to work properly on an rpi 3b? They just won’t display their webpages, and don’t even seem to be creating config files in the mounted directories, even after clowning those directories with the right user.

Cool, turned out to be an OS issue? https://docs.linuxserver.io/faq#my-host-is-incompatible-with-images-based-on-ubuntu-focal

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

Rescue Toaster posted:

I have a big Liebert always online UPS and setup network ups tools on my raspberry pi, then my NAS and pfsense router are ups clients. Works great. If you get fancy with the configs you can do things like have the NAS shut down almost immediately, but the wireless stays up for 10-15 minutes before it shuts down the UPS.

Slight caution: The FreeNAS network ups tools automatic configs are *completely hosed* as a network ups client and will not shutdown until after power is cut, 100%. You have to manually edit the config files.

Would you mind sharing your config details? Are you using nut for this? Somehow mine went wrong and suddenly started causing a shutdown every time ethernet was plugged in. I've just completely forgotten how I set it up at this point.

tuyop fucked around with this message at 04:02 on Jan 21, 2021

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

Blue Footed Booby posted:

I got it working with authentication disabled in transmission. Then when I enable auth it tells me there's an authentication error. Except the web interface works using the same exact name and password (I copy pasted from a text file to make sure). Sonarr is in a docker container; transmission is not. Turning off both whitelist options in transmission via the config changed nothing. Googling is finding a bunch of things my problem definitely isn't, like issues that happen when sonarr and the torrent client are in different containers, or not stopping the daemon before editing the config json file.

Any thoughts? My past few issues were the result of me doing something dumb but I'm having trouble figuring out how to narrow down what the dumb thing is with nothing useful in the log for sonarr, and no log at all for transmission.

I remember needing to copy the hashed password from a config file or use secrets file instead of just the human-entered one.

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

Blue Footed Booby posted:

It automatically replaced the password in the config with the hashed version when I restarted the daemon. Was it something other than that?

I’m testing a version of this in docker right now, actually. Is there any reason you can’t run transmission as a container as well?

Edit: Nah, got stuck in a permissions hate loop so I'm not going to get to test that tonight. Sorry!

tuyop fucked around with this message at 01:39 on Jan 23, 2021

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

Skarsnik posted:

I've got pi's that have been running the same card for 7+ years now that haven't eaten themselves and run 24/7

Good quality cards are a must and do something with your logging

If it's something I don't need the logs for I just mount /var/log to ram. If I know I'll need them between reboots I use the log2ram script which backs them up occasionally

Is that really as simple as this?

https://www.zdnet.com/article/raspberry-pi-extending-the-life-of-the-sd-card/

quote:


Using Tmpfs

As I mentioned, tmpfs can write to RAM instead of the local disk (in this case, the SD card). Using it is simple. All that needs to be done is add an entry to the /etc/fstab file (to mount the folder you wish to have written to RAM) and reboot (so that each mount is cleanly mounted before services start writing files).

The kernel will do the rest for you by managing the writes to the RAM on this virtual filesystem. The really neat part about this is that the kernel will only use the amount of RAM required for writing files, not the entire size of the mount. So, for example, say we add this line to the /etc/fstab file:

tmpfs /var/log tmpfs defaults,noatime,nosuid,mode=0755,size=100m 0 0

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe
Yeah I use an Ubuntu vm with the GUI and everything for some work stuff, and it’s not out of the ordinary for the entire OS to use fewer resources than Teams. Modern desktop applications are ridiculous and presume a really insane amount of computer.

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe
Hey can you guys talking about audio codecs be nicer somehow? I find this really interesting and I’m learning a lot. :ohdear:

Also birbcam is loving awesome.

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

Acer Pilot posted:

I’m looking to play around with a Pi and setup a pihole on my home network. I live in Canada and see that there’s a few kits available on Amazon.ca but some of them seem overkill. What’s the goon recommended build that will run on wifi and be protected from a cat that likes to smell/touch everything? Also, should I use Amazon.ca (I have a $25 gift card here still and Prime) or are there any decent shops in Canada that I can buy from?

So far it looks like I need a Pi 3 or 4 with wifi, a power adapter, and some sort of case? My wifi network is 2 mesh deco m9 pucks so I could potentially plug into Ethernet directly if I buy a switch? I also have a tp link USB wifi dongle available if that makes things cheaper but I’m concerned about drivers.

My main goal is to use this to block ads on an Nvidia shield tv and a fire stick 4K.

Thanks in advance.

The kits are usually a bit of an upsell but the margins are small, maybe $5-$10. The two big vendors in Canada beyond local hobby places are buyapi.ca and canakit.com. The Canakit stuff is extremely nice and what we used when I worked in a library, I don’t remember how much it was. The school I worked with a couple years ago went with buyapi stuff and we kept it pretty close to as low as it could be.

If you really wanna diy, go grab just the pi4 with the RAM you want from buyapi, and the power supply is cheapest ime from Amazon, same with the SD card. Camera and screen if you want were cheapest from buyapi or eBay if you can wait. This should cost you about $100 for a pi4 4gb and only the necessary bits.

Case is a bit of a challenge but the cheapest option is to get one 3D-printed from a design on thingiverse. I think mine cost $1.20 from the library and my 3b has been running in it for basically forever. Friend of mine got one for $12 on Amazon I think.

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe
I’m interested in whether those USB/ethernet hats would let you use the 4 as a pfsense box

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

SamDabbers posted:

Yep, OpenWRT is the way to go for this use case. The Pi 4 can also work well as a router on a stick with a managed switch that does VLANs for a connection with a combined upstream+downstream of less than 500mbps.

Aw drat, I have gigabit.

I think maybe some of these things are just more suited for a Linux server made out of an old workstation or something.

Do love my pi doing pihole+vpn+transmission duty though. And the talk of audio stuff has me planning how I could use some of these old RPi 2s as airplay clients when we move to a bigger place next year.

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

VideoTapir posted:

LITERALLY FARTING AS I POST THIS.

I bought a box of switches, LED, and sensors which were supposed to be labeled, but weren't. Got the RGB LED working. Haven't figured out how to get both directions of the joystick working yet. Got a push button switch that I can't figure out, and which doesn't match any tutorials because, and I think this is going to be a thing with these, it is on its own little circuit board with a resistor already in place.

I really have to figure this poo poo out as I am almost certainly going to be teaching a unit on this stuff (elementary school) by this time next year.

Anyway, this is kinda fun, and so long as I don't have to use Teams, the idea of using this machine (I am posting from a Pi-400 right now) as one of my primary devices is growing on me. Though I may in fact have use for 8 gb. I'm not 100 percent sure about that. I'll probably be getting another one and setting it up similarly to mine for shared coding projects with my daughter (from whom I will be remote much of the time) and for her cartoons (power consumption is much lower on this than the already-low-power SFF PC she's currently using)

Anyway, this is the first time I've had to really sit down with this thing for more than 30 minutes at a stretch since I got it. It's growing on me as I use it.

Got an extra SD card, looking for retropie images for it.

I’ve taught quite a bit of hobbiest electronics and tried to use RPis with middle schoolers, but we ended up splitting off the software and hardware stuff much more granularly than the Pi’s can support. Just a lot going on for people who don’t know that there’s a control key on the keyboard, imo.

Anyway, I could probably share some stuff if you’re interested.

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe
I've got a raspberry pi that used to be doing file share duty but now just does wireguard and some other stuff. I commented out the specific share in smb.conf, which removed the old share folder from my Network lists in Windows and MacOS, but the RPi itself still shows up in those network lists.

What controls that and how do I turn it off?

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

KozmoNaut posted:

The Samba service is still running, so your Pi announces itself on the network even if it doesn't have any shares configured.

Assuming the distro is using systemd, this will stop and disable it:

code:
# systemctl stop smb.service
# systemctl disable smb.service

That's perfect, I knew it'd be something simple like that! Thanks.

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

namlosh posted:

Does anybody have a recommendation on a high quality camera for a pi?

I was looking at this one:
https://www.microcenter.com/product/621303/raspberry-pi-hq-camera-for-raspberry-pi-4

But it’s out of stock locally and then on Amazon I saw a bunch of others that seemed nice or better. Does anyone have any experience with any other ones or is this my best bet?

We’ve been using one of our pi’s with the standard camera to take time lapses… it’s pretty awesome. We left it running during a thunderstorm and got a couple of really good lightning pictures that I’ll never get tired of :) I’m now looking to upgrade

I think the way to go is to grab a used DSLR that is compatible with gphoto2. Like a Canon 60D can probably found for <$400 and it’ll give you so much better value than any RPi ribbon camera. There are even some nice point & shoots on that list that will do time lapses really nicely.

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

Warbird posted:

That looks really neat, but what does it do exactly? (Assuming it's supported) can I use it to "ssh" into my camera and pull out the photos without having to have connect something to something?

Yeah that’s an option for many cameras. I think I’d personally have it save to network storage and then access the photos that way, but the same sort of thing exactly.

I think the benefit is that you have a lot of access to camera settings in a programmable way. So like, OP asked about timelapse and that’s just a one-line command over a terminal.

This person has an example

quote:

The specific capture command which I used with the Canon A40 was the following:

gphoto2 --set-config beep=0 --set-config flashmode=0 --set-config resolution=3 -I 20 -F 3150 --capture-image-and-download --filename "%Y%m%d%H%M%S.jpg"
the meaning of each parameter being:

--set-config beep=0
Disable the beep which is normally emitted by the camera when it focuses the image
--set-config flashmode=0
Disable the flash
--set-config resolution=3
Acquire the image at medium resolution (1024×768)
-I 20
Use a 20 seconds interval between two snapshots
-F 3150
Capture 3150 snapshots

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

Soysaucebeast posted:

That will work. I don't mind programming it myself, but after some googling yesterday I didn't find anything that said it was possible do it automatically via programming. Everything was just showing me how to rotate manually. I appreciate the confirmation that I'm not crazy and this is totally a thing I can do.

Now I just gotta find a good case that's not too expensive but also not weirdly lumpy. Times like this make me wish I had a 3D printer.

Your local library or university may do printing at-cost. Worth a look

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

Warbird posted:

It bears mentioning that a Pi is often readily replaced by a virtual machine assuming you have the infrastructure handy and the gumption to do so. That said for stuff like the HiFi interface and other “I need a small computer physically right here” means it can’t be beat.

Yeah this is what I’ve ended up doing. Home server stuff that outgrew the RPi 3, and the 4 is close enough in price to an old 8th gen intel optiplex or something that it didn’t make sense to upgrade. In the meantime I just use a VM on my windows PC and some docker containers on a Synology.

I do want to get an old speaker and turn it into an airplay/wifi speaker, though. I’m thinking of how to make it mobile though. How do you handle power delivery with that?

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

Pilchenstein posted:

I've got a 2gb pi4 that I use for streaming games/video to the tv in the living room and it works great, but since it's sitting idle while I'm using my pc I'm wondering if there's an easyish way to offload tasks to it? I'm thinking specifically of video processing in Handbrake and a java app, both of which are cross platform, so I can probably figure out a workflow with ssh that involves moving files across the network, running the task and then moving them back but I figured I'd ask if there's a simpler solution beforehand :v:

To be clear, I know the pi will probably do this more slowly than my pc - my aim is just to free up the pc (which is old and shite) so I don't have to sit and twiddle my thumbs while one of these jobs is running.

Yeah that's doable. You may be surprised with how poorly the Pi performs with those tasks, but the easiest workflow is probably something like:

Share original folder on your PC (host) to the network.
Mount that folder in the Pi and add a relevant section to fstab so it happens automatically when you restart the pi. Your computer should be always on for this to work.
Install the relevant tools on the Pi. Configure passwordless ssh.
On the host machine, ssh into the Pi and make sure everything is working.
Take the commands you would ordinarily use for these tools and insert them into bat files or autohotkey scripts or whatever. If configured correctly you should be able to just double-click on a shortcut on the host machine and have it run the appropriate commands on the Pi.

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

Martytoof posted:

Is there a fairly easy and out-of-the-box way to give a Zero some kind of hat to allow it a ~1min runtime on power loss to give it time to force a graceful shutdown?

I’m getting either a Zero W or Zero 2 W to stick onto my RaSCSI hat in an external enclosure to act as storage for some old music gear. I don’t want to have to manually initiate a shutdown via ssh or something when I finish using it for the day, and while I TECHNICALLY don’t need to shut it down at ALL, I do envision turning it off when I’m not using my music stack for days or weeks at a time.

I suppose one way would be to have a soft power button so I can bring it down without actually having to log in, which I guess is my backup position. But honestly if I can just flick off the power bar and not have to think about it then even better.

The pi zero still has the gpio stuff so just get one of those UPS hats.

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe
Yeah the clear 4K transcoding winning setup is one of those NASes like the 220j and an old 8th gen+ i5 workstation running Plex.

But that setup will consume like 120W at full tilt and costs $500 not including disks.

RPis are great for setting up DNS blocking and VPN and light fileshares, or media boxes in weird spots. All that outdoor hobbies datalogging stuff is awesome too! I don’t know why any of that needs 8gb of ram though, lol.

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe
Does anyone have homebridge set up with Sengled WiFi bulbs? HomeKit doesn’t understand that they’re white as well as rgb so can’t make like, warm white and I’d rather not use the Sengled app

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

njsykora posted:

Mine is still rolling after almost 2 years but I am increasingly concerned about how much the rubber around the connectors has worn away over time.

I’ve got three of the Apple lightning ones and they’ve been fine since however long ago they courageously nuked the headphone jack.

tuyop fucked around with this message at 04:02 on Dec 18, 2021

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

Keisari posted:

Thanks all! God drat, it sounds like after I've done all that my Raspberry Pi will be more secure than my laptop. :laffo: It also sounds like if I do those steps I can expose it to the internet to be able to securely play with it when away from home as well.

Please don’t expose your raspberry pi’s SSH ports to the internet. PiVPN is right there! Install a WireGuard server onto it and set your other devices as clients. Duckdns will easily and freely handle the DDNS requirements you’ve got anyway. Expose the WireGuard ports and use WireGuard to access your home network while away.

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

Subjunctive posted:

There’s almost nothing to elaborate on, it really just works. Any kind of device, log in with email, let other specific people access specific machines, works through all the bullshit NAT/double-NAT in the world. DNS just works, file transfer just works, no firewall-port-management etc. All the security properties of WireGuard but as close to “self-managing” as networking can really be. It’s honestly one of the best pieces of technology I’ve ever encountered.

(It’s a bit trickier to get going on Steam Deck in a clean way, but the steps are on a blog post from the team.)

https://tailscale.com/ — no referral code or anything, just good vibes

I may be redoing a bunch of networking this fall so I’m going to look into that. Never could get my hostnames to work over WireGuard or OpenVPN. Everyone just tells me to read the DNS documentation lol.

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

FISHMANPET posted:

I've spent the last nearly 3 years reproducing this which takes advantage of the Pi being a general-purpose computer and its GPIO pins that can be controlled via a purpose-built Python library. I'm not sure what, if any, substitutes there are that thread that needle without costing an arm and a leg.

I googled a bit and watched your awesome slideshow but what does this do?

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe
I'm trying to make a rocket telemetry module using a Pi Pico and this instructable. However, the Instructable is written for an Arduino and to save weight I want to power the whole module off of one or two CR2032 batteries using these holders.

The issue I'm running into is which pin to hook the battery holders up to when the time comes. Do I use pin 40 (VBUS) or pin 39 (VSYS) or both somehow? 3V3_EN on pin 37 instead? I'm not sure at all how to even phrase this beyond the non-answers I found.

Here's the messy wiring diagram for the GY-86 and an Uno R3


And the pinout for a Pico W



From this I think I should wire Pin 36 to 3.3V on the GY-86, SCL to Pin 31, SDA to Pin 32 and INTA to any GPIO pin, say Pin 29.



Would that work?

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

cruft posted:

You might want to ask in the Arduino thread (https://forums.somethingawful.com/showthread.php?threadid=3505424) since I don't think the Pico runs Linux? right? I can't keep up.

The Pico does microcontroller stuff and gets programmed with the Arduino IDE so it handily takes the same code, mostly.

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

priznat posted:

I may have missed a reason but why were you connecting the SCL on one side to SDA on the other and vice versa?

I wasn’t doing that intentionally, I don’t know what scl or sda are and I don’t know if there are specific pins for them 😳😳

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe
Thanks everyone, I’ll cross post this over there :)

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

FISHMANPET posted:

I have a Raspbian OS question!

I built a device using a Rpi that usually runs "headless" (it's interacted with via buttons connected over GPIO). I have Raspbian installed with the full desktop, because it's what I did when I first set it up, and it's potentially useful if I need to go through a web interface to connect to Wifi or something.

Speaking of Wifi, right now it's just using the basic network manager applet (not full-on "Network Manager") and I've noticed that I'm sometimes having trouble when moving between different wifi networks (like my home network and the network at work). Usually it seems like it will only connect to the most recently connected network, though sometimes it will be a little smarter. For example just now I powered it up, after having previously used it at my office, and it connected to my home wifi. But the previous two times I moved between locations it didn't automatically connect, and I had to connect a mouse and keyboard and monitor and manually connect to the network. If I installed Network Manager would it be smarter about reconnecting to known wifi networks? Is there some way to disable the GUI applet and go to manually editing the wpa_supplicant file by hand? Any other things I should be looking at to improve wifi connectivity?

You’ll probably have more luck with this in the Debian community in general. The Linux thread in shsc may be more relevant too.

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

Hadlock posted:

Good thread title

Trying to make a cat food control system because I have one cat who needs special $$$ food and two cats who LOVE special $$$ food.

Here are my two cats


Honda (the one who does not need the $$$ food)


Lucy (who does)


Based on the similarities in their appearance (or the state of individual animal detection), does anyone think it's feasible to have a RPi4 2Gb identify whether a given cat in front of a webcam is Honda or Lucy and then execute an action (basically activate a servo)?

My other option is to go hog wild with some frankenstein RFID system and see if a collar will work or pay to get a cat chipped.

Edit: Getting creative here, I could also put a reflector on a collar and it looks like I can scan a photo the webcam takes for that colour maybe using Pillow's ImagePallette module?

tuyop fucked around with this message at 20:47 on Feb 27, 2023

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

poverty goat posted:

How do I evaluate this? It was a new samsung SD card iirc

Probably the easiest way to troubleshoot this is to just make a backup image off of the SD card, wipe it with the RPi imager, and then try to install like raspbian stock and see if it boots and works properly.

From there you could also configure the pi to boot from USB using the RPi imager (which has eeprom configuration options in the "Utility" tab of the source dropdown) and burn the backup image you just made to an appropriately sized USB stick and see how that goes.

Adbot
ADBOT LOVES YOU

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe

cruft posted:

This isn't troubleshooting, it's nuke/pave. I and at least one other goon feel like SD card failure is a conclusion that the evidence does not point toward. Unless I'm really confused about how the technology works, when an SD card fails, it would manifest as filesystem errors.

Operating systems are complicated and slowdowns on a long-running system could happen for any number of reasons. We don't even know what the process list looks like, much less have any indication of filesystem problems. Assuming it's because of the SD card based solely on "it's slow" seems premature at best, and a malicious waste of OP's time at worst. Remember, in order to do a side-by-side comparison, OP is going to have to reinstall and reconfigure their entire application stack from scratch and send it similar workloads. That's not trivial.

Yeah you're right but I think you're adding steps to the process. I'm just advocating for making a backup image, wiping the SD card, writing a stock image to it, then booting it up again. If the booted stock image works correctly and is snappy, then we have a good idea that the problem is software in the backup image rather than hardware. Then the process is repeated again, SD card wiped and reimaged with the backup. Now the next troubleshooting step of digging into the software can be tried.

Edit: I don't think that's very much time. Like ten minutes of clicking buttons and powercycling a raspberry pi, the rest is just waiting on the imaging process. Last I tried it takes about 90 seconds to image Raspbian to a card and less than 5 minutes to restore a backup image.

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