The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > OS X (Apple)
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-01-2007
CBarraford CBarraford is offline
Registered User
 

Join Date: Mar 2007
Posts: 17
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
It seems to work, but my computer is still called "Macbook-Pro" in system prefs->sharing, even after reboot. When I reboot and run "hostname" i get Macbook-Pro.local again.

Any ideas?
Reply With Quote
Remove advertisements
!!
Forum Sponsor