Selfhosted

38707 readers
677 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
26
 
 

Hi. Sorry for the vague title. Nowadays I'm using multiple computers and get to need files and such from other machines pretty often. My music and photos library has also increased and it's getting much harder to maintain with it being scattered across many machines. Basically I'm trying to have a photo library and plain files(documents, music, etc) shared across computers.

For plain files I'm thinking nfs+samba would be the best approach, but there are problems. They have speed issues, but as I can't afford large space for all my machines I can't keep a full rsync'd local copies everywhere too.

The photos are my bigger concern, as I'm looking for a tagging feature. A plain directory structure would be easy to sync but those tags would differ by programs.. desktop programs like digikam or xnview(sadly proprietary) would work well if I didn't need syncing, but I'm not sure if they'd work reliably with all their configs/files stored over nfs. Plus, these programs would have incompatibilities by platform and not work at all on android.

Web based solutions like Immich or NextCloud Photos appear to be pretty famous nowadays, but I'm not sure about them as well. They seem to be overkill for my purpose, and those mostly tend to be very new & i'm not too sure about their future, as they store tags and such on their own formats.

Edit: Oops, forgot to say. I have multiple servers right now, one offsite running FreeBSD, another running Devuan, and one at home running FreeBSD.

I'd love to hear how others are maintaining their system. Thanks for reading.

27
 
 

I'd like to store/seed important data (wikipedia, gutenberg, etc.), and read recently that it would be a good idea to store torrent files long-term. My questions are:

  1. Is it better to store torrent files or magnet links?
  2. Will a given magnet link retrieve the exact same .torrent file every initiation?
  3. Is storage of these files/links a good idea (especially if I have the files)?

This question is really about whether magnet links or torrent files are better to store long term, with a sanity check that this is something that should be done.

I've read these two StackExchange posts which were very helpful, and am looking to get more technical opinions and info:

28
 
 

Is anyone self-hosting a genuinely snappy and robust media hosting service for themselves? What's your setup look like?

The best thing about Apple's Photos on my iDevices is the speed at which everything loads. Even videos (usually) load reasonably fast over LTE. The user interface is decent enough and has a high percentage of features I'd like to have on the go. The on-device AI is awesome (recognizing / organizing faces and objects and locations).

I'd like to get away from iCloud for numerous reasons: the subscription, the chance the UX gets worse, privacy, ease of data ownership and organization, OS independence, etc.

I currently have a QNAP TS-253A with 8GB RAM, Celeron N3160 1.6GHz 4 core, (2) Seagate IronWolf 8TB ST8000VN0022 at about 98% capacity, Raid 1 . I mostly use it for streaming music and videos at home but I also stream music outside the house without issue. Movies don't stream at HD immediately but once they cache up they're good within a minute.

Some people have suggested this hardware should be sufficient. I feel like it's archaic. What do you think?

I've tried Immich but find it to be slow and very limited with features. I've even tested hosting it on Elestio but that didn't go too well. I'm not opposed to paying for offsite services but at that point it just seems like I should stick with iCloud.

I already have Plex running on my NAS so I use that for archiving but it's way too slow to use for looking at pictures, even locally. QNAP has the photo app QuMagie with facial recognition and it seems alright but it's agonizingly slow, if it works at all.

All of the self-hosted apps, in my experience, are well outside the scope of iCloud Photos' speed and feature set. If I could even just test one that matched its speed, I could better assess whatever features they have.

What I'm not sure of is if I'm hitting a wall based on the apps, my hardware, or even my ISP (Speedtest reports upload: 250mpbs). The fact that apps like Plex and QuMagie suck even locally suggests to me it's not an ISP issue (yet).

My NAS is already at capacity so it's time for an upgrade of some sort. While I'm in the mindset, I wanted to see if there's a better product I could use for hosting. My space and finances are not without limits but I'm open to ideas.

I realize I'm not a multi billion dollar company with data centers around the world but I feel like I should be able to piece something together that's relatively comparable for less than an arm and a leg. Am I wrong?

29
 
 

Hello everybody,

I recently purchased some parts for my first homeserver, but I am not really happy with the case, because it just a tremendous waste of space.

I am running an ASRock N100M micro-ATX with two Sata SSDs and one PCIe x1 NIC and Pico PSU to power it. So I am looking for a minimal/small case to fit exactly this.

What I find usually has no accommodation for PCIe cards, or wastes 50% of its space for a full ATX PSU and an optical drive tray... or it just cost more then the whole PC together. Since it is such a minimal setup I am hoping to pay the lower end of case prices (~30-50euro).

Does somebody here has an idea?

Best wishes

30
 
 

I have a load-bearing raspberry pi on my network - it runs a DNS server, zigbee2mqtt, unifi controller, and a restic rest server. This raspberry pi, as is tradition, boots from a microSD card. As we all know, microSD cards suck a little bit and die pretty often; I've personally had this happen not all that long ago.

I'd like to keep a reasonably up-to-date hot spare ready, so when it does give up the ghost I can just swap them out and move on with my life. I can think of a few ways to accomplish this, but I'm not really sure what's the best:

  • The simplest is probably cron + dd, but I'm worried about filesystem corruption from imaging a running system and could this also wear out the spare card?
  • recreate partition structure, create an fstab with new UUIDs, rsync everything else. Backups are incremental and we won't get filesystem corruption, but we still aren't taking a point-in-time backup which means data files could be inconsistent with each other. (honestly unlikely with the services I'm running.)
  • Migrate to BTRFS or ZFS, send/receive snapshots. This would be annoying to set up because I'd need to switch the rpi's filesystem, but once done I think this might be the best option? We get incremental updates, point-in-time backups, and even rollback on the original card if I want it.

I'm thinking out loud a little bit here, but do y'all have any thoughts? I think I'm leaning towards ZFS or BTRFS.

31
32
 
 

If you're self hosting roundcube be sure to update.

33
 
 

The telegram app has a very nice interface, but I want to use a self hosted xmpp chat server.

Is there maybe a fork of telegram that makes it work with a self hosted xmpp server? I would imagine that this is possible.

If not, is there anything that at least gets close to how nice telegram UI is?

34
1
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]
 
 

I am thinking about buying a home server for a wide range of things. I found some cheap old computers on amazon for around 80-90€. Is it worth it to upgrade them with another stick of ram or a larger SSD? 2 8gb RAM sticks are only around 15€, so that would be 100 in total. But my question is, is it worth it, or is the CPU the limiting factor. Some of them have one from the pentium series. Also, is 15€ for 2x8gb DDR4 RAM normal (not too cheap)? Maybe you have other ideas for a cheap home server. In my case I don't think a 90€ raspberry pi is worth it

35
 
 

I'm looking at some old Intel and Pentium CPUs that are in a NUC. Are cores and max clock speed the only things that matter? Would a Pentium be good enough to run Immich? I have a i7-4790, and the NUCs I'm looking at range from a Pentium J5005 to a i3-1115G4. I do run Docker, does that affect anything?

36
 
 

I'm setting up a new hard drive and formatted it as exFAT. I liked the cross platform support and not having to deal with permissions when mounting the device. BUT it doesn't support hardlinks, which I want to use for the *arr apps. Is NTFS the best pick, and I'll just have to live with read only on mac?

37
38
1
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]
 
 

Findroid is third-party Android application for Jellyfin that provides a native user interface to browse and play movies and series.

https://github.com/jarnedemeulemeester/findroid

This version includes support for Jellyfin 10.9 and other changes

39
 
 

Hi, I'm running a ubuntu based backup server. And was wondering if there's a simple way to encrypt my drives in case they get swiped or something by a break in. But also in a way that the computer can be restarted and decrypt the drive without me needing to stick a key in everytime. Any ideas? It seems basic but I'm not an expert on all these newfangled encryption terminology, so would like something idiot proof (by idiot proof, not idiot enough to lose/forget the decryption key)

40
 
 

I have a Qnap DAS. It is set up in a raid5 configuration. The problem is that each time I reboot my machine (ubuntu 24.04 LTS), the path of the DAS will auto-increment up by one.

For example the path will automatically go from media/raid57/medialib to media/raid58/medialib. That means I need to manually redo all file paths and then re-scan my entire media library for Jellyfin, each time I reboot my machine (which is like 2-3 times a month).

It is getting pretty annoying and I'm wondering if someone knows why this happens and what I can do to fix it.

41
 
 

I currently host a single-user Mastodon server for myself but it's on a very small VPS and I'm wanting to migrate to Pleroma because it's more lightweight. Is there any way to transfer my Mastodon account to Pleroma without doing the standard migration since I have the Mastodon database for my instance? This is so all my posts are preserved and there won't be a broken redirect because I'll be shutting down the Mastodon after Pleroma is up.

42
 
 

i'm trying to setup audiobookshelf on my truenas box and i have it installed, but i when i try to show where my audiobooks are i can not find the smb share setup on the same box. what am I doing wrong?

43
 
 

I bought an Optiplex 5040, with an i5-6500TE, and 8 GB DDR3L RAM.

When I bought it, I installed Fedora Server on it. It got stuck every few days but I could never see the error. The services just stopped working, I couldn't ssh into it, and connecting it to a monitor showed a black screen.

So, I thought let's install Ubuntu Server, maybe Fedora isn't compatible with all of its hardware. The same thing is happening, now, but I can see this error. Even when there's nothing installed on it, no containers, nothing other than base packages, this happens.

I have updated the bios. I have tried setting nouveau.modeset=0 in the grub config file. I have tried disabling and enabling c-states. No luck till now.

Would really appreciate if anyone helps me with this.

UPDATE:

  • I cleaned everything and reapplied the thermal paste. I did not see any change in the thermals. It never goes over 55°C even under full load.
  • I reset the motherboard by removing that jumper thing.
  • I ran memtest86, which took over 2½ hours. It did not show any errors.
  • I ran a CPU stress test for over 15 hours, and nothing crashed.
  • I also ran the Dell's diagnostic tool, available in the boot menu of the motherboard. The whole test took over 2 hours but did not show any errors. It tested the memory, CPU, fans, storage drives, etc.
44
 
 

I've been setting up and testing prometheus and grafana for about a week now, since that seems to be the universally accepted solution for self-hosted monitoring. But I'm starting to question why it is so accepted. On top of prometheus not seeming useful on it's own (needing grafana to visualize and alertmanager for alerts) it feels like with each thing i want to monitor I have to spin up another docker container to export/gather the data. There are other options like LibreNMS that seems to have all that built into one container. So what does this Prometheus/Grafana stack have that other monitoring services don't? Is it really worth having to set up each of these specialized exporters and dashboards? Or am I mistaken that it's the main solution everyone uses? Are you using something different for monitoring?

45
 
 

I would like to run code-server but i don't like the idea of trackers hence codium. I found this old reddit thread but it wasn't particularly helpful.

46
 
 

Before I dabbled a bit with Docker. I wanted to dabble a bit with Podman because it seemed quite interesting. I reinstalled Pi OS Lite on my Pi 3B+ and installed Podman. Then I figured out what to run and started digging through the documentation. Apparently Docker containers work quite similar and even Docker compose can be used. Then I came across the auto update function and stumbled upon quadlets to use auto update and got confused. Then I tried reading up on Podman rootless and rootful and networking stuff and really got lost.

I want to run the following services:

  • Heimdall
  • Adguard Home
  • Jellyfin
  • Vaultwarden
  • Nextcloud

I am not sure a Pi is even powerful enough to run these things but I am even more unsure about how to set things up. Do I use quadlets? Do I run containers? How do I do the networking so I can reach the containers (maybe even outside my home)?

Can someone point me in the right direction? I can't seem to find the needed information.

47
 
 

This morning I woke up to my phone using mobile data and my home assistant automations not working. Initially I thought it the power was out, but I could turn on the lights just fine. I checked my UniFi app and saw that the server was not connected to the network at all. This meant that the cable got unplugged, the switch isn't working, or the server isn't working. It said the switch was connected and another device was connected to the switch so that narrows it down to just 2 cases. So I opened my server closet in the basement and immediately noticed something was wrong. I couldn't figure out what was wrong but I just felt like something was wrong. Everything was plugged in, the network switch lights were blinking like normal, my raspberry pi was running just fine, even the server indicator lights were on. My main server is an old gaming PC so it has a glass side panel so I looked inside and I could see the fan spinning, but I could not hear it. Usually I have it set to full speed and I can hear full speed very well. I tried rebooting the server with the power button and the fans didn't go to full speed. As a last resort, I brought down a keyboard and monitor. As soon as I plugged in the monitor, I saw that there was a prompt to set the time on the BIOS! Picture of the prompt In my opinion, this was the stupidest reason for an outage.

Further investigations

I dug a little deeper and discovered that the BIOS had been reset during a power outage right before all of this happened. So far I have consulted the motherboard manual and found absolutely nothing about this. After a bit of research, I think it could have been that the CMOS battery has died. This is a really simple fix but I don't have the replacement battery right now. This means that I will have the same exact issue after the next power outage unless I replace the battery.

Preventing this in the future

From what I can see, I just need to replace the CMOS battery. But this computer has been running for over 4 years, so what is stopping this from happening again around 2028? The most effective solution is going to be preventing power outages in the first place. This can be done using a battery backup or a standby generator. Standby generators will last longer during a power outage but are typically more expensive and harder to setup than a simple battery backup.

48
 
 

the server component had a small bug, empty checking the wrong variable before building a list of allowed zones

when using a config without any Fqdns defined this would result in the server refusing the client access to tunnel anything if any zones where about to be used


tup proxies services on the local network to a remote gateway, all traffic between the remote server and the service on the local network is sent through a wireguard tunnel

think of tup as an open source and self-hosted alternative to ngrok and cloudflare tunnel

tupd (the server) can be found at: https://drive.proton.me/urls/GEJM1HT0DW#aOop4p7zxaPA

the tup client can be found at: https://drive.proton.me/urls/63SE9PW020#GFzZrprg9wjZ


I also noticed all file extensions were not inspectable directly in the drive (even though everything is only text files), I apologize for that, I believe transparancy is a very important key factor

I've complemented with .diff files generated with diff from GNU diffutils, there are 'full' diff files for both tup and tupd (ending with _full.diff), and there is also a diff file for only the changes between tupd-0.5 and tupd-0.6 (tupd-0.6.diff)

the 'full' diff files can also be applied to an empty directory with GNU patch like this:

mkdir tupd-0.6
patch --directory=tupd-0.6/ --strip=1 < tupd-0.6_full.diff

Since my project is not uploaded by me to any git service many people didn't look on how it can be used so I want to give a few examples of the client, more explanations and examples can be found in the README.md and EXAMPLE.md of the client

Syntax: tup [-zone <zone>] [@][host]:[#]<port>

Examples:

tup :8080 this would proxy http://127.0.0.1:8080 onto a random subdomain on default zone, for example: https://xyz123.zone.domain.tld

tup 192.168.1.11:8080 this would proxy http://192.168.1.11:8080 onto a random subdomain on default zone

Syntax: tup -fqdn <domain> [@][host]:[#][@]<port>

Examples:

tup -fqdn sub.domain.tld :8080 this would proxy http://127.0.0.1:8080 directly onto https://sub.domain.tld

tup -fqdn sub.domain.tld 192.168.1.11:@8443 this would proxy https://192.168.1.11:8443 directly onto https://sub.domain.tld, skipping caddy and its tls termination on the server, same as a raw tcp proxy / sni proxy

Syntax: tup -udp|-tcp [rport:][@][host]:<port>

Examples:

tup -udp :27015 this would proxy udp://127.0.0.1:27015 onto a random UDP port on the server

tup -udp 27016:27015 this would proxy udp://127.0.0.1:27015 onto UDP port 27016 on the server

tup -udp 27016:192.168.1.11:27015 this would proxy udp://192.168.1.11:27015 onto UDP port 27016 on the server

tup -tcp :3306 this would proxy tcp://127.0.0.1:3306 onto a random TCP port on the server

I also want to clarify that the code is released with the Unlicense template, dedicating my software to the public domain

49
 
 

I am considering hosting something and am concerned about DDOS attacks.

I am morally opposed to cloudflare because I think they are an unethical and shitty company.

What privacy focused solutions are there to reduce the likelihood of a successful DDOS attack?

50
 
 

We are changing our system. We settled on git (but are open for alternatives) as long as we can selfhost it on our own machines.

Specs

Must have

  • hosted on promise
  • reliabile
  • unlikely to be discontinued in the next >5 years
  • for a group of at least 20 people

Plus

  • gui / windows integration
view more: ‹ prev next ›