Add firmware and color output from commands.

This commit is contained in:
Austin Horstman 2022-02-27 16:13:26 -06:00
parent 7aff03901b
commit 0b576a353e
5 changed files with 18 additions and 17 deletions

View File

@ -8,6 +8,7 @@ lightly-git
lightlyshaders-git lightlyshaders-git
mangohud mangohud
mangohud-common mangohud-common
mkinitcpio-firmware
nerd-fonts-fira-code nerd-fonts-fira-code
nordic-darker-standard-buttons-theme nordic-darker-standard-buttons-theme
nordic-darker-theme nordic-darker-theme

View File

@ -25,11 +25,11 @@ Setting up mirrors for optimal download
source $CONFIGS_DIR/setup.conf source $CONFIGS_DIR/setup.conf
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 archlinux-keyring #update keyrings to latest to prevent packages failing to install pacman -S --noconfirm --color=always archlinux-keyring #update keyrings to latest to prevent packages failing to install
pacman -S --noconfirm --needed pacman-contrib terminus-font pacman -S --noconfirm --needed --color=always pacman-contrib terminus-font
setfont ter-v22b setfont ter-v22b
sed -i 's/^#ParallelDownloads/ParallelDownloads/' /etc/pacman.conf sed -i 's/^#ParallelDownloads/ParallelDownloads/' /etc/pacman.conf
pacman -S --noconfirm --needed reflector rsync grub pacman -S --noconfirm --needed --color=always reflector rsync grub
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
echo -ne " echo -ne "
------------------------------------------------------------------------- -------------------------------------------------------------------------
@ -43,7 +43,7 @@ echo -ne "
Installing Prerequisites Installing Prerequisites
------------------------------------------------------------------------- -------------------------------------------------------------------------
" "
pacman -S --noconfirm --needed gptfdisk btrfs-progs glibc pacman -S --noconfirm --needed --color=always gptfdisk btrfs-progs glibc
echo -ne " echo -ne "
------------------------------------------------------------------------- -------------------------------------------------------------------------
Formating Disk Formating Disk
@ -145,7 +145,7 @@ 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 pacstrap /mnt base base-devel linux linux-firmware vim nano sudo archlinux-keyring wget libnewt --noconfirm --needed --color=always
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
@ -163,7 +163,7 @@ echo -ne "
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}
else else
pacstrap /mnt efibootmgr --noconfirm --needed pacstrap /mnt efibootmgr --noconfirm --needed --color=always
fi fi
echo -ne " echo -ne "
------------------------------------------------------------------------- -------------------------------------------------------------------------

View File

@ -18,15 +18,15 @@ echo -ne "
Network Setup Network Setup
------------------------------------------------------------------------- -------------------------------------------------------------------------
" "
pacman -S --noconfirm --needed networkmanager dhclient pacman -S --noconfirm --needed --color=always networkmanager dhclient
systemctl enable --now NetworkManager systemctl enable --now NetworkManager
echo -ne " echo -ne "
------------------------------------------------------------------------- -------------------------------------------------------------------------
Setting up mirrors for optimal download Setting up mirrors for optimal download
------------------------------------------------------------------------- -------------------------------------------------------------------------
" "
pacman -S --noconfirm --needed pacman-contrib curl pacman -S --noconfirm --needed --color=always pacman-contrib curl
pacman -S --noconfirm --needed reflector rsync grub arch-install-scripts git pacman -S --noconfirm --needed --color=always reflector rsync grub arch-install-scripts git
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)
@ -82,7 +82,7 @@ if [[ ! $DESKTOP_ENV == server ]]; then
continue continue
fi fi
echo "INSTALLING: ${line}" echo "INSTALLING: ${line}"
sudo pacman -S --noconfirm --needed ${line} sudo pacman -S --noconfirm --needed --color=always ${line}
done done
fi fi
echo -ne " echo -ne "
@ -94,11 +94,11 @@ echo -ne "
proc_type=$(lscpu) proc_type=$(lscpu)
if grep -E "GenuineIntel" <<< ${proc_type}; then if grep -E "GenuineIntel" <<< ${proc_type}; then
echo "Installing Intel microcode" echo "Installing Intel microcode"
pacman -S --noconfirm --needed intel-ucode pacman -S --noconfirm --needed --color=always intel-ucode
proc_ucode=intel-ucode.img proc_ucode=intel-ucode.img
elif grep -E "AuthenticAMD" <<< ${proc_type}; then elif grep -E "AuthenticAMD" <<< ${proc_type}; then
echo "Installing AMD microcode" echo "Installing AMD microcode"
pacman -S --noconfirm --needed amd-ucode pacman -S --noconfirm --needed --color=always amd-ucode
proc_ucode=amd-ucode.img proc_ucode=amd-ucode.img
fi fi
@ -110,12 +110,12 @@ echo -ne "
# Graphics Drivers find and install # Graphics Drivers find and install
gpu_type=$(lspci) gpu_type=$(lspci)
if grep -E "NVIDIA|GeForce" <<< ${gpu_type}; then if grep -E "NVIDIA|GeForce" <<< ${gpu_type}; then
pacman -S --noconfirm --needed nvidia pacman -S --noconfirm --needed --color=always nvidia
nvidia-xconfig nvidia-xconfig
elif lspci | grep 'VGA' | grep -E "Radeon|AMD"; then elif lspci | grep 'VGA' | grep -E "Radeon|AMD"; then
pacman -S --noconfirm --needed xf86-video-amdgpu pacman -S --noconfirm --needed --color=always xf86-video-amdgpu
elif grep -E "Integrated Graphics Controller" <<< ${gpu_type}; then elif grep -E "Integrated Graphics Controller" <<< ${gpu_type}; then
pacman -S --noconfirm --needed libva-intel-driver libvdpau-va-gl lib32-vulkan-intel vulkan-intel libva-intel-driver libva-utils lib32-mesa pacman -S --noconfirm --needed --color=always libva-intel-driver libvdpau-va-gl lib32-vulkan-intel vulkan-intel libva-intel-driver libva-utils lib32-mesa
elif grep -E "Intel Corporation UHD" <<< ${gpu_type}; then elif grep -E "Intel Corporation UHD" <<< ${gpu_type}; then
pacman -S --needed --noconfirm libva-intel-driver libvdpau-va-gl lib32-vulkan-intel vulkan-intel libva-intel-driver libva-utils lib32-mesa pacman -S --needed --noconfirm libva-intel-driver libvdpau-va-gl lib32-vulkan-intel vulkan-intel libva-intel-driver libva-utils lib32-mesa
fi fi

View File

@ -31,7 +31,7 @@ do
continue continue
fi fi
echo "INSTALLING: ${line}" echo "INSTALLING: ${line}"
sudo pacman -S --noconfirm --needed ${line} sudo pacman -S --noconfirm --needed --color=always ${line}
done done

View File

@ -79,7 +79,7 @@ elif [[ "${DESKTOP_ENV}" == "openbox" ]]; then
else else
if [[ ! "${DESKTOP_ENV}" == "server" ]]; then if [[ ! "${DESKTOP_ENV}" == "server" ]]; then
sudo pacman -S --noconfirm --needed lightdm lightdm-gtk-greeter sudo pacman -S --noconfirm --needed --color=always lightdm lightdm-gtk-greeter
systemctl enable lightdm.service systemctl enable lightdm.service
fi fi
fi fi