Is there an idiots guide to self hosting?

https://lemmy.world/post/739982

Is there an idiots guide to self hosting? - Lemmy.world

Or maybe a two click solution? :)

What about renting a server and running it there?
So you "self"host elsewhere?
Hmm maybe Unraid with the community store? When you got unraid running its just a matter of selecting an app from the store and hop: it runs. Kinda..
If I remember correctly, Yunohost does something similar, and it's fairly easy to setup. Anyone with experience who can say something more about it?

What would be the point of self hosting then?

Generally speaking installing stuff on a raspberry pi with docker and accessing it over a vpn is pretty safe and already straightforward.

To add to this, zero trust or tailscale are GREAT VPN implementations. Don't require much config. But works the same way as a normal VPN
Lol its probably for me

Self hosting what?

In general

  • Install docker
  • Copy and paste docker run commands from the getting started guide
  • Learn from mistakes
  • It's so easy to self host these days. I remember when you'd have to fuck around with Apache configs and fuck around with app config files etc. Now you just run docker. It's so great these days!
    I'm still fucking with the apache configs (I fucking hate apache...). As someone with no docker experience whatsoever, are there any getting started guides you would recommend for someone looking to make the switch?
    I don't have any specific guides in mind, but you'll want to use docker-compose as much as possible, also create /home/your_user/docker/app for each app, and keep your docker compose files. If you use docker run, keep a copy of the commands you use, because if you need to restart your services, it will be a lot easier than having to search up the command in your bash history again. You can just cat docker.txt | bash and it will recreate your docker containers for you. That's all i can really think of for getting started. Also, docker ps will be a godsend.

    Okay. I keep reading about docker. What's the difference between a docker and just installing an app on rented server space?

    Does each dock (?) have its own server? (Apache or nginx or whatever?)

    Does each dock host a whole site, or do you have a dock for your database and a dock for your web app?

    Docker is basically a virtual machine image you write your software in. Then when you run the software you don’t need to worry about compatibility or having the right dependencies installed, it’s all included in the docker image.

    Think of Docker as being Nintendo cartridges that you can take to any friends house, plug them in, and play. Servers can run more than one Docker container.

    The approach greatly simplifies writing code and having it work on your server, reduces errors, and adds a layer of security.

    I've read and reread, listened and relistened to info on docker/containers and I still feel like I'm missing something tbh.

    Let's say you have a docker container for something and it's for a Linux distro, that won't run on another OS, will it? Maybe not even a different Linux distro from the one it was made for (e.g. Ubuntu or Arch or Fedora or whatever).

    To go off your example, Docker's not like an expansion module to make your Switch games work on a PlayStation or Xbox...Right? There seems to be some kind of mixed messaging on this, the way they're so readily recommended (which seems to be related to a presumption of familiarity that often isn't there toward those inquiring).

    I guess I've also been confused because like...Shouldn't old installers handle bundling or pulling relevant dependencies as they're run? I'd imagine that's where containers' security benefits come into play though, alongside being virtualized processes if I'm not mistaken.

    ColecoVision - Wikipedia

    Also learn how to translate docker commands to docker-compose.yml

    I think you should just choose whatever software or project you want to selfhost, read how to do it, and learn by doing.

    I’m a complete idiot but I learned how to self host from trying to set up a Jellyfin server on my Windows desktop. Now I host game servers, Matrix with bridges, Discord bots, and this Lemmy instance that I’m in. I (re)learned how to use Linux and fell in love with it too.

    It’s all about reading the manual I guess.

    This is how I got a career in Software Engineering, literally had a strong motivation to build a clan website for my Counter-Strike 1.6 crew and I just ended up learning by maintaining self-hosted websites, forums, and voip. Kept doing it over and over by building other projects and then realized people pay for this skill...

    tl;dr:

    Go to search.brave.com

    Search for "docker cheat sheet"

    Check the first two links, write down whatever that is in there

    Then search "How to install docker on (Your current OS)"

    Click on whatever link appears first, blindly follow the step by step

    Then search "Best things to self-host"

    Check the first two links, see if something tickles your fancy

    Then search for "How to install (ticklyfancy stuff) on docker"

    Once again, blindly follow the step by step

    Congrats! You are now a pro docker user.

    Instructions unclear, I've broken international communications:

    I initially bought a Raspberry Pi with an HDD attached to set up a NAS.
    I watched this YouTube channel for a lot of info when I was getting started: https://www.youtube.com/c/TechnoDadLife
    Techno Dad Life

    I do computer and equipment reviews, how to videos and basically make the videos that I wish I had when I got started.

    YouTube