Install and manage games with Lutris Play Time
Install and manage games with Lutris Play Time
If you frequently play games on Linux, you are accustomed to dealing with many different installers and configurations. Lutris can help simplify the process of setting up all your games.
Games and Linux are normally not a good match. Often a troublesome configuration or Wine issues make the setup a slow and time-consuming process. With Lutris [1], an open gaming platform, you just need a few mouse clicks to set up a new game on Linux.
When it comes to commercial software, Lutris will only install games that you have purchased in advance. However, Lutris usually automatically accesses free and open source games from online stores, such as Steam [2] and GOG.com [3]. All the games you install are stored in an integrated library; from there, the games can be started (or easily removed) at the push of a button.
Helpers
Lutris uses Wine to launch numerous Windows games on Linux and takes care of the required Wine configuration independently. The program also cooperates with many other emulators, which you can use to launch countless classics, from the original Space Invaders to the Colonization strategy game for DOS.
Lutris uses runners, which are programs that run the games. For example, the Overwatch action game launches with the Wine runner, while Colonization, the legacy strategy game, is driven by the DOSBox runner with a DOS emulator of the same name (Figure 1).
Native Linux programs have their own runner – unsurprisingly named Linux. The Lutris website [4] lists the currently supported runners, which include not only Wine and DOSBox, but also FS-UAE for Amiga and PCSX2 for Playstation 2 emulators, plus many more.
Lutris does not actually install games itself. Instead, it uses community-maintained installation scripts. A list of all currently supported games can be found on the Lutris website under the Games tab (Figure 2).
Installation
Some distributions, including openSUSE v15.1 and later, offer Lutris via their software package management. However, there are plenty of community packages available for older releases. The Lutris developers provide their own Ubuntu Personal Package Archives (PPA) repository. Listing 1 shows the three commands that add the repository and install the current Lutris version.
Listing 1
Installing Lutris on Ubuntu
$ sudo add-apt-repository ppa:lutris-team/lutris $ sudo apt-get update $ sudo apt-get install lutris
If the distribution you are using does not provide a Lutris package, download the tar.gz
archive from the Download section of the Lutris website and extract it to disk; installing is not required.
Before you install Lutris, you need to make sure that you have Wine and all other required dependencies installed on your system (see the "Requirements" box). You can find these dependencies via the software package administration. On Ubuntu, the command from Listing 2 installs all necessary dependencies. You can then launch Lutris by calling ./bin/lutris
from the program's directory.
Listing 2
Installing Dependencies on Ubuntu
$ sudo apt install python3-yaml python3-requests python3-pil python3-gi gir1.2-gtk-3.0 gir1.2-gnomedesktop-3.0 gir1.2-webkit2-4.0 gir1.2-notify-0.7 psmisc cabextract unzip p7zip curl fluid-soundfont-gs x11-xserver-utils python3-evdev libc6-i386 lib32gcc1 libgirepository1.0-dev
Requirements
Lutris requires a number of tools and libraries. To run the Lutris client, you need to install:
- Python 3.4 or higher
- PyGObject
- PyGObject bindings (GTK, GDK, Gnome Desktop, WebKit2, and Notify)
- python3-requests
- python3-pillow
- python3-yaml
- python3-evdev (optional for controller detection)
To install and run games with Lutris, you need the additional packages:
- PSmisc (or a package for
fuser
) - pz7zip (or a package for
7z
) - cURL
- fluid-soundfont-gs (or other soundfonts to play MIDI music)
cabextract
(for installing Windows games)xrandr
(for systems with an X11 server)- libc6-i386 and lib32gcc1 (for 32-bit game support)
- A 32-bit OpenGL graphics card driver
Some games use the Vulkan graphics interface. If Lutris complains about missing Vulkan libraries at startup, you need to install these libraries manually. The procedure depends on which graphics card and distribution you use. (Describing this process is beyond this article's scope; for detailed instructions, see the Lutris Wiki [5]).
Runners
In the initially empty main window, Lutris displays all the currently active runners in the left sidebar (similar to the sidebar in Figure 3). At first, only the Browser and Linux runners should appear. These allow Lutris to install native Linux programs and run browser games. To add more runners, click the gear icon to the right of Runners and select the desired runners from the list (Figure 4).
If you want Lutris to start and manage Windows games, you need the Wine runner (located at the bottom of the list). Click on the adjacent green installation button. With Wine, you can even select specific versions. Unless you have a reason, you should always select the highest version number without the tkg prefix.
Lutris stores the downloaded runners in the home directory below .local/share/lutris/runners/
, smuggling them past the distribution's package manager. Install all the other required runners in the same manner. The DOSBox runner for DOS classic games is especially useful.
If you want to play games from Steam, then you also need the Steam and Wine Steam runners. Steam is responsible for native Linux games on Steam, while Wine Steam launches Windows games offered on Steam. When setting up Wine Steam, your system may complain about missing Wine-Mono and Wine-Gecko packages; install them if necessary.
Incidentally, the runners are the Steam client for Linux or Windows, which Lutris uses for its own purposes. On our test system, Lutris did not want to install the Steam runner. In this case, you need to manually install the Steam client for Linux, and Lutris will automatically detect it the next time it starts.
To delete a runner, click on the red trash icon next to the runner in the Manage Runners window.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.
-
ZorinOS 17.1 Released, Includes Improved Windows App Support
If you need or desire to run Windows applications on Linux, there's one distribution intent on making that easier for you and its new release further improves that feature.
-
Linux Market Share Surpasses 4% for the First Time
Look out Windows and macOS, Linux is on the rise and has even topped ChromeOS to become the fourth most widely used OS around the globe.
-
KDE’s Plasma 6 Officially Available
KDE’s Plasma 6.0 "Megarelease" has happened, and it's brimming with new features, polish, and performance.
-
Latest Version of Tails Unleashed
Tails 6.0 is based on Debian 12 and includes GNOME 43.
-
KDE Announces New Slimbook V with Plenty of Power and KDE’s Plasma 6
If you're a fan of KDE Plasma, you'll be thrilled to hear they've announced a new Slimbook with an AMD CPU and the latest version of KDE Plasma desktop.
-
Monthly Sponsorship Includes Early Access to elementary OS 8
If you want to get a glimpse of what's in the pipeline for elementary OS 8, just set up a monthly sponsorship to help fund its continued existence.