Posts Tagged ‘mac’

Setup SSH keys on Mac

Tuesday, July 26th, 2016

Generate SSH keys, defaults at ~/.ssh/id_rsa and

ssh-keygen -t rsa -b 4096 -C "[email protected]"

Run Mac’s ssh-add command (not ssh-agent), adds default keys if no key is specifed, -K adds passphrases to keychain.

ssh-add -K

Create a text file called ~/.ssh/config with this content:

Host *
  UseKeychain yes
  AddKeysToAgent yes
  IdentityFile ~/.ssh/id_rsa

Installing Android SDK & NDK on OSX

Thursday, May 26th, 2016

First, get Homebrew if you haven’t already:

Run these commands in the terminal

brew install android-sdk
brew install android-ndk

Update Android tools by running in the terminal:

android update sdk --no-ui

Homebrew installs your Android SDK and NDK into /usr/local/Cellar/ subfolders based on which versions it installed, but luckily it also creates two symlinks that always point to the newest versions of each; /usr/local/opt/android-sdk and /usr/local/opt/android-ndk.

Lastly add those to your .bash_profile:

export ANDROID_HOME=/usr/local/opt/android-sdk
export ANDROID_NDK=/usr/local/opt/android-ndk