What else to run on a RPi?
from winety@lemmy.zip to linux@lemmy.ml on 19 Jun 20:16
https://lemmy.zip/post/41789436
from winety@lemmy.zip to linux@lemmy.ml on 19 Jun 20:16
https://lemmy.zip/post/41789436
Hiya!
I have a Raspberry Pi 4B set up as a print server, so it has to run 24/7. But it irks me that it’s mostly idling.
I’d move my website to it, but I don’t want to deal with it being open to the internet. The same goes for an e-mail server.
I was also thinking of running a Minecraft server on it. (Being able to play on the same world from different devices is kinda cool.) Alas, my RPi only has 4 GiBs of RAM. I worry that such a load would interfere with the print server.
Any ideas what I could run on it?
threaded - newest
Maybe Nextcloud? Jellyfin?
I’ll add Jellyfin to the list! Do you need a specific client to receive a stream or can say VLC or mpv do it?
Typically a web browser or dedicated app, but it’s open source so there are options. You might be able to stream directly with VLC, not sure.
You can use VLC if you get the stream url via a web browser, first. MPV can do the same.
The problem is VLC/MPV don’t have a built-in way to browse and pick what you want to play.
I wouldn’t recomend Jellyfin if it will transcode anything on a rpi4b.
Pihole, homeassistant, a music server using moodeaudio
Another vote for Pi-hole here. I don’t know how I lived without it before!
I use an adblocker on both my PC and my phone. Does a Pi-hole have many advantages over that?
One major advantage is that on the domestic TV channels here in the UK which have ad breaks (essentially all of them except the BBC) it removes the ads altogether and the programmes run seamlessly from the part before the ad break into the part after. I still smile every time it happens!
That sounds cool as heck! But I am very confused about how television broadcasting works in the UK. This only works with some sort of over-the-internet TV, right?
Yes, that’s right. It would only work with TV over the internet and not with a digital signal transmitted direct to the TV via aerial.
PiHole is DNS based ad blocking and local DNS for everything on your network. So, even things that can’t run their own adblocker.
So it can block ads in Google Chrome on my moms phone? Then I’ll have to figure out how to set it up!
Do you often run into issues when blocking traffic like this? I can imagine some software (i.e. Samsung’s or Google’s bloatware) kicking up a fuss.
Depends on the level of block lists you add. The defaults are pretty sane and it doesn’t need any configuration, you configure your router to use it
Sometimes it can. Google and Samsung never had an issue though. The more ad lists you setup the more false-positives you get.
But 99% of the time it’s fine. The other 1% you open the dashboard and look at the last few blocks and whitelist whatever it causing issues.
Sometimes I’ve found a site that gets partially blocked and causes a fuss. There’s an option to allowlist domain(s).
Also, some sites try to use ad domains to serve legit traffic, and some use legit domains to serve ads, so it’s not perfect, but it works pretty darn well overall.
Ive been using the OISD list for myself and family members for the past couple of years without issues. It’s specifically made to to be unnoticeable, by whitelisting hosts that would cause issues.
One thing to note is that it’s not a full replacement for adblockers, as DNS blockers can only block full hosts and not all ads and tracking are served from dedicated hostnames. Things like YouTube ads will be unaffected by DNS based blocking. It does really make a difference, though, including for apps with banners.
Not just ad blocker, but tracking blockers too. Also, if you’ve got a simple little device like a WiFi controlled outlet switch, and through PiHole you notice it “phoning home” frequently even though you’re not using it… that’s a clue that you might not want to be keeping such things inside the same network where you check on your 401(k) account…
Running those adblockers on your devices is extremely insecure. They register as a VPN and intercept HTTPS traffic. They decrypt the encrypted traffic, filter it, and encrypt again meaning all your communications are signed by this single app’s certificate. Not to mention any vulnerability would wreak havoc.
grapheneos.org/faq#ad-blocking-apps
Does PiHole ever break a family member’s browsing, and then they don’t know to fix the issue because it would involve understanding opening up the PiHole web interface?
Yes, that does sometimes happen but the frequency depends on the blocking list used, or if multiple lists are used. When a family member encounters something like this, I can usually quite quickly identify the relevant blocked item and whitelist it.
And if you aren’t home or available?
Well, it takes a while longer to fix. The only times it’s happened (perhaps twice in 6 months) it’s been when a family member has been trying to buy something from a website. I can also access the Pi-hole remotely and—in the worst case scenario—just turn off blocking altogether for a short period.
Thanks for sharing.
It does look like there’s a way to use PiHole personally for those who share the network with those who don’t want it: leave default DNS server setttings alone except for your own devices.
Another vote for a music server. Gonic/Navidrome is pretty low power and super useful!
Home assistant is another option, but I’ll say that if you’re serious about home automation you’ll quickly outgrow a Pi. It’ll run if you only have a handful of devices though.
I like the music server idea! Where do you get your music? Many artists don’t even sell CDs nowadays.
Home assistant is probably not for me. The house I live in is still very analogue. I enjoy not having to debug software when investigating why there’s no hot water.
Plenty of artists still do sell CDs though. I often buy them at the merch stand at shows. Many also sell DRM free digital files on sites like Bandcamp. I also buy a lot of music at the thrift stores and rip them. If all else fails, there’s always the high seas.
Almost every time I look on Bandcamp, the artist I am looking for isn’t there. :( Also, last time I tried buying something there they only accepted PayPal which I stopped using a while ago. But it seems they accept normal card payments now. Neat.
I buy CDs – I even bought a CD drive to rip them – but international shipping really kills me. I guess brick-and-mortar music shops are still a thing…
Weird. It must be that my taste is very indie/alternative. You can always also check if the artist has their own shop.
That’s how Jonathan Coulton does it. They Might Be Giants does it as well (in addition to a Bandcamp), but most of their stuff from 1990-1996 is stuck on their former label, so they can’t sell DRM-free audio, only vinyl and/or cassette.
There’s also qobuz for your more mainstream music needs. And you can always use a YouTube downloaded like yt-dlp together with a music tagging tool like MusicBrainz Picard.
Its Qobuz 😅
You are right. I’ve corrected my comment
For CDs, Amazon, ebay, or discogs. Digital music I usually get from the artist’s webstore if possible, otherwise I’ll buy it from Amazon or BandCamp.
One heads up, Buying and downloading digital music from Amazon is a pain in the butt if you have an Amazon Music subscription. Easy and straightforward though without.
Apple music is also possible but you have to burn the tracks to CD using itunes to move it out of Apple’s ecosystem.
I also hear good things about Tidal but I’ve never used them.
I did not know that Amazon sold digital music. But it kills me that Amazon and Apple are the two big choices. Out of the frying pan into the fire…
I thought that Tidal was a streaming service, and that you can rip music from there like you can from Youtube or Spotify.
There’s also a lot of smaller solutions, like smaller record label websites, and legacy music stores in whatever country you are.
Nowadays, Apple is only really big for digital music if you are (or were) already really deep in their ecosystem. Not sure I’ve heard of any devices that play nice with their DRM in a while and last I had looked (admittedly many years ago) they did not have a compatible app for Android.
Apple music was bigger back 15 or 20 years ago for digital downloads due in large part to the iPod, though I occasionally hear of some odd band or another that only releases their stuff on iTunes.
And since this is a linux community, as a heads up, iTunes is only marginally functional, last I heard, in linux. Apparently it can’t detect connected devices. You’ll probably need a Windows or Mac system to run iTunes if you want to go that route.
Seconding Bandcamp & Qobuz, or ripping CDs. I use fre:ac to get accurate FLACs.
Yeah, I’m running home assistant with 43 Zigbee devices, 20 Wifi connected devices including about 150 channels of medium-high (once a minute) data logging (temperature, humidity, signal strength, sensor positions, radar occupancy info, etc.), and a Music Assistant instance, and while it’s streaming net-radio I’ve only got 98% idle on my Pi’s CPU, feeling the squeeze already /s.
Your Zigbee hub will run out of capacity long before the Pi. Solution: run multiple Zigbee hubs when you get to that point.
I have around 100 ZigBee devices, roughly 40 WiFi devices, three dozen integrations, Music Assistant, etc. And yeah I was feeling the squeeze. 🤷 Let alone security cameras…
Security cameras will do it, and the Pi5 doesn’t have hardware decode for h.264 the way the Pi4 does, so that becomes a big drain, particularly if you don’t drop the frame rates. I run a separate Pi (5, unfortunately) with a HAILO 8 hat (fortunately) for 5 video streams on Frigate - it needs some airflow to stay cool, but is only running about 30% CPU utilization for my streams.
Nextcloud is very useful, or a lemmy Fediverse Instance
Nextcloud seems a be an alternative to the G-Suite, did I get that right? That move to the cloud kinda missed me. I’m happy with LibreOffice and having everything stored locally.
Do you have experience with running a single-user Lemmy instance? I remember trying out some smaller instances, and they weren’t as federated (i.e. I could see less content) than on the bigger ones.
PiHole, PiVPN, maybe a reverse proxy like nginx proxy manager to make connecting to your various web management portals you have an easy way to map it to a human readable url
SANE scan server? Paperless ngx also comes to my mind, find it pretty useful.
I was trying to set up a scan server last week. No luck yet. 😅
Paperless ngx looks looks amazing. I was actually thinking of finding a solution for this type of thing as pdfgrep was getting kinda slow.
Another idea: dokuwiki, to document your process setting up various service for future reference
Neat idea! If I were that orderly (I’m more of the mindset that what I don’t remember probably wasn’t important), I’d set up a normal website. I enjoy writing HTML by hand.
The latest versions won’t work. It has problems loading the chunks.
Source: Tried it myself
Thanks for the info. I won’t even try then.
On my Rpi4B I run syncthing 24/7. It acts as my sync hub. All other machines are connected to it.
Kavita, Komga, or calibre-web? I love having a book and comics server.
I’ve got Jellyfin running on an odroid, and it’s pretty solid.
Not sure if you’re the type to need access to your home network while away, but I also use a pi zero as my “login gateway”–I forward just port 22 to it from the WAN, and I have ssh set up to only allow logins with a key. I can set up dynamic port forwarding and tunnel through to my home network, and that pi zero has no other function (so even if I screw something else up on another server, I can still access my network).
Another vote for PiHole. It keeps your home network cleaner by ignoring the ads.
qbittorrent (docker) 😁😎
You can seed Anna’s Archive, the largest public collection of texts:
annas-archive.org/torrents
Can also do the same for scihub or archive.org but I think only on an individual basis.
I run AdGuard Home, WireGuard and a couple of other things on my 4B, all in Docker.
I used to run HomeAssistant on our for a while, but they stopped supporting that architecture (armhf?). Also used to run Unbound on it.
HomeAssistant is still supported on Pi4b
It’s support for the rpi3 that is getting fased out.
Odd, it must be the Docker image I’m using, then. Thanks for clarifying.
I suppose it works best with haos installed on the Rpi
Paperless ngx
You could also setup a git repo for your config files. That way you could revert changes, if you break something.
If you don’t want do open your pi up to the internet you could take a look at tailscale. I use this script on my laptop and home pc to share files with sshfs while having any other traffic go through mullvad. Set this up on your pi with it as an exit node and you basically have access from anywhere.
Get yourself and adsb antenna and feed flightaware, flightradar24, and adsbexchange. Help track the skies!
Jellyfin music server. It needs about 1.2 GB of RAM for itself, plus the system.
My PI with podman jellyfin and flatnotes is sitting at 600 MB ram
Mine needs 1.3 GB with an itunes library of 160 gb.
Ah yes my collection is less than few GB that play I guess
AdGuard Home (I prefer it to PiHole)
OtterWiki
Wireguard
Forgejo
Tandoor
Can I please ask why you prefer Adguard over Pihole?
The sd card in my raspberry 3b recently died, and my pihole with it. I am now using Adguard but not sure it’s working well for me, consider going back. What’s the winning argument for you?
I find the interface feels more modern and interactive, I didn’t like how static PiHole felt with adding to a list then manually restarting Gravity.
AGH has support for more list types, it has more features built-in, such as DNS over TLS so I can use it on my phone even when I’m not home.
And personally I feel like its less buggy, I’ve never encountered a problem on AGH, whereas I did on PiHole.
Interesting points, thank you.
Today I wanted to block everything with facebook and Instagram, it looks like I am hand-editing a config file to do so. And it applies to the entire network; AGH has no concept of user groups. Am I missing something really obvious?
That would be something you do within the Client Settings page. You can have custom settings that are separate from the Global Default.
let it run dwarf fortress from within the terminal, then ssh into it from wherever you are so you can play df from anywhere in the world. i did this at work.
Skimmed the title. Brain registered words “rpi” and “linux” underneath it. Instant reaction: “Not another app package format please”. 😶🌫️
I should spend more time reading properly & less time being an old man yelling at tech.
Well it’s a small processor and relatively efficient one at that so… how about going the opposite direction? How about measuring the power draw on idle? With other task? I don’t actually know if that architecture handles that but I saw some things on the do developer.arm.com/…/dynamic-power-management?lang…
Also what about using a RPi Zero instead?
I’ll look into how to make it draw less power. Thanks! That didn’t really cross my mind.
Why not use RPi Zero? That would require buying additional hardware. I’d rather use what I already have.
Trade with someone?
Joplin notes. A really nice notetaking app you can selfhost. Simple enough but stil verry advanced.
BirdNet Pi!
github.com/Nachtzuster/BirdNET-Pi
PiHole is a pretty light load, as are Home Assistant and Music Assistant. Frigate starts to make some heat, so don’t expect to get a full blown video classification / recording system.
I use my Pi 4B as a DVR for movies and OTA television (MythTV).
There are other tools that handle playback better (OSMC/Kodi, etc) but Myth’s configuration and handling of recording schedules is incredibly powerful. Conflict management works well and it can record multiple streams off the same tuner so conflicts are reduced in the first place.
Some great light lightweight apps for a 4GB Pi:
You can run an (emulated) IBM mainframe on it!
As a general thing because I found myself trying to justify my Gear Acquisition Syndrome – it’s a good idea to split services across devices, rather than having some monolithic home server (which is where most people start). That way if one box goes down, it doesn’t take down your whole stack.
If you have some machines scattered about doing different things, it might be time to consider logically grouping services and splitting them across that hardware.
Airsonic music server… There are a few quirks getting it all set up properly, but once it works, it just seems to work forever. Samba file sharing server. Also miniDLNA server can make it easy to watch your movie collection on a tv. The airsonic DLNA doesn’t seem to be working currently. I also have a few mastodon bots running from a Pi4. Also could run a tor relay node, which would make it so it’s less idle. I have a lot of stuff on my Pi4 and it is still mostly idle most of the time. Thats fine though. For me it’s not a huge problem, since overall, my goal is to make it use as little power as possible for all those things. I think thats the whole point is to really use the most lightweight computer that can do what you need. If you just need the print server, you could always get a lower power Pi so you can really optimize how much power needs to be used and maybe even do some sort of Wake on LAN setup so it can be sleeping while not in use.
mine is my reverse proxy, using the nginx proxy manager docker install method
You could pihole
Check out BOINC: boinc.berkeley.edu
Raspberry Pi I’m not sure if it’s worth it. But in short you can advance some science with spare CPU hours. Should be possible to limit it so it doesn’t heat up and use just a bit of the cycles depending on other load…
So I have a smart plug set up on my printer and print server (old HP 4P with separate network print server.
I have NodeRed watching my CUPS queues via HTTP scraping, and if it sees a job in the queue for that printer, it turns on the print server and printer via the smartplug over wifi. I have seen someone link a project that does something similiar.
I run a asterisk PJSIP VOIP server on my raspberry pi 5 8GB. I had to use the git and build and recompile and manually load all PJSIP modules because for some reason I couldn’t even find an asterisk package on apt db for ARM64 for some fucking reason. Also had to containerize it within a docker because the shit couldn’t properly compile without interfering with native system binaries. Shit is so fucking goated and can do PSTN via twilio trunking (call numbers outside of the phone server’s number base so basically anyone as long as you make the phone numbers parsed in extensions.conf for each country you wanna call XD). Currently works within LAN but I am planning on making it accessible over the internet using my domain and a tunnel for UDP if possible or just a VPN since my router is being a removed with SIP packets rn. I am having trouble with that part but once it’s done I can quite literally ditch any phone plan and use it. Twilio hardly even charges shit for voice rates 🤣🤣🤣. You could also self host your domain + email providing service and then connect that to thunderbird for full schizo-level privacy or sum shit. That’s what I do to ditch web-email BS