Re: how to shut down headless Mac



In article
<magdalenabung-681AE3.10133321042008@xxxxxxxxxxxxxxxxxxxxxx>,
magdalena <magdalenabung@xxxxxxxxxxx> wrote:

In article <vSYOj.905$PM5.349@edtnps92>,
johnny bobby bee <useraddshine-no_spam_eh@xxxxxxxx> wrote:

magdalena wrote:
Do I select the G4 in the sidebar first, while I'm still connected to
it, then fire up Terminal, or doesn't it matter about selecting it?

Needs to be done in Terminal. You need to connect to the G4 using SSH.
Then shutdown -h now to halt, shutdown -r now to reboot.

If I
type what you typed, won't it just shut down the MacBook Pro?

Yes.

Michelle Steiner suggested control-eject, then enter (from a keyboard
connected to the G4). Much quicker and easier, and it worked for me!

Note that this will work only when you have physical access to the
headless computer.

And it may not be as convenient as simply issuing a command from another
computer.

But thanks for your other option!

Note that you must enable System Preferences > Sharing > Remote Login on
the headless computer before you'll be able to connect to it from
another Mac using the command-line 'ssh' tool. This is how it works:

1. Issue the SSH command to connect like this (where username is the
user name of aan account on the headless computer, and ip_name is the IP
address or host name of the headless computer):

ssh username@ip_name

The system will prompt for your password.

2. If you are not in an administrator account, use the 'su' command to
switch to an administrator account:

su adminname

The system will prompt for the administrator password.

3. Issue the shutdown or restart command as root:

Shutdown: sudo shutdown -h now
Restart: sudo shutdown -r now
sudo reboot

--
Please send all responses to the relevant news group. E-mail sent to
this address may be devoured by my very hungry SPAM filter. I do not
read posts from Google Groups. Use a real news reader if you want me to
see your posts.

JR
.



Relevant Pages

  • Re: how to shut down headless Mac
    ... You need to connect to the G4 using SSH. ... Then shutdown -h now to halt, ... And it may not be as convenient as simply issuing a command from another ... the headless computer before you'll be able to connect to it from ...
    (comp.sys.mac.system)
  • Re: Terminal command to sleep Mac
    ... you don't know how to use the command line tools that you have at your ... to sleep that way than to go downstairs, put it to sleep with the ... log in via ssh, run shutdown -h now. ...
    (comp.sys.mac.system)
  • Re: remote Shutdown Command
    ... The flavour you use is different again from the three flavours I previously ... Where does the command reside? ... Instead of just running shutdown, ... \\Computer Specifies a remote computer to shutdown. ...
    (microsoft.public.win2000.general)
  • RE: packaged received but didnt run
    ... first you need to make sure your package is set to run whether someone is ... Run the shutdown command as an admin so it will have command over everything. ... timeout period.If this switch is used, ...
    (microsoft.public.sms.swdist)
  • Re: Operator Validation before Executing Command
    ... When we used PCs to perform shutdown, ... hit enter twice. ... Operator Validation before Executing Command ...
    (bit.listserv.ibm-main)