New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Local Hostname.local


Post Reply New Thread Subscribe

 
Thread Tools
Jeff111

 
Member Since: Dec 04, 2011
Posts: 3
Jeff111 is on a distinguished road

Jeff111 is offline
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
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
Change you system name under System Preferences > Sharing > Local Hostname

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
Jeff111

 
Member Since: Dec 04, 2011
Posts: 3
Jeff111 is on a distinguished road

Jeff111 is offline
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.
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
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!
QUOTE Thanks
Jeff111

 
Member Since: Dec 04, 2011
Posts: 3
Jeff111 is on a distinguished road

Jeff111 is offline
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
QUOTE Thanks

Post Reply New Thread Subscribe


« Mac OS X Snow Leopard | Outlook 2011 won't open »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Local host name Already in Use??? code777 OS X - Operating System 6 06-01-2012 09:13 AM
how can i browse my local network? silverr Internet, Networking, and Wireless 11 01-17-2012 10:32 PM
Local admin account, system admin account, no desktop dphilly53 OS X - Operating System 0 08-17-2010 09:27 AM
Keeping Local mailboxes on an External Drive--Envelope Index Questio mr10012 OS X - Apps and Games 0 04-05-2008 05:58 AM
Dreamweaver, OS X 10.4.7: Can't find local folder bdemil Web Design and Hosting 0 08-20-2006 02:05 PM

All times are GMT -4. The time now is 08:59 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?