Created
May 30, 2013 14:52
-
-
Save btihen/5678472 to your computer and use it in GitHub Desktop.
baseos config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo launchctl load -w /System/Library/LaunchDeamons/com.apple.locate.plist | |
sudo /usr/sbin/scutil --set HostName baseos | |
sudo /usr/sbin/scutil --set ComputerName baseos | |
sudo /usr/sbin/scutil --set LocalHostName baseos | |
sudo /usr/sbin/networksetup -setcomputername baseos | |
defaults write com.apple.finder ShowHardDrivesOnDesktop TRUE | |
killall Finder | |
sudo softwareupdate -di | |
DATE=`date "+%Y%m%d"` | |
OS=`system_profiler SPSoftwareDataType | grep System | grep Version | cut -d"X" -f2 | cut -d"(" -f1 | tr -d ' '` | |
/usr/sbin/diskutil rename /dev/disk0s2 baseos_$OS_$DATE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment