Repository to automatically setup raspberry pi img for the Gowest.
Go to file
2024-03-13 14:51:28 +01:00
scripts initial commit 2024-03-13 14:46:29 +01:00
.env.example initial commit 2024-03-13 14:46:29 +01:00
.gitignore initial commit 2024-03-13 14:46:29 +01:00
config.json initial commit 2024-03-13 14:46:29 +01:00
deno.json initial commit 2024-03-13 14:46:29 +01:00
README.md docs: ✏️ fix typo in README 2024-03-13 14:51:28 +01:00

Raspberry Pi Setup

Repository to automatically setup raspberry pi img for the Gowest.

Requirements

  • rpi-imager: Official Raspberry Pi Imager.

    Make sure rpi-imager is in your path

    # linux
    sudo apt install rpi-imager
    
    # windows
    winget install --id=RaspberryPiFoundation.RaspberryPiImager
    
    # macos
    brew install --cask raspberry-pi-imager
    
  • deno: Scripts and task runner.

    # linux
    curl -fsSL https://deno.land/install.sh | sh
    
    # windows
    winget install --id=DenoLand.Deno
    
    # macos
    brew install deno
    

Usage

  1. Fill your .env file (see .env.example) or pass env through cli.
  2. Check and/or edit the config.json file.
  3. Run deno task setup to automatically flash drive for your Gowest.

setup task run the following tasks in order:

  1. setup:prepare: Build img install script (create users, set hostname, set wifi, set ssh, ...).
  2. setup:image: Download and unzip img.
  3. setup:flash: Flash boot drive with img and install script.
  4. setup:clean: Clean all builds outputs.

Additionally you can run tasks individually if you already have done one.