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

OS 10.4 - Mac Address in Computer Name

Post Reply New Thread Subscribe

Thread Tools

Member Since: Aug 07, 2007
Posts: 16
beardiebeardie is on a distinguished road

beardiebeardie is offline
Hi Guys

Sorry if this has been covered, I had a look but I couldn't see anything.

Does anyone know how to set up the mac address of the mac as the computer name via a shell script.

Thanks in advance
QUOTE Thanks

Member Since: Aug 07, 2007
Posts: 16
beardiebeardie is on a distinguished road

beardiebeardie is offline
Dont worry I think I have found it it is something like this

HWADDRESS=`ifconfig en0 | grep ether | awk '{print $2}'`

NONAME=`echo $HWADDRESS | awk '{ gsub(":", ""); print $0}'`

sudo scutil --set ComputerName AP$NONAME

sudo scutil --set HostName AP$NONAME
QUOTE Thanks

Post Reply New Thread Subscribe

« Partition a Drive, then run two OS's? | How to change tom's macbook on top of profiler? »
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 Starter
Last Post
Computer insurance repair fiasco - The Laptop Guy NDBounce Apple Notebooks 5 07-15-2008 07:58 PM
Is a Power Mac G5 still a feasible computer option? iRye Apple Desktops 17 05-16-2008 01:50 AM
Has The Mac Been Hacked...... MaDDoG Apple Rumors and Reports 5 05-01-2007 07:06 PM
Switcher Article in Today's Times studio34 Switcher Hangout 9 08-11-2006 03:10 PM

All times are GMT -4. The time now is 12:10 PM.

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

Welcome to

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?