image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old July 22nd, 2005, 05:19 PM
Registered User
 
Join Date: Jul 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
rebelcommander is on a distinguished road
Computer Name in OSX

I was wonderign if it was possible to change the computer name via a command line in OSX. I'm trying to write a script for easing imaging deployment of several hundred new iBooks and being able to change the name via a command line would make my job a lot easier...
-Thanks
Reply With Quote
  #2  
Old July 22nd, 2005, 06:38 PM
Mikuro's Avatar
Crotchety UI Nitpicker
 
Join Date: Mar 2005
Posts: 2,507
Thanks: 4
Thanked 15 Times in 14 Posts
Mikuro is on a distinguished road
It should be possible using the "defaults" command, but I'm not sure of the syntax used for adding items to nested dictionaries. I know that the particular option you need to change is in "/Library/Preferences/SystemConfiguration/preferences.plist", and the tag is embedded within the plist in System > System > ComputerName.

All I can say is it would look something like sudo defaults write "/Library/Preferences/SystemConfiguration/preferences" <some parameters I'm not quite sure of here>. You're probably more at home with Terminal than I am, so maybe "man defaults" is all you'll need to take it from there.

Hope this helps.
__________________
Mac mini — 1.25GHz G4, 1GB RAM — OS 10.5.5

Useful programs: Privoxy, Butler, ffmpegX, VLC, Perian, Tofu, Wcalc
Reply With Quote
  #3  
Old July 25th, 2005, 07:53 PM
Registered User
 
Join Date: Jul 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
rebelcommander is on a distinguished road
Thanks, I'll try that out sometime soon.
Reply With Quote
Reply

Thread Tools

Posting 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 Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 07:38 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.