Coder Social home page Coder Social logo

rpi-provisioning's Introduction

Description

The repository contains ansible codes for automatic setup of Raspberry Pi 3 on Raspbian OS.

Customization:
--------------
Set local timezone to CEST
Install Python packages: virtualenv
Install OS Packages: vi, tree, docker, nodejs, locate, dnsutils, dos2unix, tightvnc-server
Reomve OS Packages: wolfram-engine
Set history command to display date time format
SSH config change: PermitRootLogin_NO, AllowUsers_pi

Pre-requisite:

  • Hardware: Raspberry Pi 3
  • Operating System: Raspbian GNU/Linux 8 (jessie)
  • Softwares: Ansible 2.3.1.0 or higher, git
  • Others: Stable internet connectivity

How it works:

  • Login to RPi with user "pi" and PUTTY, to create "projects" folder: cd ~ && mkdir projects && cd projects
  • Clone the git repository: git clone https://github.com/saptadip/ansible.git
  • Go inside "ansible" directory: cd ansible
  • Add target server names/IPs in the "host" file under the group "[docker-nodes]"
  • Run the playbook: ansible-playbook rpi-setup-master-playbook.yml

Tips & Tricks

  • Most of the customization parameters are defined under "ansible/group_vars/docker-nodes.yml" file.
  • To install any additional OS package, add the package name under apt_packages_to_install variable.
  • To uninstall any additional OS package, add the package name under apt_packages_to_uninstall variable.
  • To install any additional Python package, add the package name under pip_packages_to_install variable.
  • To set a different timezone, change local_timezone variable.
  • To install different version of NodeJs, change value of nodejs_version variable.
  • To allow more users to connect through ssh to RPi, add the user name to allowed_ssh_users variable seperated by single space. Example: To allow three users with user name "user1", "user2" & "user3", set the variable to:
    allowed_ssh_users: user1 user2 user3

rpi-provisioning's People

Contributors

saptadip avatar

Watchers

Shamik Lahiri avatar

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.