#!/bin/bash
+# installs basic dependencies not specific to instantOS
+
echo "installing additional system software"
pacman -Sy --noconfirm
while ! pacman -S xorg --noconfirm --needed; do
dialog --msgbox "package installation failed \nplease reconnect to internet" 700 700
- reflector --latest 40 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist
+ iroot automirror && command -v reflector &&
+ reflector --latest 40 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist
+
done
+# the comments are used for parsing while building a live iso. Do not remove
+
+# install begin
while ! pacman -S --noconfirm --needed \
sudo \
lightdm \
bash \
- vim \
- openbox \
+ zsh \
xterm \
systemd-swap \
+ neofetch \
+ pulseaudio \
+ granite \
+ alsa-utils \
+ usbutils \
lightdm-gtk-greeter \
- grub; do
- dialog --msgbox "package installation failed \nplease reconnect to internet" 700 700
- reflector --latest 40 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist
+ inetutils \
+ xdg-desktop-portal-gtk \
+ xorg-xinit \
+ firefox \
+ nitrogen \
+ lshw \
+ gxkb \
+ udiskie \
+ ntfs-3g \
+ gedit \
+ ttf-liberation \
+ ttf-joypixels \
+ mpv \
+ bc \
+ gvfs-mtp \
+ exfat-utils \
+ unzip \
+ engrampa \
+ unrar \
+ p7zip \
+ xdg-user-dirs-gtk \
+ noto-fonts-emoji \
+ xf86-input-evdev \
+ xf86-input-synaptics \
+ accountsservice \
+ cups \
+ system-config-printer \
+ gnome-font-viewer \
+ grub; do # install end
+
+ sleep 10
+ command -v reflector &&
+ reflector --latest 40 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist &&
+ pacman -Sy --noconfirm
done
+
+# iso for postinstall guestadditions
+if iroot guestadditions; then
+ echo "installing virtualbox guest addidions"
+ pacman -S --noconfirm --needed virtualbox-guest-iso
+fi
+
+# optional extra packages
+if iroot packages &>/dev/null; then
+ echo "installing extra packages"
+ iroot packages | pacman -S --noconfirm --needed -
+fi
+
+if command -v systemctl; then
+ pacman -S --noconfirm --needed steam steam-native-runtime
+fi
+
+# artix packages
+if command -v sv; then
+ echo "installing additional runit packages"
+ pacman -S --noconfirm --needed lightdm-runit networkmanager-runit
+fi
+
+# auto install processor microcode
+if uname -m | grep '^x'; then
+ echo "installing microcode"
+ if lscpu | grep -i 'name' | grep -i 'amd'; then
+ echo "installing AMD microcode"
+ pacman -S --noconfirm --needed amd-ucode
+ elif lscpu | grep -i 'name' | grep -i 'intel'; then
+ echo "installing Intel microcode"
+ pacman -S --noconfirm --needed intel-ucode
+ fi
+fi