this post was submitted on 25 Jul 2024
192 points (98.5% liked)

Selfhosted

40677 readers
365 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 2 years ago
MODERATORS
 

This was posted on the other site. It can be found below on this post.

They talk about how even Jellyfin & Jitsi were valuable for dealing with government's actions in shutting down the internet. Does anything else come to mind? In addition to giving advice, can we host anything to help people in this kind of situation?

Suddenly our Self Hosted application became more than just hobby.

If you already don't know, Bangladesh was disconnected from the internet for majority of the last week due to government order. It was shut down without any warning. We were put under curfew 24/7, so no leaving home.

On the second day of curfew, me, with nothing to do, figured the intranet in our country still worked. So I opened my Jellyfin service up and gave access to my immediate family and friends. Then we had people stepping up. One opened a simple chat application. Believe me, I never felt happier reading messages from a bunch of random people on the internet. Once people started communicating it only got better. We had a jitsi meet up and running within a few hours. People opened up their media library. Last couple of days, I almost didn't miss the traditional internet.

I have to thank you guys for all the encouragement. Also I do have a few questions for you guys.

I'm fearing this will not be the last time we will be blocked from the world. What can we do to make things even better next time? One major problem was TLS CERTS stopped working. So the communication was in http using IP address

What are some apps to host if the same situation to arise again?

Sorry for the bad English, not my first language.

top 33 comments
sorted by: hot top controversial new old
[–] [email protected] 55 points 4 months ago* (last edited 4 months ago) (3 children)

https://kiwix.org

What Is Kiwix?

Kiwix is a non-profit organization and a free and open-source software project dedicated to providing offline access to free educational content. The name “Kiwix” is a play on the word “Wiki” as it represented our initial goal of making Wikipedia accessible offline.

I found this for standing it up:

https://github.com/jonboiser/dockerized-kiwix-server

[–] [email protected] 13 points 4 months ago

Second this, always have a device preloaded with Kiwix and one of the wikipedia dumps. A new vesrion is uploaded every few (~6 months). The full English wikipedia dump with images (low-res versions only though) is only 103GB.

[–] [email protected] 5 points 4 months ago* (last edited 4 months ago) (2 children)

Excellent answer!

Does someone have a good guide? The guides I find are a few years old. I will relay this to them in the meantime

[–] [email protected] 2 points 4 months ago (1 children)

Endless OS had everything bundled

[–] [email protected] 2 points 4 months ago

It still does? They have a version for people with internet access, and a version for people without, with a heavy dose of offline applications and information. You can also download more offline resources after you install it.

https://www.endlessos.org/os-direct-download

[–] [email protected] 2 points 4 months ago

Just download a copy of a recent wikipedia dump. You can open it in the Kiwix desktop application (work fine even on an old laptop), the android app (though I've never tried opening a full 100GB dump with a phone, not sure if it would work well), or install the kiwix-tool package and serve the .zim file with kiwix-serve (https://wiki.kiwix.org/wiki/Kiwix-serve). You'd also probably want a reverse proxy/usual basic web server/security setup around that.

[–] [email protected] 1 points 4 months ago

So it's like a LibraryBox with an Archiver?

[–] [email protected] 40 points 4 months ago (3 children)

have you seen https://meshtastic.org/, going to look into some devices as a backup

[–] [email protected] 25 points 4 months ago

Meshtastic is a great one. People are making all kinds of software for it. I saw someone developing a BBS for it. For those who want a summary: Meshtastic is a very low bandwidth radio system for creating mesh networks. The speed of data transfer is similar to the modems of the 80s, so you aren't transferring anything but text. But the range is good and the hardware is cheap, and it is completely stand alone. It can normally pair with something like a phone for ease of access, but has its own dedicated device for a radio.

[–] [email protected] 2 points 4 months ago

Jeff Geerling did a video on them, got me super interested and thinking on how to implement and use with family.

[–] [email protected] 1 points 4 months ago (1 children)

If you're interested in Meshtastic, take a look at Reticulum : https://reticulum.network/

[–] [email protected] 2 points 4 months ago

Very interesting, might be a thing to run over LoRa

[–] [email protected] 30 points 4 months ago (1 children)
[–] [email protected] 7 points 4 months ago (1 children)

And the skills to use it; they’re not plug-and-play. Get you license and get on the air to hone those skills.

[–] [email protected] 0 points 4 months ago (1 children)
[–] [email protected] 1 points 4 months ago
[–] [email protected] 21 points 4 months ago (2 children)

If you already don't know, Bangladesh was disconnected from the internet for majority of the last week due to government order. It was shut down without any warning. We were put under curfew 24/7, so no leaving home. On the second day of curfew, me, with nothing to do, figured the intranet in our country still worked.

Anyone know more about that? Is that just customer-to-customer communication?

I've been fortunate enough to never experience a government-mandated internet shutdown, but I figure the ISPs just disconnect the gateways. If I'm understanding that correctly, it sounds like they just used the ISP network to carry traffic internally. Very clever!

[–] [email protected] 12 points 4 months ago (1 children)

I am curious too. It has been hard to get much information out between the internet shutdown, the language barrier, and the lack of press freedoms. I will post a link if I find anything!

[–] [email protected] 11 points 4 months ago (1 children)

Yeah, if you find more info about that, please share.

If that is the case, DNS would definitely be a crucial service to self-host and make available.

[–] [email protected] 2 points 4 months ago

Sounds like a few people need to spin up a DNS server.

I think it would be cool to create a WiFi mesh that spans multiple buildings. You could have wired and wireless connections.

[–] [email protected] 9 points 4 months ago

The internet was designed to route around failure. Taking down an isp upstream wouldn't generally impact internal routing, or routing between them if they're peering.

[–] [email protected] 20 points 4 months ago* (last edited 4 months ago)

Orchestration software is probably going to be the most useful in an actual disaster. Something for labor and task management. Mesh area network hub would be pretty useful as well. If you had Starlink, you'd be the hero of your neighborhood by providing Internet to everyone in range.

Here's an interesting list to look through as well: https://github.com/DisasterTechCrew/awesome-disastertech

[–] [email protected] 19 points 4 months ago (2 children)

One thing that comes to mind is an NTP server, or if you have a beefy server, you could host maps

[–] [email protected] 10 points 4 months ago

Well, that escalated quickly...

[–] [email protected] 9 points 4 months ago

host maps

It does require a beefy server (rendering tiles is CPU/RAM-intensive, storing pre-rendered tiles is expensive on storage) It should be doable on limited hardware if only a small area.

I think the better move would be keeping/distributing a local copy of the OsmAnd android APK and a few maps for the app. Because you'll not be able to provide map access to people from your server if the Internet/local fiber/phone network is down - this way everyone can have their own full copy of the map.

I'm not sure about the method to extract map data from the app storage directory though.

[–] [email protected] 16 points 4 months ago

I like this way of thinking! Excited to see what smarter people than myself come up with

[–] [email protected] 11 points 4 months ago

Meshtastic!

[–] [email protected] 10 points 4 months ago

Briar, for communication during internet blackouts or when there is no connectivity at all.

[–] [email protected] 9 points 4 months ago

I like to store useful medical and survival information either in my ArchiveBox and/or kiwix containers. I've also been meaning to put together a local wiki.js with more custom info. TubeArchivist is really good too for storing instructional videos for offline use, or videos I find incredibly useful that have a strong likelihood of being taken down by YouTube so I save them first.

[–] [email protected] 7 points 4 months ago* (last edited 4 months ago)

Briar

Not self hosted but it is great for bad situations.

If you have some technical neighbors you could work to create a mesh. Get a bunch of devices and mesh them together to create a internal network spanning your neighborhood. You could theoretically have thousands of nodes. This may get you in trouble though so stick to Briar when threatened

[–] [email protected] 6 points 4 months ago
[–] [email protected] 3 points 4 months ago

If the government did it - I would be very angry. Do you know how much internet help with democracy in the world? Think of it as shutting down all libraries with books, and forbidde any kind of communication.

It would of course try to setup some communication and gather people. I currently only have one irc server. I guess people want something webbased as they probably don't have the client software.

I would probably lose my job as well as it is a software as a service company that require internet to function.

[–] [email protected] 2 points 4 months ago

Retroshare.net