lk/distros/arch/arch_pi_install.md

64 lines
1.1 KiB
Markdown
Raw Normal View History

2022-01-16 18:20:39 +00:00
---
title: "arch_pi_install"
tags: [ "Documentation", "distros" ]
---
2020-01-02 00:04:35 +00:00
# Initial Setup
<!-- modified since testing
-->
Some of this needs executed as root, so it's probably easier to do the whole things as root.
> fdisk /dev/sdX
o,n,t,c
> mkfs.vfat /dev/sdX1
> mkdir boot
> mount /dev/sdX1 boot
Create and mount the ext4 filesystem:
> mkfs.ext4 /dev/sdX2
> mkdir root
> mount /dev/sdX2 root
Download and extract the root filesystem (as root, not via sudo):
> wget http://archlinuxarm.org/os/ArchLinuxARM-rpi-3-latest.tar.gz
> tar zxvf ArchLinuxARM-rpi-3-latest.tar.gz -C root
> sync
Move boot files to the first partition:
2020-11-15 20:49:17 +00:00
> mv root/boot/\* boot
2020-01-02 00:04:35 +00:00
> Unmount the two partitions:
> umount boot root
2022-01-16 19:28:02 +00:00
> echo [ hostname ] > /etc/hostname
2020-01-02 00:04:35 +00:00
2022-01-16 19:28:02 +00:00
Then edit the `/etc/hosts` file.
2020-01-02 00:04:35 +00:00
```
<ip-address> <hostname.domain.org> <hostname>
2022-01-16 19:28:02 +00:00
127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhost ip6-localhost
2020-01-02 00:04:35 +00:00
```
# Get audio on
2022-01-16 19:28:02 +00:00
> echo dtparam=audio=on >> /boot/config.txt
Start pacman keyring.
2020-01-02 00:04:35 +00:00
2022-01-16 19:28:02 +00:00
> pacman-key --init
> pacman-key --populate archlinuxarm
2020-01-02 00:04:35 +00:00
2022-01-16 19:28:02 +00:00
> pacman -Syyu base-devel git alsa-utils xf86-video-fbdev
2020-01-02 00:04:35 +00:00
2022-01-16 19:28:02 +00:00
> timedatectl set-timezone Europe/Belgrade
2020-01-02 00:04:35 +00:00