Home » Questions » Computers [ Ask a new question ]

MacBook Pro identifying itself strangely in Terminal and Apache

MacBook Pro identifying itself strangely in Terminal and Apache

In Terminal my bash prompt is

Asked by: Guest | Views: 320
Total answers/comments: 1
Guest [Entry]

"You can change/check your local hostname by going to System Preferences and opening the Sharing Preference Pane. Mac OS X uses the local hostname over the host name. (echo $HOSTNAME will show the local hostname)

You'll want to click the Edit... button near the top of the window under where it says your Computer Name. You can then set your local hostname. The other method is via the command line:

sudo scutil --set LocalHostName simon"