I am glad to see more people selfhosting their own. Makes me feel less out. Had the same issues.
Selfhosted
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:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
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.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
-
No low-effort posts. This is subjective and will largely be determined by the community member reports.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
I use a Dell Wyse 5060 Thin Client as my file server and the reason for that is I needed something that is low powered as electricity isn't cheap in my country . My backup solution is really simple and cheap. I use a HDD docking station (only has one slot) as the main and a laptop HDD enclosure as secondary.
I've configured a script that would mirror the main drive to the laptop HDD. This executes every midnight. Then every week or two, i perform a cold storage backup to another laptop hard drive. This way, I keep a third snapshot in case either one of those two hard drives go out. Or if i need to restore a file to the original.
My thin client runs Windows 11 and I'll probably get crucified for it but in all honesty, it works just fine. It doesn't connect to the internet since I restricted it to only LAN on my router. If it needs an update, I simply just download the latest patch from Microsoft on another computer and then transferring it over to the server. File transfer speeds are what i expect from a mechanical HDD.
that's cool but I think this might be the wrong thread :)
My bad sorry!
I was having issues searching as well until I added a network to the docker-compose and then adding it to my lemmy image.
networks:
lemmybridge:
services:
lemmy:
networks:
- lemmybridge
Have you tried searching for the communities first? As I understand it from some other posts, if you try to access a remote community via URL through your home instance before it "knows" about it, you'll get the 404 error. Someone (you) on your instance has to make your instance "aware" of the remote community by searching for it first. Then, after your instance is aware of the community and federating it, you can access it via URL as you posted above.
For me this is happening at a community level, not instance.
Like I can be federated with lemmy.ml or beehaw.org but to join/index a community I haven’t been to, I have to spam search first to get the server to pull it. Then I’m good (except for lemmy.ml which I have a ton of pending subscribes going)
THANK YOU
I didn't remember doing this for the first two, but I guess I must have. (I would reply from there, but comments haven't synced yet, which I guess is expected)
I'm glad that worked. I'm considering launching a personal self-hosted instance of my own, so I may be in your shoes soon enough.
How did you find the process? Did you use Docker or Ansible?
If you can read this, the Ansible playbook mostly Just Worked™ to install it on a clean Debian VPS. I actually did start over at one point because I wanted to change the domain name after learning there's not currently any way to use different domains for the UI and usernames like there is in Mastodon (relevant github issue); from that, I suspect it should be good about not clobbering anything except maybe SSL certs for existing nginx sites.
For some reason, my nginx also now seems to try to use the cert lemmy installed by default, even on a site I just set up to only listen on port 80 (http://gillen.dev). So that's kinda weird, but just installing a new cert for such a site with certbot fixes it (https://sdg.fyi).
It still seems to be struggling a little bit: votes and comments on this thread are taking a looong time to show up here (your comment just got here and it says it was from 24 minutes ago)... or maybe I'm just impatient :)
Of course, the real test will be when it comes time to update to the next Lemmy version...
Of course, the real test will be when it comes time to update to the next Lemmy version…
it is easy enough. Simply run the playbook again. well, git pull the ansible playbook again and then run it. alternatively you can just use docker compose now on your lemmy server. I made some aliases on my lemmy instance based on what i use elsewhere. I think I got them from a linuxserver.io tutorial ages ago. you will need to adjust the container versions for this to be viable as the version is hardcoded and they only have a "latest" tag for arm.
alias dckill='docker kill $(docker ps -q)'
alias dclogs='docker-compose -f /srv/lemmy/lemmy.domain/docker-compose.yml logs -tf --tail="50" '
alias dcpull='docker-compose -f /srv/lemmy/lemmy.domain/docker-compose.yml pull'
Thanks, that's good info. If I do go forward, I was planning on going the Ansible route, though I've never used it before.
I've read that it can take a bit of time to sync when you first federate, but that after some period of time it gets closer to real-time with posts and comments.
This is so damn cool! I am going to be adapting the docker stacks to nomad jobs and running one on my homelab cluster. I was pretty bummed about Reddit this month I am stunned at how good Lemmy is.
Wish it would at least copy the instance list when federating, or have it as an option
Feels so empty browsing All when it’s identical to Subscribed
https://github.com/LemmyNet/lemmy/issues/3055 seems related
Thanks, gonna watch it. I wonder if it’s possible to set up some bot account that would just search for communuties to make them accessible?
I was thinking about writing a script that just fetches the community lists from some popular instances then searches them on mine...
What happened here lol 
lol, my bad. i replied from the wrong account and tried to delete it and do it again but I guess it didn't delete the first one fully
I was thinking about writing a script that just periodically fetches the community list from some major servers and searches each of them on my own...
What happened here lol 
What I do is:
- I take the name "!selfhosted@lemmy.world"
- copy and paste it into the search in my instance
- press "search"
- it shows "No results."
- I go to Communities on my instance
- I click on "All"
- At the bottom of the list I can see "!selfhosted@lemmy.world" and the Subscribe button
I guess it is some kind of a bug. If I post a url of a post, it also takes qute some time, several seconds, until it shows up.
My process is similar, but i don't use the !ommunity@instance format. I just copy the url and search for it.
Search: "https://lemmy.world/c/selfhosted"
it will initially return Nothing found but after another second, it shows up and i can click it and then subscribe to get new posts and comments.
Yep this is my process too, after search it does show up even if there are no results, you can just change the search filter to "All" and search again then it shows up, or you can go to communities to find it.
Thanks for the post and resources, this is the first time I’ve seen this explained clearly in one place
I also got very excited when I found out you can edit thread titles haha. such a handy feature.
But there NEEDS to be a feature to check title history because it could be abused
Ya I'm confused why people think this is a good thing, the use cases where someone would edit a title in good faith seem very limited to people trying to take advantage of the feature
It's 100% a good thing but only when it's paired with history of changes
I wrote a post on my instance about how to add remote communities.
Is there a description like this for kbin.social? Not sure if it's just because of some cloudfare issues but for example communities on the Lemmy instance feddit.de do not show up for me on kbin.social. Some of their posts do, though.
But if I search for e.g. !ich_iel@feddit.de on kbin.social it won't show up and therefore I can't subscribe to it from kbin's side.
EDIT
Now it suddenly shows up under Magazines on kbin.social. How often do new communities on Lemmy instances get federated to kbin?
I believe you just need to remove the exclamation point and search for ich_iel@feddit.de on kbin. Not totally sure why but I expect this is just one of the kinks that'll be ironed out once things are less on fire around here
Just tested this, yes remove the exclam and it works.
I'd also like to know how it works. I switched to sh.itjust.works because it's a lot faster than lemmy.world, but trying to migrate my subscriptions, lemmy.ca doesn't show up, nor does lemmygrad.ml.
yeah there was some inbound federation struggles with lemmy.ca the past few days, those might still be persisting. its where I'm homed, it works great from the inside! :)
Doesn't lemmy.world block lemmygrad?
According to the lemmy.world Instances page, lemmygrad.ml is linked, not blocked. I know it's blocked on a number of other instances.
That's where I discovered the lemmygrad link so I don't think so
Idk with ca but with lemmygrad you may just want to make an account there if you really want in
At the moment it's a bit convoluted, but you'll need to go to the search page (https://tortoisewrath.com/search) and then search for the name of the community, in this case [!selfhosted@lemmy.world](/c/selfhosted@lemmy.world). This will at first say no results but should eventually show the community (5-10 seconds in my case).
WOOOO I had to mash "search" for a while but I think I'm here now
For me it never shows a result but I am able to browse to the community on my instance and subscribe from there
I've found that searching for the name like that never works for me, but searching for the URL does eventually work.
Other times, the search doesn't appear to work, but the community does start appearing in the communities list under the "all" filter.
Sometimes, neither of those work. In those cases, I try searching for a post or comment URL. If that works, I can click on it and then click on the community from there.
Seems like there's a lot of rough edges at the moment.