https://github.com/adammck/headless-raspbian
Create a Raspbian image with wifi and SSH
https://github.com/adammck/headless-raspbian
raspberry-pi raspbian
Last synced: about 1 year ago
JSON representation
Create a Raspbian image with wifi and SSH
- Host: GitHub
- URL: https://github.com/adammck/headless-raspbian
- Owner: adammck
- License: mit
- Created: 2017-02-05T04:36:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-09-11T01:10:15.000Z (almost 3 years ago)
- Last Synced: 2025-05-07T23:08:20.908Z (about 1 year ago)
- Topics: raspberry-pi, raspbian
- Language: Shell
- Size: 11.7 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Headless Raspbian
This is a tool to create headless Raspbian images by downloading and patching
the official ones. The only differences are:
* Hostname is set
* Wifi is set up
* SSH is enabled
* SSH pubkeys are configured (via GitHub)
* Password authentication is disabled
This is just enough to get the thing booted up and ready to provision over SSH
with Ansible or whatever. I know that I should be building proper images with
pi-gen, but this seems simpler to keep up to date.
This is only tested on my Mac, but it might work wherever Vagrant does.
## Usage
git clone https://github.com/adammck/headless-raspbian.git
cd headless-raspbian
cp vars.sh.example vars.sh
vi vars.sh
bin/run
Once the image is built, one can flash it to a micro SD card using a tool like
[Etcher](https://etcher.balena.io).
## License
MIT.