1
0
Fork 0
mirror of synced 2024-05-29 05:21:10 -04:00

Rework setup-assistant

This commit is contained in:
Nico Jensch 2020-11-10 19:53:33 +01:00
parent c8671c2466
commit 456d0b7562

View file

@ -8,25 +8,6 @@ function goto
exit exit
} }
function upgrade2ultimate
{
sudo pacman -S --noconfirm --needed garuda-alsa garuda-pulse garuda-pipewire pulseaudio-ctl playerctl
sudo pacman -S --noconfirm --needed qomui-git
sudo pacman -S --noconfirm --needed garuda-settings-samba system-config-samba garuda-printer garuda-scanner
## Desktop Utils
sudo pacman -S --noconfirm --needed libdvdcss libva-utils vdpauinfo vulkan-tools mesa-demos lib32-mesa-demos
sudo pacman -S --noconfirm --needed garuda-asian noto-fonts-extra ttf-opensans
## office
sudo pacman -S --noconfirm --needed libreoffice-fresh
sudo pacman -S --noconfirm --needed libmythes
## Internet applications
sudo pacman -S --noconfirm --needed telegram-desktop joplin murmur mumble discord streamlink-twitch-gui syncthing-gtk nextcloud-client firefox-extension-bitwarden fractal firefox-extension-xdm-browser-monitor
sudo pacman -S --noconfirm --needed garuda-virt-manager
sync
}
systemctl --user enable gamemoded >/dev/null 2>&1 & systemctl --user enable gamemoded >/dev/null 2>&1 &
systemctl --user start gamemoded >/dev/null 2>&1 & systemctl --user start gamemoded >/dev/null 2>&1 &
@ -42,97 +23,153 @@ systemctl --user start psd >/dev/null 2>&1 &
libinput-gestures-setup autostart >/dev/null 2>&1 & libinput-gestures-setup autostart >/dev/null 2>&1 &
libinput-gestures-setup start >/dev/null 2>&1 & libinput-gestures-setup start >/dev/null 2>&1 &
setup_dxvk install 2>&1 &
clear clear
echo "Welcome to the initial setup assistant!" echo "Welcome to the initial setup assistant!"
: start : start
clear
echo "What do you want to do?" echo "What do you want to do?"
echo "" echo ""
echo "1) Get initial mirrorlist & download list of packages" echo "1) Get initial mirrorlist & download list of packages"
echo "2) Update the system" echo "2) Update the system"
echo "3) Debloat the system" echo "3) Enable systemwide adblocking / HiDPI mode"
echo "4) Enable systemwide adblocking / HiDPI mode / guest user" echo "4) Disable CPU migitations / change boot options"
echo " also disable Samba / printing / scanner support"
echo "5) Disable CPU migitations / enable sysrq / set boot options"
echo "6) Fix missing characters by installing asian fonts packages"
echo "7) Enable Snap, Appimage & Flatpak support"
echo "8) Install gaming dependencies, Lutris & Steam"
echo "9) Upgrade to Ultimate edition"
echo "" echo ""
echo "10) Exit" echo "Install additional (Ultimate) packages:"
echo "5) Asian fonts packages"
echo "6) Snap, Appimage & Flatpak support"
echo "7) Gaming dependencies, Lutris & Steam"
echo "8) PulseAudio, Alsa & Pipewire support"
echo "9) Scanner, Printer & Samba support"
echo "10) Office packages (Libreoffice, Onlyoffice, ...)"
echo "11) Recommended desktop utilities (Telegram, Nextcloud, XDM, ...)"
echo "12) Virtualisation software"
echo "" echo ""
echo "13) Exit"
read selection read selection
if [ $selection = "1" ]; then if [ $selection = "1" ]; then
echo "" clear
echo "Select options in Reflector Simple!" echo "Select options in Reflector Simple!"
echo "If no mirrors were found select german servers." echo "If no mirrors were found select german servers."
reflector-simple >/dev/null 2>&1 reflector-simple >/dev/null 2>&1
sudo pacman -Syy sudo pacman -Syy
echo ""
goto "start" goto "start"
elif [ $selection = "2" ]; then elif [ $selection = "2" ]; then
echo "" clear
sudo pacman -Syu sudo pacman -Syu
echo ""
echo "System upgraded."
echo ""
goto "start" goto "start"
elif [ $selection = "3" ]; then elif [ $selection = "3" ]; then
echo "" clear
echo "Follow the short tutorial."
echo "Make sure to inspect the removed packages first! 🛑"
firefox --new-window https://wiki.garudalinux.org/en/removing-bloat >/dev/null 2>&1 &
pamac-manager >/dev/null 2>&1
goto "start"
elif [ $selection = "4" ]; then
echo ""
echo "Find it in the settings tab. 🖥" echo "Find it in the settings tab. 🖥"
garuda-welcome >/dev/null 2>&1 garuda-welcome >/dev/null 2>&1
echo ""
goto "start" goto "start"
elif [ $selection = "5" ]; then elif [ $selection = "4" ]; then
echo "" clear
echo "Disabling CPU mitiations increases performance but can possibly lead to" echo "Disabling CPU mitiations increases performance but can possibly lead to"
echo "security issues." echo "security issues."
echo "Use it with caution! 🛑" echo "Use it with caution! 🛑"
sudo garuda-boot-options >/dev/null 2>&1 sudo garuda-boot-options >/dev/null 2>&1
echo ""
goto "start" goto "start"
elif [ $selection = "6" ]; then elif [ $selection = "5" ]; then
echo "" clear
sudo pacman -Syu --noconfirm garuda-asian sudo pacman -Syu --noconfirm garuda-asian noto-fonts-extra
echo ""
echo "Extra fonts should be installed now."
goto "start" goto "start"
elif [ $selection = "7" ]; then elif [ $selection = "6" ]; then
echo "" clear
sudo pacman -R pamac-aur pamac-tray-appindicator sudo pacman -R pamac-aur pamac-tray-appindicator
sudo pacman -Syu --noconfirm pamac-all appimagelauncher fwupd apparmor snapd snapd-glib flatpak sudo pacman -Syu --noconfirm pamac-all appimagelauncher fwupd apparmor snapd snapd-glib flatpak
echo "" sudo systemctl enable --now snapd
echo "Snap & Flatpak support should now be enabled." goto "start"
elif [ $selection = "7" ]; then
: game-selection
clear
echo "Which of these do you need?"
echo "1) WINE! (running Windoze apps)"
echo "2) Game launchers (Lutris, Steam, etc..)"
echo "3) Utilities (Fancontrol, Mangohud, Gamemode, ..)"
echo "4) Controller support"
echo "5) Go back"
read game
if [ $virt = "1" ]; then
sudo pacman -S garuda-wine
goto "game-selection"
elif [ $virt = "2" ]; then
sudo pacman -S ialauncher-git steam steam-native-runtime lutris gamehub itch minigalaxy legendary
goto "game-selection"
elif [ $virt = "3" ]; then
sudo pacman -S openrgb-git piper fancontrol-gui-git corectrl gwe goverlay-git mangohud lib32-mangohud gamemode lib32-gamemode dxvk-mingw-git vkbasalt proton-tkg-git libretro vulkan-tools mesa-demos lib32-mesa-demos libdvdcss libva-utils vdpauinfo
systemctl --user enable --now gamemoded 2>&1 &
setup_dxvk install 2>&1 &
goto "game-selection"
elif [ $virt = "4" ]; then
sudo pacman -S antimicrox linuxconsole xboxdrv xpadneo-dkms-git steamos-xpad-dkms xow-git xbox-generic-controller game-devices-udev retroarch-autoconfig-udev-git
goto "game-selection"
elif [ $virt = "5" ]; then
goto "start"
else echo "Thats not a valid choice! ❌"
goto "game-selection"
fi
goto "start" goto "start"
elif [ $selection = "8" ]; then elif [ $selection = "8" ]; then
echo "" clear
sudo pacman -S --noconfirm --needed garuda-wine sudo pacman -S --noconfirm --needed garuda-alsa garuda-pulse garuda-pipewire pulseaudio-ctl playerctl
sudo pacman -S --noconfirm --needed ialauncher-git steam steam-native-runtime lutris gamehub itch minigalaxy legendary
sudo pacman -S --noconfirm --needed openrgb-git piper fancontrol-gui-git corectrl gwe goverlay-git mangohud lib32-mangohud gamemode lib32-gamemode dxvk-mingw-git vkbasalt proton-tkg-git
sudo pacman -S --noconfirm --needed antimicrox linuxconsole xboxdrv xpadneo-dkms-git steamos-xpad-dkms xow-git xbox-generic-controller game-devices-udev retroarch-autoconfig-udev-git
sudo pacman -S --noconfirm --needed libretro
systemctl --user enable --now gamemoded
setup_dxvk install 2>&1 &
echo ""
echo "All gaming apps should now be installed. 🕹"
goto "start" goto "start"
elif [ $selection = "9" ]; then elif [ $selection = "9" ]; then
echo "" clear
upgrade2ultimate sudo pacman -S --noconfirm --needed garuda-settings-samba system-config-samba garuda-printer garuda-scanner
echo ""
goto "start" goto "start"
elif [ $selection = "10" ]; then elif [ $selection = "10" ]; then
: office-selection
clear
echo "Which of these do you need?"
echo "1) Libreoffice"
echo "2) Onlyoffice"
echo "3) WPS Office"
echo "4) Free Office"
echo "5) Yozo Office"
read office
if [ $office = "1" ]; then
sudo pacman -S libreoffice-fresh libmythes
goto "start"
elif [ $office = "2" ]; then
sudo pacman -S onlyoffice-bin
goto "start"
elif [ $office = "3" ]; then
sudo pacman -S wps-office wps-office-mime ttf-wps-fonts
goto "start"
elif [ $office = "4" ]; then
sudo pacman -S freeoffice
goto "start"
elif [ $office = "5" ]; then
sudo pacman -S yozo-office yozo-office-fonts
goto "start"
else echo "Thats not a valid choice! ❌"
goto "office-selection"
fi
elif [ $selection = "11" ]; then
clear
sudo pacman -S --noconfirm --needed telegram-desktop joplin murmur mumble discord streamlink-twitch-gui syncthing-gtk nextcloud-client firefox-extension-bitwarden fractal firefox-extension-xdm-browser-monitor
goto "start"
elif [ $selection = "12" ]; then
: virt-selection
clear
echo "Are you rather a fan of virtualbox or virt-manager?"
echo "1) Virtualbox all the way!"
echo "2) Id rather choose Virt-manager."
read virt
if [ $virt = "1" ]; then
sudo pacman -S garuda-virtualbox
goto "start"
elif [ $virt = "2" ]; then
sudo pacman -S garuda-virt-manager
goto "start"
else echo "Thats not a valid choice! ❌"
goto "virt-selection"
fi
elif [ $selection = "13" ]; then
exit exit
else echo "Thats not a valid choice! ❌" else echo "Thats not a valid choice! ❌"
goto "start" goto "start"