trevo
2011-06-10, 10:36
Hi Applenova, it's been a while.
I've been customising 13 iMac's Guest accounts through Terminal. It's time consuming. I realised that I should probably look into Shell scripts. It's not really going well.
If anyone would like to give me a hand, I'd even be happy to donate a few dollars for the help.
Here's what I have to run:
Guest$ su administrator
Password: 1234
bash-3.2$ sudo -s
Password: 1234
$ cd /System/Library
$ tar cfz UserTemplateBackup.tar.gz "User Template"
$ cd /Users/Guest
$ cp .DS_Store "/System/Library/User Template/English.lproj/.DS_Store"
$ rm -R "/System/Library/User Template/English.lproj/Pictures"/
$ cp -R Pictures/ "/System/Library/User Template/English.lproj/Pictures"/
$ rm -R "/System/Library/User Template/English.lproj/Desktop"/
$ cp -R Pictures/ "/System/Library/User Template/English.lproj/Desktop"/
$ rm -R "/System/Library/User Template/English.lproj/Library"/
$ cp -R Library/ "/System/Library/User Template/English.lproj/Library"/
Restart.
I've been customising 13 iMac's Guest accounts through Terminal. It's time consuming. I realised that I should probably look into Shell scripts. It's not really going well.
If anyone would like to give me a hand, I'd even be happy to donate a few dollars for the help.
Here's what I have to run:
Guest$ su administrator
Password: 1234
bash-3.2$ sudo -s
Password: 1234
$ cd /System/Library
$ tar cfz UserTemplateBackup.tar.gz "User Template"
$ cd /Users/Guest
$ cp .DS_Store "/System/Library/User Template/English.lproj/.DS_Store"
$ rm -R "/System/Library/User Template/English.lproj/Pictures"/
$ cp -R Pictures/ "/System/Library/User Template/English.lproj/Pictures"/
$ rm -R "/System/Library/User Template/English.lproj/Desktop"/
$ cp -R Pictures/ "/System/Library/User Template/English.lproj/Desktop"/
$ rm -R "/System/Library/User Template/English.lproj/Library"/
$ cp -R Library/ "/System/Library/User Template/English.lproj/Library"/
Restart.