Giter Club home page Giter Club logo

pi-setup-scripts's Introduction

pi-setup-scripts

Setting a new Raspberry PI using setup scripts

Quick start - SD card

  1. Download latest version of Raspabian https://www.raspberrypi.org/downloads/raspbian/ (Buster is the available version at the time of writing this guide) - preferable the standard version (neither full nor lite) - https://downloads.raspberrypi.org/raspbian_latest

2a) Mount your SD card in linux and flash the image using _copy_image.sh (ensure you have the proper device names, usually it should be /dev/sda, but you can check using lsblk command), or by issuing command below: dd if='2020-raspabian/2020-02-13-raspbian-buster.img' of=/dev/ bs=4M conv=fsync status=progress

2b) Alternatively you can use the standard method using raspberry imager tools - https://www.raspberrypi.org/downloads/

  1. Mount the sd card partiitons (you can use _mount_sda.sh) or issue the following commands: mkdir /tmp/sda1 mkdir /tmp/sda2 sudo mount /dev/sda1 /tmp/sda1 sudo mount /dev/sda2 /tmp/sda2

Quick start - PI Setup configuration

  1. sd_01_boot.sh
  • ensure that BOOT_PATH is properly configured in the script
  • ensure that config/wpa_supplicant.conf has the right details
  1. sd_02_root.sh
  • ensure that ROOT_PATH is properly configured in the script
  • set the hostname -> HOSTNAME=mypi
  • SET_PWR_LED - setting to 1 will install a script that will turn off the red PWR LED after booting is finidhed
  1. pi_01_setup_base.sh
  • ensure that the timezone is set properly

Quick start - PI Setup execution

  1. both sd_*.sh scripts need to be executed on a mounted SD card - they will prepare the insallation, configure basic system settings and copy the PI_Setup cripts to the card
  2. once booted into the PI you can execute the pi_*.sh scripts as required - usually *additional_tools.sh is optional
  • run sudo raspi-config for standard configuration and to enable realvnc service in interfaces, cameras, etc.
  • the passwords will be changed interactively

Dropbox uploader:

Original source https://github.com/andreafabrizi/Dropbox-Uploader

  1. Obtain OAUTH token - http://99rabbits.com/get-dropbox-access-token/
  2. OAUTH token needs to be added in config/.dropbox_uploader

You can then use: dropbox upload /upload_folder/

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.