Howto install archlinuxarm raspberrypi5: Difference between revisions
Mandulete1 (talk | contribs) No edit summary |
Mandulete1 (talk | contribs) |
||
Line 54: | Line 54: | ||
= desktop environment = | = desktop environment = | ||
install xorg: | install xorg: | ||
pacman -Sy --noconfirm alsa-utils alsa-oss xorg xorg-server xf86-video-fbdev xorg-xrefresh adobe-source-han-sans-cn-fonts ttf-dejavu ttf-bitstream-vera wqy-zenhei ttf-arphic-ukai ttf-arphic-uming opendesktop-fonts ttf-inconsolata ttf-ubuntu-font-family adobe-source-code-pro-fonts | pacman -Sy --noconfirm alsa-utils alsa-oss xorg xorg-server xf86-video-fbdev xorg-xrefresh adobe-source-han-sans-cn-fonts ttf-dejavu ttf-bitstream-vera wqy-zenhei ttf-arphic-ukai ttf-arphic-uming opendesktop-fonts ttf-inconsolata ttf-ubuntu-font-family adobe-source-code-pro-fonts xorg-xclock xterm xorg-twm | ||
install xfce4: | install xfce4: | ||
pacman -Sy --noconfirm xfce4 xfce4-goodies lightdm-gtk-greeter accountsservice gvfs gvfs-mtp ntfs-3g exfat-utils p7zip file-roller fcitx fcitx-configtool fcitx-googlepinyin fcitx-cloudpinyin fcitx-gtk2 fcitx-gtk3 network-manager-applet gnome-keyring pavucontrol pavucontrol-qt pulseaudio-alsa | pacman -Sy --noconfirm xfce4 xfce4-goodies lightdm-gtk-greeter accountsservice gvfs gvfs-mtp ntfs-3g exfat-utils p7zip file-roller fcitx fcitx-configtool fcitx-googlepinyin fcitx-cloudpinyin fcitx-gtk2 fcitx-gtk3 network-manager-applet gnome-keyring pavucontrol pavucontrol-qt pulseaudio-alsa |
Revision as of 15:02, 21 February 2024
download images
download raspios image:
wget https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2023-12-06/2023-12-05-raspios-bookworm-arm64.img.xz
download archlinux-arm-aarch64 image:
wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz
decompress raspios image:
xz -d 2023-12-05-raspios-bookworm-arm64.img.xz
change raspios image name:
mv 2023-12-05-raspios-bookworm-arm64.img $(date +%F)-archlinux-aarch64.img
chroot with qemu
use qemu-user-static to interpret the arm instructions in the chroot:
pacman -Sy qemu-user-static --noconfirm
install multipath-tools:
pacman -S multipath-tools
script to mount and umount raspberrypi image:
curl -ko ./raspimg https://raw.githubusercontent.com/vidalinux/raspi/main/raspimg
mount image to /mnt/temp:
./raspimg mount 2024-02-20-archlinux-aarch64.img
copy the qemu-aarch64-static binary to the chroot:
cp /usr/bin/qemu-aarch64-static /mnt/temp/usr/bin/
register the qemu-aarch64-static as an arm interpreter in the kernel:
echo ':aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64-static:' > /proc/sys/fs/binfmt_misc/register
enter chroot using arch-chroot:
chroot /mnt/temp
configure image
initialize pacman:
pacman-key --init pacman-key --populate archlinuxarm
update all system:
pacman -Syuu --noconfirm
install the following packages:
pacman -Sy base-devel libnewt git wget rsync networkmanager parted multipath-tools lsof git sudo fakeroot screen --noconfirm
install expand-sd:
curl -ko /usr/local/bin/expand-sd https://raw.githubusercontent.com/vidalinux/raspi/main/expand-sd chmod +x /usr/local/bin/expand-sd
set password to alarm user:
passwd alarm echo "alarm ALL=(ALL:ALL) ALL" > /etc/sudoers.d/alarm
change root password:
passwd root
replace current kernel with aarch64:
pacman -Sy linux-rpi --noconfirm
make sure you have rpi5 support:
pacman -Ql linux-rpi | grep rpi-5
disable the following services:
systemctl disable systemd-networkd systemctl disable systemd-networkd.socket systemctl disable systemd-resolved
start and enable networkmanager:
systemctl enable NetworkManager
desktop environment
install xorg:
pacman -Sy --noconfirm alsa-utils alsa-oss xorg xorg-server xf86-video-fbdev xorg-xrefresh adobe-source-han-sans-cn-fonts ttf-dejavu ttf-bitstream-vera wqy-zenhei ttf-arphic-ukai ttf-arphic-uming opendesktop-fonts ttf-inconsolata ttf-ubuntu-font-family adobe-source-code-pro-fonts xorg-xclock xterm xorg-twm
install xfce4:
pacman -Sy --noconfirm xfce4 xfce4-goodies lightdm-gtk-greeter accountsservice gvfs gvfs-mtp ntfs-3g exfat-utils p7zip file-roller fcitx fcitx-configtool fcitx-googlepinyin fcitx-cloudpinyin fcitx-gtk2 fcitx-gtk3 network-manager-applet gnome-keyring pavucontrol pavucontrol-qt pulseaudio-alsa
enable and start lightdm:
systemctl enable lightdm
desktop auto-login
if you want to set auto-login for user alarm add the following to /etc/lightdm/lightdm.conf:
cat >> /etc/lightdm/lightdm.conf << 'EOF' [Seat:*] user-session=xcfe4 autologin-user=alarm autologin-user-timeout=0 EOF
add group autologin and user to the group:
groupadd -r autologin gpasswd -a alarm autologin
configure network
configure wireless using nmcli:
nmcli device wifi rescan nmcli device wifi list nmcli device wifi connect ssid-name --ask