To change the current startup disk:

$ sudo systemsetup -setstartupdisk path

Viewing or Changing the Sharing Settings

You can use the systemsetup tool to view or change Sharing settings. These can also be set using the Sharing pane of System Preferences.

Viewing or Changing Remote Login Settings

You can use SSH to log in to a remote server if remote login is enabled.

To see if the system is set to allow remote login:

$ sudo systemsetup -getremotelogin

To enable or disable remote login:

$ sudo systemsetup -setremotelogin (onoff)

or

$ serversetup -enableSSH

Telnet access is disabled by default because it isn’t as secure as SSH. You can, however, enable Telnet access. See “Using Telnet” on page 36.

Viewing or Changing Apple Event Response

To see if the system is set to respond to remote events:

$ sudo systemsetup -getremoteappleevents

To set the server to respond to remote events:

$ sudo systemsetup -setremoteappleevents (onoff)

Viewing or Changing the International Settings

You can use the serversetup tool to view or change language settings. These can also be set using the International pane of System Preferences.

To view the current primary language:

$ serversetup -getPrimaryLanguage

To view the installed primary language:

$ serversetup -getInstallLanguage

To change the installation language:

$ sudo serversetup -setInstallLanguage language

To view the script setting:

$ serversetup -getPrimaryScriptCode

Chapter 5 Setting General System Preferences

61

Page 61
Image 61
Apple Mac OS X Server manual Viewing or Changing the Sharing Settings, Viewing or Changing the International Settings