An open API service indexing awesome lists of open source software.

https://github.com/llorllale/tsc-hab


https://github.com/llorllale/tsc-hab

Last synced: 27 days ago
JSON representation

Awesome Lists containing this project

README

        

## First steps

1. A bootable microSD card with [Raspbian Stretch Lite](https://www.raspberrypi.org/downloads/raspbian/)
* You can use [Etcher](https://www.balena.io/etcher/) to burn the boot image to the SD card
2. Install ansible on your laptop.
3. Enable ssh on your pi. You should be able to `ssh [email protected]`.
* If setup is headless: mount `boot` partition in laptop and just create empty `ssh` file in `/`.
4. Connect pi to your network
* If setup is headless and you're connecting to wifi:


  1. Mount `rootfs` partition on laptop

  2. Enable wifi and specify path to wifi config by editing /etc/network/interfaces:

  3. auto wlan0
    
    allow-hotplug wlan0
    iface wlan0 inet dhcp
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

  4. Configure network in wpa_supplicant.conf (example):

  5. network={
    
    ssid="my_ssid"
    key_mgmt=WPA-PSK
    psk=lkjalfkjklj24NKLhj2l4j0B2vkjh2jh2klj4lkjlktjl2k4jtlk2jlk
    }

  6. The raspberrypi will take about a minute to boot up and connect to the network.

## Run playbook

`ansible-playbook -i inventory hab.yaml`