BeagleBone Black sharing your macOS Internet connection through USB
Posted on December 4, 2018 by Paul
This is a short article about sharing your Internet connection with a BeagleBone Black through USB on macOS Mojave. I assume that you’ve gone through the Getting Started setup and that you’ve installed the latest Debian image on your BBB.
Connect the BBB to your Mac through USB and start the device. Once the device is on, open a Terminal and use ssh to connect to your BBB:
The default password is temppwd, but I suggest to change it for security reasons. If you want to change it now use:
Next, on macOS, open System Preferences, go to Sharing and check BeagleBoneBlack and Internet Sharing:
Answer Yes when asked if you want to start sharing the Internet.
Next, on your BBB, ask for an IP with:
You may need to change the usb1 to another number in the above command.
Now, check if you have access to the Internet, on your BBB, with something like:
This is what I see on my device:
If you are not connected to the Internet you should see something like:
Next time you need to use the Internet on your BBB, connect it to your Mac, login through ssh and repeat the dhclient command: