Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Help with shutdown

Help with shutdown
Thread Tools
Junior Member
Join Date: Dec 2000
Location: Calgary
Status: Offline
Reply With Quote
Aug 25, 2003, 05:06 PM
 
Hi,

I'm running my old DP450 as a music server that I'm controlling with other macs in the house. Currently it just stays turned on all the time (no keyboard, mouse, or screen). I want to be able to shut it down, but I don't want to just press a button on the front to do a hard shutdown.

How do I log into that computer via the terminal on another computer, and shut it down? Sorry, I'm a total UNIX/CLI noob. Any help is greatly appreciated.

Thanks.

Jeremy
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Aug 25, 2003, 05:50 PM
 
Originally posted by Swancoat:
Hi,

I'm running my old DP450 as a music server that I'm controlling with other macs in the house. Currently it just stays turned on all the time (no keyboard, mouse, or screen). I want to be able to shut it down, but I don't want to just press a button on the front to do a hard shutdown.

How do I log into that computer via the terminal on another computer, and shut it down? Sorry, I'm a total UNIX/CLI noob. Any help is greatly appreciated.
I assume you've turned on some form of remote administration such as telnet or ssh. In the case that you haven't, turn on SSH by checking the "Remote Login" checkbox in the Sharing preference pane, then log into that box from some other box by running:
Code:
ssh -l username IP
It'll ask you a question about the key and ask for a "yes" or a "no"... type "yes". Once you're logged in, then you can type:
Code:
sudo shutdown -h now
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Junior Member
Join Date: Dec 2000
Location: Calgary
Status: Offline
Reply With Quote
Aug 25, 2003, 07:34 PM
 
Hi,

Thanks for replying. I tried what you had there, and it didn't work. the login name for the box is 'musicserver' and its IP on the local network is 10.0.1.4.

The command I'm entering is;

ssh -1 musicserver 10.0.1.4

And what I get is:

ssh: musicserver: no address associated with hostname.

I know this can be pretty frustrating since I have little idea what I'm doing myself- but your help is greatly appreciated. Any idea what I'm doing wrong?

Thanks again.

Jeremy
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Aug 25, 2003, 08:14 PM
 
Originally posted by Swancoat:
The command I'm entering is;

ssh -1 musicserver 10.0.1.4

And what I get is:

ssh: musicserver: no address associated with hostname.
The name is not in DNS, hence the error. Instead just do this:

Code:
ssh username@10.0.1.4
replacing username withe the "short name" of an admin account on the system. When you get logged in, then do the "sudo shutdown -h now" command mentioned above.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Junior Member
Join Date: Dec 2000
Location: Calgary
Status: Offline
Reply With Quote
Aug 25, 2003, 08:22 PM
 
Awesome! Thank you, you are a UNIX Ninja!

Jeremy
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Aug 26, 2003, 03:32 PM
 
Originally posted by Swancoat:
Awesome! Thank you, you are a UNIX Ninja!

Jeremy
Hi-yah!
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:12 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2