Merge branch 'ChrisTitusTech-main'

# Conflicts:
#	0-preinstall.sh
#	1-setup.sh
#	3-post-setup.sh
This commit is contained in:
71Zombie 2021-10-27 08:00:46 -04:00
commit 1b7984b03f
3 changed files with 6 additions and 26 deletions

View File

@ -20,7 +20,7 @@ pacman -S --noconfirm pacman-contrib terminus-font
setfont ter-v22b
sed -i 's/^#Para/Para/' /etc/pacman.conf
pacman -S --noconfirm reflector rsync
mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
echo -e " - -----------------------------------------------------------------------------------"
echo -e " ▀███▀▀▀██▄ ██ ██ ██ ███ "
echo -e " ██ ██ ██ ██ ▄██▄ ██ "
@ -53,28 +53,6 @@ echo -e "\nFormatting disk...\n$HR"
echo "--------------------------------------"
# disk prep
#mkfs.ext3/dev/hda
#mkfs.ext3/dev/sda1
#mkfs.ext3/dev/sda2
#mkfs.ext3/dev/sda3
#mkfs.ext3/dev/${DISK}
#cryptluks > /dev/sda
#cryptluks > /dev/sda1
#cryptluks > /dev/sda2
#cryptluks > /dev/nvme0
#cryptluks > /dev/mvme1
#dd if=/dev/zero of=/dev/${DISK} bs=512 count=1
#dd if=/dev/zero of=/dev/sda1 bs=512 count=1
#dd if=/dev/zero of=/dev/sda2 bs=512 count=1
#dd if=/dev/zero of=/dev/sda3 bs=512 count=1
#dd if=/dev/zero of=/dev/nvme0 bs=512 count=1
#dd if=/dev/zero of=/dev/nvme1 bs=512 count=1
#dd if=/dev/zero of=/dev/nvme2 bs=512 count=1
sgdisk -Z ${DISK} # zap all on disk
#dd if=/dev/zero of=${DISK} bs=1M count=200 conv=fdatasync status=progress
sgdisk -a 2048 -o ${DISK} # new gpt disk 2048 alignment
@ -164,5 +142,5 @@ if [[ $TOTALMEM -lt 8000000 ]]; then
echo "/opt/swap/swapfile none swap sw 0 0" >> /mnt/etc/fstab #Add swap to fstab, so it KEEPS working after installation.
fi
echo "--------------------------------------"
echo "-- SYSTEM READY FOR 0-setup --"
echo "-- SYSTEM READY FOR 1-setup --"
echo "--------------------------------------"

View File

@ -20,6 +20,7 @@ echo "Setting up mirrors for optimal download "
echo "-------------------------------------------------"
pacman -S --noconfirm pacman-contrib curl
pacman -S --noconfirm reflector rsync
iso=$(curl -4 ifconfig.co/country-iso)
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
nc=$(grep -c ^processor /proc/cpuinfo)
@ -31,7 +32,7 @@ if [[ $TOTALMEM -gt 8000000 ]]; then
sudo sed -i 's/#MAKEFLAGS="-j2"/MAKEFLAGS="-j$nc"/g' /etc/makepkg.conf
echo "Changing the compression settings for "$nc" cores."
sudo sed -i 's/COMPRESSXZ=(xz -c -z -)/COMPRESSXZ=(xz -c -T $nc -z -)/g' /etc/makepkg.conf
fi
echo "-------------------------------------------------"
echo " Setup Language to US and set locale "
echo "-------------------------------------------------"

View File

@ -10,6 +10,7 @@
#▄████████ ▀█████▀ ▀████ ▀████ ▀█████▀████▄ ▄███▄ ▄████▄████▄ █████▀████ ████▄
#
#------------------------------------------------------------------------------------
echo -e "\nFINAL SETUP AND CONFIGURATION"
# ------------------------------------------------------------------------
@ -55,7 +56,7 @@ sudo cp fail2ban.local /etc/fail2ban/
echo -e "\nEnabling essential services"
systemctl enable cups.service
sudo ntpd -qg
#sudo ntpd -qg
sudo systemctl enable ntpd.service
sudo systemctl disable dhcpcd.service
sudo systemctl stop dhcpcd.service