#!/bin/sh OS=$(grep -i ^id= /etc/os-release | cut -d= -f2) ############################# echo echo "################################" echo "# Checking Internet Connection #" echo "################################" echo echo sleep 2 if ! ping -q -c 4 archlinux.org >/dev/null;then echo "YOU MUST HAVE INTERNET CONNECTION TO RUN THIS SCRIPT" && exit fi case "$OS" in "artix") pacman-key --init pacman-key --populate artix esac clear ############################# echo echo "######################" echo "# Set Your Variables #" echo "######################" echo echo sleep 2 # Reading Variables ## Reading Keyboard Layout printf "What is your Keyboard Layout (e.g. us)\n-> " && read -r KEYMAP && loadkeys "$KEYMAP" || exit clear ## Reading Locale printf "Select your locale (e.g. en_US)\n-> " && read -r LOCALE clear ## Reading Desired Username printf "Select your Username (Use only lowercase letters and numbers)\n-> " && read -r USERNAME clear ## Reading Desired Hostname printf "Select your Hostname (You can use Uppercase and lowercase letters, numbers and hypens)\n-> " && read -r HOSTNAME clear ## Reading Desired Timezone printf "Select the Timezone that better suits you...\nPress ENTER to continue and then press \"Q\" to exit" && read -r TIMEZONE find /usr/share/zoneinfo -type d | grep -vi zoneinfo$ | grep -vi etc | xargs -I {} find {} -type f | sed s:"/usr/share/zoneinfo/"::g | less -i printf "Which Timezone? (eg America/New_York)\n-> " && read -r TIMEZONE clear ## Reading Kernel printf "Select your kernel:\n1)linux\n2)linux-hardened\n3)linux-lts [Recommended](Default)\n4)linux-zen\n-> " && read -r KERNEL case "$KERNEL" in 1) KERNEL="linux" ;; 2) KERNEL="linux-hardened" ;; 4) KERNEL="linux-zen" ;; *) KERNEL="linux-lts" esac clear ## Reading Init System case "$OS" in "artix") printf "Select your init system:\n1) dinit\n2) OpenRC (default)\n3) Runit\n-> " && read -r INIT case "$INIT" in 1) INIT="dinit" ;; 3) INIT="runit" ;; *) INIT="openrc" esac ;; *) INIT="systemd" esac ############################# echo echo "#####################" echo "# Disk Partitioning #" echo "#####################" echo echo sleep 2 #Partitioning HDD ## Reading Main Drive lsblk printf "What is your drive (e.g. sda)\n-> " && read -r SDX clear ## Partitionier cfdisk /dev/"$SDX" clear ## Disk Encryption lsblk printf "Do you wish to use any encrypted parition? [Y/n]" && read -r ENCRYPTED if [ "$ENCRYPTED" != "N" ] && [ "$ENCRYPTED" != "n" ]; then pacman --noconfirm --needed -Sy cryptsetup clear fi clear ## Mounting Partitions echo "Mount your partitions to /mnt and wipe them if necessary" echo "After partitioning, type \"exit\" to go back to the script" echo "" echo "" lsblk echo "" bash clear ############################# echo echo "#######################" echo "# Bootstraping System #" echo "#######################" echo echo sleep 2 # Sorting Servers echo "Downloading rankmirror script for pacman" pacman -Sy --noconfirm --needed pacman-contrib clear echo "Updating Repos..." mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup grep -vi ^# /etc/pacman.d/mirrorlist.backup | rankmirrors - > /etc/pacman.d/mirrorlist clear # Bootstrapping Filesystem echo "Bootstrapping Filesystem" if [ "$OS" = "artix" ]; then case "$INIT" in "dinit") basestrap /mnt base dinit elogind-dinit "$KERNEL" ;; "runit") basestrap /mnt base runit elogind-runit "$KERNEL" ;; *) basestrap /mnt base openrc elogind-openrc "$KERNEL" esac fstabgen -U /mnt >> /mnt/etc/fstab else pacstrap /mnt base "$KERNEL" genfstab -U /mnt >> /mnt/etc/fstab fi clear ############################# echo echo "######################" echo "# Configuring System #" echo "######################" echo echo sleep 2 if [ "$OS" = "artix" ]; then CHROOTC="artix-chroot /mnt /bin/bash -c" CHROOT="artix-chroot /mnt /bin/bash" else CHROOTC="arch-chroot /mnt /bin/bash -c" CHROOT="arch-chroot /mnt /bin/bash" fi ## Managing Localtime and Timezone rm -rf /mnt/etc/localtime $CHROOTC "ln -sf /usr/share/zoneinfo/$TIMEZONE /etc/localtime" ## Managing Users and Passwords $CHROOTC "useradd -m -g users -G wheel $USERNAME" echo "Enter a password for $USERNAME" $CHROOTC -c "passwd $USERNAME" clear echo "Enter a new password for root account" $CHROOTC -c "passwd root" clear if [ "$INIT" = "openrc" ]; then $CHROOTC "echo hostname=\"$HOSTNAME\" > /etc/conf.d/hostname" sed -i s:'keymap="us"':keymap="$KEYMAP":g /mnt/etc/conf.d/keymaps else $CHROOTC "echo $HOSTNAME > /etc/hostname" $CHROOTC "echo KEYMAP=$KEYMAP > /etc/vconsole.conf" fi $CHROOTC "echo LANG=$LOCALE.UTF-8 > /etc/locale.conf" $CHROOTC "awk 'FNR>23' /etc/locale.gen | grep $LOCALE | sed s:#::g >> /etc/locale.gen" $CHROOTC "locale-gen" clear ## Adding Encrypted Hook to Init Cpio if [ "$ENCRYPTED" != "N" ] && [ "$ENCRYPTED" != "n" ]; then $CHROOTC "pacman --noconfirm --needed -Sy cryptsetup" HOOKS=$(grep ^HOOKS /mnt/etc/mkinitcpio.conf) grep ^HOOKS /mnt/etc/mkinitcpio.conf | sed s:'block':'block encrypt':g | xargs -I {} sed -i s:"$HOOKS":{}:g /mnt/etc/mkinitcpio.conf fi ## Generating Initramfs $CHROOTC "mkinitcpio -p $KERNEL" clear ############################# echo echo "#################" echo "# Base Packages #" echo "#################" echo echo sleep 2 # Installation of Base Packages echo "Installing Base Packages..." $CHROOTC "pacman --needed -Syu base base-devel" clear # Enabling Sudo For :wheel Group $CHROOTC "sed -i s/'# %wheel ALL=(ALL:ALL) ALL'/'%wheel ALL=(ALL:ALL) ALL'/g /etc/sudoers" # Installation of Extra Base printf "Do you want to install Extra Base Packages? [Y/n]" && read -r EXTRA if [ "$EXTRA" != "N" ] && [ "$EXTRA" != "n" ]; then # Text Editor Setup printf "Select a Text Editor:\n1) emacs\n2) nano\n3) neovim\n4) vi\n5) vim\n-> " && read -r TEXT case "$TEXT" in 1) $CHROOTC "pacman --needed -S emacs" ;; 2) $CHROOTC "pacman --needed -S nano" ;; 3) $CHROOTC "pacman --needed -S neovim" ;; 4) $CHROOTC "pacman --needed -S vi" ;; 5) $CHROOTC "pacman --needed -S vim" esac clear # WiFi and Ethernet Setup printf "Do you wish to use WiFi? [Y/n]" && read -r WIFI clear if [ "$WIFI" != "N" ] && [ "$WIFI" != "n" ]; then printf "Select a Network Manager:\n1) connman\n2) network manager\n-> " && read -r NM case "$NM" in 1) $CHROOTC "pacman --noconfirm --needed -S connman wpa_supplicant" case "$INIT" in "dinit") $CHROOTC "pacman --noconfirm --needed -S connman-dinit && ln -s /etc/dinit.d/connmand /etc/dinit.d/boot.d/" ;; "openrc") $CHROOTC "pacman --noconfirm --needed -S connman-openrc && rc-update add connmand default" ;; "runit") $CHROOTC "pacman --noconfirm --needed -S connman-runit && ln -s /etc/runit/sv/connmand /etc/runit/runsvdir/default" ;; *) $CHROOTC "systemctl enable connmand" esac ;; 2) $CHROOTC "pacman --noconfirm --needed -S networkmanager" case "$INIT" in "dinit") $CHROOTC "pacman --noconfirm --needed -S networkmanager-dinit && ln -s /etc/dinit.d/NetworkManager /etc/dinit.d/boot.d/" ;; "openrc") $CHROOTC "pacman --noconfirm --needed -S networkmanager-openrc && rc-update add NetworkManager default" ;; "runit") $CHROOTC "pacman --noconfirm --needed -S networkmanager-runit && ln -s /etc/runit/sv/NetworkManager /etc/runit/runsvdir/default" ;; *) $CHROOTC "systemctl enable NetworkManager" esac esac else $CHROOTC "pacman --noconfirm --needed -S dhcpcd" case "$INIT" in "dinit") $CHROOTC "pacman --noconfirm --needed -S dhcpcd-dinit && ln -s /etc/dinit.d/dhcpcd /etc/dinit.d/boot.d/" ;; "openrc") $CHROOTC "pacman --noconfirm --needed -S dhcpcd-openrc && rc-update add dhcpcd default" ;; "runit") $CHROOTC "pacman --noconfirm --needed -S dhcpcd-runit && ln -s /etc/runit/sv/dhcpcd /etc/runit/runsvdir/default" ;; *) $CHROOTC "systemctl enable dhcpcd" esac fi clear # Installation of Base Fonts printf "Do you want to install Base Fonts Packages? [Y/n]" && read -r FONTS if [ "$FONTS" != "N" ] && [ "$FONTS" != "n" ]; then $CHROOTC "pacman --needed --noconfirm -S ttf-bitstream-vera ttf-dejavu gnu-free-fonts adobe-source-code-pro-fonts noto-fonts-cjk noto-fonts-emoji" fi clear # Installation of Proprietary Blobs printf "Do you want to install support for Proprietary Firmware? [Y/n]" && read -r BLOBS if [ "$BLOBS" != "N" ] && [ "$BLOBS" != "n" ]; then $CHROOTC "pacman --needed --noconfirm -S linux-firmware" fi clear # Installation of Audio System printf "Select an Audio Package:\n1) alsa\n2) jack\n3) pipewire\n4) pulseaudio\n-> " && read -r AUDIO case "$AUDIO" in 1) $CHROOTC "pacman --needed -S alsa-lib alsa-oss alsa-utils alsa-plugins" ;; 2) $CHROOTC "pacman --needed -S jack" ;; 3) $CHROOTC "pacman --needed -S pipewire pipewire-pulse pipewire-alsa" ;; 4) $CHROOTC "pacman --needed -S pulseaudio pavucontrol pulseaudio-alsa alsa-utils" esac clear # Installation of a Graphical Environment printf "Select a Graphical Environment:\n1) bspwm\n2) Cinnamon\n3) dwm (Requires Online Git Build)\n4) Gnome\n5) i3 [Gaps Edition]\n6) Kde\n7) LXDE\n8) LXQt\n9) Mate\n10) Openbox\n11) XFCE\n12) Xorg\n13) None\n-> " && read -r ENVIRONMENT case "$ENVIRONMENT" in 1) $CHROOTC "pacman --needed -S bspwm sxhkd" ;; 2) $CHROOTC "pacman --needed -S cinnamon nemo-fileroller gnome-terminal" ;; 3) printf "Enter your dwm build location (e.g. https://git.suckless.org/dwm)\n-> " && read -r DWM $CHROOTC "git clone $DWM /tmp/dwm && cd /tmp/dwm && make clean install && cd /" ;; 4) $CHROOTC "pacman --needed -S gnome nautilus gnome-terminal" ;; 5) $CHROOTC "pacman --needed -S i3 dmenu i3blocks" ;; 6) $CHROOTC "pacman --needed -S plasma kde-applications" ;; 7) $CHROOTC "pacman --needed -S lxde" ;; 8) $CHROOTC "pacman --needed -S lxqt" ;; 9) $CHROOTC "pacman --needed -S mate mate-extra" ;; 10) $CHROOTC "pacman --needed -S openbox obconf-qt menumaker" ;; 11) $CHROOTC "pacman --needed -S xfce4 xfce4-goodies" ;; 12) $CHROOTC "pacman --needed -S xorg xorg-apps xorg-server xorg-xinit" esac clear # Installation of Xorg and Drivers if [ "$ENVIRONMENT" -ge 1 ] && [ "$ENVIRONMENT" -le 12 ]; then $CHROOTC "pacman --needed -S xorg" clear echo "Pick your Xorg Driver:" "$CHROOTC" "pacman --needed -S xorg-drivers" fi clear # Installation of a Display Manager printf "Select your desired Display Manager\n1) Gdm\n2) Lightdm\n3) Sddm\n4) None\n-> " && read -r DISPLAY && clear case "$DISPLAY" in 1) $CHROOTC "pacman --needed -S gdm" clear case "$INIT" in "dinit") $CHROOTC "pacman --needed --noconfirm -S gdm-dinit && ln -s /etc/dinit.d/gdm /etc/dinit.d/boot.d/" ;; "openrc") $CHROOTC "pacman --needed --noconfirm -S gdm-openrc && rc-update add gdm default" ;; "runit") $CHROOTC "pacman --needed --noconfirm -S gdm-runit && ln -s /etc/runit/sv/gdm /etc/runit/runsvdir/default" ;; *) $CHROOTC "systemctl enable gdm" esac ;; 2) $CHROOTC "pacman --needed -S lightdm lightdm-gtk-greeter" clear case "$INIT" in "dinit") $CHROOTC "pacman --needed --noconfirm -S lightdm-dinit && ln -s /etc/dinit.d/lightdm /etc/dinit.d/boot.d/" ;; "openrc") $CHROOTC "pacman --needed --noconfirm -S lightdm-openrc && rc-update add lightdm default" ;; "runit") $CHROOTC "pacman --needed --noconfirm -S lightdm-runit && ln -s /etc/runit/sv/lightdm /etc/runit/runsvdir/default" ;; *) $CHROOTC "systemctl enable lightdm" esac ;; 3) $CHROOTC "pacman --needed -S sddm" clear case "$INIT" in "dinit") $CHROOTC "pacman --needed --noconfirm -S sddm-dinit && ln -s /etc/dinit.d/sddm /etc/dinit.d/boot.d/" ;; "openrc") $CHROOTC "pacman --needed --noconfirm -S sddm-openrc && rc-update add sddm default" ;; "runit") $CHROOTC "pacman --needed --noconfirm -S sddm-runit && ln -s /etc/runit/sv/sddm /etc/runit/runsvdir/default" ;; *) $CHROOTC "systemctl enable sddm" esac esac clear printf "Do you want to install GRUB? [Y/n]" && read -r GRUB if [ "$GRUB" != "N" ] && [ "$GRUB" != "n" ]; then # Installing GRUB $CHROOTC "pacman --needed -Syu grub" clear # Installation of GRUB Bootloader printf "Choose the type of boot you want to use for grub\n1) BIOS\n2) EFI\n3) Auto\n-> " && read -r GRUB clear ## Adding Encrypted Config to GRUB if [ "$ENCRYPTED" != "N" ] && [ "$ENCRYPTED" != "n" ]; then lsblk echo "" echo "" printf "Which encrypted partition should GRUB boot from? (e.g. sda1)\n-> " && read -r ENCRYPTEDPARTITION $CHROOTC "pacman --needed --noconfirm -Syu cryptsetup" sed -i s:'GRUB_CMDLINE_LINUX=""':"GRUB_CMDLINE_LINUX=\"cryptdevice=/dev/$ENCRYPTEDPARTITION\:cryptdevice\"":g /mnt/etc/default/grub sed -i s:"#GRUB_ENABLE_CRYPTODISK=y":"GRUB_ENABLE_CRYPTODISK=y":g /mnt/etc/default/grub fi case "$GRUB" in 1) $CHROOTC "grub-install --target=i386-pc /dev/$SDX" $CHROOTC "grub-mkconfig -o /boot/grub/grub.cfg" ;; 2) $CHROOTC "pacman --noconfirm --needed -S efibootmgr" $CHROOTC "grub-install --target=x86_46-efi /dev/$SDX" $CHROOTC "grub-mkconfig -o /boot/grub/grub.cfg" ;; *) $CHROOTC "grub-install /dev/$SDX" $CHROOTC "grub-mkconfig -o /boot/grub/grub.cfg" esac clear fi fi clear ############################# echo echo "##################" echo "# Extra Packages #" echo "##################" echo echo sleep 2 # Printer and Scanners printf "Do you want to install Printers & Scanners support? [Y/n]" && read -r CUPS if [ "$CUPS" != "N" ] && [ "$CUPS" != "n" ]; then $CHROOTC "pacman --needed -S cups cups-pdf hplip system-config-printer simple-scan" case "$INIT" in 1) $CHROOTC "pacman --needed --noconfirm -S cups-dinit avahi-dinit && ln -s /etc/dinit.d/cupsd /etc/dinit.d/boot.d/" ;; 2) $CHROOTC "pacman --needed --noconfirm -S cups-openrc avahi-openrc && rc-update add cupsd default && rc-update add avahi default" ;; 3) $CHROOTC "pacman --needed --noconfirm -S cups-runit avahi-runit && ln -s /etc/runit/sv/cupsd /etc/runit/runsvdir/default && ln -s /etc/runit/sv/runit /etc/runit/runsvdir/default" ;; *) $CHROOTC "systemctl enable cupsd && systemctl enable avahi" esac fi clear if [ "$OS" = "artix" ]; then printf "Do you want to install Arch Linux Repos? [Y/n]" && read -r ARCH if [ "$ARCH" != "N" ] && [ "$ARCH" != "n" ]; then echo echo "############################################" echo "# Installation of Arch Linux Support Repos #" echo "############################################" echo echo sleep 2 # Adding Arch Linux Support printf "\n[universe]\nInclude = /etc/pacman.d/mirrorlist-universe" >> /mnt/etc/pacman.conf printf "Server = https://universe.artixlinux.org/\$arch\n\nServer = https://mirror1.artixlinux.org/universe/\$arch\n\nServer = https://mirror.pascalpuffke.de/artix-universe/\$arch\n\nServer = https://artixlinux.qontinuum.space/artixlinux/universe/os/\$arch\n\nServer = https://mirror1.cl.netactuate.com/artix/universe/\$arch\n\nServer = https://ftp.crifo.org/artix-universe/" >> /mnt/etc/pacman.d/mirrorlist-universe $CHROOTC "pacman --needed --noconfirm -Syu artix-archlinux-support" printf "\n#[testing]\n#Include = /etc/pacman.d/mirrorlist-arch\n\n[extra]\nInclude = /etc/pacman.d/mirrorlist-arch\n\n[community]\nInclude = /etc/pacman.d/mirrorlist-arch\n\n#[community-testing]\n#Include = /etc/pacman.d/mirrorlist-arch" >> /mnt/etc/pacman.conf $CHROOTC "pacman-key --populate archlinux" clear fi fi if [ "$OS" = "arch" ]; then printf "Do you want to enable multilib repo? [Y/n]" && read -r MULTI if [ "$MULTI" != "N" ] && [ "$MULTI" != "n" ]; then printf "[multilib]\nSigLevel = PackageRequired\nInclude = /etc/pacman.d/mirrorlist" >> /mnt/etc/pacman.conf $CHROOTC "pacman --needed --noconfirm -Syu" fi else if [ "$OS" = "artix" ]; then if [ "$ARCH" != "N" ] && [ "$ARCH" != "n" ]; then printf "Do you want to enable multilib repo? [Y/n]" && read -r MULTI if [ "$MULTI" != "N" ] && [ "$MULTI" != "n" ]; then printf "\n[lib32]\nInclude = /etc/pacman.d/mirrorlist" >> /mnt/etc/pacman.conf $CHROOTC "pacman --needed --noconfirm -Syu lib32-artix-archlinux-support" printf "\n[multilib]\nInclude = /etc/pacman.d/mirrorlist-arch" >> /mnt/etc/pacman.conf $CHROOTC "pacman --needed --noconfirm -Syu" fi clear printf "Do you want to enable debug repos? [Y/n]" && read -r DEBUG if [ "$DEBUG" != "N" ] && [ "$DEBUG" != "n" ]; then printf "\n[system-debug]\nInclude = /etc/pacman.d/mirrorlist-debug" >> /mnt/etc/pacman.conf printf "\n[world-debug]\nInclude = /etc/pacman.d/mirrorlist-debug" >> /mnt/etc/pacman.conf printf "\n[galaxy-debug]\nInclude = /etc/pacman.d/mirrorlist-debug" >> /mnt/etc/pacman.conf printf "\n[lib32-debug]\nInclude = /etc/pacman.d/mirrorlist-debug" >> /mnt/etc/pacman.conf printf "Server = https://debuginfod.artixlinux.org/\$repo/os/\$arch" >> >> /mnt/etc/pacman.d/mirrorlist-debug $CHROOTC "pacman --needed --noconfirm -Syu" fi fi fi fi clear # Gaming Related Stuff if [ "$MULTI" != "N" ] && [ "$MULTI" != "n" ]; then printf "Do you want to install Gaming software and related dependencies? (steam, lutris, 32 bit libraries) [Y/n]" && read -r GAME if [ "$GAME" != "N" ] && [ "$GAME" != "n" ]; then $CHROOTC "pacman --needed -S wine-staging wine-mono wine-gecko winetricks giflib lib32-giflib libpng lib32-libpng libldap lib32-libldap gnutls lib32-gnutls mpg123 lib32-mpg123 openal lib32-openal v4l-utils lib32-v4l-utils libpulse lib32-libpulse libgpg-error lib32-libgpg-error alsa-plugins lib32-alsa-plugins alsa-lib lib32-alsa-lib libjpeg-turbo lib32-libjpeg-turbo sqlite lib32-sqlite libxcomposite lib32-libxcomposite libxinerama lib32-libgcrypt libgcrypt lib32-libxinerama ncurses lib32-ncurses opencl-icd-loader lib32-opencl-icd-loader libxslt lib32-libxslt libva lib32-libva gtk3 lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs vulkan-icd-loader lib32-vulkan-icd-loader lutris steam" clear printf "Select a graphics card brand:\n1)AMD\n2)Intel\n3)NVIDIA\n-> " && read -r GPU case "$GPU" in 1) $CHROOTC "pacman --needed -S lib32-mesa vulkan-radeon lib32-vulkan-radeon vulkan-icd-loader lib32-vulkan-icd-loader" ;; 2) $CHROOTC "pacman --needed -S lib32-mesa vulkan-intel lib32-vulkan-intel vulkan-icd-loader lib32-vulkan-icd-loader" ;; 3) $CHROOTC "pacman --needed -S nvidia nvidia-utils lib32-nvidia-utils nvidia-settings vulkan-icd-loader lib32-vulkan-icd-loader" esac fi fi clear # Office Suite printf "Do you want to install LibreOffice Suite? [Y/n]" && read -r OFFICE if [ "$OFFICE" != "N" ] && [ "$OFFICE" != "n" ]; then $CHROOTC "pacman --needed -S libreoffice" fi clear # Internet Related Stuff printf "Do you want to install Internet related stuff? (firefox and transmission) [Y/n]" && read -r INTERNET if [ "$INTERNET" != "N" ] && [ "$INTERNET" != "n" ]; then $CHROOTC "pacman --needed --noconfirm -S firefox" if [ "$ENVIRONMENT" -eq 6 ] || [ "$ENVIRONMENT" -eq 8 ]; then $CHROOTC "pacman --needed --noconfirm -S transmission-qt" else $CHROOTC "pacman --needed --noconfirm -S transmission-gtk" fi fi clear # Multimedia Related Stuff printf "Do you want to install Multimedia manipulation tools? (gimp, inkscape, kdenlive, vlc) [Y/n]" && read -r MEDIA if [ "$MEDIA" != "N" ] && [ "$MEDIA" != "n" ]; then $CHROOTC "pacman --needed -S gimp kdenlive frei0r-plugins breeze-icons vlc inkscape" fi clear # AUR printf "Do you want to Enable AUR support? [Y/n] (yay)" && read -r AUR if [ "$AUR" != "N" ] && [ "$AUR" != "n" ]; then $CHROOTC "pacman --noconfirm --needed -Sy curl" $CHROOTC "sudo -u $USERNAME mkdir /home/$USERNAME/AUR && cd /home/$USERNAME/AUR && sudo -u $USERNAME curl -LO 'https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=yay' && sudo -u $USERNAME mv PKGBUILD\?h\=yay PKGBUILD && sudo -u $USERNAME makepkg --noconfirm -si && cd / && rm -rf /home/$USERNAME/AUR /home/$USERNAME/go" fi clear # Extra Programs printf "Do you want to install any extra packages not mentioned above? [Y/n]" && read -r MISSING if [ "$MISSING" != "N" ] && [ "$MISSING" != "n" ]; then printf "Type below the extra packages you want to install separated by spaces:\n-> " && read -r PACKAGES $CHROOTC "pacman --needed -S $PACKAGES" fi clear ############################# echo "###############################" echo "# Updating System Services... #" echo "###############################" echo echo sleep 2 printf "Do you want to Disable internal system beep? [Y/n]" && read -r BEEP if [ "$BEEP" != "N" ] && [ "$BEEP" != "n" ]; then $CHROOTC "echo "blacklist pcspkr" > /mnt/etc/modprobe.d/nobeep.conf" fi clear $CHROOTC "pacman -Syyuu" clear $CHROOTC "pacman --noconfirm -Scc" clear ############################# echo "###########" echo "# DONE :) #" echo "###########" echo " " echo "Installation Complete" printf "Do you wish to do any changes before rebooting? [Y/n]" && read -r CHANGES if [ "$CHANGES" != "N" ] && [ "$CHANGES" != "n" ]; then $CHROOT fi clear echo "System will reboot in a second" reboot