Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@LMtx Thanks for the tip, guess I'll use that from now on, don't want any trouble.
I also do 'reboot' which instantly reboot any alternative or its just the way to go? -
ddephor44467yWhy not use the shutdown button of the desktop environment? It let you choose what kind of shutdown/reboot, just like windows.
As long as the desktop environment is working there is no need to shut down the system from CLI. Or are we talking about a RasPi? -
lotd77757yUse poweroff, halt or systemctl halt (systemd only).
For node giving access denied..
Well, ls your file to see perms, although I doubt that's it.
Trial and error is probably the way to solve it.
strace could provide some key insights into what's triggering it. -
Poweroff and reboot are now systemd ways to do it and are correct. I believe when you run reboot or shutdown now (the old way) it's just an alias to systemctl poweroff or systemctl reboot. Running init 0 or init 6 is simply an alias now as well. And actually I think the command is systemctl set-target poweroff. You can see all of these by running systemctl list-targets I believe.
In systemctl, you have a target which is essentially a run time. I think you can run more than one at once. The other cool thing is you can jump around from them and I actually think you can have targets contain other targets. They also will be able to be named anything which is handy for keeping things organized. Systemctl set-target customWebServerRunningTarget is way more descriptive than init 3. That's just my opinion.
Everyone would be well served to learn systemd really well as it is actually better (again, my opinion). From a design standpoint it kind of does too much but you can reaaaally automate a machine using it. -
I guess the problem is that "Sudo" is NOT "sudo". In windows nobody cares about that.
-
bahua128017y@LinusCDE
Most likely Sudo is OP's keyboard app automatically capitalizing the first character of the first word on what it sees as a sentence. -
@bahua But the rant was more a joke than a serious experience. So maybe it was about case-sensitivity.
-
ddephor44467y@LMtx using linux for the first time doesn't sound like having a big server with only ssh access.
And who shuts down a server? -
nicholai8577yDon't run node or npm as root.
Try http://nvm.sh for a good versioned local node installation without root :) -
@ddephor or maintenance. Or if you have an environment which is elastic. You can have some monitoring or app performance suites watch how much of a load your server pool is under and automatically spin up or start instances or delete them or shut them down on the other side of things if your load drops.
Related Rants
-
gururaju56*Now that's what I call a Hacker* MOTHER OF ALL AUTOMATIONS This seems a long post. but you will definitely ...
-
linuxxx70This guy at my last internship. A windows fanboy to the fucking max! He was saying how he'd never use anythi...
-
creedasaurus62Another dev on my team just got a new machine. Before he came in today I made two separate USB installers and ...
Me trying to use Linux for first time:
Sudo node index.js
access denied
Sudo shutdown
access denied (noob)
Me: im going back to Windows now....
undefined
linux
access denied
windows