Page 1 of 1

Shut down Debian box remotely

Posted: Tue Jun 24, 2008 6:39 pm
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?

Re: Shut down Debian box remotely

Posted: Tue Jun 24, 2008 6:51 pm
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).

Re: Shut down Debian box remotely

Posted: Tue Jun 24, 2008 7:13 pm
by Kieran Huggins
I assume it's ATX?

"shutdown -h now" should woek

Re: Shut down Debian box remotely

Posted: Wed Jun 25, 2008 1:36 am
by alex.barylski
Thanks gents...I'll be sure to test those out here shortly when I shutdown for the night. :)

Re: Shut down Debian box remotely

Posted: Wed Jun 25, 2008 12:30 pm
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.

Re: Shut down Debian box remotely

Posted: Wed Jun 25, 2008 4:20 pm
by Benjamin

Re: Shut down Debian box remotely

Posted: Wed Jun 25, 2008 4:40 pm
by Kieran Huggins
astions wrote:Get a clapper.

http://www.doityourselfhut.com/clapper.htm
YES! DO IT NOW!

Re: Shut down Debian box remotely

Posted: Thu Jun 26, 2008 1:54 am
by VladSun
What's the output of:

Code: Select all

dmidecode | head -n 50
lspci