Homebrew El Capitan

Mon 02 November 2015 —Filed under notes; tags: mac

Table of Contents

  • First applications
  • system-level configuration
  • homebrew
  • ssh

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. I'm running a Macbook Pro 2012 with El Capitan 10.11.6, and for some reason which I do not understand, when I type the command man brew in Terminal.app, I find the following: Tigerbrew is the easiest and most flexible way to install the UNIX tools Apple didn't include with OS X.

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.

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. Oct 06, 2015 Installing Homebrew on Mac OS X prior to El Capitan (that is Yosemite, Mavericks and others) used to be a breeze. But with a new change in OS X El Capitan called SIP - installing Homebrew has become a bit complicated. You need not worry, I have got you covered. Homebrew Logo - Mac OS X. Oct 01, 2015 Here is how you can fix the permission issues with Homebrew in Mac OS X El Capitan: If you had created the /usr/local directory already, then run this command in terminal: sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local.

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:

Homebrew El Capitan

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

Homebrew El Capitan Free

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:

mail

sshfs

Homebrew El Capitan 2

Provided by the project http://osxfuse.github.io/ - the links beloware for binaries provided as installers.

wkhtmltopdf

Now create an alias:

Comments

Please enable JavaScript to view the comments powered by Disqus.

Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Homebrew Mac El Capitan

I have uninstalled homebrew but now it keeps telling me that is is still installed, I am 100% sure that is is uninstalled because when I run the brew command it does not work.

This is the message I keep getting:

Homebrew El Capitan Install

It appears Homebrew is already installed. If your intent is to reinstall youshould do the following before running this installer again: ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)'The current contents of /usr/local are bin Cellar CODEOFCONDUCT.md CONTRIBUTING.md etc git heroku include lib Library LICENSE.txt opt README.md share SUPPORTERS.md var .git .gitignore

Homebrew El Capitan Software

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.