Anyone else use their crappy old laptops to host servers? lol

rockhandle@lemmy.world to Selfhosted@lemmy.world – 192 points –
97

i disaseemble all my laptops so they are just a motherboard, screw them into sheets of MDF, place vertically, and use them as servers.

NAS, pihole, plex, etc

You have a tutorial? That sounds awesome.

This article talks about turning a laptop into a rack mounted computer. Each computer will be different recreating something like this based off what ports it has and where.

Do you do a headless install like Ubuntu Server Preseed?

https://help.ubuntu.com/community/Cobbler/Preseed

Or do you install linux on an SSD from a different machine, then plug it into MDF mounted laptop mobo?

I would guess by plugging external peripherals to the motherboard.

I'm talking about the LCD/monitor. Maybe @penguin_knight keeps the LCD and mounts it to the board as well. If not, it's headless. Mouse and keyboard are not the issue. I always set up raspberry pi headless because the OS allows it. All you have to do is add an ssh file to the /boot dir and wpa_supplicant.conf file in root dir. Other distros typically don't, they need a monitor to be installed.

I know, that's why I wrote external peripherals and not external inputs. I don't want to sound cocky or be an asshole (we all know how easy it is by just reading a message someone you don't know wrote), but after 24 years of being in system administration/engineering/architecture I may have sufficient grasp of what I am talking about. 😅

My problem is that the ethernetports Clip is part of the case, without it, the Ethernet cable just doesn't stick. Do you have a solution for this problem? A photo would be really cool.

Yeah, using a 9 year old work laptop as my home server. Then with the surging energy prices last year I decided to switch out that laptop with a raspberry pi 4 as server.

Conclusion: I now have a laptop and a RPI running 24/7 🤦‍♂️

Conclusion: I now have a laptop and a RPI running 24/7 🤦‍♂️

Sounds like a win to me. lol

My RPi4s and 3s will out perform my older laptops, apart from the just retired P50 (gpu nearly died). That one is 6y, the others are 11y old HPs and a 16y 32 bit Xxodd (wierd brand). tje RPis are sufficient for normal server use, the nwew laptop (last gen i9 with 64G mem) can host (nested) kvm clients, so no need for extra hardware. (And still I save them, just in case ;) )

I wouldn't recommend a RPi for a server for anyone looking into this. Something like a ThinkCentre M92P will cost less and run circles around a RPi4, at not much more power. It will also support x86 and has Quick Sync tech which makes is great if you use something like jellyfin and need to do transcoding.

Even if you really need a low power SBC then a RPi4 was never the best option. The RockPro64 was released an entire year prior to the RPi4, and has a faster CPU. It supports booting from eMMC, and could boot from USB for like 2 years before the RPi figured it out. It also has a standard PCIe slot for adding SATA cards or extra ethernet ports instead of using the weird hat thing.

Personally though, I don't think the tiny/mini/micro PCs can be beat, I run two of them at home for all my services.

I'm glad I don't need computing power then. It just runs a webserver, 2 databases, mail environment, puppet master, icr client and some random stuff I just start and forget.

It does the trick here and it and it's predecessor Rpi3 and 2 managed, are quiet and enough for here. Both 3s boot from microsd and run from USB SSD for the OS, data is on nas. All are stock, no extentions, apart from an extra USB nic on my firewall. (Somehow having 2 different physical interfaces sounded preferable to me for a firewall)

The old 3s are now interface for my smart meter and a domoticz system.

BTW I see the Thinkcenter you mention for €250 online, My RPi4 cost me as kit €108 (8GB version). That was before all prizes went trough the roof though, as I see the separate board now for €125.

BTW I see the Thinkcenter you mention for €250 online, My RPi4 cost me as kit €108 (8GB version). That was before all prizes went trough the roof though, as I see the separate board now for €125.

A ThinkCentre M92P can be had for < €100 on eBay, like even down to €40-70. I'm not saying you shouldn't use a RPi if you already have them, but RPi has not been worth it going back to the RPi3. If anyone needs to get hardware to setup their server, the tiny/mini/micro lines are better.

https://www.servethehome.com/introducing-project-tinyminimicro-home-lab-revolution/

I was put off of RPis since the RPi3 too, the way they misled people with their marketing about it having a gigabit port which was on a shared bus so it was not really true put me off of them. And Pine64 boards have been better going back to then with the RockPro over the RPi3, and the RockPro64 way better than the RPi4.

I turned my ten year old Toshiba i7 with a cracked LCD into a virtual fish tank after the last fish died.

Cool. A friend had one in a fireplace that played a fire video in the evenings - with the crackling sounds too.

I'm patiently waiting for someone (anyone) I know to decide to throw out an old laptop.

Gonna bite their hand off for it, install Linux and proceed to fuck around and find out.

I got a free laptop from work that is an old engineering workstation. Problem is, our IT pulled the hard drive and I haven't found motivation to take it apart and put on in it.

My laptop for home use is almost 15 years old. My desktop is almost 11 years old. My work laptop is 8 years old. Here they are talking about more modern and powerful equipment, defining them as obsolete. I don't know, maybe we should start questioning if these consumption dynamics are a bit harmful.

So what's loading up a YouTube video like? 100% ram and CPU usage constantly?

youtube is older than most of his/her machines ;)

The website maybe, but not the browsers and their video players.. >;)

browsers are not the only way to watch YouTube ... mpv is older than most of his machines ;)

but yeah - i get the point

nevertheless there is a lot you can do with aged hardware - there are lots of desktops/windowmanagers which will happily run as well

mpv is older than most of his machines ;)

As someone who first started to load programs into his computer with a cassette tape recorder, I'm aware of that.

browsers are not the only way to watch YouTube

Between that and apps on a phone, nothing else comes even close in the percentage of usage for viewing a video on the internet.

but yeah - i get the point

Thanks. ]:D

They're usually very inefficient energetically though

My (very) old Vaio from 2013 just had a disk change with an SSD and is now a fantastic domain controller.

All day long. I ssh into mine & run docker. Works surprisingly well. Better than the $5/month droplet.

I'm actually hosting things on my 2 year old gaming pc (which is no longer used for gaming) and using my 8 year old laptop daily... How the turn tables.

Old laptops can are actually great servers—hear me out:

  • Built in KVM
  • Low power consumption
  • Battery = UPS for power blips
  • SSD (sometimes)
  • Wifi + Ethernet = Redundant NICs
  • Quiet (sometimes)
  • Small form factor

I used to use my 10 year old old netbook (intel atom n270 2gb ram - ubuntu server) as a server for Plex, calibre, pihole, ssftp.

Now I am using a Raspberry Pi 4 8GB Ram, as it consumes less electricity. Old laptops are consuming (except HDDs/SSDs) 10-30 watt. Raspberry Pi in indle consumes 2watt and when i am using it at mac power with an external hdd consumes 12watt.

The big issue with laptops tends to be cooling, but something with a decent CPU and enough RAM can still do a good job since in many cases you're not tapping the graphics chip/core, which is often the biggest source of heat.

That said, for small personal services even an 8GB Pi4 can do a pretty decent job.

I use PiZero W to host a couple of small services in my home. DHCP, DNS, etc (the usual).

My first NAS was an old IBM X40 and two USB3-Disks.

those where the days :)

No, I use the old desktops for that.

Old laptops usually seem to go to other people:

  • My first one I gave one to a girl who's house burned down in my street.
  • The second one went to my ex who is on really hard financial times and the old Macbook she got from another good soul died on her.
  • The third one I traded in with my mom who really wanted a light one, and in exchange she contributed to...
  • My fourth one that had more power for compiling things in my studies. This one I still have and use occasionally.

As a test machine, yes. As a production machine... Meh.

Little memory, slow and small disk...

yep!

I used to run an old Dell R610. Used a decent amount of power.

Switched to an old 4th gen quadcore i7 laptop.

Been running great, uses less power, has a built in display and keyboard.

Linux base, Docker Env for most everything else.

Yup! Usually running some local/dev docker containers for work, so I don't slow down the laptop I'm actually using with background stuff. They get hot, and I keep them in places where they get hot, but they haven't died from the heat yet.

@rockhandle That's how I started. Proxmox on a 9 year old laptop with LXC and VMs. Even now that laptop runs proxmox with pfsense and pihole VMs and is serving as my home router :)

I actually used to host a pretty sizable minecraft server on a laptop.

Actually worked pretty well, was able to support around 150 or so concurrent users, and this was back in the bukkit days.

Many years ago I used old desktop PCs. But nowadays VPS have become so cheap that it's just not worth the hastle, in my opinion.

A busted up acer netbook on a shelf in my basement ran a Final Fantasy XI private server for several years till it died and I migrated to something sturdier.

Display was wrecked, keyboard destroyed, trackpad gone.. but a single usb port and a vga port still worked so I was able to install an OS. then I removed those and only ever remoted into it. I actually removed the busted display and keyboard to it'd vent heat better - it ran pretty hot and the ventilation on that thing was designed poorly. The reason the keyboard died was actually heat related, melting its underside and warping it.

FFXI Private servers will run on a 2 decades old potato, so this worked until it finally died despite some seriously pathetic specs.

(1gb ram upgraded to 2gb, 1 ghz intel atom single core cpu, yes really)

I thought about it, but the additional display, made me think about power saving, how to shut off screen, while keeping the headless service loaded? ... premature optimization?

In Linux it is possible to turn the screen off after a timeout and keep the system on with the lid closed.

Exactly, and what other OS to use for old device turned server than Linux?

You can use windows 7 or windows AME but not sure it's a good idea tho. What's wrong with using Linux?

I meant it as rhetorical question with obvious answer.

My home server started as an HP Pavilion P6803w desktop PC. A decade later it has a better case, better power supply, more RAM, better CPU, more drives and runs Debian instead of Windows 7. The only original part is the motherboard.

when I first explored the world of kubernetes my nodes consisted of discarded "half-tops," or truly "headless" servers. it was a beautiful abomination.

when I first explored the world of kubernetes my nodes consisted of discarded laptops I've dubbed "half-tops," or truly "headless" servers. it was a beautiful abomination.

when I first explored the world of kubernetes my nodes consisted of discarded laptops I've dubbed "half-tops," or truly "headless" servers. it was a beautiful abomination.

I use old Lenovo tiny units... Can pick them up cheap when businesses upgrade, chuck in a bit extra ram, a new SSD, add it to my proxmox cluster... Then look for excuses to use it so I can justify having yet another one

My first server box was a laptop that was ten years old at the time.

Yeah until it stopped working. The heat is the problem. It lasts for like 6 months of 24/7 usage.

At work we had lots of old laptops, poor battery life, small hard drives, etc. I cleaned them up and installed pfsense on them and gave them to colleagues as home firewall/kid web filters. Others we popped xp on them and set up mame / emulator to give to their kids.

Got a laptop with a busted up screen running Plex and it's pretty awesome! We don't need screens where we're going!

Do you mean a server with a built-in UPS, monitor, keyboard AND mouse? Hell yeah! My old Samsung Laptop has been running my game servers for quite a while now, and I have an old Asus running PiHole and Headcale. Works great!

I took my first foray into media hosting by running subsonic on an old emachines laptop! ain't nothing wrong!

I have an 8 core i7 Alienware 17r3 with 32GB RAM I use to host a pen-test lab. It's outdated and only runs Win10, but with Xubuntu 20.04 and VirtualBox, it makes a nice little vm server I can power up and down with plenty of resources.

Naaaaah... I haven't blown up my pc after it did its service.... Naaaaaaaaah...

Looked into selling my old gaming laptop just recently, and it just doesn't seem like its worth selling them, if they are any older than 5 years, and not top spec. Making a server/node/test machine, might be the best option. Still not comfortable with the laptop battery as ups thing.

Still not comfortable with the laptop battery as ups thing.

what do you mean comfortable? It's basically designed for it.

I have like 3 spare laptops, and another spare computer. I'm not running anything right now because this router doesn't support port forwarding no matter what I try (it's a firmware issue apparently), but they're always there for me when I need them.

You could maybe rent a cheap VPS and use that as a reverse proxy. Using Tailscale to create a VPN tunnel so you don't need port forwarding

Any way to use other firmware? My shitty ISP is giving private IP address, so I just use tailscale instead.

That's the whole thing. I was on CGNAT, and decided to pay $10 monthly to fix it and get a public ip. But NOW I find out the fucking router doesn't even work. It's apparently this exact model that has the issue. And only this one. I don't know if I could replace the firmware.

1 more...