I’ve never done any sort of home networking or self-hosting of any kind but thanks to Jellyfin and Mastodon I’ve become interested in the idea. As I understand it, physical servers (“bare metal” correct?) are PCs intended for data storing and hosting services instead of being used as a daily driver like my desktop. From my (admittedly) limited research, dedicated servers are a bit expensive. However, it seems that you can convert an old PC and even laptop into a server (examples here and here). But should I use that or are there dedicated servers at “affordable” price points. Since is this is first experience with self-hosting, which would be a better route to take?

  • @werefreeatlast@lemmy.world
    link
    fedilink
    English
    327 days ago

    I started with handmedowns donated to my by someone from mastodon that was getting rid of junk computers. All tiny think stations.

  • It depends on what you are running, but at one point I had an Odroid N2+ with 8GB RAM running Home Assistant, mpd, Snap server, zwavejs, mympd, jellyfin, and Calibre, all in containers, controlling the house and providing music for the sound system, playing movies, and with no issues. It ran for 7 years. So you don’t need much; memory helps.

    Oh - I take it back; after I put Jellyfin on it, it would struggle with transcoding. No GPU, old, weak CPU, whatever. But otherwise, it was fine.

    At some point I realized I’d have to leave the computer with the house, because I have over 30 hardwired z-wave devices I’m not taking out if we sell, so I moved all of the services except Home Assistant and zwavejs to another computer.

    My point is: old computers should be fine, assuming you’re not trying to run LLMs on them. Or going heavy video transcoding. Just for serving up some web applications? You don’t need much.

  • @bdonvr@thelemmy.club
    link
    fedilink
    English
    328 days ago

    Heck yeah. Not always the best for power efficiency though.

    Old laptops also a great choice but I really recommend removing the battery first.

    • @leadore@lemmy.world
      link
      fedilink
      English
      127 days ago

      Why removing the battery? I was thinking that could be one good thing about using a laptop is that in a way it has its own UPS.

      • @bdonvr@thelemmy.club
        link
        fedilink
        English
        5
        edit-2
        27 days ago

        Because as a headless server it’s likely to sit hidden for a long time. This and the always being plugged in is not good for lithium-ion batteries. If/when it starts ballooning will you notice? It’s a fire risk.

        UPSes use typically lead-acid batteries like a car.

        • @leadore@lemmy.world
          link
          fedilink
          English
          127 days ago

          I should have thought of that. Thanks! Ironically, I have a very old lead-acid UPS in the basement that I’ve been kind of afraid to plug in again after all this time.

          • @bdonvr@thelemmy.club
            link
            fedilink
            English
            227 days ago

            You can typically replace the battery inside the UPS (and should every few years). Looking at $40-50USD for “official” replacements, less for questionable third party ones.

  • Captain Aggravated
    link
    fedilink
    English
    328 days ago

    When talking about hardware, the physical computer itself, a “server” is commercial grade and designed to run under heavy loads for years on end with very high reliability. Error correcting RAM, redundant power supplies, room inside for huge processors, more airflow than a C-130 for cooling, etc.

    On the software side, a “server” is just a computer that provides some service to users on a network. You very likely have one of those Wi-Fi router/ethernet switch things from the likes of Linksys or whatever, right? That is almost certainly acting as a DHCP server for you LAN, in that capacity it might handle kilobytes of data a day because dynamically assigning IP addresses on a household Wi-Fi network is not a very demanding task, so it’ll do it on a tiny little ARM processor with a few MB of RAM. It probably also has a web server, which is how the “go to its IP address in your browser and get to your router settings page” works. It’s serving a little website that most of the time gets absolutely zero traffic.

    So, turning a desktop PC into a “server.” The question is, what services will it provide? Desktop PCs are pretty good at mostly low traffic with bursts of intense work, so if they’re going to sit still doing nothing while you’re at work all day, and then maybe handle some file storage or media transcoding during the evenings while you’re home, a PC will do that just fine, if you’re okay paying the power bill of having a computer up and running all the time.

    If you’re hosting a website or a game server with a lot of active users around the clock, you might want to look into more professional hardware.

    • @sugar_in_your_tea@sh.itjust.works
      link
      fedilink
      English
      227 days ago

      If you’re hosting a website or a game server with a lot of active users around the clock, you might want to look into more professional hardware.

      Honestly, that’s going to be pretty far down the road. Use what you’ve got, and fix issues as you go. Professional hardware is rarely needed, but it is pretty cool.

  • @ashenone@lemmy.ml
    link
    fedilink
    English
    228 days ago

    Yea definitely. I started tinkering with my first server in 2020 and used an ewaste dell tower with an i7 3770 (8 years old at that point) and an old rx460 I had laying around. As others mentioned power consumption was way worse than modern hardware. But I had at one point a half dozen people streaming jellyfin 1080 content from it with no hiccups at all. That said I was running on linux, not sure how it would do if you run windows.

    Right now I’m using a low power pc to run my server, again an old ewaste dell micro pc with a 5th or 6th gen i5 and no dedicated gpu. Still no problem streaming to my partners and I’s phone/tablet simultaneously. Again, running linux.

  • @deadbeef79000@lemmy.nz
    link
    fedilink
    English
    1927 days ago

    Anything you need to buy is more expensive than anything you already have.

    Especially if youre worried about power costs.

    Reuse wha you have, replace when you need to.

  • @jonne@infosec.pub
    link
    fedilink
    English
    11
    edit-2
    28 days ago

    My answer would basically be yes, but. An old desktop (or even laptop) can definitely be used and will run fine. It should be very easy to get one for free or very cheap as companies will typically write them off after 3-5 years.

    However, you might want to consider power consumption. Running a desktop 24/7 will use a lot more power than a new MiniPC or a NUC, so you may want to calculate how much it’ll cost to run a desktop 24/7 compared to a device that only uses 5W or whatever, and see whether the upfront savings make up for what you’ll pay in electricity over a certain period.

    I think you might actually want to look into second hand MiniPCs unless you absolutely need to fit a bunch of hard drives in a case (like you probably would with Jellyfin).

    Also I want to echo what others are saying about noise. A desktop or rack mounted server will make more noise than a laptop or MiniPC.

    • @acockworkorange@mander.xyz
      link
      fedilink
      English
      327 days ago

      That depends. A lot of the power consumption comes from spinning media. Even very old desktop Intel chips have CPU throttling and consume very little while idle. Corporate desktops, even old ones, are usually quite economical.

  • chingadera
    link
    fedilink
    English
    227 days ago

    I bought a used m920q for this reason, still working on it, I’m at the docker-compose phase

    • @pezhore@infosec.pub
      link
      fedilink
      English
      227 days ago

      Those are beasts! My homelab has three of them in a Proxmox cluster. I love that for not a ton of extra money you can throw in a PCIe expansion slot and the power consumption for all three is less than my second hand Dell Tower server.

      • chingadera
        link
        fedilink
        English
        127 days ago

        Do you have any good resources I can look at to see if a cluster is something I should look into?

        • @pezhore@infosec.pub
          link
          fedilink
          English
          123 days ago

          Not really, but I can give you my reasons for doing so. Know that you’ll need some shared storage (NFS, CIFS, etc) to take full advantage of the cluster.

          1. Zero downtime for patching. Taking systems offline to update Proxmox sucks, especially if the upgrade fails for some reason. A cluster means I can evacuate one host, upgrade it, and move on to the next with no downtime for the hosted VMs.
          2. Critical service resiliency. I have a couple of critical systems in my home lab that, if they unexpectedly go down, will make for a very bad day. For instance, my entire home network (and lab) is configured to use a PowerDNS cluster for DNS. I can put the master PowerDNS server on one host and the slave on a second host - if I have a hardware failure, I won’t lose DNS. I have a similar setup for my Kubernetes cluster’s worker nodes.
          3. Experimentation. A cluster gives me a larger shared pool of CPU/Memory than my single host could offer. This means I can spin up new VMs, LXC containers, etc and just play with new software and services. Heck that’s how I got started with my Kubernetes cluster - I had some spare capacity so I found a blog post that talked about Kubes on LXC containers and I spun it up.

          I hope that helps give some reasons for doing a cluster, and apologies for not replying immediately. I’m happy to share more about my homelab/answer other questions about my setup.

          • chingadera
            link
            fedilink
            English
            123 days ago

            That makes sense, thanks for sending that. My needs are far less critical or have a need to redundancy like that but just knowing that is an option is awesome

  • qaz
    link
    fedilink
    English
    827 days ago

    Old PC’s and especially laptops (make sure to consider removing the battery though) make great homeservers. You can run dozens of services on old hardware.

    • @pHr34kY@lemmy.world
      link
      fedilink
      English
      427 days ago

      Leave the battery in and you have a free UPS. Perhaps set it capped at 80% charge to increase its lifespan.

  • @NeoNachtwaechter@lemmy.world
    link
    fedilink
    English
    1027 days ago

    Yes, you can easily do it.

    You want to look at 2 things: 1. Noise 2. Ratio of performance / power usage.

    1. Noise

    When your PC runs 24/7 then it might be annoying to hear it’s noise sometimes. Real server cases are usually even much louder than former PC’s because they are built for super strong air flow inside.

    Think carefully what you need. In my situation it is just one light wooden door away from my bed, so I wanted it impossible to hear. I optimized it so, and it ended up being so quiet that I cannot hear any fans, but I hear the clicking of the harddisks all the time. Well, I got used to that, mostly. For my next home server I want to build my own case that absolutely blocks this noise.

    1. Ratio of performance / power usage

    People are frequently asking what if I turn this old Pentium etc. into a server?

    Well, these old CPU’s have very low performance compared to new ones, but it might just be sufficient. But then you recognize that the old veterans burn 100 Watts for the same performance where a modern (low performance) CPU burns only 5 Watts, and now it will do that 24/7. Think about your yearly costs. Many times it turns out that buying a new one saves your money very easily.

  • @TaiCrunch@sh.itjust.works
    link
    fedilink
    English
    628 days ago

    A couple years ago my in-laws were downsizing after retiring and they asked if I would possibly have any use for their ancient desktop PC (at least old enough to have shipped with Windows 7).

    I installed Debian on it and it’s running Jellyfin, qBittorrent through Gluetun, Calibre-web, NextCloud, and Pi-Hole containers, with plenty of room to spare. I’ve also got some services running on Raspberry pis (back when they were cheap). And an external 4TB hard drive connected to it acting as a NAS. No hardware transcoding or 4K video on Jellyfin but that’s no big deal for me.

    All that to say yes, you can absolutely self-host on repurposed hardware. Any old PC you’re looking at is no doubt newer than mine.

  • @acockworkorange@mander.xyz
    link
    fedilink
    English
    327 days ago

    You don’t need more than an old desktop with a low powered i3/i5 and a free drive bays to build your first NAS. Just install TrueNAS and get going.

  • @korsart@lemmy.world
    link
    fedilink
    727 days ago

    There’s no right way, really. You can turn almost anything into a server.

    If you have old hardware laying around I suggest you start with that. When you’re comfortable with setting everything up and using it on your day to day, then it’s time to invest into hardware.

  • @Shady_Shiroe@lemmy.world
    link
    fedilink
    English
    127 days ago

    Its less of a need for powerful hardware and more of a want.

    I started off my days with a laptop that had a broken screen. I took screen off and hid it behind my desk, worked perfectly fine, even came with a built in backup battery too xD

  • @empireOfLove2@lemmy.dbzer0.com
    link
    fedilink
    English
    6028 days ago

    Any normal computer can become a “server”, its all based on the software.
    Most enterprise server hardware is expensive because its designed around demanding workloads where uptime and redundancy is important. For a goober wanting to start a Minecraft and Jellyfin server, any old PC will work.
    For home labbers office PC’s is the best way to do it. I have two machines right now that are repurposed office machines. They usually work well as office machines generally focus on having a decent CPU and plenty of memory without wasting money on a high end GPU, and can be had used for very cheap (or even free if you make friends that work in IT). And unless you’re running a lot of game servers or want a 4k streaming box, even a mediocre PC from 2012 is powerful enough to do a lot of stuff on.

    • @archemist@lemmy.dbzer0.com
      link
      fedilink
      English
      427 days ago

      Totally agree, I’ll add that I run jellyfin, the *arrs, an admittedly low throughout ripping/encoding setup, and a few other containers on a single optiplex micro 7060 and there’s a lot of room leftover. I very much appreciate the laptop processor in it because it usually sits idle for 16 hours a day.