selfhosted

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

penguin_ex_machina, in Suddenly getting a server error on my instance

So…it’s working now? I haven’t touched anything yet, but I just checked my instance again and it works perfectly fine on desktop now. It always worked through Voyager, so I was able to let people know there was an issue. If it comes back I’ll try some of these suggestions to find a more permanent fix.

erre, (edited ) in Should I use a dedicated DHCP/DNS server hardware
@erre@programming.dev avatar

I use pihole for managing DNS and DHCP. It’s run via docker and the compose file and dnsmasq configs are version controlled so if the Pi dies I can just bring it up on another Pi.

The Pi with pihole has a static IP to avoid some of the issues you described.

SpaceCadet,
@SpaceCadet@feddit.nl avatar

That’s what I do. I do have a small VM that is linked to it in a keepalived cluster with a synchronized configuration that can takeover in case the rpi croaks or in case of a reboot, so that my network doesn’t completely die when the rpi is temporarily offline. A lot of services depend on proper DNS resolution being available.

erre,
@erre@programming.dev avatar

I’ve been meaning to standup another pihole on another pi for DNS redundancy. I have to research how to best keep the piholes in sync. So far I’ve found orbital-sync and gravity-sync.

SpaceCadet,
@SpaceCadet@feddit.nl avatar

For me gravity sync was too heavy and cumbersome. It always failed at copying over the gravity sqlite3 db file consistently because of my slow rpi2 and sd card, a known issue apparently.

I wrote my own script to keep the most important things for me in sync: the DHCP leases, DHCP reservations and local DNS records and CNAMES. It’s basically just rsync-ing a couple of files. As for the blocklists: I just manually keep them the same on both piholes, but that’s not a big deal because it’s mostly static information. My major concern was the pihole bringing DHCP and DNS resolution down on my network if it should fail.

Now with keepalived and my sync script that I run hourly, I can just reboot or temporarily shutdown pihole1 and then pihole2 automatically takes over DNS duties until pihole1 is back. DHCP failover still has to be done manually, but it’s just a matter of ticking the box to enable the server on pihole2, and all the leases and reservations will be carried over.

dan, (edited )
@dan@upvote.au avatar

If you ever switch to AdGuard Home, adguardhome-sync is pretty good. IMO AdGuard Home is better since it has all of PiHole’s features plus it supports DNS-over-HTTPS out-of-the-box, so your ISP can’t spy on your DNS queries (non-encrypted DNS queries can be easily intercepted and modified by your ISP even if you use a third-party DNS server, since they’re unencrypted and unauthenticated)

SpaceCadet,
@SpaceCadet@feddit.nl avatar

DNS-over-HTTPS

You can also do that with running cloudflared or unbound on your pihole.

dan, (edited )
@dan@upvote.au avatar

Sure, but that’s extra manual setup, and the point of running something like PiHole is to have a nice UI to manage things.

AdGuard Home uses DNS-over-HTTPS by default, so it’s immediately more privacy-focused than PiHole. I’m really surprised that PiHole hasn’t done this.

Gooey0210, in $8 Hetzner VPS, 70+ Owncast Streams, 0 Issues! - Livestream 2024-01-11

I wish hetzner had more locations, like any in asia for example 🫠

bjoern_tantau,
@bjoern_tantau@swg-empire.de avatar

I was really surprised when I learned that they have any locations at all besides Germany. I remember when they were just starting out and I spoke to Mr Hetzner himself about a support issue. Good times.

Gooey0210,

Germany and Finland! And now even maybe the states! (But not all plans for the states)

entropicshart, in Joplin alternative needed

I self host Outline with storage connected to a Minio instance that I use as S3 storage for several applications.

I loved the ability of writing in markdown form, but a simple and intuitive design, with the ability to share a whole collection, a subset of pages, or a single page publicly without dealing with a bunch of overhead.

possiblylinux127, (edited ) in In search for free domain I got one but some questions

Don’t do this, this is a seriously bad idea on multiple fronts. Buy a domain that’s reasonably priced and you will be much better off. (gen.xyz is cheap)

What I have in my setup is a VPS that routes traffic into a separate network that has all my services in it. This way I don’t need to expose my home to the public Internet

Bogusmcfakester, (edited ) in I want to set up plex server, no windows.. any simple options?

I’m in a very similar situation, too many windows services running in the background. Casaos is supposed to be a user friendly way to set up a bunch of docker containers on linux for Plex and the arrs amongst other things. I can’t speak for how easy it is as it’s something I’m going to be exploring in the coming weeks.

vildis, in $8 Hetzner VPS, 70+ Owncast Streams, 0 Issues! - Livestream 2024-01-11

What specs? I don’t have time to watch a 40 min video right now

ozoned,

It was in the description of the video, but it’s a Hetzner VPS with 3 cores, 4GB of ram, 80GB disk, 20TB bandwidth.

tvcvt, in Best Way To Mount A Directory on Boot

It sounds like you’ve got your solution already, but just in case someone stumbles on this later, I thought I’d mention autofs.

I’m coming to prefer it over fstab entries because it handles disconnections nicely and attempts to reconnect. Worth checking out for those who haven’t played with it.

savedbythezsh, in This Week in Self-Hosted (12 January 2024)

Anyone used NocoDb recently? Last time I tried to get it running, it was too buggy to be useful

krash,

I’ve been using it for a while without any noticeable problems. What issues did you run into?

machinin,

Out of curiosity, what do you use it for?

krash,

All kinds of stuff. I use it when I need a way to structure my data:

  • I use it to keep track of software / libs that are of interest, what they are an alternative to. See example here: ibb.co/ncsdt0W
  • I’ve also tried to recreate the functionality of a personal relational management (a la MonicaHQ, or per this post: medium.com/…/my-homegrown-personal-crm-87dffbcf54…) but found it to be an overengineered solution.
  • I also used it to interact and store data through my python apps, to avoid dealing with it directly in python.
  • You can also use it as a Kanban board
  • Also, I’ve been trying to use it as an excel replacement - which is an overengineered solution but you get impeccable dataquality.

Nocodb is a bit wonky, but it is quite easy to work with (front- and backend) and since everything is in the database format you choose - you’re in control of how you want your data.

machinin,

Thanks, this is very helpful.

So, is it kind of a replacement for MS Access, except a non-relation db?

savedbythezsh,

I don’t remember exactly, it was around 2 years ago. It was easy to set up, but I found the feature set to be lacking some essentials, and I ran into a couple of big bugs. Couldn’t really replace my airtable setup yet. Happy to give it another try though!

Gooey0210, (edited ) in Why docker

Check out Nixos, this is like the next step of docker

Ah, and a side note: docker is not fully open source

erre, in This Week in Self-Hosted (12 January 2024)
@erre@programming.dev avatar

This is easily my favorite regular post here :D

EncryptKeeper,

It used to be the Noted.lol posts, then when selfh.st showed up there was drama between the two and then noted kinda disappeared.

possiblylinux127, in I want to set up plex server, no windows.. any simple options?

The simplest solution would be to install Debian. The thing to note is that the Debian installer is designed to be multipurpose so it will default to installing a GUI.

Assuming you can boot off of a live USB with the Debian installer, you can follow the steps until you get to tasksel software selection from there uncheck gnome and check system utilities and ssh server. Also Debian defaults to separate root and user accounts. I would recommend disabling root (see steps below)

On a different machine, ssh into the server (I’m using debian.local but you should replace that with a hostname or IP)


<span style="color:#323232;">ssh username@debian.local
</span>

Once you have access run the following commands to switch to root.


<span style="color:#323232;">su - 
</span>

Install sudo and give yourself access


<span style="color:#323232;">sudo apt update
</span><span style="color:#323232;">sudo apt install sudo
</span><span style="color:#323232;">sudo usermod -aG sudo username 
</span>

Now type exit twice to exit the shell entirely. Once that’s done log back in.


<span style="color:#323232;">ssh username@debian.local
</span>

Lock root


<span style="color:#323232;">sudo passwd -l root
</span>

Now you have a system to set things up. I would start by enabling automatic updates and installing docker compose. (Docker compose allows you to deploy software very quickly in co trainers via a yaml spec)


<span style="color:#323232;">#enable automatic updates
</span><span style="color:#323232;">sudo apt install unattended-upgrades
</span><span style="color:#323232;">sudo dpkg-reconfigure unattended-upgrades
</span><span style="color:#323232;">sudo systemctl start unattended-upgrades #probably not needed
</span><span style="color:#323232;">
</span><span style="color:#323232;">#install updates and install docker and docker-compose
</span><span style="color:#323232;">
</span><span style="color:#323232;">sudo apt update
</span><span style="color:#323232;">sudo apt upgrade 
</span><span style="color:#323232;">sudo apt install docker.io docker-compose
</span><span style="color:#323232;">sudo systemctl start docker
</span><span style="color:#323232;">sudo usermod -aG docker username
</span><span style="color:#323232;">
</span>

You will need to log out and then back in to apply the docker permission.

I hope that gets you started.

Fashtas,

Thanks, I decided to see what happened with a Mint Install (Before I saw your reply) so as a Toe-in-water thing to learn more about the OS and see what stuff was like. I only Kitty into a Linux server for work and do some basic tasks on it occasionally so was interested.

An … interesting experience… trivial install, easy enough to understand the UI, entirely failed to get a Plex server working though… Nothing on the network can see it (Local works fine) which doesn’t make much difference because Plex has nothing to server since it can’t see the folder with movies on it due to, I believe, ownership issues (The files are on a portable USB drive)

Still fiddling but most help documents descend into arcane command line arguments very quickly and are generally “wrong” in that they suggest editing files that don’t exist in folders that aren’t there.

Still… a learning experience :) (Easy enough to kill it and tried Debian if I can’t work out chown!

Fashtas,

Hah! Apparently in the long list of UFW commands I was running, the first one didn’t run or I missed it, can see the server now at least, just need it to see the files!
Entertaining but the wife is getting impatient :/

possiblylinux127,

Just a disclaimer I have never used Plex has I use Jellyfin.

For your firewall mint has a GUI for it. I’m not sure why your firewall is even turned on as it should be off by default.

Fashtas,

Could be, dunno yet how to tell these things but the issue was a port was not open. Once opened the server was seen fine!

guyinachair, (edited ) in I want to set up plex server, no windows.. any simple options?

Have you considered truenas scale? It’s debian based and there’s an official app for Plex. Not to mention a plethora of guides to get scale and Plex up and running.

lumpy, in I want to set up plex server, no windows.. any simple options?

I just got into self-hosting about a week ago and started by getting a small beelink s12 mini. Since you have an old pc you don’t need to worry about hardware for now.

To get going with the software I followed this (lemmy.world/post/6542476) lemmy post in the beginning. It took me a couple of evenings to understand some basic concepts and after getting everything going I found the recommdation for yams.media. So I wiped everything (because I decided to not encrypt the system and to go with Ubuntu 22.04.03 LTS instead of 23.10) and was supprised how quickly I had yams running again.

So just follow the guide and ask here or on the yams discord if you have any questions during the installation.

Skotimusj,

Check the compatibility with Linux but I also used Ubuntu with very little problem. It works flawlessly for me. I had no experience with Linux before this and was able to set it up with some googling and Asking ChatGPT for some useful commands. It was a fun project. The *arr suite is great.

nbafantest, in I want to set up plex server, no windows.. any simple options?

I run Plex on a Raspberry Pi 3, it can support two simultaneous 1080p Streams on my local Wifi. Cant support 2k or 4k videos at all. And cant support video outside of the local network.

“use your favorite Unix then install Plex” or “Here are 56 perfect versions of Unix to install for your Plex server”

What part of this do you think is hard?

Each step can be scary at first but its not hard if you break it into pieces.

Booting Ubuntu or some linux OS is a fun first step if you actually have a spare computer handy

Fashtas,

What part of this do you think is hard?

Not hard… essentially worthless however…

The articles are saying “Here is a list of almost all known versions of Linux, these are good for you to use” when you query what the best option is… Hardly narrowing down anything. Likewise saying “Use your favorite… then install the product you want to use” is also useless information if you are asking the question I was… I have no favorite obviously since I know nothing about it… and OBVIOUSLY I am going to install the produce I just asked about installing…

The pages I was looking at answered the question “How do I install Linux?” by saying “First, Install Linux”

Not to say there aren’t better sources, but all the first ones I found where along that theme

nbafantest,

Ah yeah, i know what you mean. That can be overwhelming. There are a loooooot of choices, and the differences might be things I’ve never even heard of before.

I think a lot of these articles are written with the expectation that you will try several different versions after you learn to flash/boot. I think i ended up with 4 different forks i could boot from.

When I started, i went with Ubuntu first just because it seemed pretty stable and had support from a large company, but once I leanred how to boot Ubuntu it was easy to do the same steps for the other versions to try them out.

Fashtas,

I actually went back and had a look at a few of the top results and I have a feeling a lot were AI written Sandtraps. Several were very similar “Install your favorite Linux then <copy and paste from Plex web site on how to install Plex>”

Makes it had for a newbie who doesn’t know what they don’t know so can’t ask the right question.

The Mint install works fine now, I made a lot of mistakes and took a while to get head around the folder structure and permissions but once I am more comfortable next time I’ll try something a little more headless I think, though playing around I reckon I’d be happy with Mint as a daily machine (if only my job wasn’t coding Windows apps :/)

nbafantest,

Thats great progress

  • All
  • Subscribed
  • Moderated
  • Favorites
  • selfhosted@lemmy.world
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #