Last active
March 2, 2025 10:39
-
-
Save ph33nx/44902dac3801b7901e2796490b892007 to your computer and use it in GitHub Desktop.
Arch Linux Gaming Setup Script: Automate the installation of NVIDIA drivers, Wine, Lutris, Vulkan, and essential 32-bit libraries for gaming. This script ensures a complete gaming environment setup with DXVK and Winetricks on Arch-based systems. Perfect for gamers looking to optimize their Linux setup for titles on Steam, Epic, or standalone Win…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Gaming Setup Script for Arch Linux with Nvidia GPU | |
# Author: ph33nx | |
# Description: Installs all necessary packages and configurations for gaming on Arch Linux | |
# Update system and keyring | |
echo "Updating system and keyring..." | |
sudo pacman -Syu --needed --noconfirm archlinux-keyring | |
# Install essential packages in a single command | |
echo "Installing essential gaming packages..." | |
sudo pacman -S --needed --noconfirm \ | |
wine wine-gecko wine-mono winetricks lib32-gnutls \ | |
vulkan-icd-loader lib32-vulkan-icd-loader \ | |
lib32-libx11 lib32-libxext lib32-libxrender lib32-libxi \ | |
lib32-libxcb lib32-libxdmcp lib32-libxrandr lib32-libpulse \ | |
lib32-libdbus lib32-alsa-lib lutris nvidia nvidia-utils \ | |
nvidia-dkms lib32-nvidia-utils | |
# Configure Winetricks for essential components | |
echo "Configuring Wine with Winetricks..." | |
winetricks --unattended corefonts vcrun2015 dxvk | |
# Confirm NVIDIA driver installation | |
echo "Verifying NVIDIA driver installation..." | |
if nvidia-smi > /dev/null 2>&1; then | |
echo "NVIDIA driver installed successfully." | |
else | |
echo "NVIDIA driver installation failed. Check system logs." | |
fi | |
# Final message | |
echo "Gaming setup is complete! You can now use Lutris and Wine for gaming." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment