Last active
April 3, 2026 10:28
-
-
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
maybe it would be worth removing nvidia-dkms or regular drivers as an option, because not everyone needs dkms. Lutris is also ok, but now many people are using Steam Proton, you could also add the steam package for completeness. Overall, it looks like a good basic setup, I would use it to quickly boot the system after a clean install. I generally like this approach when you automate your routine, it's like with finances or investments. when you set up the process once and it works. By the way, I saw a good analysis on this topic https://cryptopayingnz.com/sharesies-review/ there, too, about the convenience and optimization of solutions. In short, as a base, it's very good, just finish it a little more and it will be a top script.