this post was submitted on 19 Nov 2024
26 points (93.3% liked)

Ask Lemmy

26980 readers
1256 users here now

A Fediverse community for open-ended, thought provoking questions

Please don't post about US Politics. If you need to do this, try !politicaldiscussion@lemmy.world


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 1 year ago
MODERATORS
 

I'm looking into hosting my personal instance of some fediverse software. I want to do it to grow my tech-literacy more than to host my own service. So I want to pick one in the fediverse, because I love the federation concept, but I'm open to a software I don't use yet.

I have made previous attempt at hosting internet services a few years ago, mainly things my teachers told me to do. It was a big failure and I mostly remember from it that I got a hard time understanding instructions given on internet tutorials or at which point what I did was different from what my classmates did :( But I want to try again and do better! 😀

I plan on hosting it on a old laptop I hope not to break completely and maby in a docker container (but I also used to have a hard time with docker)

What fediverse software would you recommend me? Is there one that is easier to install than another? Or one with more clear installation instructions?

Thanks for your advice!

top 15 comments
sorted by: hot top controversial new old
[–] stoy@lemmy.zip 13 points 3 days ago (2 children)

One important thing to check up on before you start is weather your ISP permits hosting servers at home to not.

Any port you open in your router will quickly be found and you WILL get attacked, this is automated and often called the background noise of the internet.

Your IP WILL show up on sites like Shodan, and depending on your ISP they may also find it. You need to read up on what your ISP permits you to do with their internet connection.

Normally it is chill, as long as you don't cause issues for the ISP they don't really care, but if your service starts attracting traffic, attack will increase and so might the issues your ISP see.

[–] ComradeMiao@lemmy.world 9 points 3 days ago (1 children)

I don’t think anyone opens a port directly to the application. One should use a reserve proxy manager such as NPM. Further security such as authentik. And maybe even cloudflare proxy for hiding one’s IP.

Also, what ISP cares about hosting other then frequent IP changes which duckdns solves? Is this for a specific company or country?

[–] limonade@jlai.lu 1 points 3 days ago* (last edited 3 days ago) (1 children)

I don’t think anyone opens a port directly to the application

Well, I don't really know what I'm doing so it may be pretty important. I will look for reserve proxy manager. Thank you for helping :)

[–] ComradeMiao@lemmy.world 2 points 3 days ago (1 children)

This sort of question made me originally think I was on c/selfhosted.

What I would do if I was you would setup lemmy, authentik, nginx proxy manager, and a cloudflare website with cloudflare proxy turned on. On cloudflare you make an A record or a CNAME pointing it at your IP. You need to open ports on your router aimed at NPM. My setup then routes ALL traffic inside NPM to authentik. Authentik can provide many forms of authentication. My current setup requires a username, password, and OTP. Then Authentik will route your successful login to your lemmy. I use this setup for private services.

I have not hosted my own lemmy. If it has to be fully public to federate successfully, I would get rid of authentik. That's NPM directly to lemmy. You can add extra security by adding 2auth login. On cloudflare you can also region block all visitors from countries you don't expect traffic. Lemmy appears to be mostly western so any Eastern country that randomly has a high amount of traffic you could block.

You can additionally use fail2ban to read through your NPM and docker logs then link to cloudflare API to ban any IP that tries to login to your lemmy instance and fails.

Selfhosting is really exciting, and a fun and rewarding learning process. I am more happy to help you with any questions as I have done all of this except the lemmy part.

Is your old laptop running a specific OS? Can you change it to linux? That would help with efficiency and giving it more life :) I prefer Ubuntu or Fedora. You can just install the server part so you won't have a GUI. All you need to do is install a linux server, get it running, install docker, via command line install portainer to manage docker. Then you can visit the portainer website at your laptop's ip and portainers port number and manage all of your docker images easily via web.

[–] limonade@jlai.lu 1 points 3 days ago

For now, I plan on keeping Windows. I also have bad experience with installing new OS. Linus is nicer to use pre- installed and parametrized on the school computer. Thanks for the advice. I did not know about !selfhosted@lemmy.world oh... There is four of it :-) I won't need to be posting this kind of question in this community now

[–] limonade@jlai.lu 2 points 3 days ago

Thanks. I did not think of that.

[–] jdw@links.mayhem.academy 7 points 3 days ago (2 children)

This is probably the least painful way to get a few fediverse apps installed. There are many Mastodon type apps, Pixelfed, Lemmy and maybe more.

https://yunohost.org

[–] limonade@jlai.lu 2 points 3 days ago

This looks super cool. I will look at that very carefully. Thank you!

[–] asudox@discuss.tchncs.de 3 points 3 days ago (2 children)

oh wow, their app library is huge.

[–] limonade@jlai.lu 2 points 3 days ago* (last edited 3 days ago)

It also has a lot of fediverse softwares

[–] jdw@links.mayhem.academy 3 points 3 days ago

It’s come a long way.

[–] Zak@lemmy.world 4 points 3 days ago (1 children)

I've self-hosted Pleroma, Hubzilla, Mastodon, and Wordpress with the ActivityPub plugin. I found Pleroma to be the easiest of those.

I think I'd recommend Akkoma today; it's a fork of Pleroma.

[–] limonade@jlai.lu 2 points 3 days ago

Thank you. I will try Akkoma then.

[–] florencia@lemmy.blahaj.zone 1 points 3 days ago (1 children)

Gonna get a lot of hate for this but if it's just a laptop then you'll have a lot more benefit to journalists/activists if you do a tor exit node. Or tor relay node. Or just an i2p node.

[–] limonade@jlai.lu 1 points 23 hours ago

That's an interesting point but my goal is not to help anyone but me making a bit of fun at learning a important subject I infortunately dislike.