Turning the Raspberry Pi 4 into a Mini Server
n-o-d-e.net
n-o-d-e.net
I do use a USB nvme SSD enclosure for storage to be fair, and it's only stable when using a powered USB hub.
As long as there is proper storage (Reliable SD card for boot/root [I prefer Toshiba], USB storage for other files) and Power supply (Official RPi power supply) Raspberry Pi's have been the most reliable computing platform to me.
With current generation Pi's, it's much more easier to even boot from SSD, have better filesystem like btrfs, zswap, ArchLinux ARM etc.[1].
[1]https://abishekmuthian.com/getting-smoother-desktop-experien...
Is that bios out of beta now?
But since almost every SBC support booting from SSD (Even if they don't, we can have /boot on SD and /root on SSD), so low SD card latency is not an issue to me. In fact I'm digging up old 4GB cards for /boot to repurpose larger capacity SD cards from SBCs for other purposes(Chromebook, Camera etc.).
As for specific model, there were many different model names, I usually choose the middle tier for performance:price.
I have to keep the world files on an external SSD though as the SD card is simply to slow and becomes a bottle neck. I also had to change some of Minecrafts settings as well to reduce CPU strain (disable spawn chunks, reduce render distance, etc). I also overclocked the Pi's CPU to 2 Gigahertz. It actually works out really nicely and I recommend you give it a try if you are interested. You are going to want to use a 64bit os like Ubuntu though in order to avoid a 32bit OS' max memory process allocation limit of 2 gigs, Minecraft is very ram hungry.
It's mounted on a din rail with the DINr mount plate and a Poe hat, makes it very compact and it fits in my small fiber network clauset. Planning to add 2 more for hight availability.
The only problem I ever experience was when I tried to run a RPi4 as a desktop with a 4k tv. Although everything worked out of the box, sometimes the system stopped responding.
https://www.raspberrypi.org/forums/viewtopic.php?f=78&t=2791...
I’ve been trying to put together a self-hosted surveillance situation to replace this Nest. So far I’ve got a super cheap PoE camera from amazon and Zoneminder. The camera leaves a lot to be desired... and I’m still figuring out Zoneminder
Note: Generic IP cameras dial home for public identification on their apps and also would never receive security updates. I had to meticulously block all open ports using firewall. If you feel that's too much of risk, then I would suggest building a camera setup with RPi camera or ESP camera yourself to be used with motionEye.
I’m considering spending 4x-5x the amount on better hardware..
I have detailed, why I created it here[1]. Experience has been great, I has got me valuable insight in using language/grammar to differentiate problems vs startup ideas and issues in doing that. What I have learnt so far is that, It's easier to think what we come up with is a 'startup idea' than 'identifying a problem/need gap'.
I'll be improving it in the coming years to study more on the topic.
I purchased ieGeek 1080p ip cams, but they were not PoE so I bought adapters. Might be easier to just get PoE cams directly.
Camera: https://www.amazon.com/dp/B07QW73RJS/ref=cm_sw_r_cp_apa_i_8L...
Adapter: https://www.amazon.com/dp/B078LYW6D7/ref=cm_sw_r_cp_apa_i_XP...
Here's the script:
https://github.com/erahhal/ipcam-recorder
I added the script as a systemd service that starts up on its own.
In this case I think it means "nearly".
Samsung (MZ-V7E1T0BW) 970 EVO SSD 1TB
The Pi is the only SBC with an excellent OS ecosystem.
They already come with things like power supplies, RTC+battery, on-off switches, sata and/or m.2, expandable memory, etc.
Personally I use ARM SBCs to get physically separate hosts for things like Consul/Vault/Nomad servers, k8s control plane, some monitoring instances, workers for loads that don't need blazing single-thread performance, etc. This way I can run something close to "best practices" HA redundant clusters while staying low on purchase and electricity costs, and my whole setup can fit in a suitcase if I need to move.
Some of the things you mention (m.2, RTC, switches) are things that are either included or cheap and easy add-ons to the boards I mentioned.
Another nice upside is the low power means it's easier to power them via PoE, so you don't need a power supply in the first place.
I also try to go as far as I can in the direction of libre/open software/firmware/hardware, which means I try to minimize the reliance on Intel and AMD CPUs.
I think the “it depends” also depends on what you think the next ten years holds for ARM vs x64. Getting some more hours in dealing with ARM ‘servers‘ might be a decent way to hedge your bets.
Full sized hdmi port, USB-C with DisplayPort, gigE, and connectors for two WiFi antennae, and an M.2 4x slot on the backside of the board that would be great for an nVME card. It also has two screw holes and a power header for mounting a heat sink.
For this micro-server form factor, with a tiny little board in a tiny little case, what is a better storage form factor than a little portable SSD connected via USB 3?
(I wouldn't be wild about using a microSD card for a server that relied much on storage)
I recently built a desktop computer. It uses a 6x6 inch mini-ITX motherboard. The motherboard has a CPU and 2 sticks of RAM in it, raising the height to about 2 inches. The SSD goes inside the motherboard in the M.2 slot. Aside from this 6x6x2" unit, the only other things are:
- the gigantic graphics card - not necessary on these type of computers - the power supply unit - standard USB unit for these - and the CPU cooler which is a big hunk of metal sticking out and raising the total height to about 6 inches - again not necessary, maybe a tiny passive heatsink
M.2 is faster and lets you put a tiny SSD (literally just a PCB with flash chips on it) inside the thing instead of having a large external USB SSD with a cable to connect. So in the end you have a super compact computer that is basically just one PCB with another PCB inside it and maybe a tiny heatsink.
> having a large external USB SSD with a cable to connect.
The Samsung t5 and t7 SSDs I'm using with RPi 4s are about the size of a credit card (a stack of five credit cards, I guess). The tiny, very solid flirc cases for the Pis aren't much bigger, and dissipate heat beautifully. I like this solution a lot more than I anticipated I would.
Flashing the newest firmware is about it, now.
The reason I want a AMD based computer is to run vanilla Debian on it.
Vanilla debian does not run on Raspberry unfortunately. Currently I'm running Odroid XU4, but I need more ram and horsepower.
https://liliputing.com/2020/08/asrocks-new-deskmini-pcs-supp...
https://geizhals.eu/?cat=sysdiv&xf=450_Nettop~6764_AMD&asuch...
You can also look at https://www.amd.com/en/products/embedded-minipc-solutions.
https://www.indiegogo.com/projects/the-next-gen-minis-amd-ye...
If you really want to compare a 200$ desktop with a 40$ SoC then you should aim for stuff such as those mini PC's/thin clients from Asus, which nowadays even ship with Ryzen processors.
And a used Lenovo Tiny is easy to find for much less than $200. $100 shipped without an SSD, $140 with one.
You're exaggerating both ends.
That's true, but we can break cost down easily. Right now there are RPi4 packs with power supply, enclosure, and both passive and active coolers for less than 15$. Storage depends on your taste, but you can buy 64GB USB pen drives or micro SD cards for less than 10$, or 1TB external HDD for less than 50$. Thus for a total less than 100$ you can have a brand new server up and running.
I'm talking about stuff you can simply add to your shopping cart and get it shipped to your doorstep in a few days with zero research. These prices were literally taken from the first search result that popped into amazon.
Better yet, this option involves zero time wasted betting on whether end-of-life hardware still has a few months left in them.
Parts from Ali:
Stackable plastic frame for 4 pis + basic heatsinks ~= 5$
MicroUSB PoE injector (removes the need for PSU) ~= 3.5$
There's no way you can do much on the rPi4 without active cooling - mine gets uncomfortable hot doing some basic web scraping, never mind server duties.
You'd be surprised. YMMV and of course your local climate and your usage patterns do dictate how hot your gear runs, but in my experience adding a small 1$ heat spreader does allow my RPi4 to chug along without going over 60C. Heck, even placing it on the side or placing a coin stack over the processor is enough to keep it running along without ever throttling.
Of course if you're constantly running 100% CPU loads then you start to need cooling, whether it's your laptop or desktop or even servers.
This one is sold out and out of production now though and I had to trim it because it was made for the 3+
It also uses much more power, most of ivy/sandy bridge low power desktop generally idles at more or less 15W, where the RPI 4 uses less than 4 watts.
Raspberry pi is also ideal as a command and control server for IP gadgets running hacked firmwares such as cameras and doorknobs and ACs and stuff. It is better to run cameras on on a separate wifi channel/PHY to save bandwidth, store to local server, rsync over to off-site backup once a day. All of this can be done with Pi, ethernet cable and a cheap usb wifi interface.
Looks like it's a magazine?
Is there any context, none of the articles have dates or an explanation about what it is/who makes it.
I’m a big fan of his Casio F91W mods and his Pi Zero projects. His overall design/aesthetics are flawless too.
- BitWarden for password manager backend - AdGuard Home for ad blocking and local DNS server - OctoPrint for my 3D printer
Just for context, you can fit about 10 raspberry pi 4s in the same volume you fit your used laptop, and for the price of an old end-of-life Thinkpad you can buy 5 or 6 RPis. Hell, you can go to any online store and buy dozens of RPis in a couple of clocks and have them delivered to your doorstep in a few days.
Meanwhile, your cheap Thinkpad is already in the tail end of its bathtub curve.
..when describing hardware used for mostly trivial purposes. The mentality of just clicking up some new hardware with no consideration of e-waste has to stop.
Anecdote; my last laptop was a used T420. $80. You're lucky to get two Pi+SD card+power supply for that.
I'm going to go out on a limb and assume the average HNer already has numerous retired laptops collecting dust in a corner, all more powerful and better suited to connecting high-speed storage to than any Raspberry Pi. They're already wasting space and have already been manufactured, instead of adding more e-waste piecing together Pi-based storage contraptions just turn one on and set it up for server duty already.
That said, x220s and x230s seem to have gotten more expensive since then, I haven't seen any similarly good deals lately.
I could have used a thinkpad with a usb DAC, but it would require more space, more power cable, ... It would provide a built in ups and screen, which I don’t need.
I think rpi are OK when the whole service it provides could be read only, with no local storage / state.
Most things I use Pi's (Raspberry and other flavors) for are headless.
Sure I could probably fool around with a logic analyzer and try to figure out some way of fooling the motherboard it has a monitor, but meh, Pi's are cheap and easy and just work.
It's not that I don't believe, but the occurrence seems to be ultra rare.
0.0001%? Did you just pull that out of your ass?
Amusingly #2, #3, and #4 aren't x86-64 either. Number 5 is, but mainly because the xeons are handling I/O for the real heavy lifting on the matrix-2000 accelerators. The first pure x86-64 cluster is #8.
So the performance story is changing quickly, and arm is just getting started.
https://top500.org/news/japan-captures-top500-crown-arm-powe... (June 2020)
> The new top system, Fugaku, turned in a High Performance Linpack (HPL) result of 415.5 petaflops, besting the now second-place Summit system by a factor of 2.8x.
> Fugaku is powered by Fujitsu’s 48-core A64FX SoC, becoming the first number one system on the list to be powered by ARM processors. In single or further reduced precision, which are often used in machine learning and AI applications, Fugaku’s peak performance is over 1,000 petaflops (1 exaflops).
> The new system is installed at RIKEN Center for Computational Science (R-CCS) in Kobe, Japan.
When next generation Mac Mini with Apple Silicon comes out, data centers using that would be running Apple Server packages on that.
In fact I've been running my production applications on ARM servers for ~a year and it has resulted in greater capital efficiency.
I've been using Pi 2 with USB storage as a publicly hosted git server for over 5 years used by multiple users.
https://smile.amazon.com/gp/product/B07VWM4J4L/ref=ppx_yo_dt...
Should solve the problem. :)