this post was submitted on 05 Feb 2024
39 points (100.0% liked)

Selfhosted

40360 readers
314 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 1 year ago
MODERATORS
 

Ok, this isn't my first post on the subject, but bear with me.

Saturday I set sail through these unknown waters with nothing but a dream, a few hundred gigabytes of movies and shows and this tutorial.

I wasn't a complete noob when it comes to Linux. I used Ubuntu from around 09.10 through 14.04, or something like that. But I have never used a server edition or any text only distro, not even in my wildest weekends dual booting weird systems.

I won't be too lost in this, I thought, as the OS installed in the machine. All set up, Ubuntu booted up and to the tutorial I go. Three minutes in and I already made a mistake. I installed with the SET THIS DISK AS AN LVM GROUP, better reinstall the right way.

Keep in mind that I DO NOT know what I am doing, all of this is new and didn't want to have to restart it all in the end due to a misstep on the first… well, first step.

Freshly reinstalled OS, first part done, now I'll set up this DHCP thing. Oh boy, this was an adventure. Until now, I have no idea of what I did. I got into my router settings and dove into this DHCP config. To my knowledge, I did nothing but change the last number in the IP address from 0 to 133. All connection went down.

I typed my regular IP to get into the router settings to change back that damn number, but no way. The Windows tray said I had internet, but nothing came up when I tried it. Phones, tablets, TVs, all went dark.

It was a Saturday night. My mom was watching YouTube on her phone, my sister and her boyfriend were watching a movie in their room, and I nuked the internet a few minutes before the pizza arrived. It was not cool.

I got my phone and started looking up ways to fix this. No luck whatsoever. After an entire hour of dead-end tutorials and a bunch of nagging, I just made a hard reset on the router.

But I am not such an unprepared man, oh no. I knew I would eventually screw the internet over. So when I installed our mesh Wi-Fi, and had a few similar problems with it, I made a backup of all the connection names and password changes I made. This way I could get everything to work as before, even Alexa could turn everything on and off easily.

Crisis averted. That one, at least.

I still had no static IP! That's when I found this guy! My savior!

Following his steps, I set it up and got back to the Kalos tutorial. It all worked fine until the very end. Wireguard just kept putting me down. Jellyfin worked OK when the phone I was testing it with was on Wi-Fi, but nothing else worked. And then that stopped working too. I was destroyed. I was already 1AM and my eyes were closing on their own. Time to sleep.

I woke up at 5h50 AM, after a series of dreams of me almost solving the problem and just said to myself, maybe PLEX is easier?

I followed some written tutorials for the PLEX install and set up (sorry, couldn't find those to link here) and BOOM, it worked!

I turned off my phone's Wi-Fi and still worked on cellular data, great! Now it is 07h30AM, and I am calling my brother to give it a test since he lives in another state, get a REAL out of local network test. AND IT WORKED! I was in a frenzy.

Great, right? All working, time to rest a bit. Went to a friend's house and played a few hours of Cuphead and came back home. I just knew the movie I was going to buy next to put on the server. Got home, made a cup of coffee and logged in. Where's my shared folder?

I simply cannot log into my server's folder anymore. The server still works fine, but I can't add or remove anything from there. I keep getting the error 0x80070043 on Windows. Disconnected from the network and tried to set up again, and that's when the error started, before it said the server was offline, when it clearly wasn't, PLEX worked fine.

Now it is 10PM here where I live and I just gave up for the weekend. I have no more ideas of how to write my problem on Google to try a new answer. I am lost once more.

But I lost the battle, the war's still going. This server will work. I will have a movie and shows drive, a music drive and a files drive. (no idea how to set up more drives, though. I installed the OS on a SSD and the movies for PLEX are on an external hard drive. But I'll find out)

If anyone has any tips on how to go on, please, enlighten me.

That's all for now, and see you guys in the next chapter of this crazy little project.

you are viewing a single comment's thread
view the rest of the comments
[–] Fermiverse@feddit.de 3 points 9 months ago (1 children)

DHCP (Dynamic Host Configuration Protocol ) is a communication protocol that is used to coordinate a network via a server. The server in most home cases is your internet router. It coordinates the network.

Think of your network as a town with streets, every street has a unique name aka network address. So when a new device gets into the town it gets a unique address in a certain format, when requested by the clients. Mostly IPv4 i.e. 192.168.178.20.

Second there are ports. Ports are the house numbers of the streets. So if two devices use the same IP they still can be differentiated by using different ports. To address a specific port you write it behind the IP, in our example 192.168.178.20:80. So we use port 80.

To come back to the beginning the router coordinates the IP addresses and the ports from your internal network via DHCP and makes sure every device is accessible and no doubles.

There is a lot more but very briefly this is it.

[–] Lenny@lemmy.zip 4 points 9 months ago (1 children)

Thank you 🙏🏻 this is a great ELI5 for my smooth brain!

[–] PlexSheep@feddit.de 2 points 9 months ago (1 children)

If I remember correctly from my CCNA, it is also responsible for configuring routes from one network to another, because configuring static routes in routers is not fun.

[–] Fermiverse@feddit.de 2 points 9 months ago

You are correct, there is a lot more to dive in like NAT, IPv6, static or dynamic address, UPnP, MAC address, subnet space etc.

But I wanted to keep it simple.