1
0
Fork 0
mirror of https://github.com/Luzifer/flashpi.git synced 2024-12-20 01:51:16 +00:00
No description
Find a file
Knut Ahlers 163b6021c1
Replace option set
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-12-05 20:56:48 +01:00
flash.sh Replace option set 2017-12-05 20:56:48 +01:00
interfaces.txt Initial version 2017-05-24 19:07:09 +02:00
pubkey.txt Initial version 2017-05-24 19:07:09 +02:00
README.md Initial version 2017-05-24 19:07:09 +02:00

Luzifer / flashpi

This repository contains a small helper script I built to aid myself with preparing SDCards for a Raspberry PI. There is no big magic in it and you can do everything done in here by hand but this way it's more convenient...

What is done?

  • Download latest raspbian-lite image (optional, existing image is detected)
  • Flash image to SDCard
  • Resize partition to fill the whole card
  • Write /etc/network/interfaces file to enable WiFi with preconfigured password (see interfaces.txt)
  • Write SSH key (see pubkey.txt)
  • Enable SSHd on the PI

Usage

The script will only work on Linux machines using the root user!

  • Insert SDCard and find its mount point using fdisk -l
  • Edit interfaces.txt and pubkey.txt
  • Start flash process:
    ./flash.sh <hostname of your new PI> <device of the SDCard>