Giter VIP home page Giter VIP logo

doorbot-setup's Introduction

Setup Doorbot

A set of scripts to set up a DoESLiverpool DoorBot.

Structure

DoES Liverpool has three types of doorbot. Most of the basics are shared between them all, and that is all contained within the base-doorbot role. Other roles, such as the one running a web browser for doorbot1, are layered on top of that.

Steps:

  1. Install Ansible on your computer
  2. Install the latest Raspbian lite image onto a micro-SD card
  3. Boot the Raspberry Pi with the micro-SD card, while plugged into a network via Ethernet
  4. Find out the IP address of the Raspberry Pi
  • Use nmap (eg: nmap -p 22 10.0.*.* --open), router or monitor to find IP address of Pi once booted.
  1. Copy your SSH credentials onto the Pi ssh-copy-id pi@<ip-address-of-the-pi>
  2. Edit the ./hosts file so ansible knows which computer to configure. Change the IP address in it to match the one you just found out.
  3. Check you can run commands on the Pi using Ansible ansible <doorbotN> -i hosts -a "hostname" -u pi
  4. Create the hashed password file to use in a moment (if you don't already have it). At the prompt, provide the relevant password for the doorbot mkpasswd --method=sha-512 > protected_scripts/doorbot1-pwd.txt
  5. Change the SSH port and default password on the doorbot ansible-playbook ssh-config-doorbot1.yml -e pi_password=`cat protected_scripts/doorbot1-pwd.txt` -i hosts
  6. Copy protected_scripts/wpa_supplicant.conf.example to protected_scripts/wpa_supplicant.conf and update it to the correct WiFi SSID/password
  7. Populate protected_scripts/id_rsa and protected_scripts/id_rsa.pub, most likely by copying contents from an existing doorbot.
  8. Update the Pi, using the correct playbook for the doorbot you're creating, e.g. ansible-playbook doorbot1.yml -i hosts

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.