As title says, i want to start self hosting but i have a lot of questions about it. For more context, i want to self host XMPP, matrix, Immich, an email, forgejo and a minimal website. i want to ask you:

  1. Where should i buy my domain and are there any things i should be careful about?

  2. does the end of my domain (idk the specific name but .XYZ) matter at all?

  3. I get that i should use a used PC (i have none lying around), but how old?

  4. Am i willing to self host too much stuff?

  5. Can i use Gentoo, Devuan, or other non-systemd distros as an OS?

Sorry for the noob questions but i struggle to find answers online, feel free to tell me to RTFM _;
Also, i have experience with Linux as a desktop OS, more specifically 3 years, one of which mostly in gentoo, but i’ve daily driven Arch, Artix, Debian, Void among others

  • eldavi@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 minutes ago

    in case you didn’t already know: email has a STEEP learning curve and it’s because of how it can be captured from outside – not the technology itself.

  • dihutenosa@piefed.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    7 hours ago
    1. dunno

    2. dunno

    3. If you’re tight on budget (and who isn’t), an old Android phone makes a passable server - especially one that can run Nura (used to be called PostmarketOS) - check https://wiki.nura.eco/wiki/Devices

    4. Looks good to me. Be careful with email, it’s hard (yet possible) to get right. Here’s my answer to someone asking what everybody’s self-hosting: https://piefed.social/comment/12336670

    5. Yes you can. Or FreeBSD, like others mentioned, or OpenBSD or Haiku OS or Windows - as long as it’s able to start the application you want to host. Some applications run on anything - check nginx. The question is what’s good to self-host on - the answer is “whatever gives you least headache”. I’m using NixOS, for its powerful text-based configuration system (store the whole OS config in Git), atomic upgrades and rollbacks. As for systemd - it’s a tool. I use it, it suits me fine. If it raises your cortisol, exercise your ability to choose - find a distro without systemd - but also remember that systemd is also a legit choice. many people (like me) are completely fine with running a systemd-based distro.

    Also check out a comment I once wrote to someone asking how to get started:
    https://piefed.social/comment/11341527

    • curious_beetle@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      7 hours ago

      Thanks, my beef with systemd isn’t really about usability but i have problems with the philosophy and the age verification ground work. I could use it no problem, i just don’t want to

      • dihutenosa@piefed.social
        link
        fedilink
        English
        arrow-up
        3
        ·
        6 hours ago

        Don’t get stuck :) Use a non-systemd distro, if that floats your boat, we’re pro-choice here.

        Btw, (if I understood the debacle correctly), the age verification thing (as I understood it) is an API for requesting your age, not a proof of your age. It makes it easier for you to lie about your age, to programs that just want to know it. I cannot fathom a scenario where an open-source OSS could be prevented from reporting 1970-01-01 as everybody’s age.

        • curious_beetle@lemmy.mlOP
          link
          fedilink
          arrow-up
          1
          ·
          4 hours ago

          I get it, honestly i just find weird the fact that they’d include age verification in the first place, and aside from that i don’t like most things about systemd anyway like the large codebase and the incredible amount of extra services they offer

  • fdagpigj@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    5 hours ago

    Where should i buy my domain and are there any things i should be careful about?

    As someone else said, check the renewal price, not just the price for initial registration. And obviously try to pick a registrar that you find reasonably trustworthy.

    does the end of my domain (idk the specific name but .XYZ) matter at all?

    It’s called a top-level domain (TLD). TLDs are handed out by the IANA to various entities. Those entities (eg. a branch of government of a country) can set requirements for registrants and I think they also influence how much domains under that TLD cost. So you might want to pick one with sensible requirements (usually they’re pretty lax but eg. some countries may require citizenship or registering a business with them) that you’re able and willing to meet, is cheap, and that you more or less trust the managing entity of.

    I get that i should use a used PC (i have none lying around), but how old?

    Depending on your hardware requirements etc. and what you want to achieve by self hosting, I would suggest looking into renting a cheap VPS (edit: embarrassing typo) instead of buying an old computer. It’ll be more expensive in the long term, yes, but you won’t have to worry (as much) about things like getting a static IP address, power usage/outages, noise and possibly heat in the summer, fiddling with router settings, telling everyone your home IP address and sharing bandwidth with your server. A third option would be something like a raspberry pi, if it’s enough for your needs.

    Am i willing to self host too much stuff?

    The limiting factor, aside from possibly hardware if your services become very popular or are particularly demanding, will likely be your patience in figuring out how to get things working. Email can be a particularly bad one, especially if you need to be able to communicate with mainstream email services. Of course everything also requires occasional maintenance, which again takes time and patience.

    Can i use Gentoo, Devuan, or other non-systemd distros as an OS?

    Sure, why not? But for a beginner I would recommend picking something with a good amount of documentation and support available to make finding relevant information easier and to (hopefully) be able to rule out the choice of OS as a potential cause when things don’t work.

    • curious_beetle@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      7 hours ago

      Thanks! I’m curious tho: what could there possibly be that introduces problems with using something like Gentoo as a server OS? The only thing that comes to mind is the fact that some software might not be available on portage or some software might be assuming systemd, but can’t that all be worked around by compiling manually or creating custom init scripts?

      • fdagpigj@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        5 hours ago

        I don’t think it’s likely you would run into problems that couldn’t be fixed, it’s just that the more niche of an operating system you pick, the more time you’ll likely be spending having to figure things out on your own. Often, to fix mistakes, oversights or assumptions made by others. If you love to tinker, that might be fine. If you just want your stuff to be working, it can get frustrating pretty quickly.

        • curious_beetle@lemmy.mlOP
          link
          fedilink
          arrow-up
          1
          ·
          4 hours ago

          I’ll be fine, i love to tinker, and i also heard of many people using gentoo on server so hopefully it won’t be terrible lol

  • GetAwayWithThis@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    18 hours ago

    Some are harder to answer than than the others.

    1. Wherever’s cheap, and not shady. Namecheap, porkbun come to mind. I personally bought mine at OVH as it was cheap and they are an ok-ish hosting provider. You can transfer to another service once you find a more favorable deal before renewing. It’s worth reading up on how the ownership, tranfer, etc works.
    2. Yes, as others said .xyz is usally used by spammers, so might be blocked by providers. You could use your countries 2 letter tld, depending on the restrictions they have on them. Or something generic but not plagued by spam users.
    3. I have several services on an i7 6700TE. Old, low clockspeeds. But 8 threads and the iGPU can handle the media transcodes I need. RAM, storage and connecrivity are more crutial IMO. Newer hardware has better efficiency and features. Look at what you need, and chose accordingly. Have enough PCIe slots + lanes for SSDs and addin cards. Have enough SATA or M.2 ports for the storage. Have enough network ports for whatever you decide to do.
    4. At first, probably. Don’t let us stop you tho. Just don’t pwn yourself by letting any traffic in and out of your home network. You’ll see how much time and energy you have and need for building this and keeping it in good shape. I like to plan ahead and strive for perfection, but usually settle for good enough because of the hardware limitations and time I want to spend with others instead.
    5. I mean, as long as it works for you, I guess. I am not familiar with them. I run Proxmox as a hypervisor and mostly Debian containers and Alma VMs. As these are the more supported ones. If you go for containerisation with say Podman, or Docker, then the host OS will matter less.

    I hope this gives you a direction at least. Others, feel free to correct me.

  • tvcvt@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    17 hours ago

    Welcome to the party, you’re going to have a blast (and lots of chances to bang your head against the wall)!

    Here’s my take on your questions:

    1. Doesn’t matter at all where you get a domain. Pick any reliable registrar where the price is right.
    2. The top-level domain (TLD) is the domain name’s suffix and you can use any that you like. Some cost more than others, so you may want to compare prices.
    3. To start with, anything from within the past 10-15 years should be good enough. There are trade-offs, though. Older machines may use more power, for example, but don’t get hung up on details at this point. Get something cheap like an old laptop with an Ethernet port and you’ll be good to go. Once you’ve done it for a while, you’ll understand any downsides and the next piece of hardware you get will be an even better informed choice.
    4. Not at all. Self host as much as you want, but I’d recommend starting slowly. Pick one thing and set it up on your server. Tweak it until it’s just how you want it, makes backups, test. Then add the next thing. Immich, forgejo, and a website are nice easy ones to start with. Communications platforms like chat apps and email are much more involved. Maybe save those for slightly later.
    5. For sure! You can use any OS you’d like. I’ll mention that a lot of the very basic tutorials will assume you’re using Ubuntu or Debian, both of which use systemd. For Devuan, for example, you could mostly follow those same tutorials, but you’ll have to fill in some of the blanks. I’ll mention that Linux isn’t the only option, either. If you don’t like systemd, you might enjoy something like FreeBSD. It sounds from your experience like you’ll be able to handle this part.

    Whatever you do, just remember that it doesn’t need to be perfect immediately. You’re going to mess a bunch of things up and make decisions you’ll wish you hadn’t. You’ll spend a lot of time destroying and recreating things you’ve already done. That’s the joy of self-taught self hosting!

  • Creat@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    18 hours ago
    1. If you’re in the EU, metcup is priced well and competent. If you’re somewhere else, I got no idea.
    2. Not really, just preference. Often some of them are just more expensive than others, both to register and to maintain. Some don’t support DNSSEC (really) which you really don’t need to care about, but it’s a difference that may exist.
    3. Literally any age. The older it is, the less it can do and/or the more power it’ll use to do it. Depending on where you are and now specifically what you pay for electricity, using a newer system can quickly pay off. Most things in the list you gave aren’t ‘intensive’ to host, but depending on features enabled immich can at least at times require some CPU and memory. The rest can run on a raspi (meaning literally any PC will do as well).
    4. If you’re hosting on an old PC (x86), I would suggest going with a hypervisor (proxmox is popular for good reason), and then hosting everything else as a lxc or VM. If you want to actively do things by hand, to learn or just experiment, use Debian. It’s the most common server operating system used, and will often be the assumed default for guides or installation instructions.

    Whatever you pick, do not install everything just onto “the server”. Pick some form of abstraction (VM, lxc, docker, kubernetes, …) to isolate and manage your services.

    Important: do not host your own email, ever. Let alone as a beginner project. You can host it behind a forwarder that acts as the destination for the other mail providers, but don’t have a public facing, DNS registered mail server (neither at home, nor as a vps or something). It will cause nothing but problems. You will regret it. Quickly.

  • dadarobot@lemmy.sdf.org
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    21 hours ago

    Where should i buy my domain and are there any things i should be careful about?

    not sure. i host at home and vpn in with tailscale

    does the end of my domain (idk the specific name but .XYZ) matter at all?

    shouldnt matter i believe?

    I get that i should use a used PC (i have none lying around), but how old?

    depends on what youre doing, but for simple file sharing and some small automations you could probably get away with a 10ish year old computer. i used a 2012 hp pc for many years. only replaced it abt a year ago.

    Am i willing to self host too much stuff?

    if your machine can handle it, who cares?

    Can i use Gentoo, Devuan, or other non-systemd distros as an OS?

    you can use anything you like. host everything on plan9 for all i care.

  • chaospatterns@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    18 hours ago

    Where should i buy my domain and are there any things i should be careful about?

    Just becareful about renewals. Sometimes a domain will be cheap year one, but crazy expensive year 2+. I personally use Porkbun

    does the end of my domain (idk the specific name but .XYZ) matter at all?

    Sometimes it can matter. If you host email, some TLDs are classed as higher risk and could be wholesale blocked or classed as higher risk.

    Am i willing to self host too much stuff?

    That’s a question of how much time do you mind spending configuring, maintaining, and upgrading. I run way too many services. Some of them require more effort than others. Forgejo requires more effort to get working than Immich for me trying to get Forgejo Actions working well.