Howto install alpine raspberrypi5: Difference between revisions

From Vidalinux Wiki
Jump to navigation Jump to search
Created page with "= install tools = * archlinux install the following tools: pacman -Sy util-linux parted wget rsync coreutils dosfstools e2fsprogs git --noconfirm = create alpine image = clone vidalinux alpine git repo: git clone https://github.com/vidalinux/alpine.git"
 
 
(10 intermediate revisions by the same user not shown)
Line 2: Line 2:
* archlinux
* archlinux
install the following tools:
install the following tools:
  pacman -Sy util-linux parted wget rsync coreutils dosfstools e2fsprogs 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:
  git clone https://github.com/vidalinux/alpine.git
  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
= references =
* 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

references