Raspberry Pi 4B
from rook@lemmy.zip to selfhosted@lemmy.world on 15 Dec 19:35
https://lemmy.zip/post/55089450

As a complete beginner, what can I do with a raspberry pi 4b?

I’m basically completely new to networking and currently setting up a NAS. I have this raspberry pi 4b that I got but now can’t think of a use case for it…

Any ideas of something that is very useful to host or have running on the pi4b?

Edit: I’m a complete beginner, and will use trunas on another server with jellyfin so my raspberry pi gets blown raspberries atm 👎

#selfhosted

threaded - newest

logos@sh.itjust.works on 15 Dec 19:41 next collapse

Pi-hole with unbound

Eirikr70@jlai.lu on 15 Dec 22:57 next collapse

I wouldn’t recommend network apps to a complete beginner. They might loose their network for a while and get afraid of tinkering. My 2p

gigachad@piefed.social on 15 Dec 23:43 next collapse

I’m using Pi-hole for half a year now and am super happy. What is unbound?

0_o7@lemmy.dbzer0.com on 16 Dec 02:06 collapse

A DNS service that gets all its DNS data directly from “root servers”, without the middlemen (like your ISP, Google, Cloudflare, etc).

non_burglar@lemmy.world on 16 Dec 05:46 collapse

Unbound is just an alternative to bind. Pihole does not handle full-fledged DNS functions like zone transfers and start of authority records.

mmmac@lemmy.zip on 16 Dec 07:50 collapse

I’d recommend technitium over both pihole and adguard these days. Its an actual DNS server vs just a sinkholr, had recursive resolving out of the box, Root server mirroring at the click of a button, cluster mode etc

[deleted] on 15 Dec 19:42 next collapse

.

DonutsRMeh@lemmy.world on 15 Dec 19:46 next collapse

Pihole+unbound, navidrome for your music. Tailscale for remote connection to your music. Setup your own photo library with immich. An invidious instance

fizzle@quokk.au on 15 Dec 19:58 next collapse

what do you enjoy doing online?

my recommendation would be to start small, without having to trust yourself with your own data, at least not in the short term.

maybe try your own instance of photon, it’s a frontend for lemmy.

BCsven@lemmy.ca on 15 Dec 20:05 next collapse

There are some sites dedicated to suggestions, or if you download the pi image burner tool it has a bunch of OS suggestions in the menu, like Pihole, Kodi media box, home assistant, etc.

I have a few running. One was setup as NAS and dlna music server using OpenMediaVault, one is a Volumio music player, my other one is Home assistant.

If you like old 80s-90s games there is RetroPi.

Too many choices really :)

yo_scottie_oh@lemmy.ml on 16 Dec 04:26 collapse

For the NAS, what do you use for storage? Do you have an external drive hooked up via USB or something else?

BCsven@lemmy.ca on 16 Dec 08:30 collapse

Yes, I bought a rocketfish drive enclosure years back, so dropped a drive in that, and attached vias USB. Never had issues with it.

Assign as data drive in Openmediavault.

Openmediavault had some plugins and settings to set folders2ram so that the initial SDcard OS is writting to RAM instead of constant writes to the SDcard.

chocrates@piefed.world on 15 Dec 20:10 next collapse

Go checkout openmanet. Get yourself a suite of portable nodes and a wide ranging ip network

sem@lemmy.blahaj.zone on 15 Dec 20:27 next collapse

I run nextcloud on mine.

If I were doing it again today, I would try the AIO installation

sic_semper_tyrannis@lemmy.today on 15 Dec 20:54 next collapse

Keep swapping the OS (or have different memory cards) and play around with whatever software you come across that peaks your interest.

pretty_pangolin@lemmy.world on 15 Dec 20:55 next collapse

To build on all the great suggestions here, you can install DietPi (a pared down version of Debian), and then use Docker on top of that to run almost any of the services mentioned in this thread on a single RPI host machine.

I run Adguard Home without any issue on an RPI Zero so installing only that on your 4b will leave some performance on the table.

bonenode@piefed.social on 15 Dec 21:13 next collapse

You can easily run Jellyfin and Immich (I disabled the machine learning bits though) on this. As an extra I also run Metube for easy downloads of youtube videos.

j4k3@piefed.world on 15 Dec 21:25 next collapse

They are nice for keeping tools around on spare SD cards that you might not want to run normally. Like that is a good way to look at Parrot or Kali Linux setups.

Checking out how to build an OS from scratch is also handy. It can be an interesting low risk way to explore building Gentoo, Arch, or Linux From Scratch.

The main appeal IMO, is that you have microcontroller like input, output, and serial communications already setup in the kernel with access in user space. As long as the kernel is supported by the Rπ foundation, (it is proprietary undocumented hardware that only they can support), you are getting the security updates required to keep the thing online automatically and safely. The best stuff to build is unique stuff for you that uses these aspects. Like make a little bathroom clock with a little TFT LCD display that tells you the local weather. Then set up some RSS feeds for local community stuff you do not want on your main mobile device, like maybe local political activity, library and community center events, concerts, clubs, etc.

For server stuff, I would stick with devices with purpose built hardware. Like, a micro SD card is slow and unreliable, and the lack of nvme is bad. In most cases it is cheaper to use other old devices that already have screens unless you want to share a hardware design that is repeatable, you need something secure to keep online, or you need serial or input/output. Those are the main benefits.

The thing is, the Rπ is what it is. It is the path of least resistance. The software support is approachable and great. The price is cheap. However, the non profit thing is a scam. The Rπ foundation is basically an arm of Broadcom. The Rπ is a chip from a set top TV box with 3/4 of the die unused. Broadcom uses excess fab capacity to make the Rπ chips and sell them at materials cost. This is not charity. It is controlling the grass roots market to make competitive scaling business ventures difficult. This is why Rockchip is not crushing them already. The Rockchip RK3588 chip is fully documented and open source. In this space, there is little to no innovation, it is only about price on ancient trailing fab nodes. This is the ladder to climb that leads to Intel, AMD, Samsung, and Qualcomm. The Rπ is the guy kicking anyone that tries to climb. So… use it for what it is good for, but in most cases, other hardware is better, and there is nothing wrong with saying so, or moving past the Rπ. I’m lying next to a RK3566 machine right now, sorting out issues with the ARM version of Fedora Workstation, looking at how to build the native WiFi module for it from source, and maybe try debugging an issue in that module’s code that is causing a memory race condition. Although that last one is past my typical pay grade. - So I’m not all fluff here.

That is just my $0.02.

KaRunChiy@fedia.io on 15 Dec 21:21 next collapse

I installed mainsail os and use it as my main controller for my 3d printer, sounds complex but it just needs a usb cable and the firmware can upload itself

rcmd@lemmy.world on 15 Dec 22:20 next collapse

What’s currently running on mine:

  • 10 commodity SSDs through a powered USB hub forming a poor man’s NAS with snapraid + mergerfs
  • Podsync for converting my favorite YouTube channels to podcast feeds
  • Syncthing for generic file synchronization
  • K3s for whatever projects coming to my mind
  • Retroarch for occasional gaming needs
  • MPD with a floppy disk interface as my music station
  • CUPS for printserver
yo_scottie_oh@lemmy.ml on 16 Dec 04:28 collapse

10 commodity SSDs through a powered USB hub forming a poor man’s NAS with snapraid + mergerfs

How did you end up with this setup? Did you just already have a bunch of SSDs from over the years? That’d be cool af if you posted a photo of it.

Schlemmy@lemmy.ml on 15 Dec 22:37 next collapse

I’m running Home Assistant on mine at the moment. It’s amazing. Really. Apart from being an great smart home solution I’ve found it a good solution to create dashboards for life.

I have set up our family calendar, train schedules that change routes depending on the time. Waste collection notifications. It warns me to get a raincoat and umbrella in the morning. I get news headlines for my interests…

Before that I’ve tried a lot. It was my first step into home labbing 2 years ago. It brought me back to my youth. Breaking the family computer and trying to fix it before anyone noticing it.

Most of the stuff I ran used Docker.

  • Joplin notes
  • Mealie
  • Immich
  • Authentic
  • Wanderer
  • Homarr
  • pihole
  • portainer

Within a year I grew out of my pi setup and bought a second hand mini Lenovo that now runs Proxmox. Minor investment, huge upgrade. Moved away from dockers also.

The pi is a fun gateway drug.

lepinkainen@lemmy.world on 15 Dec 22:43 next collapse

Big +1 for second hand corporate mini PCs

They’re cheaper and better in every way than the Pi

Only get the Pi if you need a specific HAT or GPIO. And even then get a zero.

AtariDump@lemmy.world on 16 Dec 04:53 collapse

Only get the Pi if you need a specific HAT or GPIO. And even then get a zero.

Or if you want to run the machine via PoE.

B0rax@feddit.org on 17 Dec 10:18 collapse

There are machines (like the Futro s740) that can be powered by POE as well.

Elkenders@feddit.uk on 17 Dec 10:08 collapse

Why no docker?

ada@piefed.blahaj.zone on 15 Dec 22:52 next collapse

Bird-Pi

jaybone@lemmy.zip on 15 Dec 23:27 next collapse

I use mine to run RetroPi, it has a bunch of old console emulators. Get a big torrent of old ROMs and you are set for retro gaming.

bigboismith@lemmy.world on 16 Dec 01:43 next collapse

I use mine as a low power server. Whenever I feel like tinkering with a website or something, I can just ssh into it without thinking about electricity usage. Jellyfin and such is also a good usecase

tburkhol@lemmy.world on 16 Dec 03:01 next collapse

I got my Pi4 to be a media player - LibreElec or Kodi - for my old, not-smart TV. It plays my library of CDs&DVDs, frontend for OTA TV, and a variety of streaming services. Fanless, so it doesn’t distract from audio, low power, so I don’t mind leaving it on 24/7. You can configure it to listen to a USB IR receiver, but I control mine from phone via web. The actual media library/NAS and tvheaded run on an old desktop in another room.

My favorite thing is all the sensors you can hook up. Adafruit & Sparkfun have a wide array of sensors with breakout boards for simplicity and well documented python libraries. I started just logging temperature, humidity, then air quality, CO2 to my own database and web page, but eventually expanded to full HomeAssisstant system.

Pihole.

Andres4NY@social.ridetrans.it on 16 Dec 03:40 collapse

@tburkhol @rook Protip for Pi4B TV usage: if your TV has a USB port, you might be able to power the Pi from it. I turn the TV on and my 4B gets power from it, boots up, and starts Kodi (I'm using libreelec) automatically. When I turn the TV off, the TV hardware stays powered for like 5 mins before going into a low power mode which kills power to the Pi.

captain_aggravated@sh.itjust.works on 16 Dec 08:55 collapse

many don’t deliver enough power for a Pi 4.

addie@feddit.uk on 16 Dec 03:57 next collapse

Mine was my local Forgejo server, NAS server, DHCP -> DNS server for ad blocking on devices connected to the network, torrent server, syncthing server for mobile phone backup, and Arch Linux proxy, since I’ve a couple of machines that basically pull the same updates as each other.

I’ve retired it in favour of a mini PC, so it’s back to being a RetroPie server, have loads of old games available in the spare room for when we have a party, amuses children of all ages.

They’re quite capable machines. If they weren’t so I/O limited, they’d be amazing. They tend to max out at 10 megabyte/second on SD card or over USB / ethernet. If you don’t need a faster disk than that, they’re likely to be ideal in the role.

possiblylinux127@lemmy.zip on 16 Dec 05:45 next collapse

Sell it

I’m dead serious. They can go for a decent price which should cover the cost of a X86_64 machine

ikidd@lemmy.world on 16 Dec 07:08 next collapse

idk about a 4b these days but the 5’s are stupid priced. You can get a refurbed 6th gen intel machine with 16gb of ram and an SSD for the price of a 4Gb Pi 5. Add an ESP32 running ESPhome or Firmata and you’ve got everything you could do with a Pi and a lot more.

el_abuelo@programming.dev on 16 Dec 15:09 collapse

Got a link? I’d love to get me one of those

phx@lemmy.world on 16 Dec 08:51 next collapse

If they’ve already got a 4B there’s no reason not to use it for one of the many low-power low-profile uses, especially when the cost of PC components is going nuts now

OwlPaste@lemmy.world on 16 Dec 11:15 next collapse

Whats an x86_64 equivalent of a pi these days? I’d love to find one, especially worried if pi goes the way of Arduino

B0rax@feddit.org on 17 Dec 10:15 collapse

Check out the Futro S740. It is more powerful than the pi, uses comparable power and still quite compact.

They can be found (in Germany at least) for 40€ with 4gb RAM and about 50€ for 8gb of ram. Ram is upgradeble, so is storage.

If you want something (much) more powerful, there is the Lenovo tiny line, for example the m710q or m720q (one cpu generation newer).

OwlPaste@lemmy.world on 17 Dec 19:02 collapse

Much appreciated will check it out! 😃

uniquethrowagay@feddit.org on 16 Dec 16:56 collapse

Why would I want a x86 machine if all I need runs so well on my Pi and uses like under 5 Watts?

vividspecter@aussie.zone on 16 Dec 17:29 collapse

The mini-pcs that people typically recommend use around that at idle, and are much more powerful and have more reliable storage. But if you all you need is a Pi that’s fine of course.

victorz@lemmy.world on 17 Dec 11:34 collapse

What are the mini PCs people typically recommend?

vividspecter@aussie.zone on 17 Dec 14:39 collapse

Lenovo Tiny series for example, and I believe there are HP and Dell equivalents.

irmadlad@lemmy.world on 16 Dec 07:57 next collapse

I use them from time to time. Sometimes to tinker on, or have a specific purpose. For instance one runs a display that I can shuffle through all my surveillance cams. One runs a Magic Mirror. Pretty neat little project with useful applications.

Example Image

todotoro@midwest.social on 16 Dec 20:38 next collapse

A Pi 4 can do quite a bit. Maybe start off with some Docker apps. Try and host PiHole for ad blocking at home?

thermal_shock@lemmy.world on 17 Dec 00:05 next collapse

Pihole. Protect your network from ads.

hardcoreufo@lemmy.world on 17 Dec 08:17 next collapse

Look into volumio to make a whole home music streaming solution. You can buy various pi Hats to get better DACs than the internal pi one.

normalexit@lemmy.world on 17 Dec 10:56 next collapse

Pihole is great, little hardware projects are fun (touchscreen calendar in the kitchen). They also make great emulators for old systems if you want to install a gaming oriented OS like retropie or lakka and get a gamepad or two.

I personally wouldn’t use it for a server, but it’s a good learning environment to figure out how to run services.

The beauty of the pi is it is an SD card swap away from doing a different job. You can buy a few fast cheap 16-32gb SD cards and play around with different options and operating systems.

Or you can do what I do: get it all set up, shut it down, and forget it exists until you have some wild idea.

alt_xa_23@lemmy.world on 17 Dec 15:18 next collapse

I host a web server and gemini capsule on mine. I previously hosted a Minecraft server, but moved it over to my desktop recently.

some_guy@lemmy.sdf.org on 17 Dec 15:54 next collapse

I run Movary on my NAS in a docker container so that my partner has a place to add to our watch-list.

I also run a personal kbase that I built on top of Docbase and Markdown files.

And I recently started using HTTP2Shell to throw commands at a local networked device. This is useful to me personally, maybe not for others, because I’ve written my own automations.

I recently considered adding Home Assistant, but it doesn’t look like it’s gonna happen because we have lamps that don’t remain in an “on” state when unplugged; any devices I might buy to add wifi to them wouldn’t actually turn them on remotely as a result. Shame cause there’s one that’s pretty necessary at night that’s between a wall and a sofa that’s pushed back against it because that’s just the layout of the room. I don’t mind manually controlling the others, but that was the one that would have been nice to trigger from my phone. Our thermostat and robot vacuum would have been on the same system, but they already have dedicated apps anyway.

You’re only limited by your imagination and curiosity (and wallet).

Kolanaki@pawb.social on 17 Dec 15:55 next collapse

That’s a pretty big computer. It’s bigger than an American pickup truck. God damn!

boonhet@sopuli.xyz on 17 Dec 16:04 collapse

Load bearing Mac Mini vs gigantisch raspberry pi. Wonder who would win in a fight?

lefaucet@slrpnk.net on 17 Dec 18:46 next collapse

Minecraft server!

fubarx@lemmy.world on 17 Dec 20:59 collapse

  • Ubuntu desktop - the whole shebang including office apps
  • PiHole ad-blocker
  • Jellyfin video server
  • Minecraft server
  • Local LLMs
  • On-site VPN service
  • Home Assistant smarthome controller

So many things, and much more…