Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gromin/e94db443c5ad15725cc4 to your computer and use it in GitHub Desktop.
Save gromin/e94db443c5ad15725cc4 to your computer and use it in GitHub Desktop.

Mac OSX 10.10 Yosemite Development Install

THIS IS A WORK IN PROGRESS USING THE YOSEMITE BETA - DO NOT RELY ON IT!

Fresh Install

Install OSX on a fresh drive. I recommend using Disk Utility to repartition the entire drive as 1 partition, as this clears any hidden volumes.

Once the initial install is complete, the OSX Setup Assistant will create your first adminstrator account.

I recommend against migrating existing data or connecting to your Apple ID or iCloud — if you need to later you can use Migration assistant

When asked:

How do you want to transfer your information? Don't transfer any information now.

Sign in with your Apple Id? Don't sign in.

Whe OSX Setup Assistant requests you create user:

Full Name: "[MachineName] Administrator" Account Name: "Admin"

Update System with all recommended updates

When Finder opens, open the App Store

<cmd>+<space> App Store<return>

Navigate to last tab "Updates", wait through spinner to make sure that "No Update Available"

Or,

Open Terminal (cmd-space" "Terminal")

Check for system updates

sudo softwareupdate -l

Get all system updates

sudo softwareupdate -ia

Make default folder structure

~/bin - a local folder for non-system shell scripts, lower case as it not for finder

$ if [ ! -d ~/bin ]; then mkdir -p ~/bin; fi

Don't forget to add to .bashrc

PATH=$PATH:$HOME/bin
export PATH

show default tools path

xcode-select -p

# If you see

# xcode-select: error: unable to get active developer directory, use xcode-select --switch to set one (or see man xcode-select)

# then you'll need to install developer tools

install developer tools

xcode-select --install

show developer tools path, should be result in /Applications/Xcode.app/Contents/Developer

xcode-select -p

$ xcode-select --install

xcode-select: note: install requested for command line developer tools

$

This will install 92 tools into /Library/Developer/CommandLineTools/bin/

BuildStrings CpMac DeRez GetFileInfo MergePef MvMac ResMerger Rez RezDet RezWack SetFile SplitForks UnRezWack ar as asa bison c++ c89 c99 cc clang clang++ cmpdylib codesign_allocate cpp ctags ctf_insert dsymutil dwarfdump dyldinfo flex flex++ g++ gatherheaderdoc gcc gcov git git-cvsserver git-receive-pack git-shell git-upload-archive git-upload-pack gm4 gnumake gperf hdxml2manxml headerdoc2html indent install_name_tool ld lex libtool lipo lldb llvm-cov llvm-profdata lorder m4 make mig mkdep nasm ndisasm nm nmedit otool pagestuff projectInfo ranlib rebase redo_prebinding resolveLinks rpcgen segedit size strings strip svn svnadmin svndumpfilter svnlook svnrdump svnserve svnsync svnversion unifdef unifdefall unwinddump what xml2man yacc

Otherwise, open App Store and install Xcode. Open Xode and install.

Goto Xcode Preferences/Downloads and install simulator and docs

Tip, to speed up opening Xcode installer, turn off gatekeeper

cd /Applications xattr -d com.apple.quarantine Xcode6-Beta7.app

Login to Apple Developer portant and download latest command line tools for OSX Mavericks,

For Mavericks download command_line_tools_for_osx_10.9_september_2014.dmg or

or Yosemite command_line_tools_for_osx_10.10_september_2014.dmg

aegus:~ christophera$ gcc --version xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.

aegus:~ christophera$ gcc --version Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn) Target: x86_64-apple-darwin14.0.0 Thread model: posix

--

install homebrew http://brew.sh

Homebrew installs packages to their own directory and then symlinks their files into /usr/local.

brew doctor, brew update, brew outdated

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew doctor

brew update brew doctor

disable documentation installation to speed up gem update

echo "gem: --no-document" >> ~/.gemrc

sudo gem update --system curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enable sudo gem update --system

install git

brew install git

git config --global color.ui true git config --global user.name "ChristopherA" git config --global user.email "ChristopherA@Hackathon.net" git config --global credential.helper osxkeychain

dont' forget to add to .bash_profile as per brew info bash-completion

You can print a list of completion commands with complete -p and see the source of a function with declare -f

brew install bash-completion brew info bash-completion

The whathis database, used by whatis and apropos, is only generated weekly, so run it after adding commands.

sudo periodic weekly

install cask: http://caskroom.io or search for casks at http://caskroom.io/search

brew install caskroom/cask/brew-cask

install gitx http://gitx.frim.nl

brew cask install gitx

install iterm: http://iterm2.com

brew cask install iterm2

install atom: https://atom.io

brew cask install atom

brew cask install cheatsheet

sudo gem install cocoapods

dotfiles

Install ChristopherA's dotfiles

This will clone my personal set of dotfiles and shell tools. The tool makesymlinks.sh will create symlinks of profile files into the home dir.

cd ~
git clone https://github.com/ChristopherA/dotfiles.git ~/.dotfiles
cd .dotfiles
./makesymlinks.sh

Personal .bash_profile.local

This installs my default Github credentials (edit to make them your own before using!). Otherwise this file is for local (only for this specific machine) shell profile information.

cd ~
curl -O https://gist.githubusercontent.com/ChristopherA/503b172a5fcae5410492/raw/711b2279c97a0d0771c54679dbe85774f4aec333/.bash_profile.local

Screenshots

turn off shadows in screenshots

defaults write com.apple.screencapture disable-shadow -bool true

define screenshot capture location

mkdir Pictures/Screenshots defaults write com.apple.screencapture location ~/Pictures/Screenshots/ killall SystemUIServer

Finder

Show icons for hard drives, servers, and removable media on the desktop

defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true defaults write com.apple.finder ShowMountedServersOnDesktop -bool true defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true

Enable text selection in Finder's Quick Look

defaults write com.apple.finder QLEnableTextSelection -bool TRUE

killall Finder

Dock

Hidden apps on the dock are transparent

defaults write com.apple.Dock showhidden -bool TRUE

killall Dock

Prevent iCloud being default save location (may not work with Yosemite)

defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool FALSE

Misc.

brew cask install xquartz

Proprietary apps I have serials for

serial number database is at ~/Library/Application\ Support/AppZapper/My\ Apps.plist

brew cask install appzapper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment