Skip to content

Arch Linux Raspberry Pi image builder with SSH, user account, NTP etc

License

Notifications You must be signed in to change notification settings

benalexau/archlinux-pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

archlinux-pi

Builds a Raspberry Pi 4 Arch Linux ARM image ready to boot and become managed by Ansible. The image includes:

  • Resizing the root file system to consume the entire SD card
  • Creating a user account with passwordless sudo access
  • Adding SSH keys to that user account and enabling the daemon
  • Securing the SSH daemon (rejecting passwords, denying root login)
  • Removing the alarm user
  • Disabling the root password
  • Using DHCP assigned hostnames
  • Setup of NTP and DNS resolution
  • Installing packages used by Ansible

This repository configures the image with my username, SSH keys, timezone etc. Please edit build.sh or fork the repository to define your own settings.

Getting Started

Download the latest image created by GitHub Actions.

Alternately you can build the image locally by installing packer-builder-arm and running PACKER_LOG=1 sudo packer build archlinux-pi-rp4.json.

Write the image file to an SD card using a command such as:

sudo dd if=archlinux-pi-rp4.img of=/dev/sdd bs=4M && sync

Put the SD card in a Raspberry Pi and boot it. The system will obtain a DHCP address, after which you can SSH in as the created user.

About

Arch Linux Raspberry Pi image builder with SSH, user account, NTP etc

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages