diff --git a/archtitus.sh b/archtitus.sh index afed5fa..f30f175 100755 --- a/archtitus.sh +++ b/archtitus.sh @@ -12,14 +12,16 @@ CONFIGS_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd set +a echo -ne " ------------------------------------------------------------------------- + █████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗ ██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝ ███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗ ██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║ ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ + ------------------------------------------------------------------------- - Automated Arch Linux Installer + Automated Arch Linux Installer ------------------------------------------------------------------------- Scripts are in directory named ArchTitus " @@ -35,14 +37,17 @@ echo -ne " echo -ne " ------------------------------------------------------------------------- + █████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗ ██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝ ███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗ ██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║ ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ + ------------------------------------------------------------------------- - Automated Arch Linux Installer + Automated Arch Linux Installer ------------------------------------------------------------------------- - Done - Please Eject Install Media and Reboot + Done - Please Eject Install Media and Reboot + " diff --git a/scripts/0-preinstall.sh b/scripts/0-preinstall.sh index 63af03a..d53cf53 100755 --- a/scripts/0-preinstall.sh +++ b/scripts/0-preinstall.sh @@ -1,11 +1,13 @@ #!/usr/bin/env bash #------------------------------------------------------------------------- +# # █████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗ # ██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝ # ███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗ # ██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║ # ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║ # ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ +# #------------------------------------------------------------------------- #github-action genshdoc # @@ -13,14 +15,16 @@ # @brief Contains the steps necessary to configure and pacstrap the install to selected drive. echo -ne " ------------------------------------------------------------------------- + █████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗ ██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝ ███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗ ██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║ ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ + ------------------------------------------------------------------------- - Automated Arch Linux Installer + Automated Arch Linux Installer ------------------------------------------------------------------------- Setting up mirrors for optimal download @@ -36,20 +40,20 @@ pacman -S --noconfirm --needed reflector rsync grub cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup echo -ne " ------------------------------------------------------------------------- - Setting up $iso mirrors for faster downloads + Setting up $iso mirrors for faster downloads ------------------------------------------------------------------------- " reflector -a 48 -c $iso -f 5 -l 20 --sort rate --save /etc/pacman.d/mirrorlist mkdir /mnt &>/dev/null # Hiding error message if any echo -ne " ------------------------------------------------------------------------- - Installing Prerequisites + Installing Prerequisites ------------------------------------------------------------------------- " pacman -S --noconfirm --needed gptfdisk btrfs-progs glibc echo -ne " ------------------------------------------------------------------------- - Formating Disk + Formating Disk ------------------------------------------------------------------------- " umount -A --recursive /mnt # make sure everything is unmounted before we start @@ -69,7 +73,7 @@ partprobe ${DISK} # reread partition table to ensure it is correct # make filesystems echo -ne " ------------------------------------------------------------------------- - Creating Filesystems + Creating Filesystems ------------------------------------------------------------------------- " # @description Creates the btrfs subvolumes. @@ -148,7 +152,7 @@ if ! grep -qs '/mnt' /proc/mounts; then fi echo -ne " ------------------------------------------------------------------------- - Arch Install on Main Drive + Arch Install on Main Drive ------------------------------------------------------------------------- " pacstrap /mnt base base-devel linux linux-firmware vim nano sudo archlinux-keyring wget libnewt --noconfirm --needed @@ -163,7 +167,7 @@ echo " cat /mnt/etc/fstab echo -ne " ------------------------------------------------------------------------- - GRUB BIOS Bootloader Install & Check + GRUB BIOS Bootloader Install & Check ------------------------------------------------------------------------- " if [[ ! -d "/sys/firmware/efi" ]]; then @@ -173,7 +177,7 @@ else fi echo -ne " ------------------------------------------------------------------------- - Checking for low memory systems <8G + Checking for low memory systems <8G ------------------------------------------------------------------------- " TOTAL_MEM=$(cat /proc/meminfo | grep -i 'memtotal' | grep -o '[[:digit:]]*') @@ -191,6 +195,6 @@ if [[ $TOTAL_MEM -lt 8000000 ]]; then fi echo -ne " ------------------------------------------------------------------------- - SYSTEM READY FOR 1-setup.sh + SYSTEM READY FOR 1-setup.sh ------------------------------------------------------------------------- " diff --git a/scripts/1-setup.sh b/scripts/1-setup.sh index 6ad2f93..f67e7bb 100755 --- a/scripts/1-setup.sh +++ b/scripts/1-setup.sh @@ -5,28 +5,30 @@ # @brief Configures installed system, installs base packages, and creates user. echo -ne " ------------------------------------------------------------------------- + █████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗ ██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝ ███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗ ██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║ ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ + ------------------------------------------------------------------------- - Automated Arch Linux Installer - SCRIPTHOME: ArchTitus + Automated Arch Linux Installer + SCRIPTHOME: ArchTitus ------------------------------------------------------------------------- " source $HOME/ArchTitus/configs/setup.conf echo -ne " ------------------------------------------------------------------------- - Network Setup + Network Setup ------------------------------------------------------------------------- " pacman -S --noconfirm --needed networkmanager dhclient systemctl enable --now NetworkManager echo -ne " ------------------------------------------------------------------------- - Setting up mirrors for optimal download + Setting up mirrors for optimal download ------------------------------------------------------------------------- " pacman -S --noconfirm --needed pacman-contrib curl @@ -36,9 +38,9 @@ cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak nc=$(grep -c ^processor /proc/cpuinfo) echo -ne " ------------------------------------------------------------------------- - You have " $nc" cores. And - changing the makeflags for "$nc" cores. Aswell as - changing the compression settings. + CPU has "$nc" cores + Changing makeflags for "$nc" cores + Changing the compression settings accordingly ------------------------------------------------------------------------- " TOTAL_MEM=$(cat /proc/meminfo | grep -i 'memtotal' | grep -o '[[:digit:]]*') @@ -48,7 +50,7 @@ sed -i "s/COMPRESSXZ=(xz -c -z -)/COMPRESSXZ=(xz -c -T $nc -z -)/g" /etc/makepkg fi echo -ne " ------------------------------------------------------------------------- - Setup Language to US and set locale + Setup Language to US and set locale ------------------------------------------------------------------------- " sed -i 's/^#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen @@ -73,7 +75,7 @@ pacman -Sy --noconfirm --needed echo -ne " ------------------------------------------------------------------------- - Installing Base System + Installing Base System ------------------------------------------------------------------------- " # sed $INSTALL_TYPE is using install type to check for MINIMAL installation, if it's true, stop @@ -91,7 +93,7 @@ if [[ ! $DESKTOP_ENV == server ]]; then fi echo -ne " ------------------------------------------------------------------------- - Installing Microcode + Installing Microcode ------------------------------------------------------------------------- " # determine processor type and install microcode @@ -108,7 +110,7 @@ fi echo -ne " ------------------------------------------------------------------------- - Installing Graphics Drivers + Installing Graphics Drivers ------------------------------------------------------------------------- " # Graphics Drivers find and install @@ -165,7 +167,7 @@ echo "password=${password,,}" >> ${HOME}/ArchTitus/configs/setup.conf fi echo -ne " ------------------------------------------------------------------------- - Adding User + Adding User ------------------------------------------------------------------------- " if [ $(whoami) = "root" ]; then @@ -195,6 +197,6 @@ if [[ ${FS} == "luks" ]]; then fi echo -ne " ------------------------------------------------------------------------- - SYSTEM READY FOR 2-user.sh + SYSTEM READY FOR 2-user.sh ------------------------------------------------------------------------- " diff --git a/scripts/2-user.sh b/scripts/2-user.sh index 8e60e6f..44b4c58 100755 --- a/scripts/2-user.sh +++ b/scripts/2-user.sh @@ -5,18 +5,19 @@ # @brief User customizations and AUR package installation. echo -ne " ------------------------------------------------------------------------- + █████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗ ██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝ ███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗ ██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║ ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ -------------------------------------------------------------------------- - Automated Arch Linux Installer - SCRIPTHOME: ArchTitus -------------------------------------------------------------------------- -Installing AUR Softwares +------------------------------------------------------------------------- + Automated Arch Linux Installer + SCRIPTHOME: ArchTitus +------------------------------------------------------------------------- + AUR Packages Install " source $HOME/ArchTitus/configs/setup.conf diff --git a/scripts/3-post-setup.sh b/scripts/3-post-setup.sh index c31cdab..4c957b3 100755 --- a/scripts/3-post-setup.sh +++ b/scripts/3-post-setup.sh @@ -5,19 +5,20 @@ # @brief Finalizing installation configurations and cleaning up after script. echo -ne " ------------------------------------------------------------------------- + █████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗ ██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝ ███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗ ██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║ ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ -------------------------------------------------------------------------- - Automated Arch Linux Installer - SCRIPTHOME: ArchTitus -------------------------------------------------------------------------- -Final Setup and Configurations -GRUB EFI Bootloader Install & Check +------------------------------------------------------------------------- + Automated Arch Linux Installer + SCRIPTHOME: ArchTitus +------------------------------------------------------------------------- + Final Setup and Configurations + GRUB EFI Bootloader: Install & Check " source ${HOME}/ArchTitus/configs/setup.conf @@ -27,7 +28,7 @@ fi echo -ne " ------------------------------------------------------------------------- - Creating (and Theming) Grub Boot Menu + Creating (and Theming) Grub Boot Menu ------------------------------------------------------------------------- " # set kernel parameter for decrypting the drive @@ -56,7 +57,7 @@ echo -e "All set!" echo -ne " ------------------------------------------------------------------------- - Enabling (and Theming) Login Display Manager + Enabling (and Theming) Login Display Manager ------------------------------------------------------------------------- " if [[ ${DESKTOP_ENV} == "kde" ]]; then @@ -90,7 +91,7 @@ fi echo -ne " ------------------------------------------------------------------------- - Enabling Essential Services + Enabling Essential Services ------------------------------------------------------------------------- " systemctl enable cups.service @@ -112,7 +113,7 @@ echo " Avahi enabled" if [[ "${FS}" == "luks" || "${FS}" == "btrfs" ]]; then echo -ne " ------------------------------------------------------------------------- - Creating Snapper Config + Creating Snapper Config ------------------------------------------------------------------------- " @@ -147,7 +148,7 @@ echo 'Plymouth theme installed' echo -ne " ------------------------------------------------------------------------- - Cleaning + Cleaning ------------------------------------------------------------------------- " # Remove no password sudo rights diff --git a/scripts/startup.sh b/scripts/startup.sh index 98bba69..378a46a 100755 --- a/scripts/startup.sh +++ b/scripts/startup.sh @@ -137,15 +137,17 @@ logo () { # This will be shown on every set as user is progressing echo -ne " ------------------------------------------------------------------------- - █████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗ -██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝ -███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗ -██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║ -██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║ -╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ------------------------------------------------------------------------- - Please select presetup settings for your system ------------------------------------------------------------------------- + + █████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗ + ██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝ + ███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗ + ██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║ + ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║ + ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ + +------------------------------------------------------------------------- + Please select presetup settings for your system +------------------------------------------------------------------------- " } # @description This function will handle file systems. At this movement we are handling only @@ -240,9 +242,9 @@ esac diskpart () { echo -ne " ------------------------------------------------------------------------ - THIS WILL FORMAT AND DELETE ALL DATA ON THE DISK - Please make sure you know what you are doing because - after formating your disk there is no way to get data back + THIS WILL FORMAT AND DELETE ALL DATA ON THE DISK + Please make sure you know what you are doing because + after formating your disk there is no way to get data back ------------------------------------------------------------------------ "