GithubHelp home page GithubHelp logo

tadpol / gwcfg Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 93 KB

Ansible roles and playbooks for configuring little linux boxes for IoT (BeagleBone and Raspberry PI)

License: MIT License

Dockerfile 21.55% Shell 6.90% Jinja 71.55%
ansible beaglebone-black raspberry-pi beaglebone iot

gwcfg's Introduction

Gateways

I have setup too many beaglebone and raspberries for IoT gateways. I did have a nice check list of each step to take, then someone showed me ansible.

So working towards all of that automation.

Running

I don't install ansible on my machine, but instead run it inside a Docker container.

Things go a lot smoother if you have put public keys in place.

ssh-copy-id -i ~/.ssh/id_rsa $NODES

Via Docker

  1. Build: docker build -t local/ansible-playbook:latest .
  2. Run with: ansible_helper

Headless Pi

Currently, if you want to setup a Raspberry Pi without keyboard or monitor do the following:

  • Copy image to SD Card
  • Mount it
  • Add empty file to the SD Card named ssh
  • Add a file named wpa_supplicant.conf with the following:
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
scan_ssid=1
ssid="$your_wifi_ssid"
psk="$your_wifi_password"
}
  • There appears to be support for a firstuse.sh script, but it also appears to be undocumented.
  • Eject SD Card from computer
  • Insert to Raspberry PI
  • Boot device
  • Wait a minute or three
  • ssh [email protected].; default password
  • sudo raspi-config
  • Change hostname and passwords and resize the filesystem
  • Reboot

Or using Raspberry Pi Imager

  1. Press ⌘⇧X (or ⌃⇧X if not Mac) to access the advanced options.
  2. Check ssh box and WiFi setup and change hostname
  3. Write image

gwcfg's People

Contributors

tadpol avatar fiveohhh avatar

Stargazers

jcccb avatar Will Charlton avatar

Watchers

James Cloos avatar  avatar Will Charlton avatar

Forkers

fiveohhh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.