Live data from Hacker News

Ask HN: How can a total beginner start with self-hosting?

news.ycombinator.com

101–110 of 194 posts

Re: Ask HN: How can a total beginner start with self-hosting?

#101
post #98

install ubuntu server either locally or on a cheap VM read the ubuntu server docs about setting up a firewall and get started setting up a firewall that only allows inbound ssh and https ( be careful and don't firewall yourself out of your system! :) ) https://ubuntu.com/server/docs/security-firewall from there, read the docs on setting up a webserver and create an index.html with just the text "hello world" https://…

Super helpful list. Thanks!

Re: Ask HN: How can a total beginner start with self-hosting?

#102

Been down this self-hosted route many times … from the ground up … as a local neighborhood IT dude. Don’t you hate being that guy? Not me, I get tons of free stuff from my neighbors. For a simple default-deny-firewall IPv6 NAT gateway (zero HTTP3 support), I used Gentoo, no initramfs, all static (no kernel modules, eBPF JIT disabled, no strace/perfmon2) on 2013 Dell Optiplex 790 SFF. This is the extreme tinkerer mode…

Thanks for the advice.

Re: Ask HN: How can a total beginner start with self-hosting?

#103
I would get a rapsberry pi and at first put it behind your provider’s firewall to make sure only specific ports are open to the internet (ideally none at first). Then i’d link all my home devices to that rpi and configure it to manage routing, at first with dhcp and then manual static ip addresses. Maybe add a bit of bandwidth throttling per device just for fun, and bandwidth monitoring and reporting. For hosting git and such i’d install gitlab and maybe for photos i’d add an external us device for file storage and perhaps a shared mount.

Re: Ask HN: How can a total beginner start with self-hosting?

#104
post #77

I have been there. The progress was rather slow until I started to use NixOS. The learning curve is a bit steep but is very rewarding. It is not specific to self-hosting stuff, but as a side effect it makes self hosting super easy (declarative, readable, etc). For most of the services that you would like, you just write a simple configuration and deploy it. For example, to run the service shiori ( https://github.com/…

I experimented with NixOS for the desktop and ran into too many paper cuts too fast to be motivated to continue. Mentally put it in the "try this again next summer" file.

But for server stuff it might be a good way to go...? Maybe I'll try it.

Re: Ask HN: How can a total beginner start with self-hosting?

#105
post #75

I'd recommend to take a look at OPNSense and pfSense. One of the challenges of learning networking properly is that many consumer devices go into great lengths to try abstract the details away from the user. OPNSense and pfSense bring some level of openness into the situation, by letting you to SSH into the networking equipment and generally providing a web user interface with more knobs than any sane person needs. T…

Hm. I'll take a look.

Re: Ask HN: How can a total beginner start with self-hosting?

#106
I think you not start at home. That "last mile" of connectivity is fraught with challenges of dealing with your internet provider and all sorts of other things. It can be a headache, and it's very particular to your situation, and your provider.

If you start "self hosting" on a cloud based instance, all that you learn in doing so will carry over to when you finally are able to move everything to a machine in house. It will give you results faster, you will make all the same mistakes and have similar problems, without having to fight hardware. You'll also have the network expertise of your hosting provider to fall back on. As much as you don't want someone waltzing in and walking all over your system, they don't particularly want that to happen to you either.

The hosting plans are cheap enough that you can run for several years for the price of hardware in your home. And in the end, if you find you're unhappy with it, it's a mouseclick to get it of your life instead of now having a some extra hardware (even if it's a just a Pi and an SSD) lingering and collecting dust in your house.

I think the virtual hosting is a smoother on ramp to this journey, you'll find faster success with it (which can keep you motivated rather than frustrated), and it'll give you a baseline to compare against if and when you decide to take the final step and bring it in to the broom closet. You can readily transition incrementally as you go forward depending on how you architect it.

Re: Ask HN: How can a total beginner start with self-hosting?

#107
post #42

To understand networking: read a book. Much of my early networking knowledge came from https://dl.acm.org/doi/book/10.5555/1593414 but you can probably find more modern variants of such a book. Getting a good grasp of networking requires reading and experimentation; luckily, you've got the tools for experimentation already. Most of application deployment is little more than reading the docs and tuning the configurati…

> To understand networking: read a book. Much of my early networking knowledge came from https://dl.acm.org/doi/book/10.5555/1593414 > [Computer networking: a top-down approach, Kurose and Ross 2009] This is the kind of reference I was looking for. Anybody else have a favorite. Maybe more accessible? "For Dummies?" :-) Thanks for all these concrete suggestions. EDIT: "Free t-shirt"?! AWESOME :-)

I think this book is its own "for dummies" version: it starts at the very basic ("what is a HTTP?") and then slowly walks its way down to "how does conflict prevention in WiFi work?")

Most of those chapters are probably not relevant to you. All the wireless stuff is nice if you want to dig into setting up your own radio network but you can stick to the internet stuff. Not even everything in there may be relevant to your interests, I've forgotten most of the network/routing graph discovery stuff myself because it's not really relevant unless you're planning on running a corporate network or an ISP. I recommend just giving it a good go, and skipping the parts you probably won't ever need. You can always read them later if a later chapter refers to them and you need to understand after all.

As for Linux stuff, last month's Humble Bundle had a bunch of Linux related books: https://web.archive.org/web/20220913000217/https://www.humbl...

You can probably find people talking about this bundle online and find out what books/alternatives they recommend. There were a few Reddit threads about this at the very least, maybe a HN thread or two as well.

Re: Ask HN: How can a total beginner start with self-hosting?

#108
post #21

https://old.reddit.com/r/selfhosted/ is a great community with lots of resources as well. Check the sidebar and wiki there. Also, if you are into Docker, I love the images hosted by these guys. https://www.linuxserver.io/

I came here to literally say the exact same thing. These two resources are likely some of the most valuable things you'll find. I know some others have said "use the official docker images" and I'd say for selfhosting: don't. The folks who run LinuxServer.IO are awesome and the consistency of their documentation and container images is some of the best, in one place, that's out there today. I would add two things to…

Thanks for the endorsement and the links.

Re: Ask HN: How can a total beginner start with self-hosting?

#109
post #14

For hardware: in the past, I would say start with a raspberry pi. But those are impossible to find at list price now. So instead, if you look on ebay for SFF (small form-factor) workstations, you can find something like an HP Prodesk G1 with cpu/storage/memory for ~$50-60. Which is significantly cheaper than a raspberry pi 4B @ $100+ by resellers. Slap on a distro, and you're off to the races. Checkout /r/homelab and…

I've got a 2012 or so Pi in a drawer...! Maybe I can play around with it.

Re: Ask HN: How can a total beginner start with self-hosting?

#110
It sounds like you have a good working base of knowledge to start from and might benefit from some high level concepts. Once you understand the basics you can likely cover what you're looking for with a small open source home router or some other similar hardware.

If you prefer books check out

https://www.amazon.com/Computer-Networking-Top-Down-Approach...

Or for video lectures:

https://www.youtube.com/playlist?list=PLoCMsyE1cvdWKsLVyf6cP...

Post reply on HN