this post was submitted on 14 May 2026
83 points (93.7% liked)

Selfhosted

56958 readers
1246 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.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

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

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Do you have any advice or suggestions about it?

  • Hardware (what should be enough for a local PC, or VPS...)
  • Software (OS [Debian, Yunohost, other...], "containerization" (Docker, virtual machines?), dashboard, management, backups, VPN tunneling...)
  • "Utilities" to host (Lemmy, Peertube, Matrix, Mastodon, Actual Budget, Jellyfin, Forgejo, Invidious/Piped, local Pi-Hole, email, dedicated videogame servers like for Minecraft, SearXNG, personal file storage like Drive, AI [in the future, when I can afford a rig that can run a local model decently]...)

I'm aware it's a lot of stuff to take on, so, do you have any advice on where to start? (how to find a cheap PC to experiment with, if not get a VPS, what to test on it, what "utilities" to try self-hosting first...)

top 50 comments
sorted by: hot top controversial new old
[–] sbeak@sopuli.xyz 5 points 10 hours ago* (last edited 7 hours ago)

Personally, I run my self-hosting setup using an old laptop I had lying around, and if you have an device you no longer use, it's a really good option hardware-wise!

I would recommend Debian, it's stable and it works well enough. I've heard Yunohost being a nice option, but I was unable to get it to install. Maybe my particular hardware didn't play nice with it, or perhaps I just did something wrong in the install process. The majority of services I'm running use docker, since it's convenient and automatically updates itself.

As for the stuff that's nice to run, you of course need file storage. I use Nextcloud, but it was a pain to set up (if you need any help, I would guide you towards LearnLinuxTV, who has great videos on setting up NextCloud). In hindsight, I probably should have installed something lighter weight since I don't use any of Nextcloud's extra features, but it works and many apps gives you options to use Nextcloud sync which is convenient. I also use Syncthing for syncing my notes and other bits between my devices.

I would also recommend Immich for photo hosting. It works really well and the mobile app is fantastic on both Android and iOS (I use the former now and the latter in the past). It doesn't have a client for desktop though, so that could be a dealbreaker.

Forgejo is really good, I use mine for local project backups, with Codeberg acting as the cloud backup. I don't have that much more to say, it works well!

Running a Minecraft server is also very fun. I use Paper to run a vanilla survival server that's just for me and my siblings, and I have the plugins Geyser and Floodgate so that the littlest can play with me on their tablet, which runs Bedrock rather than Java Edition.

I don't currently run this myself, but Pi-hole seems amazing, being able to block ads and trackers on the network! I will have to try that out in the future...

If you have (definitely legally obtained) media, like movies, shows, anime, etc., Jelkyfin seems like a great option. Lots of people rip content from DVDs and Blu-rays that they have bought.

I also use Radicale, a CalDAV calendar service. It can sync all the events I have in the future between all my devices, and it's the first I have used that syncs properly among all my devices. Previously, I used two local calendars, adding the event on the device where it is most appropriate (for instance, school stuff on my laptop and social gatherings on my phone), and it was a lot of hassle. Having one calendar between all my devices is very nice indeed. On Android, I found Etar to be the most functional client, while on desktop (currently running EndeavourOS, previously Fedora), Thunderbird is probably the best option and the one I use. If you use GNOME, you could get by with their calendar app that is minimal+, and on KDE, you have KOrganiser that has a bazillion different features crammed into the interface.

One more thing, if you have spare resources, you can always run BOINC or similar in the background. Lending some of your unused compute helps out science :D I personally run Asteroids@home and Milkyway@home since I'm interested in astronomy and such, but there are BOINC projects relating to medicine, biology, and other fields of science too!

[–] notagoblin@lemmy.world 4 points 11 hours ago* (last edited 11 hours ago)

Hardware - Start small and cheap. If you have it already use it. build it out as you need and understand it.

Software (OS) - Debian based perhaps. Docker probarbly.

Utilities - What would you like to do today? pick one, Pihole is useful.

Once you get something working for yourself, you'll start to build on that knowledge.

Above all be brave and be curious.

[–] Teppichbrand@feddit.org 3 points 11 hours ago* (last edited 11 hours ago)

Second hand Dell Wyse 5070 ThinClient with DietPi. Add an external drive, install some software from the menu and you're good to go.

[–] mlg@lemmy.world 4 points 12 hours ago* (last edited 12 hours ago)
  • Anything that you can shove hardware into (CPU, RAM, HDDs, maybe a PCI slot), so any used workstation is a great start, and don't bother splurging initially, just follow the quality tool rule and only buy when something becomes inadequate. If you want to jump straight into loud and noisy severs, you can pick up used servers for cheap like R730s which there's a ton of out there. Just avoid 2.5" drive bays because 3.5" HDDS are way cheaper per Gb.

  • Would recommend podman over docker as its matured to the point where it has a lot of better features like rootless, quadlets, etc that you might want to take advantage of in the future. OS is whatever linux you prefer, but I recommend you stay away from Ubuntu. If you want something RedHat but not as cutting edge as Fedora, I've heard OpenSUSE is pretty nice.

For apps, If you want to do HTTPS via GUI then npmplus is nice option, Otherwise caddy can do the same with text config. Rest is whatever you want to try out :)

EDIT: If you start making an *arr stack, I would recommend recyclarr to handle the quite expansive content filter settings for sonarr and radarr.

[–] dieTasse@feddit.org 5 points 13 hours ago* (last edited 13 hours ago)
  1. What do you need? Ask yourself what do you need first that will help you decide
  2. Hardware - buy second hand 2017 - 2018 (office) pc - dell, fujitsu, hp for ~ 80 eur - clean it! Re-paste processor and buy ssd.
  3. Either instal clean debian, prxmox, or some nas software. If you go with e.g. trueNAS you need to decide if you want to invest into proper nas hard drives. They cost a lot but last for ages.
  4. Setup your fist apps - treat the beginning as a test. Its a test machine and environment, feel free to try stuff, break stuff and document it, especially what you like and want to keep.
  5. After a while, when you feel like you are not experimenting as much and you know what you like about what you have, backup what you want to keep, and start clean - now use your documentation. This step is optional - depends on how much you were messing around but can be pivotal in order to get stable environment.
  6. Next steps will write themselves. In fact you will have so much you would want to try that you won't know where to start.
  7. You are welcome
[–] altphoto@lemmy.today 1 points 10 hours ago

Here's a thing I'm going to try this weekend:

https://www.aliasvault.net/

[–] rebornAnew@lemmy.zip 1 points 10 hours ago

I reccomend you start with a vps, local pc is possible but in any case(in my personal experience at least) you'll need a public IP anyways(which is hella expensive for personal use). In any case, you'll have to get a vps. I suggest you check out Contabo. Good prices, pretty ok for hardware related things. I'd suggest you start Nextcloud, a website, very basic stuff. If you are planning to use a local pc, be advised that power will be a big factor. Unless you want to have to pay a lot on your electricity bill, avoid hosting too many things on your local pc(unless you want to have full control over your data, but I personally think if you apply basic cybersec principles, a VPS is fine). I do understand though, despite that it's not fully reccomended, I want to locally host my own mail server to have full control. It comes down to personal preferences and how much control you want.

[–] Jakeroxs@sh.itjust.works 10 points 20 hours ago

Surprised no one has mentioned proxmox (at least not the top 10 threads I saw first)

Basically debian with a webui specifically for spinning up VMs and LXCs and managing storage and such, then install whatever distro in an LXC and run docker in that.

[–] osanna@lemmy.vg 1 points 12 hours ago* (last edited 12 hours ago)

i self host media primarily, but because I self host media, i self host other stuff too. Find where you can improve your life with self hosted apps, then self host them.

[–] HeyMrDeadMan@lemmy.world 3 points 19 hours ago

Sonarr. Radarr. Whisparr if you're a sicko.

[–] thecoffeehobbit@sopuli.xyz 6 points 1 day ago (1 children)

Quite a few recommendations echo the same sentiment: get a whatever computer, start by installing xyz Linux, and go from there. Instead of direct recommendations I'll present some alternative paths you may find useful to balance your self-hosting style against.

Path 1: Get a cheap VPS and host something like File Browser to transfer some low-stakes files between friends&family. Add services and beef up the server as you need. Doesn't matter too much if it gets hacked, it's separate from everything else and you'll learn to harden it over time when you learn to consider an exposed server insecure by default. Also your financial stake is really low, sub 5€/month and you can quit at any time when there's no unique data on the VPS. Grow your stake slowly along with your confidence in how well you can secure the thing.

Path 2: Get 3 identical 1-4TB drives and an SSD boot disk on some random computer, and install TrueNAS for home use. It has a large self-hosting community and nicely abstracts away the Linux side of things. No worries about exposing ports, just host anything you're okay using just at home. Think: Jellyfin, Paperless, Home Assistant. You might find this useful if you never intend to really learn Linux in the first place and just want to solve some of your digital problems locally with some money invested. Later, add a mesh VPN like Tailscale or Netbird to safely access it from outside your home.

Path 3: Get heavily into networking and start by getting complete control and understanding over what happens in your network. OPNsense, adguard, OpenVPN/wireguard, pihole, ddns, ids/ips, VLANs. Do this if you're a control freak and are willing to commit to updating your stuff and keeping track on potential attack vectors.

I started out with path 3, but have moved more or less towards a mix of 1 and 2 and no longer expose ports on my home router. If I'll end up getting more than one device, I'll probably install TrueNAS on one and make the rest a baremetal Talos cluster. Now my stuff runs on one device so it makes most sense to be Proxmox, this is however not advice, I work in tech and full well realise this is not an easy system to run.

[–] thecoffeehobbit@sopuli.xyz 1 points 1 day ago

I'll have to add that if going for path 1, be sensible and make sure you know if you have been hacked, to not expose your friends to malware by accident. You might even want to host a honeypot for learning this part.

[–] __hetz@sh.itjust.works 7 points 1 day ago (1 children)

What are your other hobbies/interests? What are some things you're completely uninterested in but it's annoying shit you would really like a better way of handling? Got some answers? Now check the awesome self hosted page to see if there are any existing solutions that look promising. If so, now you know at least some things to host.

How to go about it? When I started I was an idiot kid, on Windows ninety-something (or maybe ME), running Apache, MySQL and phpBB. Copy-pasting snippets in Notepad and not comprehending everything. I found desktop Linux later, learned about init systems, watched that go out the window with systemd, etc. I was installing Ubuntu on every beige clunker I could get my hands on back when the Beryl (Compiz) cube desktop video went semi-viral. Eventually moved on to Arch, learned more about CLI tools, editing configs, etc. If you have something that can host VMs, and you want to play with mock bare-metal setups where you create the users, directories, set permissions, blah blah blah - VMs aren't a bad way to go. It's good stuff to learn and know. Gives you an excuse to play with tmux's synchronized input feature, maybe learn some Ansible, and whatever else. If you just have one dust collector sitting around, start trying distros on it. Mess with stuff til it breaks, boot into install/recovery media and try to unbreak it, repeat. As long as it's fun (or tolerably annoying enough to reach some end goal).

I've personally gotten lazy and I'm nearly all-in on containers. A few things are manual but I've come to like Docker. I do still manage mine with compose files, even on my TrueNAS system with their "apps," because compose files are easy to read, keep track of, and modify. My non-TrueNAS machines, I use Docker + Portainer. I should maybe look into podman and quadlets but haven't bothered yet.

My recent hardware went from RPi4B to Thinkcentre mini PC to building out a 2U TrueNAS system. A PoE switch powers a Home Assistant Yellow and a few cameras. The RPi was repurposed to only host Homepage, NUT (server, watches my UPS and tells more power hungry machines to shut down during outages) and might eventually host Grafana if I ever get into learning it. Another 4B is my Pi-Hole. The Thinkcentre has an 8TB external plugged in and scheduled rsync tasks, on the TrueNAS machine, push back ups of my more important files to it. It also has a couple users set up strictly for running game servers (ioquake and teeworlds at the moment). Those aren't containerized and things like rcon, config management, map rotation, mods, etc are all handled manually.

TrueNAS hosts everything else. If you need ideas based on what others are hosting, here's some of what is on it:

  • Jellyfin, for TA (see below) and my legally obtained DVD backups.
  • TubeArchivist, (TA) for backing up YouTube videos, descriptions, comments. Has a Jellyfin plugin so your backup library is watchable in JF
  • Homebox, for home inventory management. I use it to keep track of my tools mostly. You can have locations, sub locations, items... if I pull a rail of sockets, stick them in my toolbag, then carry it out to the shed - so long as I bothered to update their locations in Homebox I won't waste time digging in the back of my truck, tool chest or other bags because I can't remember where I last used my 1/2" drive 14mm deep impact. It's a mildly inconvenient extra step to essentially "check in/out" my own tools, as if I'm working in an aircraft hangar or I'm doing IT asset management, but I find it worth it.
  • LubeLogger, for keeping track of vehicle service. Early this year I put a lot of money into fixing my truck. A lot of tools, fluids, and parts to handle a broken water pump and do some preventative maintenance. Still a quarter of what a shop might've charged. Since I'm becoming my own mechanic, I wanted something to properly record what I do and how much I spend on it. LubeLogger fits the bill.
  • Factorio, for the factory must grow.
  • Dawarich, self hosted GPS logs. Seems decent but I might shop around still. I just wanted an alternative to Google Maps for tracking my travel history.
  • Audiobookshelf, for some audiobooks but mainly for archiving a small handful of podcasts.
  • Romm, because I'm compelled to hoard old games and occasionally even play them.
  • Immich, because I'm not paying Google to store my photos.
  • FreshRSS, because there's still a dwindling number of sites that don't force you to visit them to read an article in its entirety. Mainly for Hack A Day, a couple devlogs from game makers, the latest CVEs, some global news sites, NASA's "Astronomy Picture of the Day" (APOD), etc.
  • Samba, for some SMB shares that family can dump files into
  • ClamAV, because family is dumping files into their SMB shares

I'm looking at hosting lemon-manuals (successor to charm.li). It's basically a massive collection of service procedures, bulletins, fluid/torque/etc specs, and so on for decades worth of automobiles. Stuff the industry would like to force you into paying AllData, Identifix, or whoever for. I just haven't had a chance to review their provided "server." It's also over 1TB. It's overkill when I'm only working on three vehicles (mine and my folks') but I'd like to have it all in case an auto industry lawyer tries to shut them down or i inevitably get a new set of wheels.

I've also got intentions of implementing some sort of documentation system but I haven't settled on one yet. It's not really for me. I can read my configs and go off plain text. Mainly it needs to be simple enough for my family to work with. My homelab has a bus factor of Me. Whoever has to deal with it when I'm gone needs to know enough to retrieve my encrypted password database so they can get into my emails/bank account to cancel/pay for things or whatever, back up any media of mine they want to keep, back up their own stuff, probably some instructions on how to burn their shows/movies/music back to discs, and shut everything down. Because one day things will break, servers they don't understand will have failures, they'll sell the hardware or give it away to designated friends/family members who can hopefully use it... all that unhappy stuff most of us don't think about until it happens. In fact some sort of contingency plan should probably have been the first thing I recommended, but with some luck you've read this far and will put your own into place.

Anyway, hopefully something in the above rambling helps you on your way.

[–] irmadlad@lemmy.world 1 points 1 day ago

or maybe ME)

That OS was terrible enough to make me shudder now to even recall it.

[–] krashmo@lemmy.world 19 points 2 days ago (1 children)

Copy/paste from another comment I made a while back:

Look into docker containers in general. If I was going to start from scratch in your position this is what I'd do:

Install a Linux distribution on the computer you plan to use for self hosting. This can be anything from a raspberry pi up to a custom build but I would recommend starting with something you have physical possession of. I found Debian with the KDE plasma desktop environment to be pretty familiar coming from Windows. You could technically do most of this on Windows but imo self hosting is pretty much the only thing that a casual user would find better supported through Linux than Windows. The tools are made for people who want to do things themselves and those kinds of people tend to use Linux.

Once you have a Linux distribution installed, get docker set up. Once docker is set up, install portainer as your first docker container. The steps above require some command line work, which may or may not be intimidating for you, but once you have portainer functional you will have a GUI for docker that is easier to use than CLI for most people.

From this point you can find the docker installation instructions for any service you want to run. Docker containers have all the required dependencies of a given service packaged together nicely so deploying new services is super easy once you get the hang of it. You basically just have to define where the container should store it's data and what web port you want to access the service on. The rest is preconfigured for you by the people who created the container.

There's certainly more to be said on this topic, some of which you would likely want to look into before you deploy something your whole family will be using (storage setup and backup capability, virtual machines to segregate services, remote accessibility, security, etc). However, the above is really all you need to get to the point where you can deploy pretty much anything you'd like on your local network. The rest is more about best practices and saving yourself headaches when something breaks than it is about functionality.

[–] Semi_Hemi_Demigod@lemmy.world 10 points 2 days ago

+1 for docker. So much easier than managing dependencies for a ton of services

[–] Danitos@reddthat.com 5 points 1 day ago

I would suggest you start to play around with whatever machine you have in hand. Later on you can migrante to a more serious solution. If you want to first play on a VPS, Hertzner's are like 4€/month

As for utilities, you could start with (in suggested order over my perceived usefulnes/coolnes/difficulty) Immich, videogame server, Jellyfin, Wireguard, Jupyter server (if you code Python), backrest.

When you want to scale up and migrate into a more "serious" setup, it depends on that you want and your budget. Still, I recommend a multi-disk bay PC (NAS), and go for a dedicated Linux distro (I'm using TrueNAS; not perfect, but overall a very good experience).

[–] iceberg314@slrpnk.net 14 points 2 days ago (1 children)

One of my first self hosting projects was a jellyfin server. Double check, but I think the main hardware requirements are just 4GB of RAM and enough harddrive space for your videos/files!

I really like immich too. It's like Google photos, but self hosted. It's super fast for uploading and backing up your photos over your local network. Immich also needs at least 4GB of RAM I think

[–] kurikai@lemmy.world 4 points 2 days ago (1 children)

immich is not a backup solution. you need to use a backup solutiin forfir the stuff in immich.:)

[–] Danitos@reddthat.com 1 points 1 day ago (1 children)

Immich has a built-in backup solution, iirc. Still, I would use a different one, so it can easily be used over non-Immich related stuff.

[–] iceberg314@slrpnk.net 2 points 1 day ago (1 children)

Yeah I was curious about that. Like I can poke around in the immich directory, but the actual pictures are stored in a weird structure. Do you have any recommendations?

[–] Danitos@reddthat.com 2 points 1 day ago

I use backrest. It's incredibly powerful, but has a steep learning curve. A way simpler (not as powerful) alternative is Timeshift. Your distro/DE also probably has a backup app.

[–] rowinxavier@lemmy.world 7 points 1 day ago

My personal recommendation is to get started asap with what you have. That would mean using any old thing you have laying around. Do you have an old laptop? They are ideal for beginner self hosting as you can physically access the machine and it includes a battery backup right in the machine. Usually they are also fairly lower efficient, so that is nice too.

Buying dedicated hardware acts as a barrier to actually doing things, so getting past that is key. If you find you don't actually want to do self hosting you can just stop using your old laptop, but if you bought a full server machine it will be a bit of a trap and make you feel like you failed in some way. Also, the cost right now is fairly prohibitive, but using existing hardware can make that much more manageable.

As for what to run, I would recommend trying a fresh install of a distro based on Debian, Ubuntu, Fedora, and Arch. Yes, four. They are different and have a different feel to them, but also have different communities. By going through the process of installing each one you will get a feel for the system and the community around it and have a better idea what works for you. I spent a few years having around the Debian end of things but eventually moved over to Arch stuff and am currently using EndeavourOS. Your experience will likely be different to mine but trying a few different options will help you figure it out.

Then moving on to services. Try to see what you actually use your machine to do now and then find services for that. For example, if you use something like Google Drive to synchronise data from your phone to your desktop then try using Syncthing to replace that. If you use Netflix to watch stuff try using Jellyfin. If you do play things like Minecraft get a local server running.

These will all be for learning, so their performance doesn't need to be better than what a professional can provide, they just need to work and be yours to learn with. If you find you love doing this and enjoy the process but the hardware is holding you back this is a good time to upgrade to a dedicated machine.

For this I would recommend getting an office computer like an Optiplex or similar, just a basic office computer with an i5 or similar. You will want a fairly good amount of RAM in it, probably 16GB minimum and really 32GB is where things start getting good. A dedicated graphics card is not likely to be useful this early as the iGPU in most modern processors is actually fairly robust and should handle transcoding video for most use cases at a small scale. Storage could be one SSD for the OS and multiple spinning disk drives in a RAID or similar configuration for storage. The SSD will make the actual OS faster, decrease boot times, and make it faster to install and update things making updates less disruptive. The spinning media is way cheaper and you can backup all of your OS drive onto the spinning disks as a cron job in low usage times.

That's my two cents on it, start with what you have, expand as you need but not aggressively before you need it, and try things now before you are too afraid to mess something up because you rely on it. Remember to have fun and experiment, nothing teaches better than experience. Enjoy yourself, don't take it too seriously, and don't lock yourself in to one specific thing, be flexible and willing to experiment.

[–] jjlinux@lemmy.zip 1 points 1 day ago (1 children)

Everything, self-host everything, even toilet paper. Wait, hold on, don't self-host email, that's a fucking pain.

[–] TotallyWorthLife@lemmy.world 3 points 1 day ago* (last edited 1 day ago) (2 children)

Sooo... do I just do with known email providers (proton, tuta, the webmail my domain provider allows me to have)?

Seems like email is the biggest issue to self host lol

[–] sbeak@sopuli.xyz 1 points 10 hours ago (1 children)

I personally don't really like Proton and Tuta due to their lack of support for IMAP (and with Proton's paid plan, you need their Proton Bridge app to do so)

There's a bunch of providers out there. As for paid providers, posteo and mailbox (both based in Germany, so GDPR) seem quite good, but haven't used either myself. You also have Fastmail, which is based in Australia (no GDPR)

For providers that have a free plan, I have used Disroot before, and they also offer other services along with it like cloud storage. Autistici is another option and is the one I currently use. There are plenty of others, but just know that, for most free email providers, you are the product and your data will likely be sold to third-parties.

[–] sbeak@sopuli.xyz 1 points 10 hours ago* (last edited 10 hours ago)

Disroot is based in the Netherlands and claims that they don't track users or use their data for any purpose. They believe in open and federated software that respect freedom and privacy.

Autistici is based in Italy and also claims not to sell your personal data. They manually verify every user registration. Autistici believes everyone has a right to free communication, and their website states that they are anti-fascism, anti-racism, anti-sexism, anti-homophobia, anti-transphobia, and anti-militarism, and that you can only use their services if you agree with those principles. They also offer other services, like blogs and web hosting.

[–] talentedkiwi@sh.itjust.works 3 points 1 day ago (1 children)

Proton will so smtp if you're on one of the paying plans. You can get your own domain setup to use with it. This is what I do. I just had to contact them to get it setup, they ask a few questions about usage, which I just said was self hosting stuff and sending occasional emails.

[–] Lazarus@mastodon.xyz 1 points 1 day ago (1 children)

@talentedkiwi @TotallyWorthLife
Why not selfhost your mail ? Spin up https://github.com/docker-mailserver/docker-mailserver, add roundcube webmail, and relay your outbound through something like https://www.smtp2go.com/ to avoid delivery headaches.

[–] talentedkiwi@sh.itjust.works 2 points 1 day ago

Maybe some day, don't break what isn't broken (for now).

[–] hperrin@lemmy.ca 5 points 2 days ago* (last edited 2 days ago)

Hardware

Anything with an x86 processor and some form of graphics (iGPU is totally fine). You can use a raspberry pi, but it will give you headaches. The more RAM the better, but 8gb is good enough for a few services. You definitely want an SSD.

Setup

You’ll need a domain and you’ll need to point the root domain at your public IP with an A record. Then you can set up subdomains for each service with a CNAME record to point to your root domain (use “@“ as the host name). So like “example.com” points to “123.123.123.123” with an A record, and “nextcloud.example.com” points to “@“ (“example.com”) with a CNAME record.

For your domains, I recommend Cloudflare. They’re relatively easy to set up, but more importantly, they don’t charge a markup on domains.

From your router, give your server a DHCP reservation to make sure it’s IP address doesn’t change, then forward ports 80 and 443 to your server.

Software

I prefer Kubuntu LTS, cause it’s super stable. When you’re installing, tell it to log you in automatically. Then once installed, in the power settings, turn off automatic sleep. You can leave on automatic lock, but it doesn’t really matter, since if someone has physical access to the machine, you’ve already lost.

Docker and Docker Compose for sure. When you set up a docker compose stack, put it in its own directory, to make life easier. So, you can have a directory “nextcloud”, with the docker-compose.yml for the Nextcloud stack (Nextcloud itself, Nextcloud again but running in cron mode, and MySQL/MariaDB).

NGINX Proxy Manager should be your first docker compose stack. Use “host” network mode, so it can talk to your services. Set up your SSL certificates with this, using the DNS option. Your certificate should have two domain entries, one wildcard and one for the root. So your entries would be like “*.example.com” and “example.com”. You can do that on the same cert. You’ll need an API key from your registrar that has access to your domain’s zone to get it working. On Cloudflare you can set that up in your profile. Just give it access to all zones, then jot down the secret key somewhere safe like a password manager. That key is what you’ll enter into NPM when setting up your cert.

Now you can set up some docker compose stacks with your services. Choose a port range for your services, like 8201, 8202, 8203, etc. Each service usually only needs one port mapped, the HTTP port. So use a port you haven’t used and forward it to the HTTP port (“8201:80”). Don’t forward any ports to your DB. Containers in the same stack can talk to each other without having ports forwarded. Use regular directories for your volume mounts, not Docker volumes (so like “./nextcloud:/path/to/nextcloud/data”).

Set up the subdomain for each service to point to its port in NPM. The address is just “127.0.0.1”, and the port is whatever you set it up as in the Docker Compose stack.

Start with Nextcloud using the “Nextcloud” docker hub image. It says it’s for advanced users, but I’ve been using it for years. It’s super easy.

All of the stuff from linuxserver.io is great, except Nextcloud, cause you can’t run Nextcloud Office with the built in server.

Next, try Immich. It’s awesome.

Then Jellyfin, Nephele WebDAV, Wordpress, Home Assistant.

Remote Access

Install Flatpak and Flathub, then the RustDesk flatpak to access your server remotely. Set it up as a startup program in KDE settings so it launches on boot. Install Flatseal to give RustDesk full permission so it doesn’t always need to ask the local user to approve the screen share. You might need to get an HDMI dummy plug to make it work without a monitor. They’re super cheap.

Oooorrr, you can access it with SSH, but that’s a little more dangerous if you don’t set it up correctly.

Notes

Don’t try Podman, it’s very difficult to get working, and simply won’t work with NPM. Use the official Docker installation method, where you set up their repositories in Kubuntu.

Every once in a while (at least monthly), go through your docker stacks and update them. Usually that’s just a “docker compose pull” and “docker compose up -d”, but sometimes it needs manual intervention, like with Nextcloud’s upgrade script, “occ”. For that you’ll use “docker compose exec -it …”.

Every once in a while, run “docker system prune -a --volumes” to clean up old stuff. (This is one reason why you don’t want to use docker volumes for your data, they would get scrubbed too unless they were running.)

You’ll probably want to set up some backup solution. Just note that a lot of the files you want to back up are owned by root, so userland backup tools probably won’t work.

Don’t try to host your own email. You can probably do it, but it’s astoundingly complicated and difficult to maintain. I know because I run an email service, https://port87.com/. Most ISPs make you jump through hoops to open up outbound traffic on port 25, the email port.

Most Importantly

Have fun!

[–] valar@lemmy.ca 4 points 2 days ago* (last edited 1 day ago)

Pihole could be something good to start with, its pretty simple to setup, doesnt depend on other services, doesnt require hefty hardware, and has a meaningful impact.

[–] Novocirab@feddit.org 3 points 2 days ago* (last edited 2 days ago)

Hardware: either

  1. use whatever you have lying around, e.g. an old laptop, or
  2. get a used thin client like e.g. a Dell Wyse. (passive cooling = no noise)

A Raspberry Pi is needlessly expensive for self-hosting, since it comes with GPIO pins etc. for controlling custom electronics.

[–] superweeniehutjrs@lemmy.world 2 points 1 day ago (2 children)

I have a garbage dell wyze thin client with tiny11 and hyper-v running Homeassistant OS. I did this because the solar inverters and batteries have windows only software tools plus an android app in WSA. Also runs jellyfin with a few shows. I plan to migrate but can't decide on what OS. I found out USB and serial passthrough will work, so I can use a Windows VM.

The networking is garbage because it's actually got two wifi NICs, I haven't pulled Ethernet. One dedicated to HAOS. Tailscale works great.

To be clear, my point is that you should just start doing stuff. It's a journey. Don't spend much on hardware or electricity

[–] SuspiciousCarrot78@aussie.zone 1 points 1 day ago* (last edited 1 day ago)

Oh man I love those wyze thin clients. They can't go for much more that $40 these days.

I hope people keep sleeping on em - I could use a Raspberry Pi replacement or two

[–] neidu3@sh.itjust.works 3 points 2 days ago* (last edited 2 days ago)

Depends if you're hosting something public, or something private.

For public, a webserver is a simple start. Can be anything you want it to be, but as complexity increases, so does the amount of potential attack vectors, so keep that in mind of you're considering adding things like WordPress and the like.

For private, a NAS and/or a simple game server is a simple and useful start.

As for how, there's a million ways to do it, and I'm an old stubborn BOFH that still cling to the old ways of doing it (as in, no VMs, no containers), so I'll defer to others for that.

While purpose built server hardware is always nice since it comes with some useful additions, the truth is that "any" machine will do. Old discarded PC will do just fine.

[–] undrwater@lemmy.world 1 points 1 day ago

What device did you use to post this question?

Use that device to run a web server.

[–] Onomatopoeia@lemmy.cafe 3 points 2 days ago* (last edited 2 days ago)

What are you trying to do?

In the business world, this would be your business requirements. Once you have those then you can spec the technical requirements.

Without having a target, you'll just be all over the place.

Start with one thing, get that setup, get management for it in place, backup processes, etc.

Then do the next thing.

Iceberg made a great rec - start with Jellyfin. It's pretty easy, but touches on all sorts of stuff like storage, backups (which media is worth backing up?), etc. Plus it has a high reward - watching what you want, when you want, from almost any device.

[–] MuttMutt@lemmy.world 2 points 1 day ago* (last edited 1 day ago)

I have one question. Are you using an of the shelf router or something like OpnSense?

If the answer is no then you have found a good place to get started. As you begin to self host you will need to look at securing your new toys.

You will gain a ton over a consumer router. They are often just powerful enough to get the job done today. They rarely get updated and if the product is end of life you can only hope a project has picked it up or replace it with similar risks. Building your own you can shoot the specs to a point where you have room to run other features and last a long time. You can run something like CrowdSec, multiple vLan's, time server, DNS servers with multiple upstream servers and ad blocking similar to piHole, Caddy, ACME client, captive portal for guest networks, Intrusion Detection, and a lot more.

Then you will not only have some understanding of the function and use while you expand your self hosting journey to all those fun services you will also have the flexibility to secure your network when you begin to integrate those things into your home and life.

I'm running my own router using OpnSense, server running TrueNAS, smart home with HomeAssistant and fairly complex network of devices. I have a 10Gbps fiber backbone and a 48 port switch for my 1Gbps ethernet. It can be addictive especially when you are rebuilding a house.

After that figure out what you need, want, and desire. But keep your router as a separate device from everything else. And remember that what you think you need will only work for today, software is only going to get more complex and need more horsepower to keep it going.

For hardware there are two schools of thought, newer lower power devices and older stuff. The choice is spend now or over time. My used X10SLL-F with a xeon E3-1226 v3 router, my X10DRH-C with a pair of E5-2683 v3's and my desktop Ryzen 5800X which is currently also my Frigate NVR host along with other miscellaneous hardware draws along with the other devices in the house (fridge, deep freezer, smarthome stuff, and the like) draw about 1100 watts. So my baseload is about the same as any other us household.

I run Bitwarden and Forgejo on an old Raspberry Pi 3 B+. On my PC I run Fedora Kinoite and the following services (podman quadlets):

  • *arr stack
  • Jellyfin
  • Seerr
  • qBittorrent
  • Shelfmark
  • Grimmory

I use my PC for everything, including gaming, and the services running in the background aren't even noticeable in terms of performance degradation (unless you're for example transcoding 4k files on Jellyfin). You don't necessarily need to buy new hardware, use what you have. When it comes to Lemmy, Mastodon, etc., I'd probably get a VPS. I recommend Anubis when you expose stuff to the internet, especially Forgejo.

[–] ZeldaFreak@lemmy.world 2 points 2 days ago

My first advice is: it's always too small. You always realize that you need more, as you can get bigger. As an example from me. I started with 3TB of storage for data hoarding. I quickly upgraded to 21TB and it's still not enough. You may start with something small, but there is so much. Technically you could go up to AI selfhosting. Especially when you go the route with image and video generation, this takes up resources. I heard the Mac Mini is getting used for local AI.

As for what to host, you should ask yourself what do you need. Lemmy and Peertube I count towards not useful for private usage. A cloud storage like Nextcloud is something very useful. Jellyfin is useful. I would start with cutting out 3rd party cloud services from your personal usage. Instead using dropbox/google drive/iCloud and so on, use Nextcloud. Same for images. Make your local media like movies, music, audio books, books and so on accessible to all devices, with the neat features we love from other services like Netflix, Audible, Kindle and so on. You could also just starting hosting your own game servers, than renting or making it only available when you also play.

But be aware of the risks. Something like a Minecraft Server can be made accessible via VPN. If its open to the internet, the damage is rather small, if you don't value your minecraft world that high. I rather have my Minecraft World deleted, than my personal pictures stolen. When you can open your service only to LAN, you have a lower risk to get it compromised (the risk isn't zero! It's never zero. Air gaped systems make it near zero, but not zero.)

When you do open your stuff to the internet, you need to update your software well and configure it well. Stuff like email is a pain to configure. I looked long for a managing software package, which made it easier for me but to leave me freedom. Next important thing is updates. YOU NEED TO UPDATE YOUR STUFF! I do prefer everything with auto updates. I use watchtower for my docker containers, even though it's not recommended with some containers. What's currently a big deal breaker for me is PostgreSQL. I threw out containers and avoided containers requiring it, as it needs manual interaction. For work I actually need to migrate from MariaDB to PostgreSQL for our chat system. At least they do use the LTS version, so you aren't constantly needing to manually update.

As for the hardware, it highly depends on what do you need. A rented server (a VPS or a dedicated Server) does have the advantage to be easily in the internet and on the same note, this is a disadvantage. For email and websites this is good but you need to be very careful. You can start with a Raspberry Pi. Home Assistant does run on it and they do offer some apps, like AdGuard Home, Bookstack and Vaultwarden. You can also start with a NAS. I run my stuff on my Synology NAS, a DS920+. It has Docker. But you may want to look into a different company, as Synology did some bad stuff, that makes me them not recommending it anymore. I did heard Ugreen should be good. Obviously you could always go bigger and build your own NAS and using truenas or something else. You can also start with a MiniPC and use Proxmox.

For the operating system, I think the best thing is what floats your boat. I do use Ubuntu. Why? Because I like it. Using Containers is a big recommendation from me. With Proxmox you have VMs and LXC containers, which allows you to experiment within a container and separate stuff. You can throw it away easier, without disturbing other stuff, that is working.

I really would recommend to start small and keeping an eye on risk. Start in your local network and with stuff that isn't big risk. If you stark taking more risks, don't go full in in the beginning. If for example you hosts your own file cloud or email, don't abandon your previous provider and start small, with unimportant stuff.

Now to myself: I have running a rented server, a Pi, a Synology NAS and a mini PC.

I did start with a VPS. Very hard and I made quite a few mistakes. the authorities twice called me out for stupid mistakes. It was the fun days, where I actually thought running a Windows Server in the Internet was a smart idea. I did run a webserver and email from them for quite some time. I even had a Skype Music Bot running without issues. What the authorities didn't like where my attempts with the DNS Server and my MSSQL Server. Now my rented server is running my mail and webserver (with Nextcloud) and if I feel fancy, a game server. I don't utilize it as I could and in the near future, I do want to switch things up but I need to keep my mail running.

My Synology NAS is the big stuff. It has my data on it and runs most my docker stuff. There I run audiobookshelf, calibre-web, gitea, jellyfin and paperless-ngx for my main stuff.

My Raspberry Pi 5 is running HomeAssistant to control my smart home stuff and a new addition is Music Assistant.

My mini PC is running Proxmox with Frigate. Frigate is a NVR for your cctv. Not that I have a big cctv system.

Technically I did start earlier with a Minecraft Server and a Teamspeak server, running from my own PC but that has the big downside, that you need to keep your PC running.

[–] curbstickle@anarchist.nexus 2 points 2 days ago

Hardware (what should be enough for a local PC, or VPS…)

One of my "servers" I picked up for $15, saving from electronics "recycling". Unless you're transcoding video or hosting something with a hefty database that eats ram, whatever you can scrounge is generally good enough.

Software (OS [Debian, Yunohost, other…], “containerization” (Docker, virtual machines?), dashboard, management, backups, VPN tunneling…)

Debian and proxmox is pretty much my host for everything. I run a bunch of containers, usually lxc though a few docker containers here and there.

“Utilities” to host (Lemmy, Peertube, Matrix, Mastodon, Actual Budget, Jellyfin, Forgejo, Invidious/Piped, local Pi-Hole, email, dedicated videogame servers like for Minecraft, SearXNG, personal file storage like Drive, AI [in the future, when I can afford a rig that can run a local model decently]…)

Jellyfin doesn't have much in the way of requirements if you're not transcoding, and if you've got a relatively modern iGPU on intel, you've got plenty of power to transcode as well. Pi-hole is also pretty lightweight.

In terms of where to find something, I'd start with checking if there are local computer recycling companies, they will resell, and I've found they go cheap if you go direct. Otherwise, it depends on where you are. Craigslist occasionally has worthwhile stuff, sometimes ebay, sometimes (and I hate that its become so popular) facebook market. Or maybe just see when a business is getting rid of their off lease stuff and see if you can take something home.

At this point I'm almost exclusively tiny/mini/micro. When one dies (which happened recently), I gut the useful bits and move it somewhere else, or add it to the replacement - which is how my most recent addition, a nuc, has 32gb ram rather than 8gb, and a 500gb m2 rather than a 128gb m2.

Have fun!

[–] buttmasterflex@piefed.social 2 points 2 days ago

Hardware: what you currently have on hand to play around with.

Software: start with something simple and well documented. Not quite the driver for the learning phase, in my personal opinion.

"Utilities" as you call them: What is useful to you? What do you want to play with or need to improve your personal use case?

I don't mean to be flippant with my answers here. Do a little introspection and determine what is genuinely useful for you to self host. I personally run Technitium, Jellyfin, a portion of the "-arr"s, Immich, and Navidrome. My family uses all of these services/utilities on a daily basis, so they are useful for me to host. I have some of the services that need CPU and GPU processing power running on my gaming PC and others running on a Lenovo ThinkCenter that I got for free from the IT department at work. They have bins of PCs slated for recycling that work perfectly fine but are "outdated".

[–] Reannlegge@lemmy.ca 2 points 2 days ago (1 children)

Every self hoster will say start with something, like… and another will disagree.

My suggestion is look at what you have and think about what you want to do, and go from there.

I personally did not do that, so take what I said with a grain of salt, I saw ads that where super targeted at me and started to get a whole lot annoyed. This annoyance got me to buy a pi zero and started hosting pihole on my network, I did something and the SD card got fried so I got a pi 4 to replace the thing not yet realizing I probably just needed a new SD card. I got grumpy that some ads where getting through so I got another pi 4 to act as a secondary pihole.

I now can say that I have 1 pi zero 2 running wireguard just for DNS, 2 pi 5’s running pihole 1 of them also runs my Jellyfin server and sails the high seas for me while the other one has some other services doing other things. I also have a pi 4 running HAOS, as I try so hard to get out of proprietary systems. I plan on getting another pi 5 to be my firewall and another to act as my blog/email server.

[–] hperrin@lemmy.ca 3 points 2 days ago (1 children)

Just know that running an email server is really hard and also requires your ISP to unblock outbound traffic on port 25.

[–] Reannlegge@lemmy.ca 1 points 1 day ago

Yes I am aware one of my static IPs has 25 unblocked.

[–] IsoKiero@sopuli.xyz 2 points 2 days ago

Hardware is too wide to tell anything useful out of the blue, depends on what you can get your hands on (as in what's available locally) and what you actually want to run. Used corporate desktop might be fine, raspberry pi might be good too, mini-pcs are popular and so on. All have their pros and cons.

For the OS proxmox is a solid choise. It has both containers and 'full' virtual machines as an option. Debian is good too.

And for the utilities, build something you actually want to use. Pihole is pretty nice. Gaming severs are good to practise with if you're into that stuff. But if you just build stuff for the sake of it you'll of course learn on the way but it leaves very little to actually enjoy on what you've built.

I really like my immich and nextcloud servers and they're well worth my time to keep up and running. But with those there's additional challenge to keep them backed up. Losing pihole server wouldn't be that bad, it's easy enough to rebuild, but losing a terabyte of photos is a bit another thing.

[–] n8vos@lemmy.world 1 points 1 day ago

Most of my hardware I picked up at the local school board surplus. Also don't ever throw anything out. Old desktops or laptops, you can put Linux on anything. Eventually I bought a 2 bay NAS on sale. Started with surplus server spinning rust drives, then upgraded to shuckable WD drives on a Black Friday. It takes a while but eventually your network becomes a server farm. Patience is the best way to build it. Other resources are office surplus on eBay too. Have fun, try different distros. Check out different flavors of Ubuntu, Mint, Debian and even Nix. everything you do is building your skills. Do you know a neighbor getting rid of an old Mac? Try it all out!

[–] cRazi_man@europe.pub 1 points 1 day ago* (last edited 1 day ago)

I've been through this whole process and wanted to make the best choice and explore all options myself. In the end my conclusion ended up being what most people online recommended after all: keep NAS and compute separate and that Debian is best for a Linux server. Now I have a Synology NAS and a 12th gen Intel mini PC. I run most of what you mention above and it works great.

I spent ages looking at so many sources to learn and get this set up. After I got it all done, I found this is one simple guide that basically covered the whole process and I really with O found this early: https://thecybersecguru.com/tutorials/self-hosting-guide/

load more comments
view more: next ›