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?

  • dalë@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 hour ago

    My home media server is an old nuc mini pc i5 16Gb RAM with attached usb storage running on a Linux distro, runs Jellyfin and a few other applications for the household.

    In short yes, an old pc will work fine.

  • paris@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 hours ago

    My server pc is just my old computer parts. Ryzen 3 2200G with with 6Gb of RAM. It gets the job done!

  • ollioddi@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 hours ago

    I have 3 servers at home. The main is an AMD epyc server. Very nice hardware. The other two, are cheap 13 and 14 Gen Intel i3s (14100t) and they work like a charm, despite being cheap consumer grade hardware. For self hosting, a server is just any computer. Unless you need the features or reliability of enterprise hardware, basically anything can be used. Do it

  • dbtng@eviltoast.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 hours ago

    Do it. Jump in. Just start with whatever you can assemble.
    It’s a great way to keep your room warm.

  • korsart@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    3 hours 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.

  • hperrin@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    4 hours ago

    Absolutely yes. It’s better to use an old PC for a home server, because upgrades are cheaper, parts are easier to find, troubleshooting is generally easier, they’re usually more energy efficient than an older dedicated server, and you’re saving an old pc from becoming e-waste.

    That being said, what you want to run on it determines how old/cheap of a PC could work for you.

    Jellyfin works best when you can do hardware encoding, and these days that means throwing an ARC A310 in there and calling it a day. If you have a new enough processor, you don’t even need the graphics card.

    Mastodon is pretty disk heavy, but if you’ve got a nice hard disk to put the Minio server on and an SSD for the db, you’re golden. That’s how I run https://port87.social/. It’s running on an old 6th gen Intel i7. The PC I built in 2015 (with a few upgrades).

    CPU intensive servers like Minecraft are where you start to run into problems with older hardware. If it’s just you on there, a 10 year old CPU is fine, but if you’ve got a few friends, the server may start to struggle to keep up. I had to move my server off that same system I talked about above, because Minecraft was pegging the CPU a lot. But a 5 year old CPU would be fine for that. (Assuming that the 10 year old and 5 year old CPUs were both top tier CPUs when they were new. Like i7, i9, Ryzen 7, Ryzen 9. A five year old i3 would still struggle.)

    Basically unless you’re trying to run AI models on it, cheap hardware is fantastic for personal servers.

    • prenatal_confusion@feddit.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 hours ago

      Wondering if you have and insight on power usage with the a310 in the system while idling. I built a sub 25w server and don’t want to mess that up.

    • RvTV95XBeo@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 hours ago

      CPU intensive servers like Minecraft are where you start to run into problems with older hardware. If it’s just you on there, a 10 year old CPU is fine, but if you’ve got a few friends, the server may start to struggle to keep up.

      Not sure how recently you ran this, or what all your were running, but in the past couple of years Paper has hit some pretty major milestones in unlocking threaded processing. Barring some sort of spammy 0-tick redstone nonsense or over the top plugins, I’d wager a Raspberry Pi 4 could handle up to about 5 or 6 friends without seeing any TPS dips. Its really remarkable how far they’ve pushed performance recently.

      • hperrin@lemmy.ca
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 hours ago

        That’s really cool! I just run the vanilla server, but maybe I should check out Paper. Can it import worlds from vanilla?

        • RvTV95XBeo@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          0
          ·
          edit-2
          2 hours ago

          Yes, it absolutely can, it’s super easy! Just swap your Minecraft .jar with Paper and it’ll do the rest. It’s a tiny bit harder to go back, but only marginally.

          Out of the box, aside from huge performance benefits, Paper is virtually indistinguishable from vanilla, but it also opens the door to a whole world of easy-to-use server-side plugins.

          Edit: (you should still make a backup before swapping, just in case)

    • pezhore@infosec.pub
      link
      fedilink
      English
      arrow-up
      0
      ·
      5 hours 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.

  • NeoNachtwaechter@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    5 hours 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.

  • Captain Aggravated@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    7 hours 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
      arrow-up
      0
      ·
      6 hours 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.

  • Konraddo@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    7 hours ago

    You could ask the question for video gaming. Can a used computer do the job? Yes, but you may not be able to play cutting edge / demanding games if your computer lacks the appropriate hardware. It really depends what kind of things you want to do, for choosing hardware that’s powerful enough.

    Jellyfin? You need to consider if you need transcoding. Transcode or not makes quite a difference on the hardware needs.

  • bdonvr@thelemmy.club
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 hours 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
      arrow-up
      0
      ·
      5 hours 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
        arrow-up
        0
        ·
        edit-2
        4 hours 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-aced batteries like a car.

        • leadore@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          4 hours 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
            arrow-up
            0
            ·
            4 hours 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.

  • ashenone@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 hours 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.

  • jonne@infosec.pub
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 hours 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 fit Jellyfin).

  • rc__buggy@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 hours ago

    I’ll tell you a secret: my cool looking 4u server case with 8 hot swappable drive bays actually just houses my last gaming rig. Know what’s going in there when I update my current rig?

    This rig.

  • Marvelicious@fedia.io
    link
    fedilink
    arrow-up
    0
    ·
    9 hours ago

    There are a lot of ways to go. My own isn’t particularly efficient, but it’s an old rack mount server. Everything is built like a tank. It’s robust as hell, and yet everything was well used and cheap. Probably not a good solution if you live somewhere with expensive power, but I don’t.