Results 1 to 5 of 5
  1. #1
    Local Hostname.local

    Member Since
    Dec 04, 2011
    Posts
    3
    Local Hostname.local
    Hi all,

    My computer has a local hostame of BlahBlah.local and I can alter this name, if desired, in the Sharing window of System Preferences. But I'm curious about where this name is actually stored or located. The \h or \H flags know where to get it for use in modifying PS1 but I don't see it listed in my .profile or in my default_env_vars file. Thanks in advance for any enlightenment

  2. #2
    Local Hostname.local
    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,821
    Specs:
    Way... way too many specs to list.
    Change you system name under System Preferences > Sharing > Local Hostname
    mike
    This machine kills fascists
    Got # ? phear the command line!

  3. #3
    Local Hostname.local

    Member Since
    Dec 04, 2011
    Posts
    3
    Thanks Dysfunction; I know about changing the name within the GUI but I'm curious to know which particular Unix file that name is stored in. Some people have suggested it's in /etc/smb.conf but I checked there and didn't see it. Obviously, it's no big deal; I'm just curious about the file location of that variable.

  4. #4
    Local Hostname.local
    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,821
    Specs:
    Way... way too many specs to list.
    Well, here's the deal. You'd actually need to use scutil to change the name. Like many Unix's there's a db that actually contains many of the OS's parameters. So, to do so at a CLI (successfully) you'd need to do the following:


    scutil –set HostName new_hostname

    man scutil <-- for more information
    mike
    This machine kills fascists
    Got # ? phear the command line!

  5. #5
    Local Hostname.local

    Member Since
    Dec 04, 2011
    Posts
    3
    Thanks Dysfunction! I wondered if it was perhaps stored in such a fashion.I'd never heard of the scutil command before. One of the really amazing characteristics of UNIX is that, unlike most operating systems, so many of the operating parameter files are actually written as text; that's why I was looking for that parameter as an entry in a text file somewhere. Thanks again

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. What is Macintosh3-local?
    By Worried Woman in forum Internet, Networking, and Wireless
    Replies: 5
    Last Post: 12-31-2011, 03:35 AM
  2. Environment variable for local hostname?
    By gentinphilly in forum OS X - Operating System
    Replies: 1
    Last Post: 09-15-2011, 11:07 AM
  3. Moving /usr/local to ~/local
    By blueskai in forum OS X - Operating System
    Replies: 4
    Last Post: 06-28-2011, 01:05 PM
  4. remove .local
    By PauloAns in forum Internet, Networking, and Wireless
    Replies: 2
    Last Post: 07-01-2008, 10:46 AM
  5. Replies: 5
    Last Post: 04-25-2006, 07:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •