This post describes the process of connecting to Edison from Mac OSX. The standard protocol for connecting to Edison’s yocto linux distribution is to ssh via USB. Just for reference, I’m on OS X Mavericks 10.9.4.
The basic idea:
1. Install homebrew
2. Use homebrew to install the HoRNDIS Driver
3. Configure your device’s network settings via System Preferences
4. ssh in and rejoice!
1. Homebrew can be installed with one simple terminal command. Open terminal and paste the following:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
If you’re curious, more information on homebrew can be found here. It’s a great package and I do recommend it to anyone who’s currently running OS X.
2. Onto HoRNDIS (pronounce: “horrendous”). HoRNDIS is a driver that allows you to tether via USB. A nice description of HoRNDIS can be found here and the gitbub repo can be found here. Since we installed brew in the previous step, we can use brew to install HoRNDIS.
brew install horndis
Alternatively, you can download the latest bundled stable HoRNDIS version from here and just do the double-click to install.
3. Next, open System Preferences –> Network. The default configuration is shown below. Notice the little yellow circle to the left of our Multifunction Gadget showing us that we’re not quite tethered to Edison.
Now, change the “Configure IPv4” dropdown from “Using DHCP” to “Manually” and put in the following manual configuration:
IP Address – 192.168.2.1
Subnet Mask – 255.255.255.0
Click “Apply” to put the changes into effect.
The little yellow circle should now turn to green and you should be all good to go.
A little note on the above. If you’re on Mavericks and you’ve upgraded from a previous OS, HoRNDIS will replicate your device with reckless abandon. Notice that I have gadgets in the range 2-12 showing, even though I only have one device plugged in. It’s annoying, but it won’t keep anything from working. If you really really hate it and just can’t stand looking at the mess, you can “fix” this by manually moving (or removing) these two files:
However, if you have any custom network configurations, this will obliterate them, so it’s not a great fix in all cases.
4. Now open up a terminal and try connecting as root over ssh:
smoyerma-mac02:~ smoyerma$ ssh firstname.lastname@example.org
Boom! We’re in! An SD card sized computer at our fingertips Hopefully, you did exactly what I did and typed “python” and hit enter. When Edison loaded python, that’s when I really rejoiced.