Raspberry Pi - RPGWatch Forums
|
Your donations keep RPGWatch running!
RPGWatch Forums » General Forums » Tech Help » Raspberry Pi

Default Raspberry Pi

March 14th, 2022, 15:50
I am considering getting a Raspberry Pi, as a small general purpose server at home (maybe do some home automation and run a controller for my local network, possibly in docker containers).
What OS would you guys recommend? Ubuntu server?
--
Exitus acta probat.
wiretripped is offline

wiretripped

wiretripped's Avatar
Machiavellian
RPGWatch Donor
Original Sin 1 & 2 Donor

#1

Join Date: Oct 2006
Location: Leuven, BE
Posts: 2,285
Mentioned: 3 Post(s)

Default 

March 14th, 2022, 23:45
It would depend on your actual needs. For a server I want stability as it needs to run for quite some time and not break down because of an update, or a mismatch in library versions making a mess of things, which has happened to me in Ubuntu. For me Debian would fulfill that need. However that stability comes at the cost of not having any bleeding edge software and usually not the latest version of software as for software to be included in Debian, it needs to be running actively for several months, without issues before it is included. The exception to that being security patches. It also promises to be multi architecture for a very long time.

If you do want to have access to the latest version of whatever, Ubuntu Server is probably more interesting, although more bloated than Debian.

I don't have experience with other Server software, but if you are planning to run everything using Docker images, I suppose it doesn't make that much of an issue anymore and you just can go with what you have experience with.

I am not running our server on Raspberry Pi, as the set-up is too complicated for that, but if I would go with a Raspberry Pi as a server, I would run it with the OS on an SSD drive and not on the memory card. Especially if it is a general purpose server.
--
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. Douglas Adams
There are no facts, only interpretations. Nietzsche
Some cause happiness wherever they go; others whenever they go. Oscar Wilde
Myrthos is offline

Myrthos

Myrthos's Avatar
Cave Canem
Administrator
RPGWatch Team

#2

Join Date: Aug 2006
Location: Netherlands
Posts: 10,613
Mentioned: 202 Post(s)

Default 

March 15th, 2022, 10:59
Maybe it depends on the model of Raspberry Pi too.

Given the generally limited memory, I would expect a very specific server setup, even more if you intend to use containers. A Debian would indeed help in that regard, but I don't know if there's an existing distro targeting that CPU and platform, or if you have to do the work yourself.

Have you looked at DietPi? Or Alpine? (I've only used Alpine in containers to do tests, not as main OS, but that's what sprung to mind in that case).

EDIT: There are more recent releases of DietPi than what Distrowatch shows, they're actually monthly releases. I'm tempted to try it out, it seems very neat, easily customizable and has a good support for the usual packages, including MariaDB, a recent Python 3, Docker, Apache, Lighttpd and so on.
Last edited by Redglyph; March 16th, 2022 at 22:09.
Redglyph is offline

Redglyph

Redglyph's Avatar
SasqWatch

#3

Join Date: Aug 2020
Location: Good old Europe
Posts: 4,802
Mentioned: 83 Post(s)

Default 

March 16th, 2022, 20:38
I would use a Raspberry pi specific distro like Raspbian (debian-based).
https://www.raspbian.org/

That said, for home use I consider Ubuntu LTS also safe and stable enough.
ilm is offline

ilm

Keeper of the Watch
Original Sin 2 Donor

#4

Join Date: Jun 2009
Posts: 1,499
Mentioned: 11 Post(s)

Default 

March 18th, 2022, 12:01
Thanks for the feedback!

I was actually looking at the Home Assistant OS, as its main purpose would be running Home Assistant. I read that you lose some functionality if you run that in a docker, so maybe that's the easiest option. I believe it also supports Portainer so I could still run other stuff, like my network controller, in a docker.

Originally Posted by Myrthos View Post
I am not running our server on Raspberry Pi, as the set-up is too complicated for that, but if I would go with a Raspberry Pi as a server, I would run it with the OS on an SSD drive and not on the memory card. Especially if it is a general purpose server.
Yeah, the HA OS is optimized (as would be the Raspberry specific OS's I imagine) to limit the writes to the storage, so not sure how much of an issue it is… But I think you can also use a USB stick instead of an SD. I agree that the SSD is probably the best option though, but if I can backup regularly I don't see too much of an issue using a less stable storage medium.

Originally Posted by Redglyph View Post
Maybe it depends on the model of Raspberry Pi too.
I'm looking at getting a Raspberry Pi 4, either the 4 or 8 GB version, but ha… zero availability worldwide.
--
Exitus acta probat.
wiretripped is offline

wiretripped

wiretripped's Avatar
Machiavellian
RPGWatch Donor
Original Sin 1 & 2 Donor

#5

Join Date: Oct 2006
Location: Leuven, BE
Posts: 2,285
Mentioned: 3 Post(s)

Default 

March 18th, 2022, 14:45
You mentioned "general purpose server", which is why I mentioned an SSD would work much better for that purpose, given that general purpose could mean anything, like a lot more disk I/O access

As to the Raspberry 4, the best option now is to get a used one via eBay, or Marktplaats, or whatever else is available in Belgium.
Demand is high though, so they are probably offered for about the same or higher price than a new one would.
--
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. Douglas Adams
There are no facts, only interpretations. Nietzsche
Some cause happiness wherever they go; others whenever they go. Oscar Wilde
Myrthos is offline

Myrthos

Myrthos's Avatar
Cave Canem
Administrator
RPGWatch Team

#6

Join Date: Aug 2006
Location: Netherlands
Posts: 10,613
Mentioned: 202 Post(s)

Default 

March 18th, 2022, 15:18
Originally Posted by Myrthos View Post
You mentioned "general purpose server", which is why I mentioned an SSD would work much better for that purpose, given that general purpose could mean anything, like a lot more disk I/O access
Indeed, sorry, my bad. I already have a NAS for file storage and media streaming, I'd use the Pi to run some "general" services (or that's how I'd call 'm at least).

Originally Posted by Myrthos View Post
As to the Raspberry 4, the best option now is to get a used one via eBay, or Marktplaats, or whatever else is available in Belgium.
Demand is high though, so they are probably offered for about the same or higher price than a new one would.
Yeah, I feel like whatever's available there will just have scalper prices, but I can check. I've been keeping an eye on this website but so far no luck: https://rpilocator.com/
--
Exitus acta probat.
wiretripped is offline

wiretripped

wiretripped's Avatar
Machiavellian
RPGWatch Donor
Original Sin 1 & 2 Donor

#7

Join Date: Oct 2006
Location: Leuven, BE
Posts: 2,285
Mentioned: 3 Post(s)

Default 

March 18th, 2022, 15:43
Yes, it's not yet back to normal, I see. RS-online Benelux mentions new availabilities around mid-April (ex with the 4-GB model) but who knows if that's true.

I made a quick test with DietPi and it worked well, no issue. I have a model 3 B+, so I used the ARMv8 64-bit version. The image is about 850 MB with a boot and a root partition, I used Gparted to extend the 2nd to the capacity of the SD card.

There's a software selection at the initial configuration to add Docker, web servers and so on, or to select a desktop environment among a few common ones. There's a configuration script for the hardware and software as well (even with T° and overclocking management). Both can be run any time after the installation. All that can be pre-set in a configuration file for easy re-installation.

I haven't done much testing though, at some point I'll try to setup a simple Django website and see how it fares. Idle in text mode, it was using ~150 MB of memory with SSH, Lighttpd, an FTP server and MariaDB activated.

The configuration must be reviewed, it allows for ex. root login with SSH or FTP. But that's classic post-installation checks. Default user is root too, I suppose it's standard on Raspberry Pi.

The small gripe I have with them is the lack of clear versioning (DistroWatch gave up on maintaining info on them because of that). But it's really not a big deal once it's installed, since updating is easy.

EDIT: nice site, the rpilocator
Redglyph is offline

Redglyph

Redglyph's Avatar
SasqWatch

#8

Join Date: Aug 2020
Location: Good old Europe
Posts: 4,802
Mentioned: 83 Post(s)

Default 

May 10th, 2022, 21:04
Those Raspberry Pi's are awesome! Since I messed a little with NGINX on a Linux VM, I decided to put all that on the Raspberry with the DietPi OS… and it just works.

It was actually very easy to do, much more so than initially configuring that nasty NGINX. Hosting several apps in the same domain (localhost for me) is a real pain, Apache is much easier for that.

So now, this little guy can be plugged into the network and be used as a nice wiki to take notes, that's very handy. I used dokuwiki which doesn't need any database server, it's easy and has many useful features. I had tried to find a good editor to keep notes on different subjects (configuration info and general tips, things to remember and so on), but hadn't found anything satisfactory, this does it and it can be accessed from any device.

I was expecting a lot of differences with Linux, like busybox, a custom service system, hard-to-install software and all that. But no, it has the GNU commands, systemd and software can be installed with apt (which is slow, I suspect their ARM repository doesn't have servers as powerful as other distros - maybe they run on Raspberries too, hehe) or their own text-based UI.


In conclusion, I haven't tried the default Raspbian to compare, but DietPi seems pretty good to me. I'll see how it copes with updates and stability after a while.

PS: I just hope the heat sink is enough when it's used more intensively…
Redglyph is offline

Redglyph

Redglyph's Avatar
SasqWatch

#9

Join Date: Aug 2020
Location: Good old Europe
Posts: 4,802
Mentioned: 83 Post(s)

Default 

May 10th, 2022, 21:39
Nice to hear.

I did finally manage to nab a Raspberry Pi 4 model B (4 gb) last month or so, but erroneously ordered the default Raspberry case with it. After reading about how hot the Pi gets in there and pouring over so many reviews of cases, I got a another one and settled on the Argon ONE case (full HDMI ports, yeah man).

So yeah, I installed it in the case and set it on my desk, and that's where it's still sitting, waiting until I have time (and am in the mood) to play with it more. I figured I'd keep it easy on myself and just install the HomeAssistant OS on it (since that's what I was intending to use it for).
--
Exitus acta probat.
wiretripped is offline

wiretripped

wiretripped's Avatar
Machiavellian
RPGWatch Donor
Original Sin 1 & 2 Donor

#10

Join Date: Oct 2006
Location: Leuven, BE
Posts: 2,285
Mentioned: 3 Post(s)

Default 

May 10th, 2022, 21:53
Yes, it seems the component shortage is finally subsiding. Now it's more a gas and oil shortage problem for us…

This case looks very neat, it seems it has a fan? I suppose that's why you chose that over the previous one.

Have fun with it!
Redglyph is offline

Redglyph

Redglyph's Avatar
SasqWatch

#11

Join Date: Aug 2020
Location: Good old Europe
Posts: 4,802
Mentioned: 83 Post(s)
RPGWatch Forums » General Forums » Tech Help » Raspberry Pi
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 01:42.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.
vBulletin Security provided by DragonByte Security (Pro) - vBulletin Mods & Addons Copyright © 2022 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2022 DragonByte Technologies Ltd.
Copyright by RPGWatch