Results 1 to 5 of 5
Thread: Local Hostname.local
-
12-04-2011, 11:10 PM #1
- Member Since
- Dec 04, 2011
- Posts
- 3
Local Hostname.localHi 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
-
12-04-2011, 11:13 PM #2
Change you system name under System Preferences > Sharing > Local Hostname
mike
This machine kills fascists
Got # ? phear the command line!
-
12-06-2011, 08:02 AM #3
- 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.
-
12-06-2011, 08:05 AM #4
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 informationmike
This machine kills fascists
Got # ? phear the command line!
-
12-06-2011, 08:18 AM #5
- 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
-
What is Macintosh3-local?
By Worried Woman in forum Internet, Networking, and WirelessReplies: 5Last Post: 12-31-2011, 03:35 AM -
Environment variable for local hostname?
By gentinphilly in forum macOS - Operating SystemReplies: 1Last Post: 09-15-2011, 11:07 AM -
Moving /usr/local to ~/local
By blueskai in forum macOS - Operating SystemReplies: 4Last Post: 06-28-2011, 01:05 PM -
remove .local
By PauloAns in forum Internet, Networking, and WirelessReplies: 2Last Post: 07-01-2008, 10:46 AM -
Computer's local hostname already in use--wireless networking not functioning
By jgoody10 in forum macOS - Operating SystemReplies: 5Last Post: 04-25-2006, 07:16 PM