Table of Contents
Brew will be the foundation for most of the tools that are needed in this video series. Short and sweet we cover the one install and updateprocess that will. GRASS GIS 7.0.x for El Capitan without disabling SIP. The new homebrew recipe for GRASS 7.0 does install on El Capitan with SIP enabled! This is thanks to Larry Shaffer. Homebrew complements macOS (or your Linux system). Install your RubyGems with gem and their dependencies with brew. “To install, drag this icon” no more. Homebrew Cask installs macOS apps, fonts and plugins and other non-open source software. $ brew install -cask firefox. Making a cask is as simple as creating a formula.
- First applications
- system-level configuration
- homebrew
- ssh
I had enough issues after updating to El Capitan (the inability to save mywifi password in the system keychain was the tipping point) that Idecided to perform a clean install. Here are some notes.
First applications
Developer tools
Pretty much the first thing any mac needs is the command line tools. This can be done from the command line:
X11
Download and install Xquartz:
Note for next time: might be worth trying to use homebrew.
X11 key bindings so that the option key is used for Meta..
iTerm2
Update a few settings.
Preferences –> Profiles –> Keys and do these things:
- select 'Left/right option key acts as': +Esc
- + –> Keyboard shortcut 'OPT+<left arrow>': Send Escape sequence 'b'
- + –> Keyboard shortcut 'OPT+<right arrow>': Send Escape sequence 'f'
Default appearance:
- Preferences –> Profiles –> Colors –> Load Presets –> Light Background
- Preferences –> Profiles –> Text –> Change Font –> 14 point
Others
- Dropbox
- SizeUp - http://www.irradiatedsoftware.com/ (license in Dropbox/software_licenses)
- MacTex - download from http://tug.org/mactex/http://mirror.ctan.org/systems/mac/mactex/MacTeX.pkg
- HipChat client
- Chrome
- Dash 2 (App store)
UW only
- Sophos antivirus: https://softy.cac.washington.edu/sophos/for-staff/
- Junos Pulse (SSL VPN): https://networks.uwmedicine.org/content/sslvpn-frequently-asked-questions-14
system-level configuration
turn off spelling autocorrect
System Preferences –> Language & Text –> Text tab –> unselect 'Correct spelling automatically'
turn off spaces key shortcuts
System Preferences –> Keyboard –> Keyboard Shortcuts –> unselect C+{<-,->}
homebrew
Note that El Capitan introduced System Integrity Protection (SIP), which may need to be temporarily disabled during homebrew installation. See https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/El_Capitan_and_Homebrew.md
If it becomes necessary to fix permissions:
packages installed using homebrew
homebrew cask
Command line installer for desktop applications. See https://caskroom.github.io
Install some applications
homebrew API token
Apparently lots of requests to GutHub via homebrew can hit a rate limit. There's a higher limit if you create an API token. See https://gist.github.com/christopheranderton/8644743
Here's the url for the token creation dialog:
Make sure that all 'scopes' are unchecked. Once you generate the token, add to your shell profile:
zsh
Install zsh with Homebrew above
Change shell to zsh
zsh init files are in Dropbox/zsh
ssh
After installing homebrew's openssh on El Capitan, ssh-agent no longerseemed to work (in the sense that after using ssh-add to cache apassphrase, I still got a system prompt when trying to ssh). Thisseemed to be fixed by the instructions I found at the url below (myversion is functionally the same but uses PlistBuddy to edit theplist):
update /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist
This should change the original value of ProgramArguments
:
to
Now restart the service
create $ZSH_INITDIR/ssh-ask-keychain (called from start_ssh_agent.zsh)
create $ZSH_INITDIR/start_ssh_agent.zsh
(either as a file sourced from .zshrc, or as a code block in a login script)
git
emacs
Install emacs24 binary from http://emacsformacosx.com/
Check out my .emacs.d
python
Use homebrew - seehttps://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Homebrew-and-Python.md
Run brew info python
for required and optional dependencies(installed above).
Install some python packages using homebrew - these are time consuming to install otherwise.
Install some other packages to the system using pip.
For elpy:
ansible
Others
R
Really doubling down on homebrew this time around:
sshfs
Provided by the project http://osxfuse.github.io/ - the links beloware for binaries provided as installers.
wkhtmltopdf
Now create an alias: