-
-
Save ReturnRei/1f30b44e2aaaabe1045599562d5bc838 to your computer and use it in GitHub Desktop.
This gist is provided as an addition to my youtube video | |
https://www.youtube.com/watch?v=dKvetujHjYQ&t=737s | |
## Useful links | |
https://wiki.archlinux.org/title/Install_Arch_Linux_from_existing_Linux#Using_a_chroot_environment | |
https://archlinuxarm.org/platforms/armv8/generic | |
https://www.reddit.com/r/archlinux/comments/6kwt61/systemd_doesnt_create_machineid_during/ | |
https://arm.endeavouros.com/endeavouros-arm-install/ | |
## Get into chroot | |
mount --bind /mnt /mnt && cd /mnt && rm /mnt/etc/resolv.conf && cp /etc/resolv.conf etc && mount -t proc /proc proc && mount --make-rslave --rbind /sys sys && mount --make-rslave --rbind /dev dev && mount --make-rslave --rbind /run run | |
chroot /mnt /bin/bash | |
## Commands for install | |
pacman -Syu base linux linux-firmware vim arch-install-scripts efibootmgr networkmanager network-manager-applet dialog os-prober mtools dosfstools base-devel linux-headers | |
dbus-uuidgen > /etc/machine-id ## Fix for missing machine-id | |
genfstab / >> /etc/fstab ## Check your fstab after issuing this command to make sure there aren't other partitions | |
ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime ## This is if you're located in Europe with Paris's timezone | |
hwclock --systohc | |
vim /etc/locale.gen ## Select your locales | |
locale-gen | |
echo "LANG=en_US.UTF-8" >> /etc/locale.conf ##Assuming you want this locale | |
echo "arch" >> /etc/hostname | |
vim /etc/hosts ip hostname ## Here we use vim to modify the hosts file | |
bootctl --path=/boot install ## Here we begin setting up systemd-boot | |
systemctl enable NetworkManager | |
## For endeavourOS | |
git clone https://github.com/endeavouros-arm/install-script.git | |
### Configs | |
/boot/loader/loader.conf | |
timeout 3 | |
#console-mode keep | |
default arch-* | |
--/entries.arch.conf | |
title arch | |
linux /Image | |
initrd /initramfs-linux.img | |
options root=/dev/sdb2 rw |
Hey, although it is local to Parallels on M1, I found a good image to work with here:
pkgbuild.com/~tpowa/parallels/5.16.x/
I should recommend for you also? The best way to build ArchArm aarch64 images I believe is now archboot.
You should look at the git repository. It might simplify your guide for custom installations for many platforms, and you might have a more straightforward video.
I used the image by tpowa, and quickly booted into parallels right away with aarch64 arm. From there running the endeavouros install-scripts (also a git repository) was a quick install of endeavour os.
Final remaining step for myself is installing black arch tools over endeavour os, I updated pacman keyrings to populate archlinux archlinuxarm endeavouros blackarch.
Some manual dependencies to sort mostly python python2 ruby qt4 mingw-w64 sslyze responder donut john solidity libboost gnuradio gcc-multilib lib32-utils.
Then I should have a full EndeavourOS/BlackArch over Aarch64 ARM in Parallels on Mac M1 Mini.
I would do a YouTube myself but the download on BlackArch takes forever as it is 29GB. Oh well.
For sure consider looking at archboot. It could be a life changer for others moving forward.
tpowa made parallels incredibly easy with his image, but a Return Rei version may turn out better ;)
Cheers,
~SatoriHoshiAiko
https://gist.github.com/SatoriHoshiAiko If it doesn't work I'll make a fresh install for myself so just tell me !