![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| who - PC Computer name | gefa | UNIX for Advanced & Expert Users | 4 | 04-26-2007 06:11 AM |
| Another customisation for my computer | davidY | Shell Programming and Scripting | 1 | 01-01-2007 08:33 PM |
| xwindow on old computer | pgas | UNIX for Dummies Questions & Answers | 1 | 03-15-2004 07:24 AM |
| getting computer name | coredump2003 | High Level Programming | 2 | 02-17-2004 03:45 AM |
| I cant network my computer | Jai | IP Networking | 2 | 02-05-2002 09:28 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Change Computer Name
I am trying to change my computer name (located in system prefs-> sharing) using unix
i've tried Code:
Macbook-Pro:~ user$ hostname Macbook-Pro.local Macbook-Pro:~ user$ sudo hostname hello Password: Macbook-Pro:~ user$ hostname hello Any ideas? |
| Forum Sponsor | ||
|
|
|
|||
|
solved my own problem
user plist buddy (more info at http://www.dreness.com/blog/archives/6) the plist containing the computer and hostname is located /Library/Preferences/SystemConfiguration/preferences.plist you may need to change the permissions of that file first before you can edit its contents, and also it requires configd to be restarted (either from the command-line or reboot the computer). Last edited by CBarraford : 03-03-2007 at 09:55 PM. |
|
|||
|
found an even better way of doing it
Code:
sudo scutil --set ComputerName "newcompname" sudo scutil --set LocalHostName "newhostname" |
|||
| Google UNIX.COM |