Skip to content

Instantly share code, notes, and snippets.

@zaporylie
Created January 25, 2017 19:22
Show Gist options
  • Save zaporylie/cbe2e0a41b39344dbe2601760d536954 to your computer and use it in GitHub Desktop.
Save zaporylie/cbe2e0a41b39344dbe2601760d536954 to your computer and use it in GitHub Desktop.
Setting up C.H.I.P

Prerequisites

plug in to mac and connect via screen

$ screen /dev/tty.usbmodem....

login

chip / chip

Commands:

shutdown

$ sudo shutdown now

reboot

$ sudo reboot

Wifi

List available networks

$ nmcli device wifi list

Connect to network

$ sudo nmcli device wifi connect '(your wifi network name/SSID)' password '(your wifi password)' ifname wlan0

Autoconnect

echo "source /etc/network/interfaces.d/*" | sudo tee --append /etc/network/interfaces echo "auto wlan0" | sudo tee --append /etc/network/interfaces.d/wlan0

Add your key (so you don't have to login with password).

First make sure key is added to agent.

$ ssh-add -K ~/.ssh/id_rsa

Next copy key (u can use .local on mac if both devices in same network).

$ ssh-copy-id [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment