Merge branch 'main' of https://git.cmtec.se/cm/linuxbox
This commit is contained in:
@@ -135,18 +135,18 @@ if [ "$NVIDIA_GPU" == "yes" ] || [ "$NVIDIA_1080_GPU" == "yes" ]; then
|
||||
# Install nvidia drivers
|
||||
printf -- '\033[33m Installing NVIDIA drivers\n\033[37m'
|
||||
|
||||
if pacman -Qs nvidia-open >/dev/null; then
|
||||
if pacman -Qs nvidia-open-dkms >/dev/null; then
|
||||
NEW_KERNEL="no"
|
||||
elif pacman -Qs nvidia >/dev/null; then
|
||||
elif pacman -Qs nvidia-dkms >/dev/null; then
|
||||
NEW_KERNEL="no"
|
||||
else
|
||||
NEW_KERNEL="yes"
|
||||
fi
|
||||
|
||||
if [ "$NVIDIA_GPU" == "yes" ]; then
|
||||
sudo pacman --noconfirm --needed -S nvidia-open
|
||||
sudo pacman --noconfirm --needed -S nvidia-open-dkms
|
||||
elif [ "$NVIDIA_1080_GPU" == "yes" ]; then
|
||||
sudo pacman --noconfirm --needed -S nvidia
|
||||
sudo pacman --noconfirm --needed -S nvidia-dkms
|
||||
fi
|
||||
|
||||
sudo pacman --noconfirm --needed -S nvidia-utils nvidia-settings opencl-nvidia cuda
|
||||
@@ -377,15 +377,22 @@ if [ "$DESKTOP_BASE" == "yes" ]; then
|
||||
sudo pacman --noconfirm --needed -S noto-fonts poppler-data adobe-source-code-pro-fonts
|
||||
|
||||
printf -- '\033[33m Installing Sunshine\n\033[37m'
|
||||
yay --noconfirm --needed -S sunshine
|
||||
if ! grep -q "^\[lizardbyte\]" /etc/pacman.conf; then
|
||||
sudo tee -a /etc/pacman.conf >/dev/null <<EOT
|
||||
|
||||
[lizardbyte]
|
||||
SigLevel = Optional
|
||||
Server = https://github.com/LizardByte/pacman-repo/releases/latest/download
|
||||
EOT
|
||||
sudo pacman -Sy
|
||||
fi
|
||||
sudo pacman --noconfirm --needed -S lizardbyte/sunshine
|
||||
mkdir -p ~/.config/systemd/user
|
||||
cp -f ~/linuxbox/config/systemd/user/sunshine.service ~/.config/systemd/user/sunshine.service
|
||||
sudo udevadm control --reload-rules
|
||||
sudo udevadm trigger
|
||||
sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine))
|
||||
sudo systemctl daemon-reload
|
||||
systemctl --user enable sunshine
|
||||
systemctl --user start sunshine
|
||||
fi
|
||||
|
||||
if [ "$DESKTOP_WORK" == "yes" ]; then
|
||||
@@ -402,14 +409,18 @@ fi
|
||||
# Install game utility
|
||||
if [ "$GAME" == "yes" ]; then
|
||||
printf -- '\033[33m Installing game utilities\n\033[37m'
|
||||
sudo pacman -S --noconfirm --needed wine winetricks wine-mono wine-gecko qt5-tools
|
||||
sudo pacman -S --noconfirm --needed wine-staging winetricks wine-mono wine-gecko qt5-tools
|
||||
sudo pacman -S --noconfirm --needed steam
|
||||
yay --noconfirm -S --needed --aur protonup-qt protontricks
|
||||
yay --noconfirm -S --needed --aur lug-helper
|
||||
yay --noconfirm -S --needed --aur opentrack-git
|
||||
yay --noconfirm -S --needed --aur openmpi
|
||||
sudo pacman -S --noconfirm --needed fluidsynth gamemode gvfs libayatana-appindicator innoextract lib32-gamemode lib32-vkd3d python-pefile python-protobuf vulkan-icd-loader vkd3d lib32-vulkan-icd-loader vulkan-tools xorg-xgamma umu-launcher
|
||||
sudo pacman -S --noconfirm --needed lutris
|
||||
|
||||
if [ "$HOSTNAME" == "SIMONBOX" ]; then
|
||||
flatpak install -y flathub org.vinegarhq.Sober
|
||||
sudo pacman -S --noconfirm --needed fluidsynth gamemode gvfs libayatana-appindicator innoextract lib32-gamemode lib32-vkd3d python-pefile python-protobuf vulkan-icd-loader vkd3d lib32-vulkan-icd-loader vulkan-tools xorg-xgamma umu-launcher
|
||||
sudo pacman -S --noconfirm --needed lutris
|
||||
fi
|
||||
fi
|
||||
|
||||
# Install vr utility
|
||||
@@ -417,6 +428,8 @@ if [ "$VR" == "yes" ]; then
|
||||
printf -- '\033[33m Installing vr utilities\n\033[37m'
|
||||
sudo pacman -S --noconfirm --needed bc git-lfs cli11 glib2-devel nlohmann-json glew
|
||||
yay --noconfirm -S --needed --aur monado-vulkan-layers-git
|
||||
yay --noconfirm -S --needed --aur wlx-overlay-s-git
|
||||
yay --noconfirm -S --needed --aur xrgear
|
||||
yay --noconfirm -S --needed --aur envision-xr-git
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user