Would you be able to host instances for stuff like mastodon and peertube on a raspberry pi more specifically the raspberry pi 5

  • renegadespork@lemmy.jelliefrontier.net
    link
    fedilink
    English
    arrow-up
    6
    ·
    24 hours ago

    Yes. The Lemmy instance I’m commenting from is running on a Raspberry Pi 4. A couple things you’ll need to consider though:

    • Any containers / applications you run need to be compiled for arm64. This is way more common now than it used to be, but there are still some things that only work on x86 (like many game servers)
    • You should hook up external storage to your Pi. You can boot from an SSD via USB 3 and you’ll get way better performance, capacity, and write endurance than an SD card.
    • RAM will likely be your first limitation. Many services can run well under 4GB, but once you start adding more, it can fill up if you’re not careful.
    • You probably already knew this, but even though the Pi has WiFi, plug it into the network via Ethernet. As a rule, you should never run servers off WiFi if you can avoid it. You’ll get much better speeds and reliability.
  • Pax@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    23 hours ago

    Yes BUT while booting from SSD. Anything write/read intensive will shred your SD card in a matter of months.

  • qjkxbmwvz@startrek.website
    link
    fedilink
    arrow-up
    2
    ·
    24 hours ago

    I switched from raspberry pi and orange pi to a cheap Intel NUC, and I think it’s just a much nicer experience.

    The pi is great fun, but the HW transcoding on a NUC “just works,” and the SSD and 16GB RAM opens a lot of doors. My N100 NUC was less than $150, and it included everything (case, power supply, 500GB SSD).

    My pi found new life as an off-site backup: attach a big HDD, set up WireGuard, and have a cronjob do daily rsync and snapshots. I have it set up at in-laws, and it works great.

  • WuxinGoat@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    1 day ago

    Yea I use a 4GB RPi 4 and it handles several services really well, all running in docker: Grimoire Navidrome Traefik Seafile + Collabora integration Gitea Vaultwarden Radicale

    It idles just under 2GB most of the time so it’s doing well.

  • sorter_plainview
    link
    fedilink
    arrow-up
    3
    ·
    1 day ago

    Just make sure the things you want to self host have ARM compatible releases. Rarely I have stumbled on projects that do not have ARM releases.

  • Meldrik@lemmy.wtf
    link
    fedilink
    arrow-up
    1
    ·
    1 day ago

    A small Mastodon server wouldn’t be a problem. If you want to install PeerTube, you could, but you wouldn’t be able to transcode video.

  • Tenebris Nox@feddit.uk
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 day ago

    Yes. I have a 4gb Pi 4 and self-host a Wordpress website, Bookstack, Trilium, Syncthing server and a server to serve images and a couple of other apps which are all internet available through a Cloudflare tunnel. Far from struggling (though admittedly nothing is processor intensive).

  • Limonene@lemmy.world
    link
    fedilink
    arrow-up
    1
    arrow-down
    3
    ·
    1 day ago

    Yes. However, hosting things from your home connection will make it difficult for you to visit many websites. Blocklists such as Datadome, Cloudflare, and F5 will give you endless captchas if they detect port 80 or port 443 open.

      • Limonene@lemmy.world
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        edit-2
        1 day ago

        From several years of experiencing it in person. Datadome was the worst and most consistent. It stopped the moment I switched my webserver onto an exotic port number (above 10,000).

        Datadome sent me captchas at every domain they firewalled. After correctly solving, I would always be completely blocked:

        (not my screenshot)

        • just_another_person@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          1 day ago

          I can promise you that making HTTP requests to other servers is not triggering a port scan back to you to check what is open. That’s kinda crazy.

          • Limonene@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            1 day ago

            It seems crazy to me too, but I tested it numerous times. Closing port 80 and 443 stopped the blocks, and re-opening them started the blocks again.

              • Limonene@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                1 day ago

                No. Check my previous comment – this is about hosting on your home ISP, and turning that on or off directly affected the blocking. There is no way to host a webserver through any commercial VPN service.