Shut down Debian box remotely

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Shut down Debian box remotely

Post by alex.barylski »

I thought using the command:

Code: Select all

shutdown now -hP
Effectively shut down the computer but apparently it does not kill the power or anything. Is there a command which will shutdown the system normally and kill the power?

I just moved an old computer into the basement which I plan on using as a central server and have the BIOS configured to start the PC at 8AM everyday...this setup is working wicked cool...but Ideally I don't have to go into the basement every night to hit the power switch on the PC...

Ideas?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Shut down Debian box remotely

Post by Weirdan »

just

Code: Select all

 
poweroff
 
If it doesn't turn the power off it might mean the kernel does not know how to power off your motherboard/psu (e.g. it's an old AT mb/psu).
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: Shut down Debian box remotely

Post by Kieran Huggins »

I assume it's ATX?

"shutdown -h now" should woek
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Shut down Debian box remotely

Post by alex.barylski »

Thanks gents...I'll be sure to test those out here shortly when I shutdown for the night. :)
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Shut down Debian box remotely

Post by alex.barylski »

I guess it's an older mother board, although I swear Windows used to shut everything down.

I tried both poweroff and shutdown and neither turned everything off. :(

Ah well.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Shut down Debian box remotely

Post by Benjamin »

User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: Shut down Debian box remotely

Post by Kieran Huggins »

astions wrote:Get a clapper.

http://www.doityourselfhut.com/clapper.htm
YES! DO IT NOW!
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Shut down Debian box remotely

Post by VladSun »

What's the output of:

Code: Select all

dmidecode | head -n 50
lspci
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply