Skip to content

Instantly share code, notes, and snippets.

@btihen
Created May 30, 2013 14:52
Show Gist options
  • Save btihen/5678472 to your computer and use it in GitHub Desktop.
Save btihen/5678472 to your computer and use it in GitHub Desktop.
baseos config
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