 |
 |
Help with shutdown
|
 |
|
 |
|
Junior Member
Join Date: Dec 2000
Location: Calgary
Status:
Offline
|
|
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
|
|
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:
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
|
|
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
|
|
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
|
|
Awesome! Thank you, you are a UNIX Ninja!
Jeremy
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status:
Offline
|
|
Originally posted by Swancoat:
Awesome! Thank you, you are a UNIX Ninja!
Jeremy
Hi-yah! 
|
"In Nomine Patris, Et Fili, Et Spiritus Sancti"
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|