Repurposing my old Chromebook to a low power home server
tamas.dev
tamas.dev
It's pretty much just 'apt-get install nginx' and a port forward on your router for ubuntu-flavors, isn't it? All that extra software setup for managing container and databases for monitoring and visually displaying logs, the extra software for dealing with the bandwidth that comes with containers, etc, doesn't have meaning or use in this context. He doesn't even actually mention which webserver he uses. It's all meta and no server.
But you are right though. You can apt-get install nginx on Gallium to run many things. Fair use cases include an OwnCloud, a media server, a home security gizmo using the microphone and camera, a personal website and much else that could be done. It would be great to run these things and it be next to no power with a refurbished/recycled machine.
Or you could run Virtualbox to host another flavour of Linux so you can host Docker and use that to test your installation, no actual apps or real work done at all.
Isn't this what leads to home networks being cracked and added to botnets (or your webcams broadcast to the public)?
If you aren't willing to commit to good sysadmin practices like doing regular patches and segmenting off the public webserver from the rest of your network, you're pretty much guaranteeing that you're going to get hacked some day. Auto updates can help, but if you're not actively monitoring, some day an update is going to fail to apply due to a package conflict and you're going to remain unpatched.
If all you need is a simple webserver, you're better off letting someone else host it.
If all you need is a simple webserver it's best to host it yourself. If you need anything more you're better off letting someone else host it.
It's more convenient than packaging up a Raspberry PI. You get keyboard, screen, disk, power supply, and battery, plus some USB ports, in one compact unit.
I remember I had a celeron notebook from 2011 and it was slow back then even with an SSD. I gave up on the idea that it would be an efficient always-on server.
If you run NetBSD, you will not have to disable anything for the device to stay on when the lid is closed.
It's not even close.
The LCD, battery and I/O keyboard/mouse/usb are nice but, no hdmi, just VGA...
It makes sense if it's Free but even then, the pi simplifies this so much and then you have no moving parts.
I have some netbooks lying around and I'd still prefer to buy an RP4 for little projects here and there. Reuse be damned I guess. For me, the main reasons to go with RP4 are gigabit ethernet, less power draw, less need for noisy fans, and a large community.
I can't imagine Raspberry Pi community is bigger than Linux users on laptop and desktop. And how can one separate?
On a plus side of Raspberry Pi I would add GPIO with PWM, SPI, I2C and Serial.
It seems easier than ever to repurpose old hardware for home servers with docker and all the great projects out there!
I'll probably go with a small NUC or something like that instead, especially if there's some AMD Ryzen systems coming out in that form factor.
I'm tired of having to power the Pi over the expansion header while people keep saying "don't do that because you bypass the power protection" well no shit but there isn't any other option if I don't want to use USB.
95% of the time I power Pi with DC-DCs, not from a wall source. (But even for a wall source, it's way way way easier to find 5V3A, 5V5A, even 5V10A adapters that give you nice, easy to use +5V/GND terminals or wires than it is to find a USB wall wart that can deliver enough current for the Pi 4.)
In general, I want a power connector for power when integrating the Pi into a larger device.
https://www.argon40.com/argon-one-m-2-case-for-raspberry-pi-...
EG 149MB/s on dd writes.
See https://www.jeffgeerling.com/blog/2020/uasp-makes-raspberry-...
I use a mounted usb drive for logging and storage so hopefully that helps the sd card stay fresh.
In the name of countless fellow HNers, tell us more right now!
The Asus PN50 with Ryzen 4000U series APUs is starting to become available in the US and other countries. Zen2, laptop chips. Tiny computers: 1.93" x 4.50" x 4.50" (or 4.9cm x 11.5cm x 11.5cm). I don't have experience with these, but they were on my list before I decided to go a little bigger and get the desktop APUs in the same series whenever they start shipping to the US.
A ryzen is a lot more capable than a Pi, and sometimes that's worth the material and power cost. Mostly, I was just pointing out that there are some systems out there to buy if you want though.
It's a very real issue. I managed to burn out a SD card that wasn't even being used, i.e. only the /boot partition was on the SD card, and it pointed at an external drive for the root. Presumably that means the heat alone of being connected to a Pi was enough to burn out the card.
I had it connected to a UPS that went bad, and that trashed the bootloader/firmware on the Pi.
I had to reflash, and it works, but I have also had two 2.5” usb3 drives die in the last month (I had a independently powered usb3 hub attached).
If you care about your files and time, have a working backup strategy in place.
OT: In my experience "set up a backup at some point" all too quickly becomes "shit, I _knew_ I needed a backup".
/etc/systemd/logind.conf
HandleLidSwitch=ignore
Never thought of it as UPS, probably can implement graceful shutdown on low battery level [3][1] https://wiki.archlinux.org/index.php/software_access_point
[2] https://wiki.archlinux.org/index.php/Power_management#ACPI_e...
[3] https://wiki.archlinux.org/index.php/laptop#Hibernate_on_low...
If you have a x86 specific workflow, then there are not much choices out there at such low power/price scale e.g. I used one for running a Chromium puppeteer task, as Chromium was nearly unusable in similar or better specced ARM SBCs running Linux.
But that's a one-off example, for almost every headless application an ARM SBC like Raspberry Pi makes more sense.
Chromebooks ditching ARM seems to add credibility to my suspicion, in spite of ARM chromebooks being more favourable to run Android apps.
In my experience of trying the same, this is a swollen Li-Ion battery waiting to happen.
All of my routers are 2-prong so I have one unit for every router/switch/AP in my house. Actually really helpful and if I was running a Chromebook for a server like this, I could keep my services accessible remotely even if a short power outage happened!
Much less hassle and similar price to an RPi.
In my neck o the woods(Austria) a X200 series is around 150-200 Euros. Add 16GB of Ram and an SSD an you're looking at at least 250 Euros instead of just 40 for a PI.
- power supply
- quality SD card
- heatsinks
- a case
and then deal with
- non-x86
- thermal issues
- SD cards
- the CPU is too tiny to do anything useful anyway
Sorry to hear that X2x0 is expensive where you live. I find that the small additional investment over the RPi is worthwhile.
Granted, the RPi2 had a slow CPU, but I am finding the RPi4 is snappy enough for "serve a website out of a docker container" workloads. I am hitting SD card I/O limits faster than I hit CPU limits.
Power supply: It's USB powered. For a home server, I find it convenient to plug it into a USB port on the router, to which it is also connected for ethernet.
SDCard: It was set up to only use the sdcard to boot and use a USB stick as root, which gets around all of the sdcard issues. This is not a totally plug-and-play experience, though. My understanding is that the newer firmwares finally allow direct boot from USB, though.
Case: You can DIY it easily. The case for my home server was basically a folded piece of cardstock on which I drew a picture of a once-bitten pear. Other times I've used legos or dremel tooled altoid tins.
Heat sink: Unnecessary prior to the Pi4. (which also ramped up the cpu and power usage quite a bit...) They keep producing the older models, so it's mainly a matter of picking where you want to live on the compute vs heat management scale.
Heatsink and case were totally optional in my experience (or a case would make thermals worse). Power supply maybe, if your phone charger did not already work. SD Card or flashdrive; I have many of these lying around.
There is something to be said for having keyboard, pointing device and screen included with a used laptop, but the stuff you list it seems you just don't actually need.
That being said, good computers going to good people for them is always a good thing no matter the use case.
I run SmartOS on another t430 with a cracked screen which has a bunch of guest KVM and zones. Runs ZFS in a mirror and 16G ram, backed by an APC unit for the modem router.
I blogged recently about my setup here:
https://russell.ballestrini.net/weechat-on-boot-in-a-tmux-se...
(Hosted on said laptop)
https://www.servethehome.com/introducing-project-tinyminimic...
I do like the idea of getting a free battery back-up &built-in crash cart for my server. On the other hand, a lot of these mini-pc's have much more powerful cores & more expandability, typically both an m.2 nvme slot and a 2.5" sata, two so-dimms, and a lot more video & usb out.
Really these big clusters rarely need to be run 24/7 so it’s more economical to run one node doing stuff that has to be on all the time. Everything else I run in virtualbox on my desktop which is a fairly hefty Ryzen which gets turned off when I don’t need it.
I will replace my Lenovo M series with a VPS node when someone does one that Devuan works on.
My use case would be similar to this, but also to serve as a lightweight local backup server (never accessed, unless laptop and iCloud backups fail). One 500gb SSD would be sufficient for my use.
You could probably find one with dvd-drive slot and swap it with HDD caddy.