-
-
Save antonpetrovmain/d3608bfd36fd764964d820d7d0cbc68b to your computer and use it in GitHub Desktop.
Install Arch / EndeavourOS Mac M1 Parallels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment