Seriously, every time I gotta be out the door. Just let me shut you down.

580 points · 194 comments · view on lemmy.world

194 Comments

bjoern_tantau@swg-empire.de · 109 pts · 4d (15 replies)
A stop job is running
TwilightKiddy@scribe.disroot.org · 44 pts · 4d (7 replies)

At least it tells you how long it'll take before it decides to SIGKILL whatever is holding the shutdown sequence.

Thorry@feddit.org · 19 pts · 4d (4 replies)

Well you say that, but I've seen the countdown go past and then reset to a higher number often.

TwilightKiddy@scribe.disroot.org · 14 pts · 4d (2 replies)

I entrust you with this horror, go figure out what to blame. ::: spoiler shutdown-analyze.sh

#! /usr/bin/env bash
shutdown_start=$(journalctl -b -1 -u systemd-logind --grep="System is (powering down|rebooting)" --output=cat --no-pager --output-fields=_SOURCE_REALTIME_TIMESTAMP)
shutdown_start=$((shutdown_start / 1000000))
units=$(journalctl -b -1 --since=@$shutdown_start --output=cat --no-pager --output-fields=UNIT JOB_TYPE=stop CODE_FUNC=job_emit_start_message)

for u in $units; do
    stopping_start=$(journalctl -b -1 --since=@$shutdown_start -u "$u" --output=cat --no-pager --output-fields=_SOURCE_REALTIME_TIMESTAMP JOB_TYPE=stop CODE_FUNC=job_emit_start_message _SYSTEMD_UNIT=init.scope)
    stopping_end=$(journalctl -b -1 --since=@$shutdown_start -u "$u" --output=cat --no-pager --output-fields=_SOURCE_REALTIME_TIMESTAMP JOB_TYPE=stop CODE_FUNC=job_emit_done_message _SYSTEMD_UNIT=init.scope)
    duration_human=$(systemd-analyze timespan $((stopping_end - stopping_start))us | tail -1 | sed 's/.*: //')
    printf "%s\t%10s %s\n" $((stopping_end - stopping_start)) "$duration_human" "$u"
done | sort -rn | cut -f 2

:::

Thorry@feddit.org · 4 pts · 4d (1 reply)

Thanks, I usually know what it is tho. Most often it's VMs I was using for testing stuff, which I forgot to shutdown. It takes a while for them to cleanly shutdown, which is what the wait is for. I have a shortcut on my desktop to a script that checks for any running VMs still and shuts them down. But I forget to click it sometimes and then I have to wait. No big deal, except I like to switch off the power bar that powers the computer and everything attached to it. An old habit from when such a thing mattered, these days standby power is probably nothing to worry about. But still I wait patiently for the computer to shut down till I switch off the power strip.

TwilightKiddy@scribe.disroot.org · 7 pts · 4d

If your script somehow shuts them down faster than plain old SIGTERM, putting it under /usr/lib/systemd/system-shutdown/ might be a good idea. Check man 8 systemd-shutdown for more info on that.

Successful_Try543@feddit.org · 3 pts · 4d

Similar to angry parents.

realitaetsverlust@piefed.zip · 10 pts · 4d (1 reply)

I think that depends on the setting, I had situations where one of my docker containers took ages to shutdown and it would just say 00/02 00s but when it reached that limit, it would just go up.

TwilightKiddy@scribe.disroot.org · 6 pts · 4d

Individual services can override the default 90 seconds timeout. But then you can override their override if you think you are smarter, of course.

Gyroplast@pawb.social · 24 pts · 4d (1 reply)

Alt-SysRq-i, u, o

I don't have time for this shit.

picklerick@lemmy.ml · 10 pts · 4d

have i learned a new magic combo?!

LodeMike@lemmy.today · 19 pts · 4d

(X time / 1:30) but the second time will be extended indefinitely for some fucking reason.

anon5621@lemmy.ml · 6 pts · 4d

Yes but no, u can in config file of systemd change timeout to 5,10 second or other number of seconds which u wish before it will kill it

RustyNova@lemmy.world · 6 pts · 4d

My always plugged in HDD with bees on it does that. 1 minute to shutdown at least because there's always some kind of extend read or dedupe that need a sync.

... I brought this upon myself so I don't have to complain.

UnH1ng3d@lemmy.world · 3 pts · 4d (1 reply)

Why can't it say what the job is 🧐🧐🧐

bjoern_tantau@swg-empire.de · 3 pts · 3d

Actually, it usually does. I was just too lazy to think of one.

orlyowl@piefed.ca · 69 pts · 4d (4 replies)

Reminds me of one of the truest comics I ever read.

DsmoxSmOInIZlnj.jpg

Digit@lemmy.wtf · 6 pts · 4d (3 replies)

It is weird isn't it.

Why do they make it so bad?

I imagine half of linux users could make better automated update rules in their cron.

So many better ways.

So why are they making it intentionally bad?

... Sabotage from Microsoft employees who hate Microsoft?

... Part of a larger Embrace Extent Extinguish tactic, where they've already embraced the Linux Foundation etc enough, they're ready to extinguish Windows, already having sufficient monopolistic total-control hooks in Linux???

What are they up to? There has to be a reason it's so bad. There has to be a reason they go out of their way to make it so bad.

It surely can't just be the effects of The Corporation, the hierarchies and compartmentalisations and bureaucracy of the structure where they don't understand (or even perhaps do understand [and maybe have seen Kevlin Henney's excellent talk on clean code vs enterprise programming] but) can't do anything about it, can it?

What are they building in there? We don't get to see, we don't get to know, just trust them, they know best when and how, and so you are not allowed to change it.

We are not doing that any more.

Rothe@piefed.social · 4 pts · 4d

Having a monopoly makes you arrogant. That is probably the only reason why they do it.

Samsy@lemmy.ml · 3 pts · 3d

Maybe train you into avoiding shutdowns, never shutdown, stay on Microsoft windows for ever, forget about other things like sleep or eating.

bufalo1973@piefed.social · 2 pts · 3d

Windows has had always a problem: unlike Unix, where files are referenced by an inode where the name points to, Windows has the names directly linked to the files. When Windows needs to update a system file that is in use it has to stop being used. And for some system files there only one way to do it: reboot. On Unix, the name of the file can change the inode where it points to and the system goes on. The old file exists until every process stops using it and then is erased while new processes access the new file. So no reboot is needed.

That leads to not having to update everything on reboot. Only the kernel and little more.

waldfee@feddit.org · 56 pts · 4d (2 replies)

[**    ] A stop job is running for Session c1 of User gdm (49s / 1min 30s)

Telodzrum@lemmy.world · 11 pts · 4d

`[**    ] A stop job is running for Session c1 of User gdm (4min 19s / 1min 30s)`

xianjam@programming.dev · 2 pts · 4d

You read my mind

Valmond@lemmy.dbzer0.com · 33 pts · 4d (2 replies)

Windows cannot shut down because there is a folder open.

Digit@lemmy.wtf · 4 pts · 4d

Windows cannot shut down because Bill still wants to keep watching you to see what you're doing.

Untamed_Star@piefed.blahaj.zone · 4 pts · 4d

Windows cannot shutdown because there's a Windows open.

Eat_Your_Paisley@lemmy.world · 18 pts · 4d (8 replies)

I've never used systemd to shut down

Sudo shutdown -h now works on the Mac

kevincox@lemmy.ml · 27 pts · 4d (4 replies)

In most distros shutdown is a symlink to systemctl.

tyler@programming.dev · 6 pts · 4d

Oh interesting

msage@programming.dev · 1 pts · 4d

Gentoo baby!

Digit@lemmy.wtf · 0 pts · 4d
a_non_monotonic_function@lemmy.world · 0 pts · 4d

Huh.

Sheldan@lemmy.world · 6 pts · 4d

I just use poweroff.

Untamed_Star@piefed.blahaj.zone · 3 pts · 4d (1 reply)

i dunno I just normally do sudo poweroff.

Untamed_Star@piefed.blahaj.zone · 1 pts · 4d

I would delete this because it's repeated but it's too late.

pelya@lemmy.world · 14 pts · 4d (18 replies)

Just poweroff is fine. Why lose extra 2.5 seconds typing two words when one word will suffice?

AnUnusualRelic@lemmy.world · 15 pts · 4d (9 replies)

What?

sync ; sync ; sync ; shutdown -h now

Or nothing!

dadarobot@lemmy.ml · 5 pts · 4d (6 replies)

why?

AnUnusualRelic@lemmy.world · 10 pts · 4d (1 reply)

It's traditional, it used to be done that way on old systems. It was done for extra luck I suppose.

Nowadays, shutdown syncs as a matter of fact, and filesystems are much less brittle.

TrippaSnippa@aussie.zone · 1 pts · 4d

The machine spirit gets upset if you don't perform the correct shutdown rites. Praise the Omnissiah.

Sonotsugipaa@lemmy.dbzer0.com · 6 pts · 4d

Gotta make sure the FS cache syncs.

Not too sure, hence the use of semicolons instead of double ampersands, but a moderately high level of sure.

BartyDeCanter@piefed.social · 3 pts · 4d (2 replies)

Before Linux had a shutdown command, you’d run “sync && sync && sync” then hit the power button.

dadarobot@lemmy.ml · 1 pts · 4d

is that true? i guess it makes sense. you dont "shutdown" DOS

Digit@lemmy.wtf · 1 pts · 4d

How long ago was that?? Like 30 years ago?

BenM2023@lemmy.world · 3 pts · 4d (1 reply)

3 syncs? Sun Microsystems trainers told me 2!

AnUnusualRelic@lemmy.world · 2 pts · 4d

Seems risky to me...

ShinkanTrain@lemmy.ml · 3 pts · 4d (1 reply)

why use many word when few word do trick

Digit@lemmy.wtf · 1 pts · 4d

few words do.

cat spk les yet.

mushroommunk@lemmy.today · 3 pts · 4d

Just alias whatever to "off"

huquad@lemmy.ml · 2 pts · 4d (1 reply)

I just pull the power cord and let it figure it out

LincolnsDogFido@lemmy.zip · 2 pts · 3d

I'm not nearly as into Linux as everyone here. I just hobby manage docker containers for a home server. That was my first foray into Linux like 2 years ago. For whatever reason, this broke me for a few seconds lol

dotslashme@infosec.pub · 1 pts · 4d (2 replies)

I think doing just a poweroff might leave some services in an unclean state. I think systemctl poweroff make sure the services are shutdown cleanly before powering down.

Anafabula@discuss.tchncs.de · 4 pts · 4d

poweroff is just an alias to systemctl poweroff on distros with systemd

rumschlumpel@feddit.org · 2 pts · 4d

Unless you're running a non-systemd-distro, poweroff and systemctl poweroff are literally the same ...

Zeddex@sh.itjust.works · 14 pts · 4d (2 replies)

force-shutdown

Digit@lemmy.wtf · 3 pts · 4d (1 reply)

Reminds of a couple [(brilliantly delivered, poignant)] lines from the movie Sphere.

"I hope it doesn't have any feelings."

"What happens when he gets upset?"

Digit@lemmy.wtf · 1 pts · 4d

[Thanks LLM on a websearch for helping remember it was from the Sphere, not 2001, lol... different similar(ish) lines in that. ~ Wait, why am I thanking the LLM? ... Does this speak to how gratitude's good... Or in expressing this gratitude, does it suggest I suspect, on some level, perhaps subconsciously, that the LLM has feelings!?!! Oh well at least we're not putting LLMs into our local computers that we shutdown. ....]

Noobnarski@lemmy.world · 13 pts · 3d (6 replies)

It's even worse, when I tell my work Windows 11 computer to shut down and I have to choose update and shutdown because it decided to do updates, sometimes it reboots a few times but then it doesn't turn off afterwards.

I'm never going to install Windows 11 on any of my devices, it's so bad.

AndyMFK@lemmy.dbzer0.com · 12 pts · 3d (1 reply)

I bought a new mini PC the other day that shipped with windows 11. Before installing Linux I thought "I'll just boot into windows to make sure the hardware is all correct".

I got as far as the windows welcome screen and thought "it's actually just going to be faster and easier to install Debian instead of going through all this windows bullshit"

Bluewing@lemmy.world · 9 pts · 3d

I got a new Mini a month ago. Before I even powered it up, I stabbed a USB stick into it, hit escape on boot, and killed that bitch with Kinonite.

There are two things a person needs to do when starting up a fresh new computer: First, you must bathe in the purifying waters of Lake Minnetonka, and never, ever let Windows have even a single chance to live.

Buddahriffic@lemmy.world · 8 pts · 3d (3 replies)

Or my old windows 10 machine would wake itself up in the middle of the night to run updates that the group policy wouldn't even allow it to download without my permission and then just sit there. If I hadn't fallen asleep yet, I'd notice the monitor light up the next room and get up swearing at Microsoft until I tracked down where the wakeup timer was set and disabled it. Only to find it re-enabled after some updates.

Fuck Microsoft.

GamingChairModel@lemmy.world · 9 pts · 3d (1 reply)

It's fun when your laptop decides to do this kind of nonsense from inside your laptop bag, smothering itself in its own heat.

Buddahriffic@lemmy.world · 2 pts · 3d

Makes me wonder how many laptops seemed to randomly get bricked because it tried to update but then ran out of battery in the middle of it but the user just sees that their laptop had no battery left and then won't boot properly after that, never realizing it decided to update itself.

muusemuuse@sh.itjust.works · 3 pts · 2d

I have a solution for this inside on my work computer. I put it on a Shelly plug. I tell homeassistant to power that on before my shift starts. When I shut down the computer at the end of my shift, the plug sees the drop in current draw and powers off that outlet.

The windows pc doesn’t even get power unless I want it to. It can starve.

Sxan@piefed.zip · 11 pts · 4d

systemctl invariably hangs on waitimg for some job to finish. systemd-shutdown-inhibitor is hideous.

poweroff -ff

Rhaedas@fedia.io · 11 pts · 4d

Five seconds? What's hogging that system? Mine is about two, at most, from the WM shutdown selection.

Flax_vert@feddit.uk · 10 pts · 4d (4 replies)

Everyone arguing about the amount of keypresses to type a shutdown command and time it takes to shutdown... I just power it off at the wall. One button press, shutdown is near instantaneous

cRazi_man@europe.pub · 3 pts · 4d

Big brain move

lattrommi@lemmy.ml · 2 pts · 4d (1 reply)

I trained my cat to flip the breakers.

Digit@lemmy.wtf · 1 pts · 4d

Reminds, in my crunchbang days,

I had set up keybinds to reboot and shutdown

(in similar style to my keybinds to close window, kill window, restart window manager, kill window manager, kill X server).

1984@lemmy.today · 8 pts · 4d (3 replies)

You can just type "shutdown now" and it does.

sudoer777@lemmy.ml · 3 pts · 4d (2 replies)

Or just poweroff, one word not two

andho@lemmy.zip · 3 pts · 3d (1 reply)

How about halt

sudoer777@lemmy.ml · 1 pts · 3d

I just tried it but it gave me an error

Siegfried@lemmy.world · 8 pts · 3d

Powers on

Immediately starts shut down

Refuses to close because the following programs are still running

The list is empty

Honytawk@discuss.tchncs.de · 8 pts · 4d (6 replies)

Are you guys really using a command to shut down a computer?

Because you can do the same with Windows, but nobody uses it because it is just not convenient to use commands for that.

shutdown /s

Haaveilija@lemmy.world · 6 pts · 3d

"please shut down (this is sarcasm)"

Croquette@sh.itjust.works · 4 pts · 4d (1 reply)

I used it when I was watching movies to fall asleep to but did not want to use the battery. You can specify a time with /t before the shutdown occurs.

nautevenkidding@feddit.org · 2 pts · 3d

I always did a sleep 1h && systemctl suspend

LePoisson@lemmy.world · 4 pts · 3d (2 replies)

Yeah, you can even throw a /f in there to force close all apps so it will kill everything and go nighty night. I used to use it with /t command if I wanted to download something while I was out but not have the PC run all day.

That's not the best way to turn your PC off but hell half the time I just murder mine by holding down the power button anyways. As long as you're not being crazy shutting her down in the middle of some data operations you'll be fine.

lemming741@lemmy.world · 2 pts · 3d (1 reply)

I have an old laptop with a w7 partition for running some old cracked software. It has never seen a shitdown, only battery pulls. Not even the warning of a long press

LePoisson@lemmy.world · 1 pts · 3d

My god that poor machine

cupcakezealot@piefed.blahaj.zone · 7 pts · 3d (1 reply)

it's now safe to turn off your computer

muusemuuse@sh.itjust.works · 1 pts · 2d

It was never safe to turn it on in the first place

hactar42@lemmy.ml · 7 pts · 4d (2 replies)

Not to be that guy but...

shutdown /s /f /t 0

kbobabob@lemmy.dbzer0.com · 4 pts · 4d

No, you have to use the GUI in Windows.

TrickDacy@lemmy.world · 2 pts · 4d

🤮

Unleaded8163@fedia.io · 6 pts · 4d (3 replies)

Apparently there are a lot of ways to shutdown. halt is my preference from the command line.

YoSoySnekBoi@kbin.earth · 29 pts · 4d (2 replies)

I like shutdown now because it feels like I'm reprimanding my PC

BladeFederation@piefed.social · 3 pts · 4d

But your PC has been such a good girl :(

Untamed_Star@piefed.blahaj.zone · 3 pts · 4d

poor pc :[

titanicx@lemmy.zip · 5 pts · 4d (8 replies)

You know I'm okay with Windows running updates I shut down or anything else like that. It's incredibly annoying when people don't run updates and then wonder why their system gets fucked up. It's just like on Linux when people just absolutely refuse to acknowledge the fact that they need to run updates. And many times I need to run the updates manually through the command line. There are quite a few gooey applications and things like that that will allow you to run updates but many times you still have to run them manually. And then something breaks and people wonder why I broke when they didn't run any updates. So in the end really who gives a fuck if it's running updates on shutdown you hit the button says run updates you tell it to run updates and you either close the lid on your laptop and walk away or you carry it till it shuts down within a few minutes and then you shut it down. Or you just let your desktop run until it's done. It's really not that big of a deal that people here seem to make it out to be and seem to make 10 different memes a day about the shutdown process on whatever OS they want to shut down.

KmlSlmk64@lemmy.world · 7 pts · 4d (1 reply)

For most people, especially work computer/laptop users, making the update happen by default on restart or during sleep hours does a lot to keep the pc updated, because they would otherwise never do it themselves. There is a somewhat large minority of users who complain about such behaviour, but these are mostly people into computers anyways and can update their stuff anyways.

But the biggest gripe is the horrid implementation of the start menu power buttons in windows:

  • update and restart: mostly works as you would expect - updates and boots the pc
  • update and shutdown: updates the pc, and instead of leaving the pc in shutdown state, many times it just boots the pc again, working like update and restart
  • restart/shutdown without updating: non-insignificant chance of it doing the update anyways
lobut@lemmy.ca · 4 pts · 4d

Thank you for mentioning the horrible implementation of the power button options.

Update and shutdown? Nah, I don't feel like it. I'm gonna restart five times also and then I'm boot into Windows.

Digit@lemmy.wtf · 1 pts · 4d

It's nice to have the choice.

One of my systems [that is actually in use], I've not run an update for near as long again as how long it's been since I rebooted it, and have not even hot-patched it, nor upgraded anything, ... uptime says: "08:07:28 up 2687 days, 29 min, 1 user, load average: 0.00, 0.00, 0.00"

(And it's a gentoo... And I love upgrading long neglected gentoos... ... though that's maybe an order too far, that long. A couple years, fine, fun, but less than a year away from 3000 days (plus another grand or two). LOL. But still, the freedom to choose to do that... is nice.)

... Just before clicking Reply, I hear Richard Stallman's [paraphrased(?)] words echoing around in my mind... Either the user controls the software, or the software controls the user at the behest of someone else.

absentbird@lemmy.world · 1 pts · 4d (2 replies)

But you don't need to restart Linux for updates most of the time, basically just kernel updates, and those aren't often done more than once a month or so, less for fixed point release distros

Digit@lemmy.wtf · 2 pts · 4d

And even then, there's the hot patching potential for a running kernel to upgrade without reboot.

titanicx@lemmy.zip · 1 pts · 3d

And you don't necessarily need to reboot Windows for all of their updates either if you keep it updated. But there's quite a few updates I've run on Linux especially servers that have been neglected when I've gone into companies because people are like herder I don't need to patch or update anything on linux that do require reboots.

Wispy2891@lemmy.world · 0 pts · 4d (1 reply)

The problem is how they install the fucking updates.

"OMG IT'S PATCH TUESDAY!!!!11111!! NEEED TO REBOOT IMMEDIATELY RIGHT NOW I MUST FORCE CLOSE ALL THE OPEN APPLICATIONS WITHOUT SAVING ANY WORK, THE USER GONNA APPRECIATE THAT"

titanicx@lemmy.zip · 1 pts · 3d

I mean it's not really horrible it's actually a pretty good idea for people that either a are not computer savvy or b wouldn't normally update without being reminded to do stuff like that. Which unfortunately for people like you and I is the vast majority of people in you know the world. Actual computer users who understand and can do it on their own are very few and far between. Think about an average company of say 5,000 people and that's a small fish company. There's an it department of what maybe 10 to 15 if that. And in that case you may be have another 20 users maybe 30 users total that have any knowledge of computers at all. That's a huge amount of people right there in a huge amount of computers that would never have any updates for patches and become vulnerable to everything from crashing to getting hacked. Without those automatic upd

HotsauceHurricane@lemmy.world · 5 pts · 4d

Systemctl? Bro just poweroff

Dvixen@lemmy.world · 5 pts · 4d (4 replies)

I was always particularly fond of windows turning my laptop on, running updates, and then going into hibernation, which then caused a blue screen trying to come out of it.

The laptop had sleep and hibernation disabled, all of the wake-on-events and automatic updates were disabled as well. (It was an older cranky thing and deserved rest - or to be taken out back and shot.)

Yet, somehow it always turned on for update day, even after I blocked it from the internet via the router.

chiliedogg@lemmy.world · 3 pts · 3d

I enjoy the backpack detection mode they have on laptops to make sure it turns on, overheats, and drains the battery anytime you take it somewhere you'll want to use it unplugged.

Digit@lemmy.wtf · 2 pts · 4d (2 replies)

(It was an older cranky thing and deserved rest - or to be taken out back and shot.)

Or gifted something like GNU+Linux, BSD, OpenSolaris, 9base, GNU+Ironclad, GNU(+Hurd), KolibriOS, etc, and given a new lease of life for another decade or two, and unlikely to ever suffer like it suffered under windows ever again..

Dvixen@lemmy.world · 1 pts · 4d

Oh absolutely. It's running Ubuntu for a couple years now and it's so much better.

boonhet@sopuli.xyz · 0 pts · 4d

No operating system will change your ancient laptop's CPU to a more powerful and efficient one though. It'll feel snappier to use because there are fewer background processes, but it won't really be fast. Browsers will still be slow, so will code compilation, etc.

LiarAmongAll@lemmy.zip · 5 pts · 4d

Windows update set my PC back almost 3 years for some unknown reason, lost so much shit. That was my final fuck it this shit moment, I installed Mint last week. A little bit of a learning curve, but I'm enjoying it and not worried about everything getting ruined unless I do something dumb. I can live with my own stupid.

rozodru@piefed.world · 4 pts · 4d

meanwhile on KDE: A stop job is running

Tiempo@lemmy.dbzer0.com · 4 pts · 4d (1 reply)

Shutdown NOW

Yes sir!

absentbird@lemmy.world · 1 pts · 4d

Y-

arc99@lemmy.world · 4 pts · 3d (3 replies)

This boils down to a Linux using a file system which allows files to be deleted or replaced in the inode table while something has the old file open. So it's easier (although not simple) to replace packages while other stuff is running. Whereas Windows has to shut everything else down so nothing has the file open to replace it and also fix stragglers during the next reboot.

WhyJiffie@sh.itjust.works · 5 pts · 3d (2 replies)

its more to do with the fact that until recently linux distros did not have a desktop pc centered idea on how to do updates. but distros started to support offline updates, so you can install updates in a safer way, while the system is not running.

a major difference is that linux offline updates allows you to just shut down, without taking time with updates.

quadrant5835@lemmy.zip · 1 pts · 3d (1 reply)

My phone and Linux PC's now all do this. Primary partition in use. Updates apply to secondary partition. At next reboot, load the updated partition.

It's so much better that the alternative, I can't wait for Windows 14 to adopt it.

WhyJiffie@sh.itjust.works · 4 pts · 3d

only atomic distros do that, and it has its downsides. most distros still only keep a single system partition, but if it does snapshots before update then it's not a big deal if something goes wrong

JoeBigelow@lemmy.ca · 4 pts · 4d (6 replies)

Is there a "How to Linux" somewhere? I'd really like to get beyond using my CachyOS system as gui user, hell even some of the gui stuff is so alien. Felt like a lesser god when I found the repo... But terminal commands are just beyond me

BladeFederation@piefed.social · 3 pts · 4d

Nothing wrong with GUI but yeah there are a lot of resources. I don't know if I can point you to any because I usually just web search the command for the thing I want to do and add it to a long running note of Linux commands

lattrommi@lemmy.ml · 3 pts · 4d

This helped me quite a lot. You don't have to use arcolinux either, it's simply a guide.

https://www.arcolinux.info/learning-path/

edit i haven't used that link in awhile and i'm not sure it's the same experience anymore, some things appear to be missing. if unsure about any step, you can skip it usually. it's more of a list of things to learn.

gajahmada@awful.systems · 3 pts · 4d

No starch press has many such books.

"How Linux Works", "The Linux Command Line" is the one I've (partially) read.

There's also Linux From Scratch or maybe just try Arch without the install script if you have spare ssd to boot.

I've found that just selhosting shit will hit some inevitable roadblock, so it tend to end up making you read a whole bunch of documentation and at many points you will encounter new incantations which you also need the docs if you curious enough

LandBasedDaveyJones@lemmy.today · 2 pts · 4d (1 reply)

Check out "Linux survival" if you're old school, LabEx if you like experiential learning more, and less explanation. Both offer exercises, both are free, but Labex has a few restrictions for free accounts, and offers a paid tier at like 9 bucks a month. And ofc you don't have to use the terminal irl, it's just easier after getting used to it. Most things have a GUI program equivalent, you just have to seek it out. Most of the time.

Edit: And also, Linux Mint and a few others are often recommended to new users for being both similarish to windows and approachable with GUI.

JoeBigelow@lemmy.ca · 1 pts · 4d

Thank you! I've used mint, liked it, tried PopOS, had some trouble with it I can't remember and instead of solving it moved to CachyOS which promised to solve the issue, and it did. I think it was Bluetooth

Digit@lemmy.wtf · 1 pts · 4d

Many such efforts exist out there. [1]

Rather than link to any of those (~ in part because I don't know which one will be best for you, with each our different learning styles and needs),

I'll instead (because I know what's best for you ~ /s) offer this whimsical short path to a path of expedience, that may look a longer harder road at first, but is actually, in the longer run, the shorter road that bump-starts you from a stalled zero to a [*cringe* ~ oh am I really going to say this...?] ... linux hero. [LOL, dear goodness, what have I done? LOL. Well, you get the gist at least.] The [2nd[2]] shortest path: https://www.youtube.com/watch?v=t09IbcxAJlU <- follow the instructions in this 40s video.

It will take you to "the jump program" of learning Linux. ... and just like in the movie, The Matrix, "Everybody fails the first time." "Yeah, but what if he doesn't?"

[1: websearching for lists of basic/"essential" linux commands is one way to trickle in some learning [with a little wax-on wax-off practice]. man man can help. IDK, maybe some familiarisation with the FHS (Filesystem Hierarchy Standard), some lectures on free software philosophy, unix philosophy, and following the curiosities from there, then the "how to linux" just sort of emerges organically from the awareness. ... Things really start to take off, once you know about A: documentation (e.g. man pages (for a start)), and B: pipes (and other redirects). [Oh, and C: your package manager basic commands to install, search, remove, update list of available packages, and upgrade all packages.]]

[2: first's not relevant here... higher shelf, needs more breadth of basics before going deeper. No point learning about poly-distros if don't yet even know 1 distro. And so the 1st shortest is only shortest once already~ ... never mind. We're not supposed to talk about it. ;D]

Hiro8811@lemmy.world · 4 pts · 4d

I usually map the power button to shut down, although on laptop if I close the screen after shutdown it'll go to sleep mid shutdown

BeUnique@lemmy.zip · 4 pts · 4d (7 replies)

*Holds power button on windows device

Doomsider@lemmy.world · 2 pts · 4d (6 replies)

Isn't it crazy that you need a physical workaround for your operating system?

Lemmert@reddthat.com · 7 pts · 4d (2 replies)

To to honest my Fedora install used to hang indefinitely 20% of the time I tried to shut it down. So I also became well acquainted with that solution

Doomsider@lemmy.world · 3 pts · 4d (1 reply)

It is a last ditch effort in Linux instead of the first reaction for me in Windows.

Maybe I don't just don't respect Windows. It probably goes back to things like it deciding to do an unskippable update right before I did a presentation or trying to find some obscure .dll file for hours trying to make a program work.

I get your point though.

Lemmert@reddthat.com · 2 pts · 4d

Fair enough considering Windows also doesn't respect you. My worst experiences were the times I accidentally clicked on "update and restart" so I just had to wait there after a long night of getting a presentation or homework done. That happened a few too many times in high school.

But I barely handle updates myself these days. I have set it to automatically* apply them live for my year on Silverblue. I have something similar for my phone updating every weekend at night considering I sleep in anyway. This post did remind me how nice it is to not have to worry (or even think) about updates.

*I do manually update between major Fedora releases. But those happen twice per year so yeah.

BeUnique@lemmy.zip · 4 pts · 4d (2 replies)

Sure I guess. There's plenty of things better about Linux so why lie? This meme misses the mark is all I'm saying.

rtxn@lemmy.world · 1 pts · 4d

Who needs their files closed and disks synced, anyway?

Doomsider@lemmy.world · 1 pts · 4d

I was just pointing out the irony of your statement. I think this is a low effort meme for sure

m3t00@lemmy.world · 4 pts · 3d

script on desktop; shutdown -h now, or hit button

9tr6gyp3@lemmy.world · 3 pts · 4d

Poor storage drives adding on power cycles

MonkderVierte@lemmy.zip · 3 pts · 3d (9 replies)

Systemd waiting for to terminate on shutdown is one of the reasons i've ditched it.

kadotux@sopuli.xyz · 6 pts · 3d (1 reply)

"A stop job is running for user manager for UID 1000" is such a pain :D

wilmo@programming.dev · 3 pts · 3d

You can change the default wait from 90 seconds to something like 5 seconds.

/etc/systemd/system.conf.d/system.conf

[Manager] DefaultTimeoutStopSec=2s

luciferofastora@feddit.org · 3 pts · 3d (3 replies)

I don't think I've ever had that issue. My PC shuts down within a few seconds. What kind of things would refuse to terminate?

WhyJiffie@sh.itjust.works · 8 pts · 3d

a bad configuration, mostly. people love to bash systemd but this is sensible, that it does not outright kill services that aren't ready for that. if your computer shuts diwn slowly because of that, that is a configuration issue, that either a service or a mount does not stop cleanly.

MonkderVierte@lemmy.zip · 1 pts · 3d (1 reply)

Udev i think. Also, that's a thing Systemd is (more or less) infamous for. Which is, why this joke weirded me out a bit.

luciferofastora@feddit.org · 1 pts · 3d

Also, that's a thing Systemd is (more or less) infamous for.

I've never heard of it before. I don't know where it is infamous, I've never had that issue and of all the criticism I've seen levelled at Linux in general or systemd in particular, that has never been one. Maybe there was some configuration stuff, as the other reply mentioned?

wilmo@programming.dev · 1 pts · 3d (1 reply)

You could just configure the default timeout.

MonkderVierte@lemmy.zip · 1 pts · 3d

2 min is still a bit much for a default. Make it 10 seconds.

kuerbiskernoel@feddit.org · 1 pts · 3d

I solve that by holding my power button, not worth the hassle of ditching systemd for me

Jankatarch@lemmy.world · 3 pts · 4d

It's amazing that my pc is set to shut down when I press power button.

Not even "press and hold for a sec." No I just press the power and by the time I lift my finger it's already shutting down.

OR3X@lemmy.world · 3 pts · 4d (10 replies)

This might sound crazy, but you don't have to shutdown your computer every time you're done using it. You can just lock the screen and walk away.

lattrommi@lemmy.ml · 2 pts · 4d (2 replies)

Lock the screen? Pshh... I set mine up where after 15 minutes of inactivity the screen shuts off. that's it. i'll restart if the update tells me to.

Digit@lemmy.wtf · 1 pts · 4d (1 reply)

Screen off after 15 mins? Pshh... I ride xset s off ; xset -dpms ; xset s noblank. I'll restart if things get crashy from me not restarting after an upgrade upgrades any of my currently running singletons (e.g. kernel, init, x11).

Digit@lemmy.wtf · 1 pts · 4d

[hopefully [others reply with taking it even further and] this cascades all the way to butterflies.]

TrickDacy@lemmy.world · 1 pts · 4d

No way!!!

rumschlumpel@feddit.org · 1 pts · 4d (5 replies)

If you're on a laptop, you often can't do that and those updates waste precious battery life.

OR3X@lemmy.world · 1 pts · 4d

Fair point

BladeFederation@piefed.social · 1 pts · 4d (1 reply)

Has anyone found a way to finagle better battery life on Linux laptops? One of my few Linux complaints is that...

rumschlumpel@feddit.org · 2 pts · 3d

There's powertop, but last time I've seriously tried using it was years ago. My laptop is >10 years old anyway (I've owned it for about half of that) and I almost always use it at home on AC power, the battery is probably geriatric anyway ...

testaccount789@sh.itjust.works · 1 pts · 4d (1 reply)

There's sleep.
Last time I did update on my laptop, I had 40 days of uptime.

rumschlumpel@feddit.org · 1 pts · 3d

Sleep doesn't cut the power though, which is especially problematic on a laptop, and AFAIK if you use full disk encryption your drive remains readable (also especially problematic on a laptop).

Hibernate works, though it's kinda slow, too.

HugeNerd@lemmy.ca · 3 pts · 3d (5 replies)

"shutdown" is a noun. I was on vacation because the company was in shutdown.

"shut down" is the compound verb you wanted.

funkajunk@lemmy.world · 12 pts · 3d (1 reply)

Grammar checking a wojack meme?

Username checks out.

HugeNerd@lemmy.ca · 7 pts · 3d

Username checks out.

must... not... bite...

Sasquatch@lemmy.ml · 7 pts · 3d (2 replies)

I would argue executables can be verbified.

I can grep a file. Why can't i shutdown?

HugeNerd@lemmy.ca · 0 pts · 2d (1 reply)

Because grep isn't a word? And since when do machines set the tone for human activity? Lights turn on, do you turn on in the morning?

Sasquatch@lemmy.ml · 4 pts · 2d

🥴 I would 4 u bb

LilB0kChoy@reddthat.com · 3 pts · 4d

Windows + R cmd [enter] Shutdown -r -s -t 0 [enter]

AlphaOmega@lemmy.world · 3 pts · 4d (3 replies)

Windows 10 has had a bug for about 3 years now. Where if you choose "install update and shutdown" and instead it reboots.

f4f4f4f4f4f4f4f4@sopuli.xyz · 5 pts · 4d

Windows 11. We installed a printer driver and unchecked "Restart my computer now". It attempted to restart anyway, with Windows offering to either close all programs and restart, or cancel. I clicked cancel. It restarted anyway. Nothing was lost, but still... 🤦

Armok_the_bunny@lemmy.world · 2 pts · 4d (1 reply)

I thought I'd seen news that that had finally been acknowledged and fixed, or did they only fix it for 11 or something?

AlphaOmega@lemmy.world · 2 pts · 4d

Just updated last week and didn't shut down. I also read somewhere it was fixed months ago

umbraroze@slrpnk.net · 3 pts · 4d (1 reply)

Well, there's a reason why I shut down my Windows laptop at least 30 minutes before I have to actually leave somewhere.

My biggest annoyance isn't even Windows as such, but random applications that have auto-updaters that run when the app is closed. "Okay, time to go now." "NO! I must update this app!! Do not stop this update or hideously evil data corruption will happen!!!" ...there's no excuse for this stuff. Just do it when starting the application.

WhyJiffie@sh.itjust.works · 1 pts · 3d

Just do it when starting the application.

then the other half of the userbase will complain

muusemuuse@sh.itjust.works · 3 pts · 2d

DarrinBrunner@lemmy.world · 2 pts · 4d (1 reply)

You guys turn off your computers?

Digit@lemmy.wtf · 1 pts · 4d

NEVAAAAAR!

10:00:46 up 2687 days, 2:22, 1 user, load average: 0.01, 0.02, 0.00

Switorik@sh.itjust.works · 2 pts · 4d

If that one thumb could read, this might make him mad

lambisio@feddit.cl · 2 pts · 2d (1 reply)

clean shutdown

on systemd

https://feddit.cl/post/13051330

CrypticCoffee@lemmy.ml · 1 pts · 1d

Lol, never happened to me in almost a decade of using systemd. Windows update was a constant blocker.

HuntressHimbo@lemmy.zip · 2 pts · 4d

I get annoyed when a stop job shows up and I have to wait a minute. On my windows machines, that minute is the baseline and I half expect it to have decided to update and reboot itself again after. The difference is night and day

tuckerm@feddit.online · 2 pts · 4d (2 replies)

People give Windows a lot of flak for this, but at least it usually does turn off after finishing its updates.

MacOS is the one that will just literally ignore the fact that you told it to shut down. Or it takes forever to tell you that a program has unsaved changes. At least Windows will tell you that right away, so that you see the "something is preventing shutdown" message before you walk away from the computer. Your Mac will wait 15 minutes, and then be like, "by the way, the browser doesn't want to close."

drcobaltjedi@programming.dev · 6 pts · 4d (1 reply)

"Update and Shutdown" still acts as "Update and Restart" on windows. They added a whole new feature that is indistinguishable from the previous feature.

Though I agree macos has the problem of "well Firefox was open so I was stuck here over night"

kbobabob@lemmy.dbzer0.com · 2 pts · 4d

They fixed that behavior recently.

Agent641@lemmy.world · 2 pts · 4d

Rip the power cord out of the wall

abominable_panda@lemmy.world · 2 pts · 4d

Last time this happened to me (read: yesterday) i ended up holding down the power button.

You dont want to shut down when i ask i will make you.

myszka@lemmy.ml · 2 pts · 4d

I don't know how but a windows 7 machine I've recently had to use still got an update before shutting down...

Digit@lemmy.wtf · 2 pts · 4d (4 replies)

I just push the button.

Muhahahahaha.

Okay, sometimes on a whim I'll do something like a "sudo shutdown -t 0 now". (... Muahahaha.)

Rarely shutdown my main computers though. Last time, years ago.

Better to have, and not need, than to need, and not have, right windows users?

MonkderVierte@lemmy.zip · 3 pts · 3d

halt 0

boonhet@sopuli.xyz · 2 pts · 4d (1 reply)

Don't the -t 0 and now do the same thing?

Digit@lemmy.wtf · 2 pts · 4d

I've stumbled into various quirks across many systems over the decades, and, iirc, it was actually something like sudo shutdown -t secs now [(?! wat)] that resulted in reliable shutdown, contrary to all logic and presumed would-be redundancy. But, yeah, you'd think so. I don't know what the current state of shutdown's like. That was from like over 15 years ago, back when I had a X60T thinkpad I'd actually shutdown.

Ricaz@lemmy.dbzer0.com · 1 pts · 4d

My button does the same as poweroff though, it will still give everything a couple seconds to kill itself

anomnom@sh.itjust.works · 1 pts · 4d

Mac users: you guys shut it down?

AceFuzzLord@lemmy.zip · 1 pts · 4d

Forgot this command! Gotta see if it'll work on my system and not start a restart when I ask for a shutdown!

Edit:

I hope to high heaven it's just an OS bug! Tried running this and the poweroff -ff commands and it just reboots my system! Now I am paranoid I somehow got a virus on my system!

rumschlumpel@feddit.org · 1 pts · 4d (1 reply)

Big fan of hibernate (systemctl hibernate on systemd systems, and you need a swap file that's at least as big as your RAM). Sure I wait some time until it's shut down and booting takes longer, too, but not having to reopen all those terminal and editor windows I'm accumulating while working is worth it.

StellarExtract@lemmy.zip · 1 pts · 4d

Yeah, I always set up my laptops to not sleep upon closing the screen, and I use hibernate instead of sleep when I need to leave and come back later. Makes moving an active system much better since I can close it without disrupting things, and hibernate uses zero battery, so it lasts indefinitely while inactive. Plus, none of that "modern standby" BS trying to connect to wifi or start the system back up while packed in a bag. That might be more an issue with my Windows work machines though.

Racoonwithbenefits@lemmy.zip · 1 pts · 4d

I just press shut down and leave

Hope its turned off when i get back

ikidd@lemmy.dbzer0.com · 1 pts · 4d

One-finger salute takes 10 seconds.

foofiepie@lemmy.world · 1 pts · 4d

Ok fine I can live with that.

But .

Windows: No! That file is open! You cannot.

What.

apftwb@lemmy.world · 1 pts · 3d
[ removed ]