Howto install alpine raspberrypi5: Difference between revisions
Jump to navigation
Jump to search
Mandulete1 (talk | contribs) |
Mandulete1 (talk | contribs) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
install the following tools: | install the following tools: | ||
pacman -Sy util-linux parted wget rsync coreutils dosfstools e2fsprogs qemu-user-static git --noconfirm | pacman -Sy util-linux parted wget rsync coreutils dosfstools e2fsprogs qemu-user-static git --noconfirm | ||
register the qemu-aarch64-static as an arm interpreter in the kernel: | |||
curl -ko /usr/local/bin/binfmt_manager https://raw.githubusercontent.com/mikkeloscar/binfmt-manager/master/binfmt_manager | |||
chmod +x /usr/local/bin/binfmt_manager | |||
binfmt_manager register aarch64 | |||
= create alpine image = | = create alpine image = | ||
clone vidalinux alpine git repo: | clone vidalinux alpine git repo: | ||
Line 9: | Line 14: | ||
create alpine image stage1: | create alpine image stage1: | ||
./create_image_from_scratch1.sh | ./create_image_from_scratch1.sh | ||
for the next step you can modify the following variables on create_image_from_scratch2.sh: | |||
user=linus # normal username | |||
pass=password # password used for normal username and root user | |||
desktop=lxqt # desktop environment | |||
rpi5=true # if you're using a raspberrypi 5 this most be true, if not then false | |||
now procced with stage2: | now procced with stage2: | ||
./create_image_from_scratch2.sh | ./create_image_from_scratch2.sh | ||
= copy image to sdcard = | = copy image to sdcard = | ||
identify sdcard in your computer: | identify sdcard in your computer: | ||
Line 18: | Line 29: | ||
now use raspimg script to copy img to sdcard: | now use raspimg script to copy img to sdcard: | ||
./raspimg copyimg alpine-raspberrypi-5-2025-07-31.img | ./raspimg copyimg alpine-raspberrypi-5-2025-07-31.img | ||
= boot alpine on raspberrypi = | |||
to expand sdcard open terminal and execute: | |||
sudo expand-sd | |||
= references = | = references = | ||
* https://wiki.alpinelinux.org/wiki/Comparison_with_other_distros | * https://wiki.alpinelinux.org/wiki/Comparison_with_other_distros | ||
* https://wiki.alpinelinux.org/wiki/Setup-desktop |
Latest revision as of 14:30, 31 July 2025
install tools
- archlinux
install the following tools:
pacman -Sy util-linux parted wget rsync coreutils dosfstools e2fsprogs qemu-user-static git --noconfirm
register the qemu-aarch64-static as an arm interpreter in the kernel:
curl -ko /usr/local/bin/binfmt_manager https://raw.githubusercontent.com/mikkeloscar/binfmt-manager/master/binfmt_manager chmod +x /usr/local/bin/binfmt_manager binfmt_manager register aarch64
create alpine image
clone vidalinux alpine git repo:
git clone https://github.com/vidalinux/alpine.git cd alpine
create alpine image stage1:
./create_image_from_scratch1.sh
for the next step you can modify the following variables on create_image_from_scratch2.sh:
user=linus # normal username pass=password # password used for normal username and root user desktop=lxqt # desktop environment rpi5=true # if you're using a raspberrypi 5 this most be true, if not then false
now procced with stage2:
./create_image_from_scratch2.sh
copy image to sdcard
identify sdcard in your computer:
fdisk -l
other option to identify sdcard is:
dmesg
now use raspimg script to copy img to sdcard:
./raspimg copyimg alpine-raspberrypi-5-2025-07-31.img
boot alpine on raspberrypi
to expand sdcard open terminal and execute:
sudo expand-sd