Skip to content

Instantly share code, notes, and snippets.

@nordineb
Created July 31, 2019 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nordineb/b539c4a31e2bffa128e569c00854f8c5 to your computer and use it in GitHub Desktop.
Save nordineb/b539c4a31e2bffa128e569c00854f8c5 to your computer and use it in GitHub Desktop.
Use Raspberry Pi Zero to store dashcam footage

how to

Instead of Raspbian, flash the latest image release using balenaEtcher https://github.com/marcone/teslausb/releases

Once flashed, mount the sd card, and in the boot directory create a file named teslausb_setup_variables.conf with the config:

export ARCHIVE_SYSTEM=cifs
export archiveserver=Nautilus
export sharename=SailfishCam
export shareuser=sailfish
export sharepassword='pa$$w0rd'
export camsize=100%
export SSID='your_ssid'
export WIFIPASS='your_wifi_password'
export HEADLESS_SETUP=true

Now, boot the raspberry pi with HDMI to see the installation progress

Other things

Enable ssh

cd /Volumes/boot
touch ssh

configure wireless

nano wpa_supplicant.conf
network={
    ssid="YOUR_SSID"
    psk="YOUR_WIFI_PASSWORD"
    key_mgmt=WPA-PSK
}
ping raspberrypi.local

Pi Zero can emulate a whole host of USB devices including

Virtual Serial

Virtual Ethernet

Mass storage device

Virtual MIDI

Virtual Audio

Virtual Human Interface Device (HID)

Original repo for Testusb: https://github.com/cimryan/teslausb

Original One-step setup https://github.com/marcone/teslausb/blob/main-dev/doc/OneStepSetup.md

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