Here’s which one is better for self-hosted apps


If you are just starting your journey into self-hosting, you’ll have to make a choice before installing your first instance of Jellyfin, Immich, or Home Assistant: which operating system do you use?

Unlike other computer debates, where tribalism and taste are incredibly important, hosting a server is mostly a practical question. It needs to be flexible, efficient, and reliable. All of that points in only one direction: Linux.

Linux is practically designed to be a server

Lighter and easy to leave alone

Htop running on Kubuntu in Konsole.

Whatever your server does, you never want it to consume more resources—be that power or computation—than it needs to. A headless version of Ubuntu (or Debian) can get away with using a few hundred megabytes of RAM. On the other hand, Windows consumes several gigabytes in its idle state. If you’re using it as a desktop, that isn’t usually all that important, but it does limit what hardware you can use as a server.

If you want to repurpose an old laptop or desktop, a cheap mini PC, or a Pi, you can’t afford to lose several gigabytes of RAM.


An image of a Beelink mini PC and a Logitech wireless keyboard on a counter top.


I bought a barebones mini PC to reuse an old SSD, and it’s the smartest tech choice I’ve made all year

I built a secondary PC using a barebones mini PC and free Linux, and I’m completely sold

A server’s only real job is staying up using whatever hardware you have available. A headless installation of Debian or Ubuntu Server idles around 200–400MB of RAM. In contrast, Windows wants several gigabytes before you’ve even launched your first app.

That gap in resource usage determines what hardware you can actually use. If you want to repurpose a retired laptop, a $150 mini PC, or a Raspberry Pi, Linux is the only viable choice. You can’t afford to lose double-digit percentages of your total resources. When you need to manage your server, you normally do it via SSH, which spares you the overhead over a full desktop environment that you won’t need 99% of the time.

WD_BLACK 2TB SSD on a white background.

Storage capacity

2TB

Hardware Interface

PCIE x 4

Compatible Devices

Laptop, Motherboards

Brand

Western Digital

TBW

7300 MB/s

Dimensions

3.15″L x 0.87″W x 0.09″Th

The WD_Black 2TB SSD is great for gaming. It offers read speeds of up to 7,300 mb/s and features an optional heatsink. The drive includes the wd_black dashboard software for monitoring health and customizing RGB lighting on compatible models.


Beyond the RAM, there is the issue of control. Windows Update famously likes to update whenever it would like, which is a recurring problem if you’re hosting something that needs to be accessible 24/7. Linux allows you to apply unattended security patches and only reboots when you tell it to, while systemd will reliably automatically restart crashed services in the background.

Unless I manually restart them, my Linux servers will usually run for months between restarts (usually power outages), while my Windows PC forcibly resets itself at least a few times per month. When you’re hosting something like a game server, a photo backup service, or a streaming service that you use regularly, that sort of unpredictable interruption is annoying at best.

The self-hosting world is built around Linux

Support for Windows is secondary

When you start reading about self-hosting online, you’ll find that the overwhelming majority of the guides, scripts, installers, and forums are targeted towards Linux. The first-party documentation for self-hosted projects also skews heavily towards Linux; often times, Windows instructions (and installers, for that matter) are often completely absent.

Even the “user-friendly” platforms—Proxmox, TrueNAS, Unraid, CasaOS—are all Linux underneath. If you choose to self-host on Windows, you will spend a significant amount of your time reworking the answers you find to fit Windows before you can actually use it.

Even Docker on Windows runs Linux

Those who defend using Windows as a self-hosting platform are quick to point out that Docker—which makes self-hosting much easier in most cases—runs on Windows. However, that isn’t really true once you take a peek under the hood.

When you use Docker Desktop on Windows, the system runs every Linux container inside a WSL2 virtual machine. Essentially, Windows is hosting a version of Linux just so that Linux can host your apps.

There are Windows containers, but most of the things you’ll self-host will default to Linux containers.

That approach also introduces a intermediary that uses up resources. You end up with VM memory reserved out of the gate and somewhat slower read and write, and you have one more thing to debug when something inevitably goes wrong.

If every container’s destination is Linux anyway, just run Linux and skip the roundabout solutions.


Linux might take a bit more upfront, but that effort pays off

Linux is the best choice because the entire self-hosting world is already built around it. Even when you run containers on Windows, they are running inside a Linux VM. By using Linux, you get lower idle requirements, no surprise reboots to “upgrade your experience,” and as much documentation as you could possibly need.

Starting with any old PC or laptop, you can be up and running Proxmox within an hour or two, even if you’ve never touched it before. Once you’re there, firing up a virtual machine with whatever system specs you want and installing Docker Engine and Compose using the official script only takes another 20 minutes.

That initial time investment (even if there is a bit more learning involved at the beginning) will save you hours of troubleshooting in the future.



Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


The iPhone Shortcuts app reminds me of Minecraft. It might be relatively easy to jump into, but it offers nearly limitless potential, allowing you to build anything you want. The same holds true for the Shortcuts app, and that endless possibilities are what many iPhone users might find intimidating. But you don’t have to.

If you are new to iPhone shortcuts, think of them as little automated helpers. You can build them yourself or find ones that others have built and use them. And that’s the beauty of shortcuts. If you don’t want to get your hands dirty, you can find shortcuts others have created and tailor them to your needs. 

With that said, let’s check out my favorite shortcuts. These are not the best shortcuts on everyone’s list, but they are the ones I use daily to get things done faster and more efficiently.

App settings: stop digging through the settings app

Anyone who has spent more than five minutes hunting for an app’s permissions inside the Settings app knows how frustrating it can be. You have to open the Settings app, scroll all the way down, open the Apps section, scroll again to find your app, and only then can you enter its settings. 

This shortcut fixes that completely. It uses the Get Current App and Open URLs actions in the Shortcuts app to detect which app you are currently in and jump straight to its settings page. Once you set it up and add it to your Control Center, all you have to do is open the app, swipe down from the top, and tap the shortcut. 

It will automatically open the current app’s settings. It is genuinely one of the most practical shortcuts I have ever created, and you can download it using the link below. 

Get App settings shortcut

Apple Frames 4: make your screenshots look professional

If you ever share screenshots on social media, a blog post, or a presentation, this shortcut is for you. Apple Frames 4 is a free shortcut by Federico Viticci of MacStories, which can wrap your screenshots in a proper device frame.

The latest version is noticeably faster, supports all recent Apple devices, and even lets you choose frame colors and scale the images proportionally. What I love most about this shortcut is that it can take multiple screenshots as input and combine them in one image. 

All the images in this article have been created using the same shortcut. If you also take screenshots regularly, I can highly recommend this shortcut. I would also recommend you check out my favorite screenshot utility for Mac. It offers all the missing features of Mac’s built-in screenshot tool and then some. 

Get Apple Frames shortcut

Scan document: your pocket scanner is already in your hand

You don’t need a third-party app to scan documents on an iPhone. You don’t even need to open the Notes or Files app the usual way. With this shortcut, you can open the document scanner instantly and scan and save papers without any extra steps.

I have it in my Home Screen and use it whenever I need to quickly scan a receipt, a letter, or any paper document. It’s one of those shortcuts that sounds simple until you realize how much time it saves you every week.

Get Scan Documents shortcut

Resize & convert: resize images without downloading a third-party app

How many times have you shared a photo only to find out it was too large, or in the wrong format for where you needed it? Since the iPhone Photos app doesn’t let you resize an image or change its format, I found a simple shortcut to do it. 

The steps are pretty easy, too. You pick the image, set the size, and the shortcut handles the rest. I use this a lot when I need to send images for articles or posts that require specific dimensions. 

It handles a task I would otherwise have to do on my Mac or download a third-party app on my iPhone to complete. 

Get Resize & convert shortcut

Extract PDF pages: pull out only what you need

I deal with a lot of PDFs, and sometimes I need to extract a few pages to share or save. So I downloaded a shortcut that lets you select specific pages from a PDF and extract them into a new file.

It sounds like a small thing, but if you have ever had to send someone just two pages from a 40-page PDF, you know how handy this is. You don’t need to download any app, pay a subscription, or open your Mac. Your iPhone handles it in seconds.

Get Extract PDF shortcut

Clipboard history: because you always lose what you copied

This is one of the most underrated shortcuts on this list. While macOS has finally added a clipboard history feature with the macOS Tahoe update, the iPhone still doesn’t have a clipboard history. That means every time I copy something on my iPhone, it erases all the previously copied items. 

So I built a shortcut to work around it. Now, every time I copy something on my iPhone, it saves to a note, creating a running clipboard history I can refer back to whenever I need it. The only issue is that I have to run the shortcut manually for it to work. 

So that’s why I have added it to the Back Tap gesture (go to Settings → Accessibility → Touch → Back Tap) on my iPhone. Once I copy something I want to save, I simply tap the back of my iPhone three times to trigger the shortcut and save the copied item in a preassigned note. 

When you download the shortcut, make sure to edit it by tapping the three-dot menu and selecting the note you want to use as your clipboard history.

Get Clipboard History shortcut

Turn off mobile data when iPhone connects to Wi-Fi

To balance the manual activation of the last shortcut, I give you one that is pure automation. Once you set it up, you never have to think about it again. The shortcut uses the Shortcuts automation feature to detect when your iPhone connects to a Wi-Fi network and automatically turns off your mobile data.

I have also set up the companion automation that turns mobile data back on when you leave Wi-Fi. It saves battery life and prevents your phone from uselessly using mobile data when it doesn’t need to. Since this is an automation, there’s no way to share a downloadable link, but you can learn how to create this shortcut. The screenshot should give you the basics of how to do it.

My 7 favorite iPhone shortcuts

I know the Shortcuts app can feel intimidating at first, but most of these require very little setup, and the payoff is immediately obvious. Start with one that solves a problem you have right now, and before long, you will be building your own.

If you have an iPhone and are not using Shortcuts, you are missing out on one of the most powerful tools Apple has built. So, definitely give this a try, and your life will never be the same.



Source link