Skip to content
/ alpine-pi Public

Scripts for filling an sd-card for a raspberry pi with alpine linux

Notifications You must be signed in to change notification settings

jjtt/alpine-pi

Repository files navigation

Scripts for filling an sd-card for a raspberry pi with alpine linux and configuring it with:

  • a Let's encrypt certificate using dehydrated.io
  • lighttpd
  • openssh with public key authentication for root
  • diskless install, so the sd card is never written to
  • unless you use lbu to commit changes
  • installs updates on boot
  • sends own ip address as email just in case it changes

Usage examples

./generate-apkovl.sh hostname domain.com.invalid [email protected] smtp.server.invalid path/to/ssh/keyfile.pub www/ staging

./write-sd-card.sh /path/to/mounted/sd/card hostname.apkovl.tar.gz

web sites

The web sites to serve must be placed in a single directory given as a parameter to generate-apkovl.sh. Each web site must be placed in a separate sub directory:

  • www
    • domain1.com.invalid
      • htdocs
        • index.html
    • domain2.fi.invalid
      • htdocs
        • index.html

One of the web sites should probably be the hostname.domain.com.invalid given as a parameter. www.hostname.domain.com.invalid is redirected automatically.

Dependencies

Lots.

  • wget
  • openssh
  • bash
  • tar
  • gzip
  • ...

Missing features

  • configurable timezone
  • actual content for the website
  • static ip support
  • dynamic dns support

TODO

  • initial/etc/resolv.conf
  • initial/etc/network/interfaces

About

Scripts for filling an sd-card for a raspberry pi with alpine linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published