arch scripts

It took a moment to work out that there is actually no way of
bootstrapping an arch environment without permanently installing things
to the host system! So we just download a live image and unpack it.

Then after that, getting erlang to work was very easy, just install it,
install zx, run. No R26 incompatibility problems, life is good!
This commit is contained in:
Jarvis Carroll
2025-06-04 17:07:45 +10:00
parent a60bcf941b
commit c2fcde0f26
9 changed files with 241 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
sudo pacman -S wget erlang erlang-wx --noconfirm
wget -q https://zxq9.com/projects/zomp/get_zx && bash get_zx
export PATH=$PATH:$HOME/bin
zx import realm install_scripts/qpq.zrf
zx import realm install_scripts/uwiger.zrf
zx run qpq-gajumine
Binary file not shown.
+23
View File
@@ -0,0 +1,23 @@
#!/bin/bash
pacman-key --init
pacman-key --populate archlinux
pacman -Sy sudo --noconfirm
# Overwrite locale setting specified before the chroot
export LANG=C
export LC_ALL=C
# Add a passwordless sudoer
useradd -m -s /bin/bash -G wheel user
passwd -d user
echo "user ALL=(ALL) NOPASSWD:ALL" > "/etc/sudoers.d/user"
chmod 0440 "/etc/sudoers.d/user"
# Copy the install scripts into their home directory
cp -r ~/install_scripts /home/user
chown -R user:user /home/user/install_scripts
# su to this new user... Or sudo -iu, since we want to pass in arguments too.
cd /home/user
sudo -iu user "$@"
Binary file not shown.