Skip to content

Latest commit

 

History

History
executable file
·
77 lines (74 loc) · 2.99 KB

File metadata and controls

executable file
·
77 lines (74 loc) · 2.99 KB

AstroPi Installation instructions

  1. Follow installation instructions here: https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-4
    1. Format SD card fdisk /dev/sdX
      1. Type o. This will clear out any partitions on the drive.
      2. Type p to list partitions. There should be no partitions left.
      3. Type n, then p for primary, 1 for the first partition on the drive, press ENTER to accept the default first sector, then type +200M for the last sector.
      4. Type t, then c to set the first partition to type W95 FAT32 (LBA).
      5. Type n, then p for primary, 2 for the second partition on the drive, and then press ENTER twice to accept the default first and last sector.
      6. Write the partition table and exit by typing w.
    2. Create and mount FAT filesystem
      mkfs.vfat /dev/sdX1
      mkdir boot
      mount /dev/sdX1 boot
      
    3. Create and mount the ext4 filesystem:
      mkfs.ext4 /dev/sdX2
      mkdir root
      mount /dev/sdX2 root
      
    4. Download and extract the root filesystem (as root, not via sudo):
      wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz
      bsdtar -xpf ArchLinuxARM-rpi-armv7-latest.tar.gz -C root
      sync
      
    5. Move boot files to the first partition:
      mv root/boot/* boot
      
    6. Run this to correctly setup boot from sd card
      sed -i 's/mmcblk0/mmcblk1/g' root/etc/fstab
      
    7. Unmount the two partitions:
      umount boot root
      
  2. Unplug the SD card and plug it into your raspberry pi and boot it up.
  3. You can now connect through ssh using user alarm and password alarm. Root password is root
  4. Initialize the pacman keyring and populate the Arch Linux ARM package signing keys:
    pacman-key --init
    pacman-key --populate archlinuxarm
    
  5. Follow chapter 3 "Configure the system" here: Arch Linux Instructions starting from "Time zone"
  6. Repeat steps above for the attached USB SSD directly from the Raspberry PI
  7. Replace boot device in fstab: sed -i 's/mmcblk0p/sda/g' root/etc/fstab
  8. Run these commands:
umount /mnt/boot
mount /dev/sda1 /mnt/root/boot
arch-chroot /mnt/root
pacman -Syu
vi /etc/mkinitcpio.conf
# modify mkinitcpio.conf so MODULES=(pcie_brcmstb) to enbale boot from USB device
mkinitcpio -P
exit
poweroff

  1. remove micro sd card and reboot (should now boot from USB SSD)
  2. Install necessary software: pacman -Sy vim git sudo
  3. Setup your personal user with password useradd -m <username>, change the root password to something more secure and delete the existing user userdel alarm -f
  4. Adjust /etc/sudoers to whitelist your personal user
  5. Close ssh session and login with your new personal user
  6. Clone and install the dotfiles:
    1. mkdir packages
    2. cd packages
    3. git clone https://github.com/RononDex/dotfiles
    4. cd dotfiles
    5. bash ./profile-enabler.sh
    6. Select the AstroPi profile