One brand theme through out
This commit is contained in:
parent
40d4008405
commit
aed6172115
113
0-preinstall.sh
113
0-preinstall.sh
|
|
@ -8,10 +8,21 @@
|
||||||
# ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝
|
# ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||||
|
echo -ne "
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
█████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗
|
||||||
|
██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝
|
||||||
|
███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗
|
||||||
|
██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║
|
||||||
|
██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║
|
||||||
|
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
Automated Arch Linux Installer
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Setting up mirrors for optimal download
|
||||||
|
"
|
||||||
source setup.conf
|
source setup.conf
|
||||||
echo "-------------------------------------------------"
|
|
||||||
echo "Setting up mirrors for optimal download "
|
|
||||||
echo "-------------------------------------------------"
|
|
||||||
iso=$(curl -4 ifconfig.co/country-iso)
|
iso=$(curl -4 ifconfig.co/country-iso)
|
||||||
timedatectl set-ntp true
|
timedatectl set-ntp true
|
||||||
pacman -S --noconfirm pacman-contrib terminus-font
|
pacman -S --noconfirm pacman-contrib terminus-font
|
||||||
|
|
@ -19,38 +30,24 @@ setfont ter-v22b
|
||||||
sed -i 's/^#Para/Para/' /etc/pacman.conf
|
sed -i 's/^#Para/Para/' /etc/pacman.conf
|
||||||
pacman -S --noconfirm reflector rsync grub
|
pacman -S --noconfirm reflector rsync grub
|
||||||
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
|
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
|
||||||
echo -e "-------------------------------------------------------------------------"
|
echo -ne "
|
||||||
echo -e " █████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗"
|
-------------------------------------------------------------------------
|
||||||
echo -e " ██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝"
|
Setting up $iso mirrors for faster downloads
|
||||||
echo -e " ███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗"
|
-------------------------------------------------------------------------
|
||||||
echo -e " ██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║"
|
"
|
||||||
echo -e " ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║"
|
|
||||||
echo -e " ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝"
|
|
||||||
echo -e "-------------------------------------------------------------------------"
|
|
||||||
echo -e "-Setting up $iso mirrors for faster downloads"
|
|
||||||
echo -e "-------------------------------------------------------------------------"
|
|
||||||
|
|
||||||
reflector -a 48 -c $iso -f 5 -l 20 --sort rate --save /etc/pacman.d/mirrorlist
|
reflector -a 48 -c $iso -f 5 -l 20 --sort rate --save /etc/pacman.d/mirrorlist
|
||||||
mkdir /mnt
|
mkdir /mnt &>/dev/null # Hiding error message if any
|
||||||
|
echo -ne "
|
||||||
echo -e "\nInstalling prereqs...\n$HR"
|
-------------------------------------------------------------------------
|
||||||
|
Installing Prerequisites
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
pacman -S --noconfirm gptfdisk btrfs-progs
|
pacman -S --noconfirm gptfdisk btrfs-progs
|
||||||
|
echo -ne "
|
||||||
# echo "-------------------------------------------------"
|
-------------------------------------------------------------------------
|
||||||
# echo "-------select your disk to format----------------"
|
Formating Disk
|
||||||
# echo "-------------------------------------------------"
|
-------------------------------------------------------------------------
|
||||||
# lsblk
|
"
|
||||||
# echo "Please enter disk to work on: (example /dev/sda)"
|
|
||||||
# read DISK
|
|
||||||
# echo "THIS WILL FORMAT AND DELETE ALL DATA ON THE DISK"
|
|
||||||
# read -p "are you sure you want to continue (Y/N):" formatdisk
|
|
||||||
# case $formatdisk in
|
|
||||||
|
|
||||||
# y|Y|yes|Yes|YES)
|
|
||||||
echo "--------------------------------------"
|
|
||||||
echo -e "\nFormatting disk...\n$HR"
|
|
||||||
echo "--------------------------------------"
|
|
||||||
|
|
||||||
# disk prep
|
# disk prep
|
||||||
sgdisk -Z ${DISK} # zap all on disk
|
sgdisk -Z ${DISK} # zap all on disk
|
||||||
sgdisk -a 2048 -o ${DISK} # new gpt disk 2048 alignment
|
sgdisk -a 2048 -o ${DISK} # new gpt disk 2048 alignment
|
||||||
|
|
@ -59,12 +56,15 @@ sgdisk -a 2048 -o ${DISK} # new gpt disk 2048 alignment
|
||||||
sgdisk -n 1::+1M --typecode=1:ef02 --change-name=1:'BIOSBOOT' ${DISK} # partition 1 (BIOS Boot Partition)
|
sgdisk -n 1::+1M --typecode=1:ef02 --change-name=1:'BIOSBOOT' ${DISK} # partition 1 (BIOS Boot Partition)
|
||||||
sgdisk -n 2::+100M --typecode=2:ef00 --change-name=2:'EFIBOOT' ${DISK} # partition 2 (UEFI Boot Partition)
|
sgdisk -n 2::+100M --typecode=2:ef00 --change-name=2:'EFIBOOT' ${DISK} # partition 2 (UEFI Boot Partition)
|
||||||
sgdisk -n 3::-0 --typecode=3:8300 --change-name=3:'ROOT' ${DISK} # partition 3 (Root), default start, remaining
|
sgdisk -n 3::-0 --typecode=3:8300 --change-name=3:'ROOT' ${DISK} # partition 3 (Root), default start, remaining
|
||||||
if [[ ! -d "/sys/firmware/efi" ]]; then
|
if [[ ! -d "/sys/firmware/efi" ]]; then # Checking for bios system
|
||||||
sgdisk -A 1:set:2 ${DISK}
|
sgdisk -A 1:set:2 ${DISK}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# make filesystems
|
# make filesystems
|
||||||
echo -e "\nCreating Filesystems...\n$HR"
|
echo -ne "
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
Creating Filesystems
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
if [[ ${DISK} =~ "nvme" ]]; then
|
if [[ ${DISK} =~ "nvme" ]]; then
|
||||||
|
|
||||||
if [[ ${FS} == "btrfs" ]]; then
|
if [[ ${FS} == "btrfs" ]]; then
|
||||||
|
|
@ -93,14 +93,6 @@ btrfs subvolume create /mnt/@
|
||||||
umount /mnt
|
umount /mnt
|
||||||
mount -t btrfs -o subvol=@ -L ROOT /mnt
|
mount -t btrfs -o subvol=@ -L ROOT /mnt
|
||||||
fi
|
fi
|
||||||
# ;;
|
|
||||||
# *)
|
|
||||||
# echo "Rebooting in 3 Seconds ..." && sleep 1
|
|
||||||
# echo "Rebooting in 2 Seconds ..." && sleep 1
|
|
||||||
# echo "Rebooting in 1 Second ..." && sleep 1
|
|
||||||
# reboot now
|
|
||||||
# ;;
|
|
||||||
# esac
|
|
||||||
|
|
||||||
# mount target
|
# mount target
|
||||||
mkdir /mnt/boot
|
mkdir /mnt/boot
|
||||||
|
|
@ -114,24 +106,29 @@ if ! grep -qs '/mnt' /proc/mounts; then
|
||||||
echo "Rebooting in 1 Second ..." && sleep 1
|
echo "Rebooting in 1 Second ..." && sleep 1
|
||||||
reboot now
|
reboot now
|
||||||
fi
|
fi
|
||||||
|
echo -ne "
|
||||||
echo "--------------------------------------"
|
-------------------------------------------------------------------------
|
||||||
echo "-- Arch Install on Main Drive --"
|
Arch Install on Main Drive
|
||||||
echo "--------------------------------------"
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
pacstrap /mnt base base-devel linux linux-firmware vim nano sudo archlinux-keyring wget libnewt --noconfirm --needed
|
pacstrap /mnt base base-devel linux linux-firmware vim nano sudo archlinux-keyring wget libnewt --noconfirm --needed
|
||||||
genfstab -U /mnt >> /mnt/etc/fstab
|
genfstab -U /mnt >> /mnt/etc/fstab
|
||||||
echo "keyserver hkp://keyserver.ubuntu.com" >> /mnt/etc/pacman.d/gnupg/gpg.conf
|
echo "keyserver hkp://keyserver.ubuntu.com" >> /mnt/etc/pacman.d/gnupg/gpg.conf
|
||||||
cp -R ${SCRIPT_DIR} /mnt/root/ArchTitus
|
cp -R ${SCRIPT_DIR} /mnt/root/ArchTitus
|
||||||
cp /etc/pacman.d/mirrorlist /mnt/etc/pacman.d/mirrorlist
|
cp /etc/pacman.d/mirrorlist /mnt/etc/pacman.d/mirrorlist
|
||||||
echo "--------------------------------------"
|
echo -ne "
|
||||||
echo "--GRUB BIOS Bootloader Install&Check--"
|
-------------------------------------------------------------------------
|
||||||
echo "--------------------------------------"
|
GRUB BIOS Bootloader Install & Check
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
if [[ ! -d "/sys/firmware/efi" ]]; then
|
if [[ ! -d "/sys/firmware/efi" ]]; then
|
||||||
grub-install --boot-directory=/mnt/boot ${DISK}
|
grub-install --boot-directory=/mnt/boot ${DISK}
|
||||||
fi
|
fi
|
||||||
echo "--------------------------------------"
|
echo -ne "
|
||||||
echo "-- Check for low memory systems <8G --"
|
-------------------------------------------------------------------------
|
||||||
echo "--------------------------------------"
|
Checking for low memory systems <8G
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
TOTALMEM=$(cat /proc/meminfo | grep -i 'memtotal' | grep -o '[[:digit:]]*')
|
TOTALMEM=$(cat /proc/meminfo | grep -i 'memtotal' | grep -o '[[:digit:]]*')
|
||||||
if [[ $TOTALMEM -lt 8000000 ]]; then
|
if [[ $TOTALMEM -lt 8000000 ]]; then
|
||||||
#Put swap into the actual system, not into RAM disk, otherwise there is no point in it, it'll cache RAM into RAM. So, /mnt/ everything.
|
#Put swap into the actual system, not into RAM disk, otherwise there is no point in it, it'll cache RAM into RAM. So, /mnt/ everything.
|
||||||
|
|
@ -145,6 +142,8 @@ if [[ $TOTALMEM -lt 8000000 ]]; then
|
||||||
#The line below is written to /mnt/ but doesn't contain /mnt/, since it's just / for the sysytem itself.
|
#The line below is written to /mnt/ but doesn't contain /mnt/, since it's just / for the sysytem itself.
|
||||||
echo "/opt/swap/swapfile none swap sw 0 0" >> /mnt/etc/fstab #Add swap to fstab, so it KEEPS working after installation.
|
echo "/opt/swap/swapfile none swap sw 0 0" >> /mnt/etc/fstab #Add swap to fstab, so it KEEPS working after installation.
|
||||||
fi
|
fi
|
||||||
echo "--------------------------------------"
|
echo -ne "
|
||||||
echo "-- SYSTEM READY FOR 1-setup --"
|
-------------------------------------------------------------------------
|
||||||
echo "--------------------------------------"
|
SYSTEM READY FOR 1-setup.sh
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
92
1-setup.sh
92
1-setup.sh
|
|
@ -1,38 +1,51 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
#-------------------------------------------------------------------------
|
echo -ne "
|
||||||
# █████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗
|
-------------------------------------------------------------------------
|
||||||
# ██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝
|
█████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗
|
||||||
# ███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗
|
██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝
|
||||||
# ██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║
|
███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗
|
||||||
# ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║
|
██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║
|
||||||
# ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝
|
██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║
|
||||||
#-------------------------------------------------------------------------
|
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
Automated Arch Linux Installer
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
source setup.conf
|
source setup.conf
|
||||||
echo "--------------------------------------"
|
echo -ne "
|
||||||
echo "-- Network Setup --"
|
-------------------------------------------------------------------------
|
||||||
echo "--------------------------------------"
|
Network Setup
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
pacman -S networkmanager dhclient --noconfirm --needed
|
pacman -S networkmanager dhclient --noconfirm --needed
|
||||||
systemctl enable --now NetworkManager
|
systemctl enable --now NetworkManager
|
||||||
echo "-------------------------------------------------"
|
echo -ne "
|
||||||
echo "Setting up mirrors for optimal download "
|
-------------------------------------------------------------------------
|
||||||
echo "-------------------------------------------------"
|
Setting up mirrors for optimal download
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
pacman -S --noconfirm pacman-contrib curl
|
pacman -S --noconfirm pacman-contrib curl
|
||||||
pacman -S --noconfirm reflector rsync
|
pacman -S --noconfirm reflector rsync
|
||||||
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
|
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
|
||||||
|
|
||||||
nc=$(grep -c ^processor /proc/cpuinfo)
|
nc=$(grep -c ^processor /proc/cpuinfo)
|
||||||
echo "You have " $nc" cores."
|
echo -ne "
|
||||||
echo "-------------------------------------------------"
|
-------------------------------------------------------------------------
|
||||||
echo "Changing the makeflags for "$nc" cores."
|
You have " $nc" cores. And
|
||||||
|
changing the makeflags for "$nc" cores. Aswell as
|
||||||
|
changing the compression settings.
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
TOTALMEM=$(cat /proc/meminfo | grep -i 'memtotal' | grep -o '[[:digit:]]*')
|
TOTALMEM=$(cat /proc/meminfo | grep -i 'memtotal' | grep -o '[[:digit:]]*')
|
||||||
if [[ $TOTALMEM -gt 8000000 ]]; then
|
if [[ $TOTALMEM -gt 8000000 ]]; then
|
||||||
sed -i "s/#MAKEFLAGS=\"-j2\"/MAKEFLAGS=\"-j$nc\"/g" /etc/makepkg.conf
|
sed -i "s/#MAKEFLAGS=\"-j2\"/MAKEFLAGS=\"-j$nc\"/g" /etc/makepkg.conf
|
||||||
echo "Changing the compression settings for "$nc" cores."
|
|
||||||
sed -i "s/COMPRESSXZ=(xz -c -z -)/COMPRESSXZ=(xz -c -T $nc -z -)/g" /etc/makepkg.conf
|
sed -i "s/COMPRESSXZ=(xz -c -z -)/COMPRESSXZ=(xz -c -T $nc -z -)/g" /etc/makepkg.conf
|
||||||
fi
|
fi
|
||||||
echo "-------------------------------------------------"
|
echo -ne "
|
||||||
echo " Setup Language to US and set locale "
|
-------------------------------------------------------------------------
|
||||||
echo "-------------------------------------------------"
|
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
|
sed -i 's/^#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
|
||||||
locale-gen
|
locale-gen
|
||||||
timedatectl --no-ask-password set-timezone ${timezone}
|
timedatectl --no-ask-password set-timezone ${timezone}
|
||||||
|
|
@ -51,14 +64,18 @@ sed -i 's/^#Para/Para/' /etc/pacman.conf
|
||||||
#Enable multilib
|
#Enable multilib
|
||||||
sed -i "/\[multilib\]/,/Include/"'s/^#//' /etc/pacman.conf
|
sed -i "/\[multilib\]/,/Include/"'s/^#//' /etc/pacman.conf
|
||||||
pacman -Sy --noconfirm
|
pacman -Sy --noconfirm
|
||||||
|
echo -ne "
|
||||||
echo -e "\nInstalling Base System\n"
|
-------------------------------------------------------------------------
|
||||||
|
Installing Base System
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
sudo pacman -S --noconfirm --needed - < /pkg-files/pacman-pkgs.txt
|
sudo pacman -S --noconfirm --needed - < /pkg-files/pacman-pkgs.txt
|
||||||
|
echo -ne "
|
||||||
#
|
-------------------------------------------------------------------------
|
||||||
|
Installing Microcode
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
# determine processor type and install microcode
|
# determine processor type and install microcode
|
||||||
#
|
|
||||||
proc_type=$(lscpu | awk '/Vendor ID:/ {print $3}')
|
proc_type=$(lscpu | awk '/Vendor ID:/ {print $3}')
|
||||||
case "$proc_type" in
|
case "$proc_type" in
|
||||||
GenuineIntel)
|
GenuineIntel)
|
||||||
|
|
@ -71,8 +88,12 @@ case "$proc_type" in
|
||||||
pacman -S --noconfirm amd-ucode
|
pacman -S --noconfirm amd-ucode
|
||||||
proc_ucode=amd-ucode.img
|
proc_ucode=amd-ucode.img
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
echo -ne "
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
Installing Graphics Drivers
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
# Graphics Drivers find and install
|
# Graphics Drivers find and install
|
||||||
if lspci | grep -E "NVIDIA|GeForce"; then
|
if lspci | grep -E "NVIDIA|GeForce"; then
|
||||||
pacman -S nvidia --noconfirm --needed
|
pacman -S nvidia --noconfirm --needed
|
||||||
|
|
@ -82,8 +103,11 @@ elif lspci | grep -E "Radeon"; then
|
||||||
elif lspci | grep -E "Integrated Graphics Controller"; then
|
elif lspci | grep -E "Integrated Graphics Controller"; then
|
||||||
pacman -S libva-intel-driver libvdpau-va-gl lib32-vulkan-intel vulkan-intel libva-intel-driver libva-utils --needed --noconfirm
|
pacman -S libva-intel-driver libvdpau-va-gl lib32-vulkan-intel vulkan-intel libva-intel-driver libva-utils --needed --noconfirm
|
||||||
fi
|
fi
|
||||||
|
echo -ne "
|
||||||
echo -e "\nDone!\n"
|
-------------------------------------------------------------------------
|
||||||
|
Adding User
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
if ! source install.conf; then
|
if ! source install.conf; then
|
||||||
read -p "Please enter username:" username
|
read -p "Please enter username:" username
|
||||||
echo "username=$username" >> ${HOME}/$SCRIPTHOME/install.conf
|
echo "username=$username" >> ${HOME}/$SCRIPTHOME/install.conf
|
||||||
|
|
@ -99,4 +123,8 @@ then
|
||||||
else
|
else
|
||||||
echo "You are already a user proceed with aur installs"
|
echo "You are already a user proceed with aur installs"
|
||||||
fi
|
fi
|
||||||
|
echo -ne "
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
SYSTEM READY FOR 2-user.sh
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
29
2-user.sh
29
2-user.sh
|
|
@ -1,17 +1,20 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
#-------------------------------------------------------------------------
|
echo -ne "
|
||||||
# █████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗
|
-------------------------------------------------------------------------
|
||||||
# ██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝
|
█████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗
|
||||||
# ███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗
|
██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝
|
||||||
# ██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║
|
███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗
|
||||||
# ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║
|
██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║
|
||||||
# ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝
|
██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║
|
||||||
#-------------------------------------------------------------------------
|
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
Automated Arch Linux Installer
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
echo -e "\nINSTALLING AUR SOFTWARE\n"
|
Installing AUR Softwares
|
||||||
|
"
|
||||||
# You can solve users running this script as root with this and then doing the same for the next for statement. However I will leave this up to you.
|
# You can solve users running this script as root with this and then doing the same for the next for statement. However I will leave this up to you.
|
||||||
|
|
||||||
echo "CLONING: YAY"
|
|
||||||
cd ~
|
cd ~
|
||||||
git clone "https://aur.archlinux.org/yay.git"
|
git clone "https://aur.archlinux.org/yay.git"
|
||||||
cd ${HOME}/yay
|
cd ${HOME}/yay
|
||||||
|
|
@ -31,5 +34,9 @@ konsave -i $HOME/$SCRIPTHOME/kde.knsv
|
||||||
sleep 1
|
sleep 1
|
||||||
konsave -a kde
|
konsave -a kde
|
||||||
|
|
||||||
echo -e "\nDone!\n"
|
echo -ne "
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
SYSTEM READY FOR 3-post-setup.sh
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
exit
|
exit
|
||||||
|
|
|
||||||
|
|
@ -1,36 +1,45 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
#-------------------------------------------------------------------------
|
echo -ne "
|
||||||
# █████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗
|
-------------------------------------------------------------------------
|
||||||
# ██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝
|
█████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗
|
||||||
# ███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗
|
██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝
|
||||||
# ██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║
|
███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗
|
||||||
# ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║
|
██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║
|
||||||
# ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝
|
██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║
|
||||||
#-------------------------------------------------------------------------
|
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
Automated Arch Linux Installer
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
echo -e "\nFINAL SETUP AND CONFIGURATION"
|
Final Setup and Configurations
|
||||||
echo "--------------------------------------"
|
GRUB EFI Bootloader Install & Check
|
||||||
echo "-- GRUB EFI Bootloader Install&Check--"
|
"
|
||||||
echo "--------------------------------------"
|
|
||||||
if [[ -d "/sys/firmware/efi" ]]; then
|
if [[ -d "/sys/firmware/efi" ]]; then
|
||||||
grub-install --efi-directory=/boot ${DISK}
|
grub-install --efi-directory=/boot ${DISK}
|
||||||
fi
|
fi
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
|
||||||
# ------------------------------------------------------------------------
|
echo -ne "
|
||||||
|
-------------------------------------------------------------------------
|
||||||
echo -e "\nEnabling Login Display Manager"
|
Enabling Login Display Manager
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
systemctl enable sddm.service
|
systemctl enable sddm.service
|
||||||
echo -e "\nSetup SDDM Theme"
|
echo -ne "
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
Setting up SDDM Theme
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
cat <<EOF > /etc/sddm.conf
|
cat <<EOF > /etc/sddm.conf
|
||||||
[Theme]
|
[Theme]
|
||||||
Current=Nordic
|
Current=Nordic
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# ------------------------------------------------------------------------
|
echo -ne "
|
||||||
|
-------------------------------------------------------------------------
|
||||||
echo -e "\nEnabling essential services"
|
Enabling Essential Services
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
systemctl enable cups.service
|
systemctl enable cups.service
|
||||||
ntpd -qg
|
ntpd -qg
|
||||||
systemctl enable ntpd.service
|
systemctl enable ntpd.service
|
||||||
|
|
@ -38,10 +47,10 @@ systemctl disable dhcpcd.service
|
||||||
systemctl stop dhcpcd.service
|
systemctl stop dhcpcd.service
|
||||||
systemctl enable NetworkManager.service
|
systemctl enable NetworkManager.service
|
||||||
systemctl enable bluetooth
|
systemctl enable bluetooth
|
||||||
echo "
|
echo -ne "
|
||||||
###############################################################################
|
-------------------------------------------------------------------------
|
||||||
# Cleaning
|
Cleaning
|
||||||
###############################################################################
|
-------------------------------------------------------------------------
|
||||||
"
|
"
|
||||||
# Remove no password sudo rights
|
# Remove no password sudo rights
|
||||||
sed -i 's/^%wheel ALL=(ALL) NOPASSWD: ALL/# %wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers
|
sed -i 's/^%wheel ALL=(ALL) NOPASSWD: ALL/# %wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers
|
||||||
|
|
|
||||||
31
archtitus.sh
31
archtitus.sh
|
|
@ -2,8 +2,19 @@
|
||||||
|
|
||||||
# Find the name of the folder the scripts are in
|
# Find the name of the folder the scripts are in
|
||||||
export SCRIPTHOME="$(basename -- $PWD)"
|
export SCRIPTHOME="$(basename -- $PWD)"
|
||||||
echo "Scripts are in dir named $SCRIPTHOME"
|
echo -ne "
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
█████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗
|
||||||
|
██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝
|
||||||
|
███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗
|
||||||
|
██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║
|
||||||
|
██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║
|
||||||
|
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
Automated Arch Linux Installer
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
Scripts are in directory named $SCRIPTHOME
|
||||||
|
"
|
||||||
bash startup.sh
|
bash startup.sh
|
||||||
source setup.conf
|
source setup.conf
|
||||||
bash 0-preinstall.sh
|
bash 0-preinstall.sh
|
||||||
|
|
@ -12,8 +23,16 @@ echo "Scripts are in dir named $SCRIPTHOME"
|
||||||
arch-chroot /mnt /usr/bin/runuser -u $username -- /home/$username/$SCRIPTHOME/2-user.sh
|
arch-chroot /mnt /usr/bin/runuser -u $username -- /home/$username/$SCRIPTHOME/2-user.sh
|
||||||
arch-chroot /mnt /root/$SCRIPTHOME/3-post-setup.sh
|
arch-chroot /mnt /root/$SCRIPTHOME/3-post-setup.sh
|
||||||
|
|
||||||
echo "
|
echo -ne "
|
||||||
###############################################################################
|
-------------------------------------------------------------------------
|
||||||
# Done - Please Eject Install Media and Reboot
|
█████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗
|
||||||
###############################################################################
|
██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝
|
||||||
|
███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗
|
||||||
|
██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║
|
||||||
|
██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║
|
||||||
|
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
Automated Arch Linux Installer
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
Done - Please Eject Install Media and Reboot
|
||||||
"
|
"
|
||||||
|
|
@ -11,7 +11,7 @@ echo -ne "
|
||||||
██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║
|
██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║
|
||||||
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝
|
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
Please select presetup settings for your system
|
Please select presetup settings for your system
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
"
|
"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue