Selfhosting

!selfhosted

@kbin.social
Create post
Just found out I have 2 external IP addresses

Just found out I have 2 external IP addresses

I was trying to troubleshoot a home networking issue, and I plugged my laptop's Ethernet cable into the second bridge port. I thought it would recognize that the device wasn't a router and assign a local IP address behind a firewall. Nope. Windows was assigned an external one.
I suppose now I have the option to have my self-hosted services hosted on a different IP address.
Kinda scary that my isp just allows unknowing customers to expose their equipment to the net
If you're wondering, yes, I did change the IP addresses before posting this

[Guide/tools] Self-hosting without a cloud/central server

[Guide/tools] Self-hosting without a cloud/central server

Hello all! I would like to address an issue that I find it a bit too little discussed: self-hosting your stuff without relying on any central services, whether you own them or not. Why go with this instead of choosing a cloud provider or a hoster or even a personally owned PC (desktop PC, laptop etc.) to host everything you have?

A good argument is money. You basically pay nothing to host everything on your own devices, as many of them as you want. While storing stuff on cloud services costs you money (or data), and having your home server is still somewhat of a hassle (you have to keep it running all the time, plus the electricity bills associated, plus the fact that you pretty much need to take care of an entire extra computer), relying on your devices only to do your stuff has the added benefit of a smaller learning curve, while also maintaining your privacy. Then you might simply not have an income source of any kind (for example, if you're a student). Not everyone can have the ability, time or money to set up their own server.

Or if your physical space does not allow you to comfortably have a home server in your house, this is also a great option that can increase your privacy.

I wanted to create this post, so I can list all the tools I've used for this purpose over the years. Some of them can be used with a centralized solution as well, so here's what you can do without a server:

Sync Contacts and Calendars

There are several solutions for this, not all open source though, but which have proven pretty reliable for me. This is one of the areas where a dedicated solution is needed. Here's what I've used over the years and I can recommend:

  • GeneralSync: This is a neat little solution to sync your Contacts and Calendars with devices on the same network. It supports Android, Thunderbird and Microsoft Outlook versions from 2013 onwards. On Android, it creates a dedicated calendar and a dedicated contacts section where you can store all your events and contacts respectively, while the program will do the rest. It is currently free to use, and the dev said he plans to do away with accounts entirely (you needed a license when it was first launched). Right now there is pretty much nothing you need an account for. The app is not open source, but is literally just the work of a single person. If you can, do donate him money so he can keep the project running.
  • MyPhoneExplorer is also a proprietary solution but more up-to-date and with more functions. I personally used it a lot when I was using Windows and is one of the programs I missed after switching to Linux (along with Foobar2000 for my music). It can sync to more programs, along with its internal database. It can also sync notes, to-do lists, even your clipboard, browse your phone's file system and retrieve any file from there, send and receive text messages or phone calls, get various device information or mirror your phone's screen. It can use LAN, Bluetooth or a cable to connect to your phone. The program is available for Windows and Android.
  • KDEConnect - this is the last entry on this list, and the last such solution that I'm aware of. It has a similar feature set (okay, I don't see calendar sync support fwiw) but a larger OS support (Linux, BSD, Android, Sailfish, iOS, macOS, Windows etc.) As it's developed by the KDE team, it does have quite some support as of this post, so it has the less chance to go abandoned any time soon.

Sync files

Over here there's a certain solution worth mentioning:

  • Syncthing - this is a serverless file syncing solution that allows you to sync two separate directories between devices. This allows you to sync various files and gives you access to more services.
Some other services that syncthing allows you to use:
  • You can (obviously) backup your photos, music, videos, documents and other files and also keep them in sync if you want (replacing the need for Google Photos for example);
  • You can keep your passwords and OTP secrets in sync between devices with Keepass (Alternative clients). Pass is another option to consider, with apps on pretty much all the most popular platforms;
  • You can sync your to-do list with todo.txt;
  • You can keep your notes in sync, in Markdown format. There are plenty of apps that allow you to store notes in Markdown, the most popular one being Obsidian. What I am aware of that work together well (at least for basic functionality) are Notable, QOwnNotes (cross-platform, but only on desktop) and Notes. Org-mode is also an increasingly popular other option for storing notes in plain-text;
  • Talking about Markdown, there's also a neat little app called Markdownr which saves any link in Markdown format. Perfect for saving articles for reading later (like Pocket), and seeing them in any reader supporting Markdown;
  • You can even sync recipes using Gourmand on Desktop, and Tournant on Android respectively;
  • Last but not least, you can encrypt all these with a Veracrypt container and keep that container in sync.

File transfer

  • BitTorrent. Yep, that's the most obvious option. In fact, nowadays, it's not only transfer, but also sync. There's a tool called Resilio that uses BitTorrent to sync files, similar to Syncthing. But if you want to simply send some files to someone all you need to have is a Torrent client (like qBitTorrent, Transmission, Deluge etc.) and a tracker. Here are some instructions for using qBitTorrent with the embedded tracker, but I also used this as my tracker in order to test it out with somebody, and it worked just fine.
  • Pairdrop touts itself as a a sublime alternative to AirDrop that works on all platforms. It's a Progressive Web-App (basically a website with a few more features) that uses your local network to transfer files. You can optionally transfer the files online as well, directly to other people (files are not stored anywhere). Pairdrop is a fork of Snapdrop, a tool which provided me some mixed results.
  • Warpinator is a tool created by the team behind Linux Mint, but can be used on pretty much any of the most popular OSes. In order to use it, the devices must be on the same network.

Communication

  • Here, the most obvious option is to use your phone for regular calls and SMS messages. Of course, calls and messages are only as encrypted as your carrier wants, and this option is obviously generally not available on desktop. So depending on your needs, you might need a different option.
  • Briar is a messaging app that uses no central server to communicate with others. The messages are encrypted and sent directly to the other user through the internet via TOR when available, but it can also use your LAN network (if you're connected to Wi-Fi and the other devices are on the network) or Bluetooth. As it has no central server, users must always be online to communicate, but you can also install their Mailbox app to receive messages while offline. It kinda works like a server, indeed - though not really defeating the purpose of the current guide - as you only need to keep one spare phone turned on and connected to your Wi-Fi. As long as the device where you have the main Briar app connects to that mailbox, it can receive messages. Briar is also available on desktop, but there doesn't seem to be a way of having the same account across devices (any time you're creating a different account, basically). I also tried adding my phone to Briar on my desktop, but couldn't add the two contacts. Phone-to-phone communication worked flawlessly, though.

Disadvantages and closing words

As you might have already noticed, most of the options listed here use LAN in order to work. For many people, including me, that means connecting to the same Wi-Fi network and turn the router into a middleman. This might be a limitation for specific cases when you cannot connect to any network to sync your files over. There are also issues on the colaboration side. There's no easy way to give someone access to a certain file, then have the edits in sync with you. The other person must also set up Syncthing, Resilio or some other solution locally in order to sync the changes. Otherwise, since no central server is involved, there's no way to use the browser to sync a file, at least that I'm aware of. I'm also not sure how well that file would stand being edited by multiple people without getting corrupted.

Last but not least, it's harder to shut access to a device if it ever gets stolen. You can change your password to your cloud account and shut the device off it, but if you use a solution like Syncthing, for example, there's no easy way to cut access to all the sensitive data you might have in sync. There are all sorts of stories (sometimes funny) of people being able to locate and recover their devices by using cloud services.

On the flip side, for people who like tinkering with their devices and not being so much on the move, as well as being the sole users of their services, I believe this approach is highly feasible. What do you think of this? Did you find any other serverless solutions that are worth giving a try?

What would you all like to see from this magazine?

What would you all like to see from this magazine?

As I'm sure some of you noticed, very shortly after Ernest posted the update to KBin that allowed for abandoned magazine adoption, I took over this magazine.

After a quick flurry of activity kicking the former moderator and owner who hadn't logged in in over 3 months and using a spammer as some target practice for my shiny new ban hammer, I haven't done much aside from contribute a pair of crossposts.

It's been quiet, which is totally okay of course. There are other great Threadiverse selfhosted communities I hope all who are interested have already found.

But I'd ideally like to find a niche for this community to fill. My small contribution back to the community at large I've been benefitting from for over a decade now.

Do any of you have cool ideas? We could do themed days, giveaways, weekly posts, a wiki, a matrix server, whatever really.

Or we could simply update the sidebar to redirect to other selfhosting communities.

Any and all ideas welcome!

What to use as offsite backup? - Divisions by zero

What to use as offsite backup? - Divisions by zero

Open link in next tab

What to use as offsite backup? - Divisions by zero

https://lemmy.dbzer0.com/post/8240883

What do you use for offsite backup? Since best practice recommends 3 copies on 2 different devices where one device is offsite. I thought about renting a storage box from Hetzner to use an offsite backup but I was curious what you are using. And also if there might be some cheaper alternatives to my proposed solution that are equally as easy to setup.

Ditching MyQ for OpenGarage - Open Source Garage Door Control - Lemmy.World

Ditching MyQ for OpenGarage - Open Source Garage Door Control - Lemmy.World

Open link in next tab

Ditching MyQ for OpenGarage - Open Source Garage Door Control - Lemmy.World

https://lemmy.world/post/8044517

Hopefully this fits here? Its self hosted, but not quite what the usual self hosted post would be. I’ve not seen any real reviews of these, so I figured I’d post

Ditching MyQ for OpenGarage - Open Source Garage Door Control - Lemmy.World
Mapscii -- an interactive CLI worldmap. Now dockerized!

Mapscii -- an interactive CLI worldmap. Now dockerized!

Open link in next tab

Docker

https://hub.docker.com/r/defnotgustavom/mapscii

I have RAID, but what happens when it "breaks" and how do I fix it?

I have RAID, but what happens when it "breaks" and how do I fix it?

I have a QNAP NAS which uses RAID 5 across 3 HDDs. There are lots of good videos online for setting up RAID (even DIY solutions using linux), but how do I know when there's a problem and what's the typical way to maintain it?

I'm guessing that these systems log an indication somewhere that a disk is about to fail, and when I see that log entry I should power down the system and replace the disk with one of the exact same size. Is that right?

Edit: I have found a good overview here: https://yewtu.be/watch?v=OhzrPInWMyo

In essence, he's saying:

  1. Enable a recycle bin feature so that accidentally deleted files can be recovered.
  2. If the device itself (not the disks) fails, one option is to replace the device and insert the disks in the same order as before. But there's a chance that the disks were corrupted by the failing device, in which case the next point is what you need.
  3. EXT4 is a common filesystem format with QNAP and specialised recovery software can help you recover information from the disks. He demonstrates Hetman RAID recovery. You will need to connect all disks simultaneously though, so if you don't have enough ports for this you'll need to get an adaptor of some kind.
  4. If just a single disk has failed, then in theory you should just be able to replace it, but there can be complications, which he discusses at 6:37 in the video (the video is just 7:51 duration).
  5. RAID is not a backup. Please backup your data too.
Replace spotify

Replace spotify

Hi Selfhosted,

I'm looking for the best recommendation to replace spotify for music on the go and at home.

Currently at home I use moOde for multiroom audio and spotify connect to play music, my wife also casts to it using airplay. I then just use the spotify app on android when out of the house.

I already have a large music collection but I am not sure of the best way of making it accessible. Any ideas?

Connection from Work to Home PC

Connection from Work to Home PC

I know what most will say, I'm not supposed to be connecting to my home servers from my work computer. I get it.

I currently use Dex on my Samsung phone to have remote access to my home systems which I connect to my work laptop but run into some bugs here and there.

Is there a more efficient way to have encrypted remote connections to my home system? I was considering seeing if I can route VPN traffic through a split tunnel to my home network through a specific interface on my windows laptop that connects to a Hotspot while maintaining LAN connection to my work environment.

What do you call your home media server? Mediacenter? Hub of media?

What do you call your home media server? Mediacenter? Hub of media?

Looking for creative ideas, and feeling xkcd.com/910 strongly here