Skip to content

Instantly share code, notes, and snippets.

curl https://raw.github.com/beautifulcode/ssh-copy-id-for-OSX/master/ssh-copy-id.sh > /usr/local/bin/ssh-copy-id && chmod +x /usr/local/bin/ssh-copy-id
1. gem uninstall net-ssh
2. bundle install
3. sudo curl https://raw.githubusercontent.com/beautifulcode/ssh-copy-id-for-OSX/master/ssh-copy-id.sh -o /usr/local/bin/ssh-copy-id
4. sudo chmod +x /usr/local/bin/ssh-copy-id
5. ssh-copy-id -i ~/.ssh/id_rsa.pub deployer@lvh.me
class projects::ossettings {
# directory setup
$home = "/Users/${::boxen_user}/"
## java home
file_line { 'java_home':
path => "${home}/.profile",
line => 'export JAVA_HOME=`/usr/libexec/java_home`',
}
#!/usr/bin/env bash
# auto start ssh proxy under mac osx, need to sshpass support
# goto http://sourceforge.net/projects/sshpass/ download http://nchc.dl.sourceforge.net/project/sshpass/sshpass/1.05/sshpass-1.05.tar.gz
# cd ~/Downloads
# tar -zxvf sshpass-1.05.tar.gz
# cd sshpass-1.05
# ./configure
# make
# sudo make install
# done
#!/bin/sh
# socks over ssh tunnel
#----------------------------------------------------------------------------------------#
# ssh server set up #
#----------------------------------------------------------------------------------------#
# edit the sshd_config with nano as root
# sudo su
#!/bin/bash
# make sure, script is sourced
EXECUTED=`echo "$BASH"`
if [[ "$EXECUTED" != "" ]]; then
echo "the script must be sourced not executed. Aborting"
exit 1
fi
# make sure, script runs on OS X

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.

Setup Mac OS X

I'm in a hospital in Spain and my MacBook was stolen.

Hospital Commit

Now I bought a new one and need to configure it. I have an external hard drive that backup everything using Time Machine, but I don't want all the crap I had in the old one.

1. Run Software Update

Install the flynn cli

L=/usr/local/bin/flynn && curl -sL -A "`uname -sp`" https://cli.flynn.io/flynn.gz | zcat >$L && chmod +x $L

Add the flynn cluster (with details you should recieve from your flynn administrator)

flynn cluster add -g flynn.companyname.io:2222 -p cNemhn3qBtmhIz8QVxzBaMQSNChEb3KAyrdrC2uliS4= default https://flynn.companyname.io 41d6df8e0028f1f8b939c84792770b1e

Create a new instance