My new little home server + my first experiences with running a server
from v4ld1z@lemmy.zip to selfhosted@lemmy.world on 04 Apr 20:57
https://lemmy.zip/post/61978636

Hey guys! Like many of you here, I’m fed up with further encroaching enshittification and I’m tired of paying for subscriptions, so I decided to turn a 10-year old laptop I got for university into a home server. I’ve been tinkering with it for around a week now and I’ve spent many evenings and hours on figuring stuff out, but I’m at a point where I’m mostly set up and content with what I have. I thought I’d write down some of my experiences :)

That’s pretty much all I think of sharing right now! Thanks for reading and let me know if you have any tips for a newcomer :)

#selfhosted

threaded - newest

irmadlad@lemmy.world on 04 Apr 21:08 next collapse

Dude! Welcome to the club. That’s an awesome set up. For the total price, you’ve done very well.

a total of 1,25TB storage.

Wow! That will hold a lot of Linux ISO’s

in order to not have to work with the terminal at all times, I installed Casa OS

Pretty solid platform. Admittedly, I am a sucker for a good UI, but don’t neglect learning the terminal tho. One thing that helps me is documentation. I document everything I am doing at the time. All the terminal commands, etc. That way, I can always go back to any point of administration, especially when the wheels fall off. There are so many commands and multiple commands to do the same. I’ve had a computer in front of me since the mid 70s and I still feel like a noob when it comes to my terminal game. Documentation helps me out a lot.

v4ld1z@lemmy.zip on 04 Apr 21:41 collapse

I’ll get to seeding 8-)

I definitely see the value in documenting what I’m doing. What constitutes a documentation-worthy action to you? I feel like I could get lost in the sauce a little :D

irmadlad@lemmy.world on 04 Apr 21:46 collapse

What constitutes a documentation-worthy action to you?

For me…everything. I’m 71, and the brain doesn’t recall as well as it once did. So, my mantra is: If you didn’t write it down, it didn’t happen. Even if you are a young buck, don’t get sucked into thinking ‘yeah…I can remember all this shit 6 months down the road. No worries’. That’s the devil talking Bobby Boucher. LOL

v4ld1z@lemmy.zip on 04 Apr 22:02 collapse

Okay, I see what you’re saying :D I’ll think about it the next time I need to do some tinkering. Might come in handy the next time I break something which is likely happening soon :P

badlotus@discuss.online on 05 Apr 02:35 collapse

Even if you just take screenshots before making changes, this can really save you from an extended downtime while you try to retrace your steps after a failed configuration change. Screenshots take up very little space and can be moved to written documentation (even less space) or deleted (no space!) as needed. ShareX is a great FOSS tool for this.

ashenone@lemmy.ml on 04 Apr 21:13 next collapse

Enjoy the journey. I had a great time spending two years setting up, tearing down, and resetting everything up until it worked and ran in a way that felt good. Start setting money aside for some more drives. I started with 2tb and I’m up to 40tb now lol

v4ld1z@lemmy.zip on 04 Apr 21:39 collapse

Hooly. Considering the rising prices of drives, I’m not sure how feasible that will, sadly, considering I’m on a tight budget. Plus I’m not sure how easy it would be to connect the extra drives to the laptop. Got any ideas?

ashenone@lemmy.ml on 04 Apr 22:59 collapse

External drive docks are fairly cheap and easy to use. I’ve got a 2 bay dock for my large hdd’s that I got when I switched to a micro form factor box. I got it at micro center for maybe $25 but if you don’t have one around you I’m sure you can find one online when your ready. Hopefully the AI industry collapses before you need a new drive

v4ld1z@lemmy.zip on 04 Apr 23:29 collapse

I’ll keep it in mind, thanks :)

stoy@lemmy.zip on 04 Apr 21:16 next collapse

Sweet, one word of caution though…

Keep an eye on the battery, see if you can run the server without it installed, if it starts swelling, that means it has started to become unstable, and may become a fire hazard.

v4ld1z@lemmy.zip on 04 Apr 21:37 next collapse

So I’d just ditch the battery and leave it plugged in, which it is regardless, to not strain the battery due to constant trickle charging?

I’d normally be fine doing that if the charging port wasn’t a little finicky at times when it comes to stable charging. I have to wiggle and twist the charger at times and if I move it, it’s not being charged again. Maybe I should just fix the charging point or switch it out - should be relatively cheap and easy

tyler@programming.dev on 04 Apr 21:47 next collapse

I’m pretty sure there’s some software to prevent what the other user said from happening as well.

v4ld1z@lemmy.zip on 04 Apr 22:00 collapse

Now that would be pretty nice

null@piefed.nullspace.lol on 04 Apr 22:14 collapse

Look into a piece of software called tlp. If your hardware is supported, you can use it to limit the charge of your battery to 80%, which seems to help with that issue.

v4ld1z@lemmy.zip on 04 Apr 23:34 collapse

I’ll look into it!

stoy@lemmy.zip on 04 Apr 22:30 next collapse

In general, laptops are good about keeping the battery charged properly, but lithium batteries does not like to be charged to 100% constantly.

spaghettiwestern@sh.itjust.works on 04 Apr 22:52 next collapse

See if that laptop model allows you to limit the battery charge. If the battery’s still holding a charge, isn’t swollen, and is kept at room temperature you have about a 1 in a million chance of a battery fire.

Parking your car in your garage has hundreds of times more fire risk.

v4ld1z@lemmy.zip on 04 Apr 23:31 collapse

The battery life isn’t amazing, but it never really was even when the laptop was younger. Maybe like a couple hours, likely less today

spaghettiwestern@sh.itjust.works on 05 Apr 00:26 collapse

Battery charge limit will allow you to set it to stop charging at partial charge. Doing so greatly increases the battery lifespan and can reduce possible fire risk even further while still leaving far more backup time than a UPS would provide.

A_norny_mousse@piefed.zip on 05 Apr 07:49 collapse

My even older laptop ran like this for many years and the battery never swelled. It couldn’t hold a proper charge, but I always saw it as cheap surge and microblackout protection.

irmadlad@lemmy.world on 04 Apr 21:46 next collapse

Good call.

NSFWToast@fedinsfw.app on 04 Apr 23:37 collapse

Would limiting the charge to 80% help? I think a lot of laptops have that ability.

stoy@lemmy.zip on 05 Apr 04:38 collapse

It absolutely might, but you should still keep an eye on the battery’s physical condition.

Gork@sopuli.xyz on 04 Apr 21:53 next collapse

If you can do all that, a Minecraft server will be easy peasy to set up.

v4ld1z@lemmy.zip on 04 Apr 22:00 collapse

Thanks for the encouragement - I’ll give it a try! :)

MerryJaneDoe@piefed.world on 04 Apr 22:33 next collapse

SO MUCH great information here! Bookmarked for later, so I can pick through it later and absorb all of your knowledge. Because I’m like a sponge. Or maybe more like a leech….

v4ld1z@lemmy.zip on 04 Apr 23:33 collapse

That’s such a huge compliment, thank you 😱✨ I hoped that my post might inspire someone, but I didn’t actually expect that to happen that quickly :)

I’m still very very new to this, so I’m probably doing stuff wrong - using guides like I did you could do all that too, I’m sure :)

ggrey@social.thelab.uno on 04 Apr 22:10 next collapse

@v4ld1z

That's how every virus starts Buddy 🎉🎉

Welcome to #selfhosting

v4ld1z@lemmy.zip on 04 Apr 23:35 collapse

Not looking forward to getting one, but I’ll deal with it should it come to that I guess D:

ggrey@social.thelab.uno on 05 Apr 00:02 collapse

@v4ld1z

Sorry.. I meant "self hosting virus" 😂😂😂

You will never heal from self hosting once you get it 😉

v4ld1z@lemmy.zip on 05 Apr 00:08 collapse

I guess my point still stands :D

hitmyspot@aussie.zone on 05 Apr 00:18 next collapse

I was holding off on tailscale, with the intention of doing it eventually as I thought it would be a chore. Took about 5 minutes. Do it now. Before you set up local address bookmarks that you’ll have to change.

carrylex@lemmy.world on 05 Apr 00:31 next collapse

That’s what you see further to the back by the wall (50€ used, Fritz!Box 7510). Unfortunately, it only comes with one (1!!!) singular LAN port, so I had to buy a switch for 5 LAN ports in total (another 12€) which is sufficient for all the devices we use at home.

7510 is an extremely bad router, it doesn’t even have 5Ghz WiFi which is like standard for 10 years now. The router is your core access to the internet. Saving money in this place is definitely the wrong choice. You could have gotten a used 7520/7530 (has 4x LAN and proper 5 GhZ WiFi) for like 10€ more and wouldn’t require the 12€ switch…

You should maybe do more research before doing stuff in the future…

v4ld1z@lemmy.zip on 05 Apr 00:50 collapse

Possibly. It’s what the technician suggested getting if I’m on a budget

whelk@retrolemmy.com on 05 Apr 02:17 next collapse

Don’t worry, I bet you’re still gonna have a great time with your home server, love seeing people set up stuff like this for themselves

Mordikan@kbin.earth on 05 Apr 05:47 collapse

As a networking guy, for homelab setups the router is not core of your network. That role falls on the switch. In a perfect world, you'd have a layer-3 switch handling traffic between segments and only send traffic to the router for egressing the network or a few other cases. But in the real world, you have to start somewhere and that's what you did. Don't let anyone tell you that you did it wrong. If someone can't make things work without having the perfect equipment, its probably the wrong hobby for those people.

Regarding network-wide adblocking, I had a squid proxy running that did this. Every machine was issued a self-signed certificate and the connections were basically MITM so I could check the calls being made. You can run into some issues with SSL-pinning in Android or things like HSTS for common websites sometimes, but overall it did function pretty well after tweaking.

If you do decide later to replace your existing router, I'd suggest trying to build your own. My current router is a mini-PC with dual NICs running Arch configured to do packet filtering, routing, a few automations, etc. It was refurbished and cost me about $80 USD. Its a really good experience in building servers and learning how various routing protocols work.

01189998819991197253@infosec.pub on 05 Apr 01:30 next collapse

If I may suggest, run proper cable management, including labeling both ends of each cable (so you know where the other end connects to).

v4ld1z@lemmy.zip on 05 Apr 08:19 collapse

How do I do that for longer cables? As you can see, the distance between the ports isn’t too long but the cables are. I don’t wanna break any of the cables by mistake. Any ideas?

01189998819991197253@infosec.pub on 05 Apr 14:10 collapse

Get a giant roll of hook and loop (shouldn’t need wider than 1.5cm) and cable labels, then very carefully bunch and label everything. Make sure you don’t pull on any connection as you neatly bunch.

v4ld1z@lemmy.zip on 05 Apr 14:46 collapse

Can’t quite find what you’re describing but the labels look cute

01189998819991197253@infosec.pub on 05 Apr 14:50 collapse

Something like this.

v4ld1z@lemmy.zip on 05 Apr 15:06 collapse

So velcro straps kinda, gotcha 👍🏻

01189998819991197253@infosec.pub on 05 Apr 15:13 collapse

I don’t recommend getting the straps, though. Get the roll. And Velcro is a brand for a hook and loop product. You can get the Velcro brand, they’re pretty decent, albeit expensive.

v4ld1z@lemmy.zip on 05 Apr 15:17 collapse

TIL

<img alt="" src="https://lemmy.zip/pictrs/image/6bad831a-31d2-4d3c-93b9-b070a4326a4c.avif">

It felt natural to call it velcro because that’s how I’ve always heard it being called, but I didn’t know it’s a brand name. German has a proper noun for these, and I assumed velcro is the direct translation

01189998819991197253@infosec.pub on 05 Apr 15:28 collapse

It’s pretty cool. Like how kleenex and xerox became definition terms, too, for tissue and photocopy, respectively. I love language evolution and etymology.

DonutsRMeh@lemmy.world on 05 Apr 01:55 next collapse

If you have an android phone, you’re welcome to use my app for your music and audiobooks :)
Free and open source and completely private. Called it StillShelf. Have been working on it for a long while.

Edit: fellow self-hoster here, to be clear. I built this app because I host my own music and audiobooks and wanted an app to my liking so I got to work. AI was used to help build this app. Just to put it out there because I know some people aren’t fans of it.

goatinspace@feddit.org on 05 Apr 02:26 next collapse

<img alt="" src="https://feddit.org/pictrs/image/1c0f59e9-6132-473c-84cc-15ba7bf1104c.gif">

FreedomAdvocate@lemmy.net.au on 05 Apr 06:06 next collapse

Word of warning - I wouldn’t be running anything with a battery in it as a home server. If you can disable battery charging that would be much better, or removing the battery would be best - but don’t make this a long term thing.

DacoTaco@lemmy.world on 05 Apr 07:40 next collapse

Oh nice, a fritzbox. Ive gotten one the week it was legal to bring your own modem here ( not germany ) and i have not looked back since. There is a build in vpn server you can enable to access data from anywhere :)

Nighed@feddit.uk on 05 Apr 07:45 collapse

Got one provided by my ISP, great free router! On a new ISP now, but still using the old ISPs router!

Comes with automatic dynamic DNS built in if needed too!

InFerNo@lemmy.ml on 05 Apr 08:01 collapse

Backup backup backup

You spent time setting it up, now keep that time investment safe.

Create a disk image at least once and keep a more regular copy of your important files.