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

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?

#linux

threaded - newest

Kidplayer_666@lemm.ee on 19 Jun 20:19 next collapse

Maybe Nextcloud? Jellyfin?

winety@lemmy.zip on 19 Jun 20:55 collapse

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?

owenfromcanada@lemmy.ca on 19 Jun 21:20 next collapse

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.

MentalEdge@sopuli.xyz on 20 Jun 04:24 collapse

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.

Konstant@lemmy.world on 20 Jun 18:08 collapse

I wouldn’t recomend Jellyfin if it will transcode anything on a rpi4b.

slacktoid@lemmy.ml on 19 Jun 20:20 next collapse

Pihole, homeassistant, a music server using moodeaudio

b72@lemmy.ml on 19 Jun 20:30 collapse

Another vote for Pi-hole here. I don’t know how I lived without it before!

winety@lemmy.zip on 19 Jun 20:43 next collapse

I use an adblocker on both my PC and my phone. Does a Pi-hole have many advantages over that?

b72@lemmy.ml on 19 Jun 20:47 next collapse

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!

winety@lemmy.zip on 19 Jun 21:06 collapse

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?

b72@lemmy.ml on 20 Jun 06:29 collapse

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.

thejml@sh.itjust.works on 19 Jun 20:50 next collapse

PiHole is DNS based ad blocking and local DNS for everything on your network. So, even things that can’t run their own adblocker.

winety@lemmy.zip on 19 Jun 21:11 next collapse

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.

slacktoid@lemmy.ml on 19 Jun 21:31 next collapse

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

bdonvr@thelemmy.club on 19 Jun 21:38 next collapse

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.

thejml@sh.itjust.works on 19 Jun 22:45 next collapse

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.

oktoberpaard@feddit.nl on 20 Jun 05:58 collapse

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.

MangoCats@feddit.it on 20 Jun 17:27 collapse

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…

slackness@lemmy.ml on 21 Jun 03:06 collapse

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

markstos@lemmy.world on 20 Jun 12:38 collapse

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?

b72@lemmy.ml on 20 Jun 15:31 collapse

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.

markstos@lemmy.world on 20 Jun 18:45 collapse

And if you aren’t home or available?

b72@lemmy.ml on 20 Jun 20:44 collapse

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.

markstos@lemmy.world on 21 Jun 00:10 collapse

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.

wildbus8979@sh.itjust.works on 19 Jun 20:22 next collapse

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.

winety@lemmy.zip on 19 Jun 20:50 next collapse

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.

wildbus8979@sh.itjust.works on 19 Jun 21:00 next collapse

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.

winety@lemmy.zip on 19 Jun 21:25 collapse

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…

data1701d@startrek.website on 20 Jun 01:46 next collapse

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.

Vittelius@feddit.org on 20 Jun 09:23 collapse

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.

blayd@lemmy.ml on 20 Jun 11:48 collapse

Its Qobuz 😅

Vittelius@feddit.org on 20 Jun 13:24 collapse

You are right. I’ve corrected my comment

StrawberryPigtails@lemmy.sdf.org on 19 Jun 21:08 next collapse

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.

winety@lemmy.zip on 19 Jun 21:31 collapse

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.

wildbus8979@sh.itjust.works on 19 Jun 22:31 next collapse

There’s also a lot of smaller solutions, like smaller record label websites, and legacy music stores in whatever country you are.

StrawberryPigtails@lemmy.sdf.org on 20 Jun 08:56 collapse

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.

blayd@lemmy.ml on 20 Jun 11:49 collapse

Seconding Bandcamp & Qobuz, or ripping CDs. I use fre:ac to get accurate FLACs.

MangoCats@feddit.it on 20 Jun 17:36 collapse

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.

wildbus8979@sh.itjust.works on 20 Jun 20:04 collapse

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…

MangoCats@feddit.it on 21 Jun 00:55 collapse

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.

ravermeister@lemmy.rimkus.it on 19 Jun 20:22 next collapse

Nextcloud is very useful, or a lemmy Fediverse Instance

winety@lemmy.zip on 19 Jun 20:41 collapse

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.

boydster@sh.itjust.works on 19 Jun 20:38 next collapse

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

Cobrachicken@lemmy.world on 19 Jun 20:48 next collapse

SANE scan server? Paperless ngx also comes to my mind, find it pretty useful.

winety@lemmy.zip on 19 Jun 20:59 collapse

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.

boydster@sh.itjust.works on 19 Jun 20:54 next collapse

Another idea: dokuwiki, to document your process setting up various service for future reference

winety@lemmy.zip on 19 Jun 21:38 collapse

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.

Cris16228@lemmy.today on 19 Jun 20:56 next collapse

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.)

The latest versions won’t work. It has problems loading the chunks.

Source: Tried it myself

winety@lemmy.zip on 19 Jun 21:13 collapse

Thanks for the info. I won’t even try then.

tkw8@lemm.ee on 19 Jun 21:00 next collapse

On my Rpi4B I run syncthing 24/7. It acts as my sync hub. All other machines are connected to it.

gonzo-rand19@moist.catsweat.com on 19 Jun 21:07 next collapse

Kavita, Komga, or calibre-web? I love having a book and comics server.

owenfromcanada@lemmy.ca on 19 Jun 21:23 next collapse

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).

Quazatron@lemmy.world on 19 Jun 21:34 next collapse

Another vote for PiHole. It keeps your home network cleaner by ignoring the ads.

melroy@kbin.melroy.org on 19 Jun 22:27 next collapse

qbittorrent (docker) 😁😎

hellinkilla@hexbear.net on 19 Jun 23:28 next collapse

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.

Brewchin@lemmy.world on 20 Jun 00:17 next collapse

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.

Schlemmy@lemmy.ml on 20 Jun 14:41 collapse

HomeAssistant is still supported on Pi4b

It’s support for the rpi3 that is getting fased out.

Brewchin@lemmy.world on 20 Jun 16:51 collapse

Odd, it must be the Docker image I’m using, then. Thanks for clarifying.

Schlemmy@lemmy.ml on 24 Jun 07:01 collapse

I suppose it works best with haos installed on the Rpi

sic_semper_tyrannis@lemmy.today on 20 Jun 03:18 next collapse

Paperless ngx

pitiable_sandwich540@feddit.org on 20 Jun 04:04 next collapse

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.

troglodytis@lemmy.world on 20 Jun 06:44 next collapse

Get yourself and adsb antenna and feed flightaware, flightradar24, and adsbexchange. Help track the skies!

eugenia@lemmy.ml on 20 Jun 06:50 next collapse

Jellyfin music server. It needs about 1.2 GB of RAM for itself, plus the system.

Mouette@jlai.lu on 20 Jun 14:23 collapse

My PI with podman jellyfin and flatnotes is sitting at 600 MB ram

eugenia@lemmy.ml on 20 Jun 15:30 collapse

Mine needs 1.3 GB with an itunes library of 160 gb.

Mouette@jlai.lu on 20 Jun 19:47 collapse

Ah yes my collection is less than few GB that play I guess

haych@feddit.uk on 20 Jun 09:03 next collapse

AdGuard Home (I prefer it to PiHole)

OtterWiki

Wireguard

Forgejo

Tandoor

PlutoniumAcid@lemmy.world on 20 Jun 18:24 collapse

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?

haych@feddit.uk on 20 Jun 20:43 collapse

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.

PlutoniumAcid@lemmy.world on 20 Jun 22:25 collapse

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?

haych@feddit.uk on 20 Jun 23:22 collapse

That would be something you do within the Client Settings page. You can have custom settings that are separate from the Global Default.

thespcicifcocean@lemmy.world on 20 Jun 12:44 next collapse

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.

technopagan@discuss.tchncs.de on 20 Jun 13:31 next collapse

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.

utopiah@lemmy.ml on 20 Jun 14:25 next collapse

irks me that it’s mostly idling

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?

winety@lemmy.zip on 20 Jun 19:56 collapse

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.

utopiah@lemmy.ml on 20 Jun 20:26 collapse

require buying additional hardware.

Trade with someone?

Schlemmy@lemmy.ml on 20 Jun 14:34 next collapse

Joplin notes. A really nice notetaking app you can selfhost. Simple enough but stil verry advanced.

randombullet@programming.dev on 20 Jun 16:21 next collapse

BirdNet Pi!

github.com/Nachtzuster/BirdNET-Pi

MangoCats@feddit.it on 20 Jun 17:23 next collapse

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.

fratermus@lemmy.sdf.org on 20 Jun 17:36 next collapse

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.

grantorinowhiskey@lemmy.ml on 20 Jun 18:26 next collapse

Some great light lightweight apps for a 4GB Pi:

  • Homeassistant
  • Fresh RSS
  • Paperless NGX
  • Syncthing
  • PiHole or Adguard home
  • Syncthing
Amberskin@europe.pub on 20 Jun 18:48 next collapse

You can run an (emulated) IBM mainframe on it!

null@slrpnk.net on 20 Jun 21:15 next collapse

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.

0x520@slrpnk.net on 20 Jun 21:18 next collapse

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.

mactan@lemmy.ml on 20 Jun 22:04 next collapse

mine is my reverse proxy, using the nginx proxy manager docker install method

dan69@lemmy.world on 21 Jun 02:56 next collapse

You could pihole

passenger@sopuli.xyz on 21 Jun 07:54 next collapse

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…

ikidd@lemmy.world on 21 Jun 16:03 next collapse

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.

XXIC3CXSTL3Z@lemmy.ml on 23 Jun 15:44 collapse

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