This tutorial provides the steps for changing Mac Lion’s Computer name and localhost name. User can change the computer and localhost names using the option provided as part of System Preferences.
Click the Apple icon and select System Preferences from the menu list.
Click the Sharing option available under Internet & Wireless Preferences.
You can change the computer name by providing required name in the highlighted text box.
And you can change the local hostname by clicking the Edit box and entering the required name in Local Hostname. After entering the required details, click the OK button to confirm the changes.