this post was submitted on 01 Nov 2024
66 points (94.6% liked)

Selfhosted

39939 readers
552 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

The price seems pretty good. I don't really know much about mini PCs. Do you think there is a better alternative?

Update: ok, not price efficient. Noted 👍

all 49 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 2 days ago

Most answers here are missing the benefits of a home Mac running 24/7 if you’re already part of the Apple ecosystem. For example, you can have it sync all your iCloud data (documents, photos, iTunes content) and back them up locally, then elsewhere outside of Apple’s ecosystem. You can also have it act as a local CDN for OS updates, whereby it will cache OS downloads locally so any subsequent updates will be super quick.

On the downside, I found native Docker on macOS kinda sucked, and just installed Ubuntu on my 2012 Mac Mini (now running Proxmox for funsies), but I have an old iMac to do the caching. You could probably virtualize and get both benefits, and I am considering moving to a new M4 mini for the power savings and sheer speed. That M4 Pro chip has absolutely incredible Geekbench numbers while sipping power.

[–] just_another_person 29 points 3 days ago (2 children)

You can get a Ryzen mini PC for less than $200. Depends on what is worth to you in cost.

[–] PoopMonster 4 points 3 days ago

If you're hosting plex or jellyfin I'd recommend an old Intel processor with quicksync. I paid like 200 for my pc on ebay gutted it and put it in a bigger case for more hard drives. Runs 4k videos like a champ with no GPU installed.

[–] tahoe -1 points 3 days ago (2 children)

What’s great about Mac minis is that they’re extremely power efficient since they’re ARM machines, so if you live somewhere like in Europe where power is expensive, it can save you a lot of money. They’re usually completely silent too.

Depending on their needs, I’d suggest OP to get a used M1 Mac mini, they’re great value for money.

[–] just_another_person 12 points 3 days ago (1 children)

You may want to check your specs again. The Ryzen APUs are very power efficient and run the same stretch as M3 (reported): 15W-45W

Though the more realistic at the wall measurements of the 2023 Mac Minis pretty much seem to have it pegged at a solid 15W-25W min under normal service workloads. The reported "idle" measurements of the M* chips being at 6W are literally just saying "if it has power", and unrealistic considering you can't even run them without a the GPU being engaged somewhat without a fully headless software configuration.

[–] stuner 5 points 3 days ago (1 children)

I would disagree with idle power not being important for a home server. Most of the time, your system will be doing very little and wait for something to happen. I also don't think a typical server has a display attached. Wolfang explains this quite well: https://youtu.be/Ppo6C_JhDHM?t=94&si=zyjEKNX8yA51uNSf

[–] just_another_person 8 points 3 days ago (2 children)

I'm not saying idle power is unimportant. I'm saying the M-Class chips can't ever go idle with a minimal set of features NOT being engaged, because they're going to be more engaged in general vs other chips that can run truly headless. macOS doesn't allow for that.

[–] [email protected] 6 points 3 days ago (1 children)

Yup. My old 1st gen Ryzen desktop system isn't particularly power efficient, but it idles <50W (I think closer to 25W, but I haven't measured for a while). And that's a desktop class chip from 7 years ago with two HDDs and a discrete GPU and PCIe wifi card, so it's not winning any awards for efficiency. Even at that, it's barely a blip on my power bill.

An AMD or Intel laptop-class chip should be able to get to 10W or so idle, and not spike too much with basic tasks. And those can be had for $200-300, less if you're okay with older chips. Run Linux headless and it'll likely stay below 15W at the wall most of the time.

[–] just_another_person 4 points 3 days ago

Pretty much exact. Lots of reviews to back that up without me spouting about it.

[–] stuner 1 points 3 days ago* (last edited 3 days ago) (1 children)

I don't have one (and I don't want one), but Anandtech measured the M1 version at 4.2W in idle. https://www.anandtech.com/show/16252/mac-mini-apple-m1-tested I think you can also get that from other Mini PCs (e.g. NUCs).

[–] just_another_person 1 points 3 days ago (1 children)

Cool, so the version from many years ago related to OP's question...how?

[–] stuner 1 points 3 days ago (1 children)

It's an Apple Silicon Mac Mini. Do you have a particular reason to think the new one is less efficient?

[–] just_another_person 1 points 3 days ago (1 children)

Yes, because each one has been. Just because it's "Apple" and you think it's better every iteration is a mistake on your part.

[–] [email protected] -1 points 3 days ago (3 children)

What’s great about Mac minis is that they’re extremely power efficient since they’re ARM machines, so if you live somewhere like in Europe where power is expensive, it can save you a lot of money.

I want to see numbers. How much is "a lot of money"?

[–] stuner 5 points 3 days ago (1 children)

I don't have a Mac Mini, but for always-on systems, the idle power consumption can become quite significant.

  • Gaming PCs can consume up to 100W (876 kWh / year).
  • My AMD B650 NAS consumes about 17W in idle (150 kWh / year).
  • A NUC / Mac Mini can idle as low as 5W (44 kWh / year).

If you pay 0.30$/kWh, running your old 100W gaming PC all the time would cost you 263$ per year. My NAS is 45$ per year...

It also depends on what you need/want from the machine. The Mac Mini doesn't have any HDDs and can't run a regular Linux distro, for example.

[–] [email protected] 2 points 3 days ago (1 children)

Would the Mac Mini actually idle at that wattage if it's open for connections? I doubt it, it's probably more like 10W, which is generally the range for those smaller AMD MiniPCs or NUCs.

If it's 10W, that's a $20 savings from your NAS w/ a desktop CPU (and probably a discrete GPU, unless it's running an APU). I can get 4% easily on savings, so I'd only need a $500 savings vs the Mac Mini to recoup that difference every year ($500 * 4% = $20). So if you already have an old PC, use that instead of buying a Mac Mini, and you also won't have to fight macOS to do what you want.

[–] stuner 4 points 3 days ago

I do think it can achieve that while waiting for network packets (see e.g. https://www.anandtech.com/show/16252/mac-mini-apple-m1-tested).

But in terms of money savings it would rarely make sense, as you need to make it back during the time you run the system. If we assume 6 years lifetime then it would only make sense to pay $120 more. But yes, I'd also go for a system that runs regular Linux :)

[–] tahoe 4 points 3 days ago

I’m no lab scientist but when I switched from a hackintosh to an M1 Mac mini a few years ago, my total electricity consumption went down by around 15-20%. This can mean a lot on the long run if you’re tight on budget.

[–] suction 2 points 3 days ago* (last edited 3 days ago) (1 children)

Cheap in Germany for example nowadays is 0,20 EUR / KWh + 15 EUR / month base fee. Most people have more expensive contracts though, 0,30 EUR / KWh and more

[–] [email protected] 1 points 1 day ago (1 children)

Fellow EU here. Those prices are crazy. My peak price is 0.18, while the valley is 0.08.

[–] suction 1 points 1 day ago

where is that in the EU...South-East parts?

[–] Ptsf 13 points 3 days ago

I'd recommend against it. Apple's software ecosystem isn't as friendly for self hosting anything, storage is difficult to add, ram impossible, and you'll be beholden to macOS running things inside containers until the good folks at Asahi or some other coummity startup add partial linux support.

And yes, I've tried this route. I ran an m1 mac mini as a home server for a while (running jellyfin and some other containers). It pretty consistently ran into software bugs (less maintained than x64 software) and every time I wanted to do an update instead of sudo whateveryourdistroships update, and a reboot, it was an entire process involving an apple account, logging into the bare metal device, and then finally running their 15-60 minute long update. Perfectly fine and acceptable for home computing, but not exactly a good experience when you're hosting a service.

[–] [email protected] 7 points 3 days ago* (last edited 3 days ago)

HP/Lenovo/Dell workstation tiny/mini/micro will be cheaper and better supported. Price-wise, I've set up 4-5 reasonably powerful t/m/m machines for the cost of my M2 Mac mini.

Which is nice for some of the development work I do, but for a server I personally won't use anything other than Linux, and I wouldn't recommend anything else either. Apple adds some funkiness that can be a complete pain (IMO) with some tools, Linux is the only server solution worth using.

So if you want a Mac, go for it, but if you want a server as the most important part, I'd say get an x86 based bit of hardware.

[–] [email protected] 7 points 4 days ago

If the price is right for you, go for it. You will run containers and or VMs, so doesn't really matter what your bare metal is.

I would choose something where I can install Linux easily and nice and I am sure at the Mac mini price point you can build yourself an assembled mini-pc with beefer specs, but indeed it's more work and hassle.

YMMV

[–] [email protected] 6 points 3 days ago

Self hosted server to do what?

Because I have a self hosted server running on a refurb Lenovo mini-pc that I bought for $90 and it does a fine job running the dozen or so docker image of service I need.

But I ain't gonna run no LLM on that machine, that's for sure.

[–] [email protected] 6 points 4 days ago* (last edited 3 days ago)

Power should be plenty and efficiency great. The only thing I wouldn‘t like is external HDDs.

[–] mesamunefire 4 points 3 days ago* (last edited 3 days ago)

I have an old mac mini that was a server for a good 4-ish years.

The good:

  1. They are pretty good at sticking in a closet and forgetting about them.
  2. Specs are always on the decent side and some of the older models are easy to upgrade.
  3. Power is ok. It sips power
  4. It can run for years without issues. I still have two mac minis I used for CI/CD jobs, thin clients, etc...
  5. Its a cheap mac. If you need mac for something, like building custom mac specific applications, then its a decent little machine.

The bad:

  1. CPU is usually lacking compared to any computer of the same price range.
  2. MAC OS. Its good at desktop but as a server, it just doesn't have the same options/ease of use as a good linux box. You can get around that by dual booting, but its just another headache. Docker/VMs are also an option, but the RAM/CPU usage would take a hit.
  3. The newer the model, the harder it is to upgrade.

I would use it as a specialty server if you have something you do automatically only macs can do. Or as a thin client/vm box.

I used to use it as a CI/CD box before github actions was a thing. If you happen to have one, sure set it up for fun. If you dont and are looking at buying one, I would suggest a cheap dell desktop or (depending on what you want to host) a pi 5 or thin client and throw linux on it.

[–] [email protected] 4 points 3 days ago* (last edited 3 days ago) (1 children)

It is very good but depend on what you want to host.

I have a second hand cheapest M2 with Asahi Linux and some container (like pihole) but not much. I like that it is small, silent and energy efficient (and it can run Xplane12 in 4k !). But I have an homemade NAS so most of the multimedia stuff and containers are on here and not on the MacMini.

The M4 seems incredible, but Asahi Linux only support M1 and 2 at the moment (it might work with M4 tho).

The problem with the mini would be disk space if you are looking for a NAS usage, although I have seen here on lemmy a dude making a Mac Mini NAS (can't find the post anymore).

But even without Asahi, an M4 with Mac OS, docker and a VM if needed would be plenty of power for price and energy. You can also upgrade to a 10Gbe NIC if your network supports it. Plug it to some screens and you have a workstation + docker server in one place.

[–] [email protected] 1 points 3 days ago

DAS enclosures are super easy to set up. Disk won’t be a big issue if you go that route.

[–] [email protected] 4 points 3 days ago

It wouldn't be my first choice, but it'll probably do the job. Depends on what you want to do with it. There's fewer people choosing this path, which means that when things go wrong, you'll have fewer sources of information to help.

Some old Dell office PC with a good amount of RAM and an SSD would be just as well.

[–] slug 2 points 3 days ago

i have one running debian as a secondary backup to run just smart home stuff and pi-hole. you can set it up to start back up after power failure. was like $50 used. there's basically no point in it being a mac rather than an old lenovo machine, but it sure is cute looking.

spoiler


> $ neofetch
       _,met$$$$$gg.          
    ,g$$$$$$$$$$$$$$$P.       -----------
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 12 (bookworm) x86_64
 ,$$P'              `$$$.     Host: Macmini7,1 1.0
',$$P       ,ggs.     `$$b:   Kernel: 6.1.0-25-amd64
`d$$'     ,$P"'   .    $$$    Uptime: 1 day, 3 hours, 35 mins
 $$P      d$'     ,    $$P    Packages: 2708 (dpkg)
 $$:      $$.   -    ,d$$'    Shell: zsh 5.9
 $$;      Y$b._   _,d$P'      Terminal: /dev/pts/0
 Y$$.    `.`"Y$$$$P"'         CPU: Intel i5-4260U (4) @ 2.700GHz
 `$$b      "-.__              GPU: Intel Haswell-ULT
  `Y$$                        Memory: 687MiB / 3791MiB
   `Y$$.
     `$$b.
       `Y$$b.
          `"Y$b._
              `"""

[–] nzeayn 2 points 3 days ago

If you just want a server with a very small footprint and good specs there are far better options. If you like using macOS and will occaionally use it like a desktop while also having some hosted services running in VM full time. Then yeah the minis are great little systems and fairly indestructable. If i went back to daily driving macOS outside work, i'd just buy a mini. But i'd only pay out for a mini if i'm actually gonna use macOS.

[–] [email protected] 2 points 3 days ago

I bought a M1 Mac Mini second-hand and it's great for home server purposes. Like others have said, you'll be using containers a bunch, so bare metal doesn't matter quite as much as it used to. They're power efficient and offer good performance. If you're in the Apple ecosystem, there's a bunch of other benefits to having a Mac set up as a server (e.g. content caching for updates/iCloud content).

[–] [email protected] 2 points 3 days ago* (last edited 3 days ago)

It's fine, but not going to be the cheapest.

Cheap to buy: Any old PC desktop, really. Most will run linux and windows fine, depending on what you want. Anywhere from free to £100. If you have an old desktop or laptop already, use that to start with.

Cheap to run: Any mini PC. I run a Lenovo ThinkCentre M53 for low power duties. Cost £40 and runs silently at 10watts, idle. (I have a secondary, much beefier server for other stuff that runs at around 100w which lives in the garage)

But plenty of people do run mac minis as home servers, often on Linux. They're fine - just do your homework on the CPU ability, how much ram you can add, and whether you're okay with external disks if you can't fit enough inside.

[–] [email protected] 1 points 3 days ago

If you’re planning on running containers, tbh I would not. The required virtualization layer (due to macOS being BSD-based) is going to make containers WAY less efficient. You’re better off with a system you can easily slap proxmox (or whatever distro floats your boat) on.

[–] d00phy 1 points 3 days ago* (last edited 3 days ago)

At the ends of the day, it’s about what you’re comfortable working on. My daily driver is a MacBook Pro. I have a BeeLink S12 Pro that runs most of my self hosted stuff, and a Synology that runs a couple things. I also have an HP Z440 as a test bed box (powered off unless I’m working on something). I’m comfortable working with Linux and power draw was important for me in setting up my always-on server (my power bill is already high).

The only minor concern I would have with a mini is you’re limiting your support base. This isn’t to say there’s no support, there’s just less. Most self hosted are using something like a unraid, a beelink, or an old micro Dell/HP/Lenovo. Because of that, there’s a ton of stuff out there about getting various services running on these setups. The M-based mini environment is going to be a little more unique.

[–] [email protected] 1 points 4 days ago

Using the igpu might be problematic for transcoding if you need that. I'd recommend older intel / Asus NUCs if you want a mini PC. 3 year warranty, built for Enterprise, tall version has room for a 7mm tall sata SSD or HDD along with nvme m.2 SSD.

I think if you do Asus 12gen + they have another m.2 slot though it is the smaller one 2242. Doing all this you can upgrade it to 64GB RAM, 8TB m.2 2280, 8TB SATA SSSD, and 1TB M.2 2242. In homelab especially with mini PCs the limit is usually RAM / storage rather than CPU.

I got 4 11th gen with 64 GB RAM each and 32TB of SSD storage. I recommend avoiding QLC SSD as much as possible. Aim for TLC , MLC, or SLC. Higher storage capacity tends to be QLC or TLC, QLC has shortest endurance and slowest speeds.

[–] Johny5 1 points 4 days ago (1 children)

It doesn't matter... You will have to use virtual box or docker

[–] [email protected] 3 points 4 days ago (1 children)

I will. I was asking from CPU power and price perspective though.

[–] Johny5 1 points 4 days ago

Sorry I'm not familiar with Mac specs

[–] [email protected] -3 points 3 days ago

I mean, it would work, but you would be better off power-wise, price-wise, and performance-wise, going with a used office PC such as Optiplex.

[–] bruhduh -1 points 3 days ago

Main problem is, ram isn't upgradable on recent Apple tech, and you'll need ram for containers, if you're gonna host it to the CPU limit, if not, then even more so, brand new intel n100 mini pc for 100-150$ is gonna do wonders for you in self hosting field, what I'm saying is, if your MAIN goal is self hosting, then Mac is not optimal, i mean, you can buy Mac mini for your daily tasks and intel n100 mini pc for pocket change you'll have left after buying Mac, and host your projects on intel one while using Mac yourself

[–] [email protected] 0 points 3 days ago

I switched all my server stuff to my m1 Mac mini because previously I was trying to host everything off my truenas scale NAS with truecharts. Since truecharts isn’t really an option for future truenas updates and I already had an m1 Mac mini I bought secondhand, I figured it’d work pretty well for docker containers, which it does. And it’s a ton more easy for me to troubleshoot than K8s.