Code Monkey home page Code Monkey logo

pi-gen-configurator's Introduction

pi-gen-configurator

A tool that lets you configure images for Raspberry Pi. The script will clone RPi-Distro/pi-gen, which is an official tool to create the raspberrypi.org Raspbian images. Then the script will ask for some parameters and make an image.

Usage

You can run: ./pi-gen-configurator.py --help to see the up-to-date parameters that can be set.

Parameters can be set either throught command line or they will be asked during the build.

For example we can make an image using the following command (password and passphrase will be asked during the build):

./pi-gen-configurator.py --hostname "raspberry" --username pi \
  --country-code GB --ssid "WiFi" --authtoken "ngrok_auth_token" \
  --locale "en_GB.UTF-8" --timezone "Europe/London" \
  --keymap gb --layout "English (GB)"

Parameters

The following parameters can be set either using command line or during the build:

  • -o HOSTNAME or --hostname HOSTNAME to set hostname
  • -u USERNAME or --username USERNAME to set username
  • -p PASSWORD or --password PASSWORD to set user password
  • -c COUNTRY_CODE or --country-code COUNTRY_CODE WiFi Country Code (can be found at https://en.wikipedia.org/wiki/ISO_3166-1)
  • -s SSID or --ssid SSID to set WiFi SSID
  • -w PASSPHRASE or --passphrase PASSPHRASE WiFi Passphrase
  • --skip-ngrok skip ngrok
  • -a AUTHTOKEN or --authtoken AUTHTOKEN to set ngrok auth token
  • -l LOCALE or --locale LOCALE to set locale (e.g. en_US.UTF-8)
  • -t TIMEZONE or --timezone TIMEZONE to set timezone (e.g. America/New_York, can be found at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
  • -k KEYMAP or --keymap KEYMAP to set keyboard keymap (gb, us, etc.)
  • -y LAYOUT or --layout LAYOUT to set keyboard layout (English (US), English (UK), etc.)

Outputs

After build finishes, its artifacts can be found at ./artifacts directory. build.log containing logs of the build will be placed in root directory.

pi-gen-configurator's People

Contributors

dependabot[bot] avatar pruh avatar

Watchers

 avatar  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.