This repository lets you build you build an Alpine Linux box for Raspberry Pi Model B/B+/4/Zero
Raspberry Pi
microSD card
Quality goes over quantity here!
Power Supply (5V/2.5A) with micro-USB cable
Warning! Your Raspberry Pi will not work properly without a correctly rated power supply and cable, and may result in data loss. We are not responsible if you lose any data.
https://github.com/lncm/pi-factory.git
repository on githubwpa_supplicant.conf
network={
ssid="Your Wifi SSID goes here"
key_mgmt=WPA-PSK
psk="YOUR Password goes here"
}
box.local
, or if you don't have avahi/mdns on your desktop you will need to grab the IP address from plugging in your PI to a TV or from your router.lncm
root
Note: sudo
is not installed, use su
instead. We also highly recommend that you change the password.
Note: First boot will take some time as ssh host keys are generated.
When building the image yourself you can create a wpa_supplicant.automatic.conf
file with all your wifi passwords.
You may disable several stuff by placing an empty file inside the FAT partition. This should be done before first boot
Filename | Description |
---|---|
noswap | disables SWAP generation (not recommended unless you know what you are doing!) |
noavahi | disables install for avahi-daemon / mdns discovery (not recommended unless you know what you are doing!) |
nodocker | disables Docker installation |
nopython | Disables python3 installation |
notor | Disables tor installation |
You may disable swap generation by touching a file in the FAT partition called "noswap". This needs to be done the first time.
To generate a fresh image from source run ./make_img.sh
as root on a Debian, Ubuntu or Alpine system.
For convenience, we also support vagrant
to automate setting up your development VM.
Install dependencies (homebrew, virtualbox, vagrant):
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install) && \
brew install --cask virtualbox vagrant && \
git clone https://github.com/lncm/pi-factory.git && \
cd pi-factory
Create VM and generate image:
vagrant up
Rebuild image without wiping VM:
vagrant up --provision
Also useful:
vagrant ssh
vagrant halt
vagrant destroy -f
brew cask install vagrant-manager
(optional menu-bar utility)If you are having problems, please create an issue
Bug reports, pull-requests and suggestions are very welcome!
You may run git tag -v RELEASENAME
on any signed tags.
The project is licensed under the permissive Apache 2.0 license.