So after months of dealing with problems trying to get the stuff I want to host working on my Raspberry Pi and Synology, I’ve given up and decided I need a real server with an x86_64 processor and a standard Linux distro. So I don’t continue to run into problems after spending a bunch more, I want to seriously consider what I need hardware-wise. What considerations do I need to think about in this?

Initially, the main things I want to host are Nextcloud, Immich (or similar), and my own Node bot @[email protected] (which uses Puppeteer to take screenshots—the big issue that prevents it from running on a Pi or Synology). I’ll definitely want to expand to more things eventually, though I don’t know what. Probably all/most in Docker.

For now I’m likely to keep using Synology’s reverse proxy and built-in Let’s Encrypt certificate support, unless there are good reasons to avoid that. And as much as it’s possible, I’ll want the actual files (used by Nextcloud, Immich, etc.) to be stored on the Synology to take advantage of its large capacity and RAID 5 redundancy.

Is a second-hand Intel-based mini PC likely suitable? I read one thing saying that they can have serious thermal throttling issues because they don’t have great airflow. Is that a problem that matters for a home server, or is it more of an issue with desktops where people try to run games? Is there a particular reason to look at Intel vs AMD? Any particular things I should consider when looking at RAM, CPU power, or internal storage, etc. which might not be immediately obvious?

Bonus question: what’s a good distro to use? My experience so far has mostly been with desktop distros, primarily Kubuntu/Ubuntu, or with niche distros like Raspbian. But all Debian-based. Any reason to consider something else?

  • Onomatopoeia@lemmy.cafe
    cake
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 hour ago

    Unless you need the super-compactness of a mini PC, the Small Form Factor is a significantly greater value.

    You get more horsepower, more space, and better cooling.

    And they tend to be very quiet. Mine only has some fan noise when converting video, and it’s always running 2-5 VM’s (mostly Windows).

  • irmadlad@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 hour ago

    Bonus question: what’s a good distro to use?

    I stick with Ubuntu 22.04 LTS (Jammy Jellyfish). Most people here seem to gravitate to Debian, which Ubuntu is a brother from another mother. As far as equipment, I wouldn’t waste my money on enterprise equipment or equipment older than 5 or so years years old unless you’ve got a mini nuclear power plant. Thing is, now days, with advancements in technology, it doesn’t take a lot to get a lot out of modern equipment.

  • plateee@piefed.social
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 hour ago

    My homelab runs off three Lenovo M920q systems - they have an optional PCIe riser in which I’ve installed a 10Gbe fibre card to handle storage. I grabbed them from an electronics recycling/reseller company - EpcGlobal.

    If you’re in the States, I highly recommend them, although their stock changes frequently - https://epcglobal.shop/

  • curbstickle@anarchist.nexus
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 hours ago

    Business mini PCs with a decent amount of ram in them fit your use case well. And mine, which is why I have a bunch of them.

    The only time ive seen heat be an issue is when they are stacked - to be clear, airflow on those is usually front to back, the problem is the chimney effect. Heat rises. So stacking can be a problem, but I just stick some thick nylon washers between, its worked quite well sticking them on a shelf in my rack. I generally put them in stacks of two, with two side by side, for a total of four per shelf.

    You don’t need to do that right off though with just one.

    If you do get a used one, look for units with 16 or more ram, or bump it to 32gb/64gb (model dependant) yourself. There is usually an unused m2 slot, great for a host os to live if you’ve got a spare (prices suck right now to buy), and typically there is a 2.5" data ssd though sometimes its mechanical or one of those hybrids. Useful storage, but use m2 if you can.

    I prefer the Intel based units so I can use the igpu for general tasks, and if it has a dgpu (I have a few with a quadro in there) I use that for more dedicated transcoding tasks, or to pass through to a VM. For Jellyfin its using the igpu, no need to pass through if youre using an lxc for example.

    Make sure to clean it out when you get it, and check how the fan is working. I’d pull the case, go into the bios, and manually change the fan speed. Make sure its working correctly, or replace it (pretty cheap, the last replacement I bought was ~$15). Any thermal paste in there is probably dried out, so replacing it isnt a bad idea either.

    In terms of what to get, I’d lean towards 6th gen or newer intel cpu’s for most utility. One with a dgpu is handy obviously but not a requirement.

    Personally I am a Debian guy for anything server. So I put Debian on, no DE, set up how I want. Then I convert to proxmox. If youre not overly specific about your setup (like most people, and how I should probably be but I’m too opinionated), you can just install proxmox.

    Proxmox has no desktop environment. Its just a web GUI and the CLI, so once set up you can manage it entirely from another device. Mine connect to video switchers I have to spare, but you can just plug a monitor in temporarily if you need it.

    Proxmox community scripts will show lots of options - I dont recommend running scripts off the internet though, but it will show you a lot of easy options for services.

    Hope this helps!

  • artyom@piefed.social
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    3 hours ago

    What considerations do I need to think about in this?

    Mostly just making sure it suits your power needs while also being efficient.

    For now I’m likely to keep using Synology’s reverse proxy and built-in Let’s Encrypt certificate support, unless there are good reasons to avoid that.

    I mean I don’t know much about those, but I don’t see any reason to continue doing that. Yunohost automates this stuff, if that’s what you’re looking for.

    Is a second-hand Intel-based mini PC likely suitable?

    Yes. Or AMD.

    I read one thing saying that they can have serious thermal throttling issues because they don’t have great airflow

    That’s entirely dependent on the specific Mini PC, processor, cooling solution, cooling profile, etc. Most of them are fine and if you have problems you can just crank up the fan speed. Unless you absolutely need to keep it in a living space.

    Is there a particular reason to look at Intel vs AMD?

    The one thing Intel is better at is hardware transcoding. So if you want to run Plex, Jellyfin, etc. it might be worth getting one of those.

    Bonus question: what’s a good distro to use?

    Pretty much everyone uses plain old Debian.

    The piece of hardware I recommend to everyone who doesn’t have crazy massive storage needs is the CWWK pocket NAS.

  • just_another_person@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    edit-2
    3 hours ago

    Anything can be a “server” in your use-case. Something low power at idle will not cost an arm and a leg to run, and you can always upgrade later if you need more.

    Check the Minisforum refurb store and see what you can get for under $150.

    • Zagorath@aussie.zoneOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 hours ago

      Under $150 might be tricky in Australia, but I had a quick look for “mini PC” from a refurb shop near me and came up with one, two, three for options under $230.

      Something low idle

      I’m guessing that this might be a typo, but I’m not quite sure what it’s meant to read. Or what it means if it’s not a typo.

      • Dran@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        3 hours ago

        All of those would be perfectly cromulent nodes for small containers. The first issue you’ll run into is the low ram. Some homelab projects would cause you to exceed 8gb, but the good news is if you’re using an external backend via NFS, you can always scale out (more nodes) or up(more compute per node,) later with minimal headache.

        If you’re going to be memory constrained, don’t waste 1-2gb on a gui, install Ubuntu/Debian/whatever headless

      • just_another_person@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 hours ago

        Hmmm, it does seem they’ve finally raised prices. Well that’s a huge bummer.

        I can’t say the 3 options you posted are really good deals, but maybe that’s just the market in Australia. I’d check to see what the max RAM in those are and upgrade to at least 16GB though. It should still be cheap for non DDR5.

  • JASN_DE@feddit.org
    link
    fedilink
    English
    arrow-up
    8
    ·
    7 hours ago

    I had good results with SFF (Small Form Factor) machines, mostly Dell Optiplexes. More space inside while manageably small. Usually a lot of them around as former leasing machines.

    • Zagorath@aussie.zoneOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 hours ago

      Oh really interesting. So SFF is a little larger than Mini PC but smaller than standard desktops? Just quickly looking at refurb prices Optiplexes seem to be available a little cheaper than Mini PCs, too.

      • JASN_DE@feddit.org
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 hours ago

        I currently run a Dell Wyse 5something, that one’s low power but passively cooled. Total silence for Home assistant and related services.

    • TwoTiredMice@feddit.dk
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 hours ago

      I have nothing to compare to, but I recently bought a Dell OptiPlex 9020 for $15/£13. It works wonders. I run a handful docker containers and a VM and haven’t experienced any issue since I bought it. It’s my first time experimenting with a home lab setup.

  • illusionist@lemmy.zip
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    7 hours ago

    N100 is a very good choice. Used can be top or flop. Up to you if you want to take the risk/chance.

    ubuntu is a solid distro, especially since you have knowledge with it.

    When I bought a N100 I installed fedora and love it much more than ubuntu because of auto updates without problems, cockpit, podman and selinux.

    If your proxy works, then let it work. If you have to maintain it, or set up a new system, I recommend switching to caddy because it’s just so easy.

    • PatrickYaa@feddit.org
      link
      fedilink
      English
      arrow-up
      4
      ·
      5 hours ago

      I would switch ubuntu for debian, but that is more personal preference. As they are mostly the same architecture, there is not much of a learning curve.

      • illusionist@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        5 hours ago

        What does debian have what ubuntu hasn’t?

        Out of curiosity. I’ve got a debian bookworm running but I couldn’t tell a noticable difference between the two

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

          Ubuntu is based on Debian, by the nature of that it will have more things than Debian.

          Ubuntu generally has more cutting Edge features and tools by the nature of what it is, but the company supporting it also is pushing snap files for compatability containers which may or may not be your cup of tea.

          Debians official packages can sometimes be a tad older since their ideology is stability over everything else.

          A popular hypervisor distro proxmox uses Debian as the base for it’s great stability.

    • Bronzie@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      4
      ·
      6 hours ago

      I second this.

      Bought a $150 NGKTech from Aliexpress with 16 GB of RAM a couple of years ago, and it’s been such a beast with Proxmox.
      Extremely low power consumption, no fan noise, barely any heat and chugs through Jellyfin transcoding, Minecraft/Valheim servers, HA OS and so many more small containers.
      Just remember to set the C-state in BIOS and re-paste the CPU before you fire it up. The stock stuff is crap.

      I was expecting to outgrow it quite quickly, but it just powers through it all.
      I can’t see any reason to get anything more powerful at all.

  • ikt@aussie.zone
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    7 hours ago

    So after months of dealing with problems trying to get the stuff I want to host working on my Raspberry Pi and Synology

    I take it ARM still not there package wise? Sucks to hear, I was really hoping we’d be further along by now

    i just use a second hand laptop I got from “hock and go” down on gold coast, it has an ethernet port :O AMD stuff, I always generally stick with AMD for graphics as a lot of people complain about nvidia on linux, when I was in the store looking at them all did some pretty extensive searching on network driver compatibility, it has been a complete bitch in the past to deal with (ESPECIALLY wifi drivers), it seems to be a bit better these days

    got it home, stuck a 2tb sata ssd in it, installed just regular ubuntu 24.04 lts, works well, i have the desktop version installed but 99% of the time I’m just sshing in

    use it for immich and qbittorrent and a few other things

    Works well enough for me, even though this might be the highest idle cpu usage I’ve ever seen (it’s not a fast cpu):

    Btop: https://files.ikt.id.au/6c8kwp.png

    My other servers are idling at like 0.1:

    Htop: https://files.ikt.id.au/4uvrht.png

    But I haven’t noticed any issues outside of immich taking longer if I go like, recheck all photos or starting up services, not a problem for me

    was interested in this as well: https://www.ozbargain.com.au/node/934940

    Seagate Expansion External Hard Drive HDD 24TB US$309.02 (~A$478.61) / 28TB US$353.02 (~A$546.76) Delivered @ B&H Photo Video

    But haven’t dealt with USB attached storage before, I assume it would be fine but I’ll wait till I’m a bit closer running out of space

    $ df -h
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/sda2       1.8T  164G  1.6T  10% /
    /dev/sda1       1.1G  6.2M  1.1G   1% /boot/efi
    
    • Zagorath@aussie.zoneOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 hours ago

      I take it ARM still not there package wise

      I think for a lot of use cases it might be there. Unfortunately for me specifically, I think ARM might be the cause of part of my problems with Puppeteer, which is why I’m ruling it out.

      You’re based in Brissy or further north in Qld, right? What kind of thermals does your system have, and what’s the room it lives in like?

      haven’t dealt with USB attached storage before

      I actually have, and if you’re interested I’d say go for it, with a couple of caveats. It worked great for me for years with my MediaWiki, torrents, and a couple of other minor web services hosted on my Raspberry Pi, with data stored on the USB external drive. I think it may have been a Seagate, even. Unfortunately I made the mistake of not backing it up, and when the external drive died I lost my data. That would be the biggest thing I’d consider if you’re looking into a USB external HDD. It’s extra important since the drive is probably not designed to be always on in the way a WD Red or equivalent is.

      • ikt@aussie.zone
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        2 hours ago

        I actually wonder if RISC-V might overtake ARM in the linux world, the chinese are throwing a lot at it and I’ve seen very little out of ARM, I expected Linux to go the way of Apple where x86 is phased out and ARM is phased in because who wouldn’t like a lower power, cheaper CPU? or like wayland overtaking X.org but I just don’t see any great leap by desktops or laptops towards it, x86 has remained solidly in place outside of Pi like devices

        Unfortunately I made the mistake of not backing it up, and when the external drive died I lost my data

        😢 yeah good point, I’ll look at getting it to backup my main 2tb

        You’re based in Brissy or further north in Qld, right? What kind of thermals does your system have, and what’s the room it lives in like?

        Logan city! Was going to take a picture but it’s just a bunch of cables running along the side of my garage, the NBN conveniently comes into it far away from everything (I assume the only other front of house option (the kitchen) was out of consideration) can’t really say what temperature, it would def be mostly ambient temperature with a bit of extra heat coming from the solar battery when it’s charging but for the most part prob ambient outside temp

        The laptop itself looks to sit around 50 degrees most of the time but this is pretty low power:

        afaik the temperature being hot isn’t an issue, computer components (and most components in most things) prefer a stable high temperature 24x7 over going cold then hot all the time.

        I think a mini-pc is a pretty solid choice regardless, I’ve had a 1ru rack server that was loud as fuck, fkin like 10 40mm fans! absolutely not worth it, and have friends who keep their servers/even old desktop PC’s running 24x7 in their bedrooms, these things are heat generators and in brissie if you don’t have a good aircon/airflow your room will got hot as shit and the fans will increase in speed so it’ll be either noisy and hot or both

    • Valmond@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      7 hours ago

      In the same vein, used thinkcentres are dead cheap and good, easy to tinker with physically, and for what I know no problems when it comes to linux (nvidia drivers are probably as on any other platform). Got a ussf m920q IIRC, added som ram, changed the CPU and swappyd out the SSD for a big one and it became my main driver (also have some 710 and a tower for more inside space, GPU, …) low power draw and “it just works”.

      • ikt@aussie.zone
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        7 hours ago

        100%, thinkcentres are the most well supported of the major brands iirc

        the battery is a nice little in built UPS feature, bit underrated if you get a second hand laptop with a working battery

    • androidul@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 hours ago

      While I like his setup, I’m not a big fan of 3D printed components being added to the whole setup primarily because not everyone has a 3D printer lying at home …

      The cost though it’s actually quite good I have to say.