Here is a tip that I will definitely make use of myself. I often get older Macs working again for people I know. While my recepients are always happy to get a spiffy older Mac that's ready to go, I know how nice it is to enjoy the experience of plugging in a spankin' new Mac for the first time. The introductory movie, the initial account setup, the network setup and so on. How do I set up a "new" Mac with all current updates and the user's third party software, yet still allow them to enjoy the new Mac experience? Dave at The Consultant has the answer.He writes, "...open the Terminal and delete the AppleSetupDone file, which will cause the Apple Setup Assistant to run on the next boot." The Terminal commands look like this:
loki:~$ cd /private/var/db/Now shut the machine down, and the next time it's booted, it will run through the introductory process. Nice tip, Dave.
loki:/private/var/db$ ls -la .AppleSetupDone
--w----r-- 1 root wheel 0 Jul 16 2004 .AppleSetupDone
loki:/private/var/db$sudo rm .AppleSetupDone
Password:













Reader Comments (Page 1 of 1)
10-04-2005 @ 1:19PM
fra said...
i get
cpc2-blfs5-5-1-cust104:~ Fra$ loki:~$ cd /private/var/db/
-bash: loki:~$: command not found
cpc2-blfs5-5-1-cust104:~ Fra$ loki:/private/var/db$ ls -la .AppleSetupDone
-bash: loki:/private/var/db$: No such file or directory
cpc2-blfs5-5-1-cust104:~ Fra$ --w----r-- 1 root wheel 0 Jul 16 2004 .AppleSetupDone
-bash: --w----r--: command not found
cpc2-blfs5-5-1-cust104:~ Fra$ loki:/private/var/db$sudo rm .AppleSetupDone
-bash: loki:/private/var/db: No such file or directory
cpc2-blfs5-5-1-cust104:~ Fra$ Password:
Reply
10-04-2005 @ 1:20PM
fra said...
ahhh just worked out the problem
stupid stupid me =p
Reply
10-04-2005 @ 1:32PM
JC said...
HA! Now all you have to do is script this as a email "virus" or applescript to run at startup and bam! watch the Apple support go nut! :P
Yea, i know i am mean but i am always thinkin up with crazy time wasting viruii like this.
Reply
10-04-2005 @ 1:52PM
Arlo said...
Here's a tip: It's annoying putting the tip at the end of the post. Cut right to it, and save the meandering observations for AFTER.
Reply
10-04-2005 @ 2:05PM
Noel said...
Keep the meandering thoughts first... good lead in. I never read a posts with heavy Terminal commands, but I've always wondered how to get that intro video back. Now I know!
btw- why can't I find the video and play it at my leasure? I did all kinds of Spotlight searches, but come up with nothing! The video file has to be somewhere! Where?
Reply
10-04-2005 @ 2:46PM
DF said...
Dave:
The only issue here is that the computer will still have the original account used to set it up. According to Apple (see man asr), here are the instructions for getting rid of that account and then enabling Setup Assistant:
Start up in single-user mode (Command+S) and mount the volume as a readable volume (using the instructions at the prompt).
Then type the following commands:
nicl -raw /var/db/netinfo/local.nidb delete /users/
rm -r /Users/
rm /var/db/.AppleSetupDone
Reply
10-04-2005 @ 2:48PM
DF said...
WOAH -- that didn't come out right. Let's try again:
nicl -raw /var/db/netinfo/local.nidb delete /users/ADMINACCOUNTNAME
rm -r /Users/ADMINACCOUNTNAME
rm /var/db/.AppleSetupDone
Reply
10-04-2005 @ 3:27PM
Arlo said...
This is how you cut to the chase without scaring away the terminal-shy:
"Here is a tip that I will definitely make use of myself. How do I set up a "new" Mac with all current updates and the user's third party software, yet still allow them to enjoy the new Mac experience? Dave at The Consultant has the answer."
Followed by the code. If more meanderings are necessary, those follow.
See, it pays to learn how to write editorial properly.
Reply
10-04-2005 @ 4:07PM
Wheels said...
It's a wonder why Arlo isn't a TUAW blogger. =)
Reply
10-04-2005 @ 9:43PM
motech said...
installing applications ,
then erasing a user
is just going to cause problems.
not worth the hassle.
just have them next to u when u set it up . .
Reply
10-04-2005 @ 10:25PM
AV said...
Dang, some of you guys are really harsh on these TUAW bloggers. It's a blog. Pleople write thoughts on a blog, not just instructions. If it were an instructions site then I'd understand, but it's a story site, so let them tell the story for crying out loud. I don't hear anyone complaining about the length of magazine articles. Or do you not read those 'cause they're too long and wordy too?
As for this particular tip, I think it's kind of cool, but the whole account removing and changing and adding thing on OS X, especially after 3rd party software is installed, makes me nervous. I suppose that's why I don't get asked to setup new-old computers for other people.
Reply
10-05-2005 @ 12:06AM
Rafe said...
JP,
Your "virus" requires and admin password to run properly. Would you enter yours when prompted? Thought so.
Reply
10-16-2005 @ 10:19AM
Dave said...
Thanks Dave for linking to my post.. and DF for correcting me and pointing me to the asr man page!
Cheers,
Dave
Reply