From 58904906bbc55c78a44727748e0f394a89de1dcf Mon Sep 17 00:00:00 2001 From: Lisa Date: Mon, 18 Oct 2021 22:36:47 +0200 Subject: [PATCH 01/13] added case for nvidia --- 10-gaming-setup.sh | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/10-gaming-setup.sh b/10-gaming-setup.sh index 189ab0440..71ca2af37 100644 --- a/10-gaming-setup.sh +++ b/10-gaming-setup.sh @@ -37,11 +37,11 @@ mkdir temp pacman -Syy --noconfirm PS3='Please enter your GPU choice: ' -options=("Nvidia-tkg" "AmdVLK" "AMDGPU" "Quit") +options=("Nvidia" "AmdVLK" "AMDGPU") select opt in "${options[@]}" do case $opt in - "Nvidia-tkg") + "Nvidia") echo "You chose Nvidia-tkg" $nvidia = true git clone https://github.com/Frogging-Family/nvidia-all.git @@ -58,13 +58,28 @@ do echo "You chose AMDGPU" pacman -S xf86-video-amdgpu --noconfirm --needed ;; - "Continue") - break - ;; *) echo "invalid option $REPLY";; esac done +case $nvidia in + true) + touch /etc/pacman.d/hooks/nvidia.hook + cat ' + [Trigger] + Operation=Install + Operation=Upgrade + Operation=Remove + Type=Package + Target=nvidia + + [Action] + Depends=mkinitcpio + When=PostTransaction + Exec=/usr/bin/mkinitcpio -P + ' >> /etc/pacman.d/hooks/nvidia.hook + ;; + read -p "Do you want Emulators (y/n)?" choice case "$choice" in y|Y ) PS3='Please enter your Emulator choice: ' @@ -94,6 +109,8 @@ done;; * ) echo "invalid";; esac + + # sudo pacman -S yuzu-early-access --noconfirm --needed for PKG in "${PKGS[@]}"; do @@ -143,20 +160,6 @@ sysctl -w vm.swappiness = 10 chmod +x /etc/init.d/titusscript update-rc titusscript defaults 40 1 -touch /etc/pacman.d/hooks/nvidia.hook -cat ' -[Trigger] -Operation=Install -Operation=Upgrade -Operation=Remove -Type=Package -Target=nvidia - -[Action] -Depends=mkinitcpio -When=PostTransaction -Exec=/usr/bin/mkinitcpio -P -' >> /etc/pacman.d/hooks/nvidia.hook touch /home/$(whoami)/.config/mpv/mpv.conf cat ' From d5125d96e602abc9ca2c8177164cbcdd001ae15e Mon Sep 17 00:00:00 2001 From: Lisa Date: Mon, 18 Oct 2021 22:37:30 +0200 Subject: [PATCH 02/13] added case for nvidia --- 10-gaming-setup.sh | 193 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 193 insertions(+) diff --git a/10-gaming-setup.sh b/10-gaming-setup.sh index e69de29bb..71ca2af37 100644 --- a/10-gaming-setup.sh +++ b/10-gaming-setup.sh @@ -0,0 +1,193 @@ +#!/usr/bin/env bash +#------------------------------------------------------------------------- +# _ _ __ __ _ _ +# /_\ _ _ __| |_ | \/ |__ _| |_(_)__ +# / _ \| '_/ _| ' \| |\/| / _` | _| / _| +# /_/ \_\_| \__|_||_|_| |_\__,_|\__|_\__| +# Arch Linux Post Install Setup and Config +#------------------------------------------------------------------------- +source install.conf +echo -e "\nInstalling Base System\n" + +PKGS=( +'gamemode' +'linux-tkg-pds' +'linux-tkg-pds-headers' +'wine-tkg-fsync-git' +'lutris' +'auto-cpufreq' +'vkBasalt' +'goverlay' +'earlyoom' +'ananicy-git' +'libva-vdpau-driver' +) + +pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com +pacman-key --lsign-key 3056513887B78AEB +pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst' +echo "[chaotic-aur] +Include = /etc/pacman.d/chaotic-mirrorlist" >> /etc/pacman.conf + + + +cd /home/$(whoami)/Documents/ +mkdir temp + +pacman -Syy --noconfirm + +PS3='Please enter your GPU choice: ' +options=("Nvidia" "AmdVLK" "AMDGPU") +select opt in "${options[@]}" +do + case $opt in + "Nvidia") + echo "You chose Nvidia-tkg" + $nvidia = true + git clone https://github.com/Frogging-Family/nvidia-all.git + cd nvidia-all + makepkg -si + ;; + "AmdVLK") + echo "You chose AmdVLK" + git clone https://github.com/Frogging-Family/amdvlk-opt.git + cd amdvlk-opt + makepkg -si + ;; + "AMDGPU") + echo "You chose AMDGPU" + pacman -S xf86-video-amdgpu --noconfirm --needed + ;; + *) echo "invalid option $REPLY";; + esac +done + +case $nvidia in + true) + touch /etc/pacman.d/hooks/nvidia.hook + cat ' + [Trigger] + Operation=Install + Operation=Upgrade + Operation=Remove + Type=Package + Target=nvidia + + [Action] + Depends=mkinitcpio + When=PostTransaction + Exec=/usr/bin/mkinitcpio -P + ' >> /etc/pacman.d/hooks/nvidia.hook + ;; + +read -p "Do you want Emulators (y/n)?" choice +case "$choice" in + y|Y ) PS3='Please enter your Emulator choice: ' +options=("Yuzu" "YuzuEA" "Ryujinx" "Quit") +select opt in "${options[@]}" +do + case $opt in + "Yuzu") + echo "You chose Yuzu" + sudo pacman -S yuzu --noconfirm --needed + ;; + "YuzuEA") + echo "You chose YuzuEA" + sudo pacman -S yuzu-early-access --noconfirm --needed + ;; + "Ryujinx") + echo "You chose Ryujinx" + pacman -S ryujinx-git --noconfirm --needed + ;; + "Quit") + break + ;; + *) echo "invalid option $REPLY";; + esac +done;; + n|N ) echo "";; + * ) echo "invalid";; +esac + + + +# sudo pacman -S yuzu-early-access --noconfirm --needed + +for PKG in "${PKGS[@]}"; do + echo "INSTALLING: ${PKG}" + sudo pacman -S "$PKG" --noconfirm --needed +done + +echo -e "\nInstalling Base System Complete\n" + +echo -e "\nEnableing Services and Tweaking\n" + +systemctl --user enable gamemoded && systemctl --user start gamemoded +systemctl enable --now earlyoom + +#if($nvidia == true) then + # nvidia-xconfig + # mv /etc/X11/xorg.conf /etc/X11/xorg.conf.d/20-nvidia.conf +# cat 'Option "TripleBuffer" "on" +#Option "Coolbits" "28"' >> /etc/X11/xorg.conf.d/20-nvidia.conf +# +# +#fi + +git clone https://gitlab.com/garuda-linux/themes-and-settings/settings/performance-tweaks.git +cd performance-tweaks +makepkg -si --noconfirm + +touch /etc/init.d/titusscript + +cat '#!/bin/bash +sysctl -w net.core.netdev_max_backlog = 16384 +sysctl -w net.core.somaxconn = 8192 +sysctl -w net.core.rmem_default = 1048576 +sysctl -w net.core.rmem_max = 16777216 +sysctl -w net.core.wmem_default = 1048576 +sysctl -w net.core.wmem_max = 16777216 +sysctl -w net.core.optmem_max = 65536 +sysctl -w net.ipv4.tcp_rmem = 4096 1048576 2097152 +sysctl -w net.ipv4.tcp_wmem = 4096 65536 16777216 +sysctl -w net.ipv4.udp_rmem_min = 8192 +sysctl -w net.ipv4.udp_wmem_min = 8192 +sysctl -w net.ipv4.tcp_fastopen = 3 +sysctl -w net.ipv4.tcp_max_syn_backlog = 8192 +sysctl -w net.ipv4.tcp_max_tw_buckets = 2000000 +sysctl -w vm.swappiness = 10 +' >> /etc/init.d/titusscript +chmod +x /etc/init.d/titusscript +update-rc titusscript defaults 40 1 + + +touch /home/$(whoami)/.config/mpv/mpv.conf +cat ' +vo=vdpau +profile=opengl-hq +hwdec=vdpau +hwdec-codecs=all +scale=ewa_lanczossharp +cscale=ewa_lanczossharp +interpolation +tscale=oversample +' >> /home/$(whoami)/.config/mpv/mpv.conf + +systemctl enable fstrim.timer +systemctl enable --now ananicy +mkinitcpio -p linux + + +echo -e "\nDone!\n" + +rm -rf /home/$(whoami)/Documents/temp + +<>/home/$(whoami)/Documents/install.log + +################################################################################ +# +# Chris, if you read this. Please look into here! +# https://gitlab.com/gabmus/bestArch#use-systemd-boot +# This is a blessing from the gods. +# +################################################################################ \ No newline at end of file From 419a5d3173471f976bd8fd2fd7bdcf88df4c0d15 Mon Sep 17 00:00:00 2001 From: Lisa Date: Mon, 18 Oct 2021 22:48:38 +0200 Subject: [PATCH 03/13] meow! --- 10-gaming-setup.sh | 146 ++++++++++++++++++++++----------------------- 1 file changed, 70 insertions(+), 76 deletions(-) diff --git a/10-gaming-setup.sh b/10-gaming-setup.sh index 71ca2af37..73daec340 100644 --- a/10-gaming-setup.sh +++ b/10-gaming-setup.sh @@ -21,11 +21,15 @@ PKGS=( 'earlyoom' 'ananicy-git' 'libva-vdpau-driver' +'pipewire' +'pipewire-pulse' +'pipewire-alsa' +'freetype2-cleartype' ) -pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com -pacman-key --lsign-key 3056513887B78AEB -pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst' +sudo pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com +sudo pacman-key --lsign-key 3056513887B78AEB +sudo pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst' echo "[chaotic-aur] Include = /etc/pacman.d/chaotic-mirrorlist" >> /etc/pacman.conf @@ -37,93 +41,45 @@ mkdir temp pacman -Syy --noconfirm PS3='Please enter your GPU choice: ' -options=("Nvidia" "AmdVLK" "AMDGPU") +options=("Nvidia" "AMDGPU" "Quit") select opt in "${options[@]}" do case $opt in "Nvidia") - echo "You chose Nvidia-tkg" + echo "You chose Nvidia" $nvidia = true git clone https://github.com/Frogging-Family/nvidia-all.git cd nvidia-all makepkg -si ;; - "AmdVLK") - echo "You chose AmdVLK" - git clone https://github.com/Frogging-Family/amdvlk-opt.git - cd amdvlk-opt - makepkg -si - ;; "AMDGPU") echo "You chose AMDGPU" pacman -S xf86-video-amdgpu --noconfirm --needed ;; - *) echo "invalid option $REPLY";; - esac -done - -case $nvidia in - true) - touch /etc/pacman.d/hooks/nvidia.hook - cat ' - [Trigger] - Operation=Install - Operation=Upgrade - Operation=Remove - Type=Package - Target=nvidia - - [Action] - Depends=mkinitcpio - When=PostTransaction - Exec=/usr/bin/mkinitcpio -P - ' >> /etc/pacman.d/hooks/nvidia.hook - ;; - -read -p "Do you want Emulators (y/n)?" choice -case "$choice" in - y|Y ) PS3='Please enter your Emulator choice: ' -options=("Yuzu" "YuzuEA" "Ryujinx" "Quit") -select opt in "${options[@]}" -do - case $opt in - "Yuzu") - echo "You chose Yuzu" - sudo pacman -S yuzu --noconfirm --needed - ;; - "YuzuEA") - echo "You chose YuzuEA" - sudo pacman -S yuzu-early-access --noconfirm --needed - ;; - "Ryujinx") - echo "You chose Ryujinx" - pacman -S ryujinx-git --noconfirm --needed - ;; - "Quit") + "Continue"|"Q"|"Quit"|*) break ;; *) echo "invalid option $REPLY";; esac -done;; - n|N ) echo "";; - * ) echo "invalid";; -esac - - - -# sudo pacman -S yuzu-early-access --noconfirm --needed +done for PKG in "${PKGS[@]}"; do echo "INSTALLING: ${PKG}" sudo pacman -S "$PKG" --noconfirm --needed done +pacman -S noto-fonts noto-fonts-cjk ttf-dejavu ttf-liberation ttf-opensans ttf-roboto ttf-roboto-mono ttf-ubuntu-font-family --noconfirm --needed +ln -s /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d +ln -s /etc/fonts/conf.avail/10-sub-pixel-rgb.conf /etc/fonts/conf.d +ln -s /etc/fonts/conf.avail/11-lcdfilter-default.conf /etc/fonts/conf.d + echo -e "\nInstalling Base System Complete\n" echo -e "\nEnableing Services and Tweaking\n" systemctl --user enable gamemoded && systemctl --user start gamemoded systemctl enable --now earlyoom +systemctl --user enable pipewire pipewire-pulse #if($nvidia == true) then # nvidia-xconfig @@ -134,13 +90,17 @@ systemctl enable --now earlyoom # #fi -git clone https://gitlab.com/garuda-linux/themes-and-settings/settings/performance-tweaks.git -cd performance-tweaks -makepkg -si --noconfirm +#git clone https://gitlab.com/garuda-linux/themes-and-settings/settings/performance-tweaks.git +#cd performance-tweaks +#makepkg -si --noconfirm + + +# We want to set them every boot! Thats why we need to make a File thats launched on boot! touch /etc/init.d/titusscript -cat '#!/bin/bash +sudo cat <> /etc/init.d/titusscript +#!/bin/bash sysctl -w net.core.netdev_max_backlog = 16384 sysctl -w net.core.somaxconn = 8192 sysctl -w net.core.rmem_default = 1048576 @@ -156,13 +116,28 @@ sysctl -w net.ipv4.tcp_fastopen = 3 sysctl -w net.ipv4.tcp_max_syn_backlog = 8192 sysctl -w net.ipv4.tcp_max_tw_buckets = 2000000 sysctl -w vm.swappiness = 10 -' >> /etc/init.d/titusscript +EOF chmod +x /etc/init.d/titusscript update-rc titusscript defaults 40 1 +if $nvidia == true; then + sudo cat <> /etc/pacman.d/hooks/nvidia.hook + [Trigger] + Operation=Install + Operation=Upgrade + Operation=Remove + Type=Package + Target=nvidia -touch /home/$(whoami)/.config/mpv/mpv.conf -cat ' + [Action] + Depends=mkinitcpio + When=PostTransaction + Exec=/usr/bin/mkinitcpio -P +EOF +fi + + +cat <> /home/$(whoami)/.config/mpv/mpv.conf vo=vdpau profile=opengl-hq hwdec=vdpau @@ -171,23 +146,42 @@ scale=ewa_lanczossharp cscale=ewa_lanczossharp interpolation tscale=oversample -' >> /home/$(whoami)/.config/mpv/mpv.conf +EOF + +sudo systemctl enable fstrim.timer +sudo systemctl enable --now ananicy +sudo mkinitcpio -p linux -systemctl enable fstrim.timer -systemctl enable --now ananicy -mkinitcpio -p linux +# Fixing Fonts and shit + +cat <> /etc/profile.d/freetype2.sh +export FREETYPE_PROPERTIES="truetype:interpreter-version=40" +EOF + +touch ~/.config/fontconfig/conf.d/20-no-embedded.conf +cat <> ~/.config/fontconfig/conf.d/20-no-embedded.conf + + + + + + false + + + +EOF + +# Installing Windows Fonts echo -e "\nDone!\n" rm -rf /home/$(whoami)/Documents/temp -<>/home/$(whoami)/Documents/install.log - ################################################################################ # # Chris, if you read this. Please look into here! -# https://gitlab.com/gabmus/bestArch#use-systemd-boot +# https://gitlab.com/gabmus/bestArch # This is a blessing from the gods. -# +# - Thanks, Lilly ################################################################################ \ No newline at end of file From 1baa3051795e1c5fdf155753f936cb141f1b4131 Mon Sep 17 00:00:00 2001 From: Lisa Date: Mon, 18 Oct 2021 22:56:27 +0200 Subject: [PATCH 04/13] added intel and powersave --- 10-gaming-setup.sh | 52 +++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 47 insertions(+), 5 deletions(-) diff --git a/10-gaming-setup.sh b/10-gaming-setup.sh index 73daec340..8d0e53531 100644 --- a/10-gaming-setup.sh +++ b/10-gaming-setup.sh @@ -41,7 +41,7 @@ mkdir temp pacman -Syy --noconfirm PS3='Please enter your GPU choice: ' -options=("Nvidia" "AMDGPU" "Quit") +options=("Nvidia" "AMDGPU" "Intel") select opt in "${options[@]}" do case $opt in @@ -54,10 +54,10 @@ do ;; "AMDGPU") echo "You chose AMDGPU" - pacman -S xf86-video-amdgpu --noconfirm --needed + pacman -S xf86-video-amdgpu amd-ucode --noconfirm --needed ;; - "Continue"|"Q"|"Quit"|*) - break + "Intel") + pacman -S libva-intel-driver libvdpau-va-gl lib32-vulkan-intel vulkan-intel intel-ucode --needed --noconfirm ;; *) echo "invalid option $REPLY";; esac @@ -171,7 +171,49 @@ cat <> ~/.config/fontconfig/conf.d/20-no-embedded.conf EOF -# Installing Windows Fonts +# Fixes. If you dont want em, remove em + +pacman -S \ + libappindicator-gtk3 `#Fixes blurry icons in Electron programs` \ + appmenu-gtk-module `#Fixes for GTK3 menus` \ + xdg-desktop-portal \ + xdg-desktop-portal `#These two instruct programs to show KDE's file picker whenever possible` \ + --noconfirm --needed + + + +PS3='Please enter your Drive type: ' +options=("SSD" "HDD" "NVME") +select opt in "${options[@]}" +do + case $opt in + "SSD") + echo "You chose SSD" + ACTION=="add|change", KERNEL=="sd[a-z]|mmcblk[0-9]*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="bfq" + ;; + "HDD") + echo "You chose HDD" + ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq" + ;; + "NVME") + echo "You chose NVME" + ACTION=="add|change", KERNEL=="nvme[0-9]*", ATTR{queue/scheduler}="none" + ;; + *) echo "invalid option $REPLY";; + esac +done + +echo "Do you wish to install energy saving for Laptop" +select yn in "Yes" "No" +case $yn in + Yes ) sudo pacman -S tlp --noconfirm --needed + sudo systemctl enable tlp --now;; + No ) exit;; +esac + +sudo journalctl --vacuum-size=100M +sudo journalctl --vacuum-time=2weeks +sudo systemctl enable --now systemd-journald.service echo -e "\nDone!\n" From 606a45ef1512b0021e3ac967e9c65688fe260581 Mon Sep 17 00:00:00 2001 From: Lisa Date: Mon, 18 Oct 2021 22:58:58 +0200 Subject: [PATCH 05/13] rgb software added --- 10-gaming-setup.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/10-gaming-setup.sh b/10-gaming-setup.sh index 8d0e53531..86f531090 100644 --- a/10-gaming-setup.sh +++ b/10-gaming-setup.sh @@ -25,6 +25,7 @@ PKGS=( 'pipewire-pulse' 'pipewire-alsa' 'freetype2-cleartype' +'chromium-vaapi-bin' ) sudo pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com @@ -57,7 +58,7 @@ do pacman -S xf86-video-amdgpu amd-ucode --noconfirm --needed ;; "Intel") - pacman -S libva-intel-driver libvdpau-va-gl lib32-vulkan-intel vulkan-intel intel-ucode --needed --noconfirm + pacman -S libva-intel-driver libvdpau-va-gl lib32-vulkan-intel vulkan-intel intel-ucode libva-intel-driver libva-utils --needed --noconfirm ;; *) echo "invalid option $REPLY";; esac @@ -211,6 +212,14 @@ case $yn in No ) exit;; esac +echo "Do you wish to install RGB Software?" +select yn in "Yes" "No" +case $yn in + Yes ) sudo pacman -S openrgb solaar --noconfirm --needed;; + No ) exit;; +esac + + sudo journalctl --vacuum-size=100M sudo journalctl --vacuum-time=2weeks sudo systemctl enable --now systemd-journald.service @@ -218,7 +227,9 @@ sudo systemctl enable --now systemd-journald.service echo -e "\nDone!\n" -rm -rf /home/$(whoami)/Documents/temp +sudo grub-mkconfig -o /boot/grub/grub.cfg + +sudo rm -rf /home/$(whoami)/Documents/temp ################################################################################ # From 85869e68e147558b6d1e50e306ab53fcada3a69b Mon Sep 17 00:00:00 2001 From: Lisa Date: Mon, 18 Oct 2021 23:00:12 +0200 Subject: [PATCH 06/13] Formatting and whitespaces --- 10-gaming-setup.sh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/10-gaming-setup.sh b/10-gaming-setup.sh index 86f531090..39c941515 100644 --- a/10-gaming-setup.sh +++ b/10-gaming-setup.sh @@ -34,8 +34,6 @@ sudo pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.ta echo "[chaotic-aur] Include = /etc/pacman.d/chaotic-mirrorlist" >> /etc/pacman.conf - - cd /home/$(whoami)/Documents/ mkdir temp @@ -95,7 +93,6 @@ systemctl --user enable pipewire pipewire-pulse #cd performance-tweaks #makepkg -si --noconfirm - # We want to set them every boot! Thats why we need to make a File thats launched on boot! touch /etc/init.d/titusscript @@ -137,7 +134,6 @@ if $nvidia == true; then EOF fi - cat <> /home/$(whoami)/.config/mpv/mpv.conf vo=vdpau profile=opengl-hq @@ -181,8 +177,6 @@ pacman -S \ xdg-desktop-portal `#These two instruct programs to show KDE's file picker whenever possible` \ --noconfirm --needed - - PS3='Please enter your Drive type: ' options=("SSD" "HDD" "NVME") select opt in "${options[@]}" @@ -219,7 +213,6 @@ case $yn in No ) exit;; esac - sudo journalctl --vacuum-size=100M sudo journalctl --vacuum-time=2weeks sudo systemctl enable --now systemd-journald.service From f5bbd88397b65789164be306a8f33c01c0feafba Mon Sep 17 00:00:00 2001 From: Lisa Date: Mon, 18 Oct 2021 23:04:40 +0200 Subject: [PATCH 07/13] Added emojie font color rendering and made swappiness permanent --- 10-gaming-setup.sh | 195 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 192 insertions(+), 3 deletions(-) diff --git a/10-gaming-setup.sh b/10-gaming-setup.sh index 39c941515..41132bf96 100644 --- a/10-gaming-setup.sh +++ b/10-gaming-setup.sh @@ -26,6 +26,7 @@ PKGS=( 'pipewire-alsa' 'freetype2-cleartype' 'chromium-vaapi-bin' +'discord' ) sudo pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com @@ -67,7 +68,7 @@ for PKG in "${PKGS[@]}"; do sudo pacman -S "$PKG" --noconfirm --needed done -pacman -S noto-fonts noto-fonts-cjk ttf-dejavu ttf-liberation ttf-opensans ttf-roboto ttf-roboto-mono ttf-ubuntu-font-family --noconfirm --needed +pacman -S noto-fonts noto-fonts-cjk ttf-dejavu ttf-liberation ttf-opensans ttf-roboto ttf-roboto-mono ttf-ubuntu-font-family ttf-joypixels --noconfirm --needed ln -s /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d ln -s /etc/fonts/conf.avail/10-sub-pixel-rgb.conf /etc/fonts/conf.d ln -s /etc/fonts/conf.avail/11-lcdfilter-default.conf /etc/fonts/conf.d @@ -113,11 +114,14 @@ sysctl -w net.ipv4.udp_wmem_min = 8192 sysctl -w net.ipv4.tcp_fastopen = 3 sysctl -w net.ipv4.tcp_max_syn_backlog = 8192 sysctl -w net.ipv4.tcp_max_tw_buckets = 2000000 -sysctl -w vm.swappiness = 10 EOF chmod +x /etc/init.d/titusscript update-rc titusscript defaults 40 1 +sudo cat <> /etc/sysctl.d/99-swappiness.conf +vm.swappiness=10 +EOF + if $nvidia == true; then sudo cat <> /etc/pacman.d/hooks/nvidia.hook [Trigger] @@ -134,7 +138,7 @@ if $nvidia == true; then EOF fi -cat <> /home/$(whoami)/.config/mpv/mpv.conf +sudo cat <> /home/$(whoami)/.config/mpv/mpv.conf vo=vdpau profile=opengl-hq hwdec=vdpau @@ -151,6 +155,191 @@ sudo mkinitcpio -p linux # Fixing Fonts and shit +## Enables Emojie Rendering + +sudo rm /etc/fonts/conf.d/75-joypixels.conf + +sudo cat <> /etc/fonts/conf.d/75-joypixels.conf + + + + + + + + + + emoji + JoyPixels + + + + + sans + JoyPixels + + + + serif + JoyPixels + + + + sans-serif + JoyPixels + + + + monospace + JoyPixels + + + + + + DejaVu + + + + charset + + + 0x1f600 + 0x1f640 + + + + + + + + + EmojiOne + JoyPixels + + + + Emoji One + JoyPixels + + + + EmojiOne Color + JoyPixels + + + + EmojiOne Mozilla + JoyPixels + + + + + Apple Color Emoji + JoyPixels + + + + Segoe UI Emoji + JoyPixels + + + + Segoe UI Symbol + JoyPixels + + + + Noto Color Emoji + JoyPixels + + + + NotoColorEmoji + JoyPixels + + + + Android Emoji + JoyPixels + + + + Noto Emoji + JoyPixels + + + + Twitter Color Emoji + JoyPixels + + + + Twemoji + JoyPixels + + + + Twemoji Mozilla + JoyPixels + + + + TwemojiMozilla + JoyPixels + + + + EmojiTwo + JoyPixels + + + + Emoji Two + JoyPixels + + + + EmojiSymbols + JoyPixels + + + + Symbola + JoyPixels + + +EOF + cat <> /etc/profile.d/freetype2.sh export FREETYPE_PROPERTIES="truetype:interpreter-version=40" EOF From f9b2fa538ee68bf82675d1cde99c85a6a660417e Mon Sep 17 00:00:00 2001 From: Lisa Date: Mon, 18 Oct 2021 23:09:56 +0200 Subject: [PATCH 08/13] may be done now --- 10-gaming-setup.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/10-gaming-setup.sh b/10-gaming-setup.sh index 41132bf96..aee3aef57 100644 --- a/10-gaming-setup.sh +++ b/10-gaming-setup.sh @@ -27,6 +27,7 @@ PKGS=( 'freetype2-cleartype' 'chromium-vaapi-bin' 'discord' +'gopreload-git' ) sudo pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com @@ -153,6 +154,12 @@ sudo systemctl enable fstrim.timer sudo systemctl enable --now ananicy sudo mkinitcpio -p linux +# Performance by preloading +## SRC https://en.wikipedia.org/wiki/Preload_(software) +## https://wiki.archlinux.org/title/Preload + +chown -R $(whoami):$(whoami) /usr/share/gopreload/enabled /usr/share/gopreload/disabled + # Fixing Fonts and shit ## Enables Emojie Rendering From fa0d06c5efa61834e3ed328ef3e528743aa37bc5 Mon Sep 17 00:00:00 2001 From: Lisa Date: Mon, 18 Oct 2021 23:18:15 +0200 Subject: [PATCH 09/13] idk if the amd and nvidia mkinitthings work --- 10-gaming-setup.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/10-gaming-setup.sh b/10-gaming-setup.sh index aee3aef57..2180c91a4 100644 --- a/10-gaming-setup.sh +++ b/10-gaming-setup.sh @@ -36,6 +36,9 @@ sudo pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.ta echo "[chaotic-aur] Include = /etc/pacman.d/chaotic-mirrorlist" >> /etc/pacman.conf +$nvidia = false +$amd = false + cd /home/$(whoami)/Documents/ mkdir temp @@ -55,6 +58,7 @@ do ;; "AMDGPU") echo "You chose AMDGPU" + $amd = true pacman -S xf86-video-amdgpu amd-ucode --noconfirm --needed ;; "Intel") @@ -123,6 +127,28 @@ sudo cat <> /etc/sysctl.d/99-swappiness.conf vm.swappiness=10 EOF +if $amd == true; then + sudo cat <> /etc/X11/xorg.conf.d/99-amdgpu.conf +Section "Device" + Identifier "AMD" + Driver "amdgpu" + Option "TearFree" "true" +EndSection +EOF + +sudo cat <> /etc/X11/xorg.conf.d/99-amdgpu.conf +Section "Device" + Identifier "AMD" + Driver "amdgpu" + Option "TearFree" "true" + Option "VariableRefresh" "true" +EndSection +EOF + sudo cat <> /etc/mkinitcpio.conf + MODULES=(amdgpu) +EOF +fi + if $nvidia == true; then sudo cat <> /etc/pacman.d/hooks/nvidia.hook [Trigger] @@ -137,6 +163,10 @@ if $nvidia == true; then When=PostTransaction Exec=/usr/bin/mkinitcpio -P EOF + sudo cat <> /etc/mkinitcpio.conf + MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm) +EOF + fi sudo cat <> /home/$(whoami)/.config/mpv/mpv.conf From 65504acb753e6282f7f3da535fee958680a57c9c Mon Sep 17 00:00:00 2001 From: Lisa Date: Mon, 18 Oct 2021 23:21:21 +0200 Subject: [PATCH 10/13] formatting --- 10-gaming-setup.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/10-gaming-setup.sh b/10-gaming-setup.sh index 2180c91a4..902e8a71d 100644 --- a/10-gaming-setup.sh +++ b/10-gaming-setup.sh @@ -166,7 +166,6 @@ EOF sudo cat <> /etc/mkinitcpio.conf MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm) EOF - fi sudo cat <> /home/$(whoami)/.config/mpv/mpv.conf From 34a8a8c11063473c2b5232cd83c785695d44ac62 Mon Sep 17 00:00:00 2001 From: Lisa Date: Mon, 18 Oct 2021 23:25:56 +0200 Subject: [PATCH 11/13] amd and intel u code on initrd hopefully --- 10-gaming-setup.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/10-gaming-setup.sh b/10-gaming-setup.sh index 902e8a71d..997ea487b 100644 --- a/10-gaming-setup.sh +++ b/10-gaming-setup.sh @@ -168,6 +168,27 @@ EOF EOF fi +echo "AMD or Intel?" +select yn in "AMD" "Intel" +case $yn in + AMD ) + sudo cat <> /boot/loader/entries/arch.conf + initrd /amd-ucode.img +EOF ;; + Intel ) + sudo cat <> /boot/loader/entries/arch.conf + initrd /intel-ucode.img +EOF;; +esac + +sudo cat <> /boot/loader/entries/arch.conf +initrd /intel-ucode.img +EOF + +sudo cat <> /etc/sysctl.d/99-sysctl.conf +kernel.sysrq=1 +EOF + sudo cat <> /home/$(whoami)/.config/mpv/mpv.conf vo=vdpau profile=opengl-hq From bc08b7c0731d2239abf7024bc07c78479e3678f4 Mon Sep 17 00:00:00 2001 From: Lisa Date: Mon, 18 Oct 2021 23:27:40 +0200 Subject: [PATCH 12/13] systemd-boot-pacman-hook added --- 10-gaming-setup.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/10-gaming-setup.sh b/10-gaming-setup.sh index 997ea487b..a03ec8aae 100644 --- a/10-gaming-setup.sh +++ b/10-gaming-setup.sh @@ -28,6 +28,7 @@ PKGS=( 'chromium-vaapi-bin' 'discord' 'gopreload-git' +'systemd-boot-pacman-hook' ) sudo pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com @@ -73,6 +74,18 @@ for PKG in "${PKGS[@]}"; do sudo pacman -S "$PKG" --noconfirm --needed done +sudo cat < /etc/pacman.d/hooks/100-systemd-boot.hook +[Trigger] +Type = Package +Operation = Upgrade +Target = systemd + +[Action] +Description = Updating systemd-boot +When = PostTransaction +Exec = /usr/bin/bootctl update +EOF + pacman -S noto-fonts noto-fonts-cjk ttf-dejavu ttf-liberation ttf-opensans ttf-roboto ttf-roboto-mono ttf-ubuntu-font-family ttf-joypixels --noconfirm --needed ln -s /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d ln -s /etc/fonts/conf.avail/10-sub-pixel-rgb.conf /etc/fonts/conf.d From ea351458301d0accad626bebe3eb76312cd3883b Mon Sep 17 00:00:00 2001 From: Lisa Date: Mon, 18 Oct 2021 23:28:57 +0200 Subject: [PATCH 13/13] secureboot version lol --- 10-gaming-setup.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/10-gaming-setup.sh b/10-gaming-setup.sh index a03ec8aae..0e89d1e16 100644 --- a/10-gaming-setup.sh +++ b/10-gaming-setup.sh @@ -86,6 +86,25 @@ When = PostTransaction Exec = /usr/bin/bootctl update EOF +#------------------------------------------------------------------------- +# Secure Boot Version +#sudo cat < /etc/pacman.d/hooks/99-secureboot.hook +#[Trigger] +#Operation = Install +#Operation = Upgrade +#Type = Package +#Target = linux +#Target = systemd + +#[Action] +#Description = Signing Kernel for SecureBoot +#When = PostTransaction +#Exec = /usr/bin/find /boot -type f ( -name vmlinuz-* -o -name systemd* ) -exec /usr/bin/sh -c 'if ! /usr/bin/sbverify --list {} 2>/dev/null | /usr/bin/grep -q "signature certificates"; then /usr/bin/sbsign --key db.key --cert db.crt --output "$1" "$1"; fi' _ {} ; +#Depends = sbsigntools +#Depends = findutils +#Depends = grep +#EOF + pacman -S noto-fonts noto-fonts-cjk ttf-dejavu ttf-liberation ttf-opensans ttf-roboto ttf-roboto-mono ttf-ubuntu-font-family ttf-joypixels --noconfirm --needed ln -s /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d ln -s /etc/fonts/conf.avail/10-sub-pixel-rgb.conf /etc/fonts/conf.d