EasyPi / alarmpi-image

:penguin: Build ArchLinuxARM Image for RaspberryPi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AlarmPi-Image

Build ArchLinuxARM Image for RaspberryPi

Image Info
ArchLinuxARM-rpi-latest.img.gz raspberry-pi
ArchLinuxARM-rpi-2-latest.img.gz raspberry-pi-2
ArchLinuxARM-rpi-3-latest.img.gz raspberry-pi-3

How It Works

Flash Image

  • Download image file
  • Inject SD-card to PC
  • Unmount filesystem
  • Run gunzip|dd command
  • Eject SD-card from PC
# For Pi0 and Pi1
gunzip -c ArchLinuxARM-rpi-latest.img.gz | dd of=/dev/mmcblk0 bs=4M

# For Pi2 and Pi3
gunzip -c ArchLinuxARM-rpi-2-latest.img.gz | dd of=/dev/mmcblk0 bs=4M

Expand Filesystem

  • Login via ssh (alarm:alarm)
  • Swith to root (root:root)
  • Recreate patition #2
  • Reboot system
  • Resize file system (/dev/mmcblk0p2)
fdisk /dev/mmcblk0
reboot
resize2fs /dev/mmcblk0p2

Additional Configurations

  • ssh
  • wifi
  • hostname
  • locale
  • timezone

About

:penguin: Build ArchLinuxARM Image for RaspberryPi

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%