How do you install security updates etc without restarting?
Linux servers prompt you do restart after certain updates do you just not restart?
Comment on Does "Selfhosted" mean you actually have a server at home?
NeoNachtwaechter@lemmy.world 1 year ago
actually have a server at home
I haven’t got any piece of hardware that was sold with the firstname “Server”.
But there’s this self-built PC in my room that’s running 24/7 without having to reboot in several years…
How do you install security updates etc without restarting?
Linux servers prompt you do restart after certain updates do you just not restart?
Enterprise distributuions can hot-swap kernels, making it unnecessary to reboot in order to make system updates.
Microsoft needs to get its shit together because reboots were a huge point of contention when I was setting up automated patching at my company.
Good luck with that, I have all reboot options off but yesterday it just rebooted like that. Thanks MS.
The right way ™ is to have the application deployed with high availability. That is every component should have more than one server serving it. Then you can take them offline for a reboot sequentially so that there’s always a live one serving users. This is taken to an extreme in theatest cloud best practices where we don’t even update any servers. We update the versions of the packages we want in some source code file. A build job runs on that repo which produces a new OS image contains the updated things along with the application that the server will run and it’s ready to boot. Then in some sequence we kill server VMs running the old image and create news ones running the new.
You can just restart… with modern SSDs it takes less than a minute. No one is ging to have a problem with 1 minute downtime per month or so.
install security updates etc without restarting?
I am actually lazy with updates on the “bare metal” debian/proxmox. It does nothing else than host several vm’s. Even the hard disks belong to a vm that provides all the file shares.
Do you have any recommended resources for getting started? I do have a secondary PC…
First, you need a use-case. It’s worthless to have a server just for the sake of it.
For example, you may want to replace google photos by a local save of your photos.
Or you may want to share your movies accross the home network. Or be able to access important documents from any device at home, without hosting them on any kind of cloud storage
Or run a bunch of automation at home.
TL;DR choose a service you use and would like to replace by something more private.
recommended resources for getting started?
I don’t know where to start today, honestly.
I started with books a long time ago:
The simple way is to Google ‘yunohost’ and install that on your spare machine, then just play around with what that offers.
If you want, you could also dive deeper by installing Linux (e.g.Ubuntu), then installing Docker, then spin up Portainer as your first container.
Years? Lol you should update that software.
Well, there are specific hardware configurations that are designed to be servers. They probably don’t have graphics cards but do have multiple CPUs, and are often configured to run many active processes at the same time.
But for the most part, “server” is more related to the OS configuration. No GUI, strip out all the software you don’t need, like browsers, and leave just the software you need to do the job that the server is going to do.
As to updates, this also becomes much simpler since you don’t have a lot of the crap that has vulnerabilities. I helped manage comuter department with about 30 servers, many of which were running Windows (gag!). One of the jobs was to go through the huge list of Microsoft patches every few months. The vast majority of which, “require a user to browse to a certain website” in order to activate. Since we simply didn’t have anyone using browsers on them, we could ignore those patches until we did a big “catch up” patch once a year or so.
Our Unix servers, HP-UX or AIX, simply didn’t have the same kind of patches coming out. Some of them ran for years without a reboot.
cyberpunk007@lemmy.ca 1 year ago
Well technically a “server” is a machine dedicated to “serving” something, like a service or website or whatever. A regular desktop can be a server, it’s just not built as well as a “real” server.
VonReposti@feddit.dk 1 year ago
There is though reasons to stray from certain consumer products for server equipment.
Image
tristan@aussie.zone 1 year ago
Yeah I’d stay away from Mac too… but seriously most modern laptops can disable any sleep/hibernation on lid close
My go to lately is Lenovo tiny, can pick them up super cheap with 6-12 month warranties, throw in some extra ram, a new drive, haven’t had any fail on me yet
Valmond@lemmy.mindoki.com 1 year ago
You should think before releasing dangerous information on the internet!
You can get a 2core 8GB / 240GB for 75€!!
Uh oh, I think I’ll have to buy one now…
NeoNachtwaechter@lemmy.world 1 year ago
Doesn’t that mean, tiny fans howling all day long?
user224@lemmy.sdf.org 1 year ago
Just set it to “do nothing” when lid is closed. That’s all.
ChrisLicht@lemm.ee 1 year ago
FWIW, this free app solves for that issue well; I have several clammed Macs running it right now:
apps.apple.com/us/app/amphetamine/id937984704?mt=…
cyberpunk007@lemmy.ca 1 year ago
100%, and this is why businesses don’t use laptops as servers… typically 😂.
tuff_wizard@aussie.zone 1 year ago
just break the screen off. call it a headless sever.