Live data from Hacker News

Raspberry Pi as a local server for self hosting applications

cri.dev

1–10 of 321 posts

Re: Raspberry Pi as a local server for self hosting applications

#3
On my Raspberry Pi 3 I'm running Hypriot OS which installs a minimal host OS and then just runs Docker.

Thanks to cloud-init (Old version though) you can even pre-configure the boot image with your SSH key etc. which allows you to automate your initial install.

https://blog.hypriot.com/downloads/

https://cloudinit.readthedocs.io/en/0.7.9/topics/capabilitie...

Re: Raspberry Pi as a local server for self hosting applications

#4
I recently thought about getting an RPi4 but ultimately spent about a hundred dollars more to get a cheap NUC. It was a bit more expensive but it seems like a more robust platform. A real AC adapter instead of USB (apparently the RPi4 kind of botched it in some revisions? What I read wasn't confidence inspiring), takes normal SO-DIMM ram and a typical SSD, doesn't have a reputation for overheating.. it seems generally more straight forward with fewer 'gotchas.'

Re: Raspberry Pi as a local server for self hosting applications

#5
Nice! I recently wrote a blog article about home-hosting on a RPI4 using kubernetes (https://kubesail.com/blog/k3s-raspberry-pi).

Such a bright future in home-hosting - really looking forward to seeing the movement grow! The https://www.linuxserver.io/ community is pretty great re: home-hosting apps as well.

Re: Raspberry Pi as a local server for self hosting applications

#6
One thing to watch out for when doing something like this is that the Raspberry Pi will by default put your file system on the SD card it boots from. SD cards aren't meant to support a lot of write/erase cycles, so it's easy to end up with a corrupt SD card after a few months to a year depending on what you're doing on your Pi.

A workaround that can save you some headaches here is to only boot from the SD card (which means you're effectively only ever reading from the card), and then mount a filesystem on an external SSD drive. There are a couple of good guides here [1] [2].

[1]: https://www.stewright.me/2019/10/run-raspbian-from-a-usb-or-...

[2]: https://www.pragmaticlinux.com/2020/08/move-the-raspberry-pi...

Re: Raspberry Pi as a local server for self hosting applications

#8

One thing to watch out for when doing something like this is that the Raspberry Pi will by default put your file system on the SD card it boots from. SD cards aren't meant to support a lot of write/erase cycles, so it's easy to end up with a corrupt SD card after a few months to a year depending on what you're doing on your Pi. A workaround that can save you some headaches here is to only boot from the SD card (which…

Good points, thanks!

Just stumbled upon this today by coincidence, will definitely follow the suggestion, cheers

Re: Raspberry Pi as a local server for self hosting applications

#10
post #3

On my Raspberry Pi 3 I'm running Hypriot OS which installs a minimal host OS and then just runs Docker. Thanks to cloud-init (Old version though) you can even pre-configure the boot image with your SSH key etc. which allows you to automate your initial install. https://blog.hypriot.com/downloads/ https://cloudinit.readthedocs.io/en/0.7.9/topics/capabilitie...

that is interesting, thanks!

sounds like a super smooth dev and deploy experience

Post reply on HN