Skip to content

Networking

batchku edited this page Dec 23, 2016 · 22 revisions

Connect to CHIP over USB

  1. connect chip to computer with USB
  2. open terminal on computer, and run ls /dev/tty*
  3. look for the item that has a name that's different than the others (!), usually tty.usbmodem...
  4. in computer's terminal, type 'screen /dev/tty.usbmodem...', where the 'tty.usbmodem...' is whatever you saw in step 3.

WIFI setup from terminal

NOTE: don't mess with /etc/network/interfaces like it says here.

Instead use the NetworkManager from command-line:

list all connections:
sudo nmcli co

list all available networks:
nmcli device wifi list

connect to a wifi network; will reconnect to it on reboot:
nmcli device wifi connect '(your wifi network name/SSID)' password '(your wifi password)' ifname wlan0:

in our case with network called "Chipchestra" with password "jengajenga", it would be:
nmcli device wifi connect 'Chipchestra' password 'jengajenga' ifname wlan0

Samba setup

First: sudo apt-get samba samba-common-bin

Then:

Create a folder to share; here, a subfolder of the 'root' folder:

sudo mkdir -m 1777 /samba-share

Add a shared folder

  • Edit /etc/samba/smb.conf
  • Find "Share Definitions" near bottom
  • Add:

[samba-share] comment = Samba share path = /samba-share browseable = yes read only = no

  • run testparm to see the samba shares
  • restart samba with service smbd restart
  • create a samba user smbpasswd -a root
Clone this wiki locally