Skip to content

Instantly share code, notes, and snippets.

@maxrodrigo
Created May 10, 2021 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxrodrigo/dad6072544454986feea20677f42b07d to your computer and use it in GitHub Desktop.
Save maxrodrigo/dad6072544454986feea20677f42b07d to your computer and use it in GitHub Desktop.
Alpine Raspberry Pi Setup Answer File
# Keyboard layout and variant
KEYMAPOPTS="<KEYBOARDLAYOUT> <KEYBOARDVARIANT>"
# Hostname
HOSTNAMEOPTS="-n <HOSTNAME>"
# Network interfaces
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address <IP>
netmask <NETMASK>
gateway <GATEWAY>
"
# DNS
DNSOPTS="-d local <DNS>"
# Timezone
TIMEZONEOPTS="-z UTC"
# Proxy
PROXYOPTS="none"
# Add a random mirror for apk repository
APKREPOSOPTS="-r"
# Install OpenSSH
SSHDOPTS="-c openssh"
# NTP
NTPOPTS="-c chrony"
# Setup data disk
DISKOPTS="-m data /media/mmcblk0p1/data"
# Setup lbu config storage
LBUOPTS="mmcblk0p1"
# Setup apk cache
APKCACHEOPTS="/media/mmcblk0p1/cache"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment