From c5816896b29a74e2040fcecde494ee14331afa20 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Tue, 26 Oct 2021 09:06:50 -0500 Subject: [PATCH 1/6] Update 1-setup.sh Testing makeflags for low processors --- 1-setup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/1-setup.sh b/1-setup.sh index 4a1c2a6..c2ebd88 100755 --- a/1-setup.sh +++ b/1-setup.sh @@ -24,10 +24,12 @@ nc=$(grep -c ^processor /proc/cpuinfo) echo "You have " $nc" cores." echo "-------------------------------------------------" echo "Changing the makeflags for "$nc" cores." +TOTALMEM=$(cat /proc/meminfo | grep -i 'memtotal' | grep -o '[[:digit:]]*') +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 "-------------------------------------------------" From 97d2418b79f30bf979cd417c071166c8e33838d8 Mon Sep 17 00:00:00 2001 From: Alejandro Matos <42916953+amatosg@users.noreply.github.com> Date: Tue, 26 Oct 2021 09:59:23 -0500 Subject: [PATCH 2/6] fixing a typo --- dotfiles/kitty/kitty-themes/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/kitty/kitty-themes/README.md b/dotfiles/kitty/kitty-themes/README.md index 828d603..84ea337 100755 --- a/dotfiles/kitty/kitty-themes/README.md +++ b/dotfiles/kitty/kitty-themes/README.md @@ -58,7 +58,7 @@ the previews for each theme in the [section](#previews) below or in this other ### Conda -If you using the ``conda`` package manager, you may also install these themes +If you're using the ``conda`` package manager, you may also want to install these themes with the following command: ```bash From f7aa459015e9e29a11d5f041f6518d840837da92 Mon Sep 17 00:00:00 2001 From: alex <70241434+RoyShapiro@users.noreply.github.com> Date: Wed, 27 Oct 2021 00:24:42 +0300 Subject: [PATCH 3/6] NOCOW & swap-in-ram fix. --- 0-preinstall.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/0-preinstall.sh b/0-preinstall.sh index c5b5e69..b01f2d0 100755 --- a/0-preinstall.sh +++ b/0-preinstall.sh @@ -129,10 +129,16 @@ echo "-- Check for low memory systems <8G --" echo "--------------------------------------" TOTALMEM=$(cat /proc/meminfo | grep -i 'memtotal' | grep -o '[[:digit:]]*') if [[ $TOTALMEM -lt 8000000 ]]; then - dd if=/dev/zero of=/swapfile bs=1M count=2048 status=progress - chmod 600 /swapfile - mkswap /swapfile - swapon /swapfile + #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. + mkdir /mnt/opt/swap #make a dir that we can apply NOCOW to to make it btrfs-friendly. + chattr +C /mnt/opt/swap #apply NOCOW, btrfs needs that. + dd if=/dev/zero of=/mnt/opt/swap/swapfile bs=1M count=2048 status=progress + chmod 600 /mnt/opt/swap/swapfile #set permissions. + chown root /mnt/opt/swap/swapfile + mkswap /mnt/opt/swap/swapfile + swapon /mnt/opt/swap/swapfile + #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. fi echo "--------------------------------------" echo "-- SYSTEM READY FOR 0-setup --" From 9c3ed813604b820760ede0f362e99d0e9ef608af Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Tue, 26 Oct 2021 17:29:42 -0500 Subject: [PATCH 4/6] Update 1-setup.sh --- 1-setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/1-setup.sh b/1-setup.sh index 4a1c2a6..99b8a67 100755 --- a/1-setup.sh +++ b/1-setup.sh @@ -132,6 +132,7 @@ PKGS=( 'neofetch' 'networkmanager' 'ntfs-3g' +'ntp' 'okular' 'openbsd-netcat' 'openssh' From 53a486a3b70a805b6135e0ad5c9d57ee07127a9e Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Tue, 26 Oct 2021 17:32:01 -0500 Subject: [PATCH 5/6] Update 1-setup.sh --- 1-setup.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/1-setup.sh b/1-setup.sh index 99b8a67..0adfafe 100755 --- a/1-setup.sh +++ b/1-setup.sh @@ -17,7 +17,6 @@ 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) From f2f1ce7730d9c3708cae30b598f87dc0eef90fe3 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Tue, 26 Oct 2021 17:33:34 -0500 Subject: [PATCH 6/6] Update 1-setup.sh --- 1-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-setup.sh b/1-setup.sh index 0adfafe..dd8e8be 100755 --- a/1-setup.sh +++ b/1-setup.sh @@ -34,7 +34,7 @@ sed -i 's/^#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen locale-gen timedatectl --no-ask-password set-timezone America/Chicago timedatectl --no-ask-password set-ntp 1 -localectl --no-ask-password set-locale LANG="en_US.UTF-8" LC_COLLATE="" LC_TIME="en_US.UTF-8" +localectl --no-ask-password set-locale LANG="en_US.UTF-8" LC_TIME="en_US.UTF-8" # Set keymaps localectl --no-ask-password set-keymap us