Install Lutris Gaming on Debian

Advertisement

Advertisement

Introduction

This will guide through the steps to install Lutris for gaming on Debian Linux. I followed these steps using Debian 11 to play StarCraft 2 and other games.

Enable 32-bit repos

For several things, you'll need the 32-bit libraries so enable that with apt.

# Enable multilib
sudo dpkg --add-architecture i386
sudo apt edit-sources

Then in the apt sources, make sure i386 is added

deb [arch=amd64,i386] http://deb.debian.org/debian/ bullseye main non-free contrib
sudo apt update

Install wine staging

# Trust Wine's gpg key
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key

sudo apt edit-sources
# Add the following line: Replace bullseye with current version
deb https://dl.winehq.org/wine-builds/debian/ bullseye main

# Install updated wine packages
sudo apt update
sudo apt install --install-recommends winehq-staging

Without installing Wine staging, I would see errors like the following:

err:kerberos:kerberos_LsaApInitializePackage no Kerberos support
err:user:load_desktop_driver failed to load L"winex11.drv"

Install NVidia drivers in Debian

To disable the Nouveau drivers and install the NVIDIA drivers,

sudo vim /etc/modprobe.d/blacklist-nouveau.conf

Put the following contents in the file:

blacklist nouveau
options nouveau modeset=0

Then update initramf and reboot.

sudo update-initramfs -u
sudo reboot

Then you can download and run the official NVIDIA driver installer from https://www.nvidia.com/Download/index.aspx.

# For example:
sudo /bin/sh NVIDIA-Linux-x86_64-470.94.run

Switching to console only mode

If you are in the desktop environment, and you need to turn it off for NVIDIA installer to run properly, open your terminal and run init 3 to get to terminal only mode:

sudo init 3
# Then press CTRL+ALT+F1 or F2

# Install the drivers

# To get back to graphical mode:
sudo init 5

Vulkan drivers

Install the libvulkan stuff or it will complain about not being able to find vulkan 32-bit drivers.

sudo apt install libvulkan1 libvulkan1:i386

Install Lutris

Follow instructions on Lutris website: https://lutris.net/downloads

At the time of writing this, the Debian 11 steps were:

echo "deb http://download.opensuse.org/repositories/home:/strycore/Debian_11/ ./" | sudo tee /etc/apt/sources.list.d/lutris.list

wget -q https://download.opensuse.org/repositories/home:/strycore/Debian_11/Release.key -O- | sudo apt-key add -

sudo apt update
sudo apt install lutris

Install games with Lutris

To install games with Lutris, open the program and find in the left menu: "Sources | Lutris" and then select the "Community Installers" tab and search.

Each game by default will create its own Wine prefix directory in $HOME/Games.

Installing StarCraft 2

For StarCraft 2, I also needed winbind and gnutls.

sudo apt install winbind libgnutls{xx28,28-dev}:i386

References

Advertisement

Advertisement