I recently became interessted in learning about static site generators. So I decided to start a little 11ty blog, in which I teach people, who are new to self-hosting, how to securely set up their own server with Ubuntu and Docker.

For now, I've got my Beginners Guide series as well as a more detailed introduction to SSH and its features. I plan to eventually write down all I've learned about self-hosting in the past 20 years.

Hope it ends up being helpful for some of you.

EDIT (2025-10-28): Finally got around to get a proper domain and switched my blog to Hugo. Much easier to deal with and more capable imho than 11ty (and actually useful documentation as well). Oh and got rid of Netlify. Their 300 credit limit for a free deploy project is far too limiting if any deploy costs 15 credits...

top 65 comments

sorted by: hot top controversial new old
[–] 60 points 1 year ago (15 children)

Personally I strongly recommend Debian over Ubuntu.

  • source
  • hideshow 15 child comments
  • [–] 8 points 1 year ago (6 children)

    Personally I would recommend Proxmox. It's a debian based distro for hosting containers and virtual machines

  • source
  • parent
  • hideshow 6 child comments
  • [–] 3 points 1 year ago (4 children)

    And what OS do you implement there? Debian? :p

  • source
  • parent
  • hideshow 4 child comments
  • [–] 3 points 1 year ago (2 children)

    Yes, as I said it's a debian base. But Proxmox is built for servers and using it to host and share containers or virtual machines is super simple. Especially with the community helper scripts that can set up different self-hosting projects within minutes with minimal tinkering.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 1 year ago (1 child)

    Sorry I think I forgot to write the word.
    What do you use as your guest OS? Debian? :p

  • source
  • parent
  • hideshow 1 child comment
  • [–] 8 points 1 year ago (5 children)

    Why is that, if I may ask? I've used both for years and personally I find Ubuntu has fewer footguns for a new user, and an easisr upgrade process.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 18 points 1 year ago (2 children)

    I prefer Debian's community-driven governance model, the higher degree of freedom over the system and lack of preinstalled software that I neither need nor want, and the quiet stability that Debian offers.

    I also have just not liked Ubuntu's decisions over the years. Little things that piled up like the Unity stuff a few years back (or I guess almost a decade at this point), the forced inclusion of snapd, that time they said they wouldn't offer 32-bit libraries, the little message advertising Ubuntu Pro in the shell.

    I've always felt like Debian is happy to just get out of the way and let you use it how you want to use it. That control is what I look for in a distro. What you call "footguns" are to me just more options for control.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 1 year ago (1 child)

    For me the footguns in debian have been an unintuitive upgrade process that lets you break things, and configurations/software that don't work well out of the box without user knowledge and intervention. But for my server, Debian has been very nice and lightweight.

    Even though Ubuntu is not always pure good the way that Debian is (remember when they had Amazon advertisements and search integrated into the desktop), and minor annoyances like the apt advert are annoying, but they offer an amount of stability and ease of use that I think earns the nickname "preconfigured Debian"

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 1 year ago*

    I call bullshit. Debian stable just works, Ubuntu LTS releases use netplan instead of ifconfig, send your searches to Amazon, show advertising in the shell and push snaps down my throat. I used Ubuntu from 6.06 up until 10.04. Debian is just better with less corporate profit bogaloo

  • source
  • parent
  • [–] 6 points 1 year ago (4 children)

    Awesome to read. Thank you. Also, your images aren’t loading for me.

  • source
  • hideshow 4 child comments
  • [–] [S] 5 points 1 year ago (3 children)

    Thanks, glad you liked it.

    Yeah, I know that the images are borked. But it's pretty late here and I was too lazy to fix it. I'll fix it tomorrow.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 1 year ago (1 child)

    You should check out the official 11ty images plugin if you haven't already. Itll generate multiple sizes for your output. Its the best feature imo.

  • source
  • parent
  • hideshow 1 child comment
  • [–] [S] 1 point 1 year ago

    Took me an embarrassing amount of time to realize my mistake. I forgot to actually use the npx @11ty/eleventy build command instead of always relying on npx @11ty/eleventy --serve. Now the images are properly linked and transformed / optimized.

  • source
  • parent
  • [–] 8 points 1 year ago (16 children)

    Ubuntu and Docker.

    Really? Netplan alone disqualifies Ubuntu as a "friendly stable starter distro", and I can guarantee you that your guide will somehow become outdated with a single new Ubuntu release, or some poor soul who accidentally selected an LTS release.

    Docker doesn't matter as much, but there's a reason beyond just FOSS licensing why podman exists.

    Would highly recommend Debian instead.

    I started on Ubuntu similar to this many years ago and both the server and desktop experience was not fun at all.

  • source
  • hideshow 16 child comments
  • [–] [S] 3 points 1 year ago (2 children)

    I think you are conflating desktop Ubuntu with Ubuntu Server. On a server, you absolutly want a stable, long supported LTS version.

    I've been hosting on Ubuntu Server for over 10 years now, and at no point were any packages required to keep it up to date and running outdated.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 1 year ago (1 child)

    The problem is when you upgrade

  • source
  • parent
  • hideshow 1 child comment
  • [–] [S] 2 points 1 year ago* (last edited 1 year ago)

    You mean from one LTS to the next? It's been a while, but as far as I remember, it worked fine on my last server (22.04 to 24.04).

    And even if something doesn't work, I can have all my stuff spun up on a new server in less than an hour. But that, of course, depends on the amount of data you host.

  • source
  • parent
  • [–] 1 point 1 year ago (4 children)

    Whats wrong with netplan? Has worked great in my experience.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 1 year ago* (3 children)

    Netplan alone disqualifies Ubuntu as a "friendly stable starter distro"

    OP didnt mention anything about stability. Just ease of use.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 0 points 1 year ago (2 children)

    Whats wrong with netplan? Has worked great in my experience.

    Neither did I? Yaml defined networking is incredibly easy to use.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 1 year ago (4 children)

    I'd say that docker is still more user friendly than podman

    In the future that may change but right now podman is still green

  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 1 year ago (3 children)

    In which way do you find podman hard?

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 1 year ago* (2 children)

    It isn't necessarily hard. However, it has some quirks and isn't as well documented online.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 4 points 1 year ago

    This is cool keep it up

  • source
  • [+] 4 points 1 year ago (2 children)
  • [–] [S] 2 points 1 year ago (1 child)

    The amount of baseless Ubuntu Server hate in this sub is pretty sad. I've used Ubuntu Server, without any problems, for more than a decade. And at no point where there any significant changes to the way things are done. So I really think your comment about articles becoming useless has no basis in reality.

    As for using your own hardware. Nothing in this guide necessarily requires a VPS. And you seem to completely ignore the upkeep and electricity costs of having your own hardware at home.

    Not to mention the convenience of a public IP, which is something not every ISP around the world offers. And yes, you can use a dynamic DNS provider to get around that, but then you publish your private IP onto the entire internet.

    The guide was focused on being as simple and convenient as possible, with the target audience being absolute beginners to self-hosting. If it doesn't speak to you, feel free to write your own.

  • source
  • parent
  • hideshow 1 child comment
  • load more comments (1 reply)
  • [–] 2 points 1 year ago (1 child)

    I know next to nothing about self-hosting, so I appreciate that you wrote this series. I'm probably going to use Debian and my own computer, but I think your walk through is still helpful. Thank you.

  • source
  • hideshow 1 child comment
  • [–] 2 points 1 year ago

    Hell yeah. Looking forward to more to pass on to future self-hosters!

  • source
  • [–] 2 points 1 year ago

    I have wanted to self host ever since I joined the fediverse 5 years ago. Always ends up with one or another error message that I cant get through. But I might give this a chance.

    One thing I wish I knew earlier is the "man" command to display the documentation of a command.

  • source
  • [–] 2 points 1 year ago (1 child)

    I love 11ty, I build my blog with it.

  • source
  • hideshow 1 child comment
  • [–] [S] 1 point 1 year ago

    Yeah, took me a while to get the hang with Nunjucks, which I had never heard of or used before. But once I got it all properly set up, it was super simple and easy. I'll definetly write a guide to it too, eventually.

  • source
  • parent
  • [–] 2 points 1 year ago

    Nice guide, thank you!

  • source
  • [–] 2 points 1 year ago

    Awesome, thanks OP!

  • source
  • [–] 2 points 1 year ago (1 child)

    For getting your stuff available over the internet, y I recommend a secure tunnel with wire guard between your vps and servers running the services.

    Make your vps an authentication portal using stuff like Authelia and Fail2ban.

    If you're really needing out, get ELK stood up for free and get agents on your containers/services to keep visibility into any potential... Anything

  • source
  • hideshow 1 child comment
  • [–] [S] 1 point 1 year ago

    I've personally never found the need to do that. If you follow basic security guidelines and keep your server os and the docker service up-to-date, there really isn't any real threat.

    Though I have heard of Authelia before and was interested in reading up on SSO, one of these days.

  • source
  • parent
  • [–] 2 points 1 year ago (5 children)

    This 11ty sounds like a nice off the shelf solution to getting a blog started, which I want to do, but how to allow comments? I guess I'm asking what's everyone around here solution for comments

  • source
  • hideshow 5 child comments
  • [–] 2 points 1 year ago* (last edited 1 year ago) (2 children)

    I have been pleased with giscus on my blog (http://roguesecurity.dev/ ) Its powered via github discussions.

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 2 points 1 year ago (1 child)

    Can't really help you there, since comments were never a consideration for me. They would add an unneeded amount of moderation, and potential threat, to my blog.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 1 year ago (5 children)

    I wrestled with whether or not I should be that guy, but self-hosting by definition generally means everything down to the bare metal, i.e. not a VPS.

    I can understand how the term could apply to the broader definition of running your own services on managed infrastructure, but it seems odd not to make that distinction in a beginners guide.

  • source
  • hideshow 5 child comments
  • [–] [S] 5 points 1 year ago

    I see your point. But to me, self-hosting just means being responsible for the server and services and not necessarily having my own hardware server at home. And just calling it hosting is too broad a definition for me. And at the end of the day, the guide works just as well for your own hardware or a VM, as it does for a VPS.

  • source
  • parent
  • [–] 4 points 1 year ago (3 children)

    Making the term self hosting exclusive to running stuff at home feels unnecessarily elitist. Not everyone has the space, bandwidth or family approval to run stuff at home.
    You can have the term homelab if you want

  • source
  • parent
  • hideshow 3 child comments
  • [–] 3 points 1 year ago (1 child)

    Right, I self-host email and have done for ten years or more, but I don't do it out of a server at home. Does my Postfix not count as selfhosting any more?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 1 year ago

    I'm ambivalent as to who uses the term and how, but a deviation from the general consensus of its definition might cause confusion for newcomers to the field who can't make the distinction. That said, I enjoyed OPs post and appreciate the time they put into it.

    Homelab on the other hand is not synonymous with self-hosted infrastructure and services, as its intended use is not for production workloads.

  • source
  • parent
  • [+] -8 points 1 year ago (2 children)