Turning laptops into mini-servers

One of the most common e-waste sources out there is laptops, slower than other computers and often not upgradable, lacking ability to change peripherals, like screens. A sad fact as the vast majority of people do rarely use the full potential of the computers of today anyway, often unnecessary upgrading due to lack of awareness of choosing options that allow changing batteries, or keeping software and OS from slowing the machine down.

But when they really get old, they still are more than potent enough for a range of tasks. As an example I am currently running two laptops turned into servers, one about a decade old, the other quite old at two plus decades.

The oldest one did provide a host of services for 15 or so years but as time moved on, it’s now acting as a secondary ‘Pi-hole‘ a project dns server aimed for removing ads on the web by dns filtering, really effective. Simply removed the motherboard put on a salvaged heatsink, and bent a chassis. Small (as the laptop was a rare 12″ variant, unusual in the 2000’s) and silent with a sdcard instead of a hard drive.

This second one is more interesting, and capable. As laptops have gotten slimmer, many using the ‘Ultrabook’ nomenclature contain quite minimal motherboards. In this they are a good candidate for even smaller servers, tagged to a wall next a router for instance.

Using a fittingly sized case, yet more salvaged heatsinks, some screws and tools a usable mini server is the result. Keeping it cool another left over fan controller easily fits, although connections for the previous cpufan would allow for automated temperature control. Instead having manual adjustment and a silent noctua fan have their own merits.

This one has an interesting task, much like the previous use case providing a standalone service, should the main one fail, this will provide automated fail-over for virtualized machines. Given its capabilities, it runs proxmox, a hypervisor of virtualized computers providing various tasks such as webservers. That means they are configured to automatically stay up to date, a mirroring of an instance running on a more powerful machine and service. However, should the main server go offline, for upgrades, maintenance, or due to an error, the Web addresses and links automatically redirect to the virtual services on this little thing. Hardly up to the same standards it is still plenty fast to deliver and support a number of reasonable pages and functions in the short time.

Starting with the sad remaining innards of a HP spectre laptop, first thing is cooling since the goal is as silent as possible. This relies on not having thrown out other parts.. And I do have some suitable heatsink that can be both bonded with Conductive glue or ‘pads’ and then zip ties for good measure.

To this I opted for a manual fan controller, something easily put together from a few leftovers, ended up with a different controller and fan than in these images (noctua really is unique in low noise applications). For a secure mount I use standoffs, after a fashion, using lots and lots of screws, nuts and washers, and a few more zip ties.

Preserving the added USB and fan header on the daughter board and fitting the fan was tricky but ended up a very nice match with the chassis.

Here I tagged on power for the fan controller and added a badly matched cmos battery. In the end ‘great success’. After testing the virtual machines running on proxmox, and writing some code, they quickly and easily update themselves to keep in line with the little websites they are a failover for. As a main site goes down the WAP (Web application firewall) directs traffic to this instead of main servers, no need for constant ‘heartbeat’ communication between this little machine and any others. As far as it knows its always serving up tiny services and websites, but leave the direction of the network to more serious machines, UTM (Unified threat manager) and a WAP.

Now this could have just as easily been connected to your TV via hdmi and act as a streaming box as well as any one of countless possible net services. Just giving a second life to a discarded laptop and a value where someone else saw none.

 

Random Posts

LOAD MORE