Featured image of post LibreGaming: Easily Setup your Distro for Gaming

LibreGaming: Easily Setup your Distro for Gaming

Python Program that downloads gaming required packages based on your Linux Distribution.

Downloads PyPI

Intro

LibreGaming Is a program for installing gaming required packages on Linux.

It works by identifying you Linux distribution and based on that info it installs the right packages for you. Currently supported distributions:

  • Ubuntu, of course.
  • Arch Linux, because I use Arch btw.
  • Fedora.
  • And finally OpenSUSE Tumbleweed.

The tool also should work on the above distributions derivatives too.

Lets talk features:

The tool is a great starting point when you have just made a clean install. No need to waste half an hour just to play games.

LibreGaming will install these packages for you:

  1. Steam.
  2. Wine-staging.
  3. Gamemode.
  4. ProtonGE, using protonup.
  5. Lutris Launcher.
  6. Heroic Launcher.
  7. MangoHud and Goverlay.
  8. itch.io Launcher.
  9. Athenaeum Launcher.
  10. Steam Tinker Launch.

Prerequisites:

Before you install LibreGaming you need to get the following:

  • You need your drivers installed beforehand for maximum performance under Linux. you can install them by going to this page

  • To run this LibreGaming script you need python3 installed if not already. to install python3 click Here.

  • Also you need to enable free and nonfree packages if you are using Fedora to install steam. You can find the commands to enable free and nonfree packages for Fedora here:

  • For OpenSUSE Tumbleweed you need to enable packman repos to install Steam and other packages. You can find that here

  • If you are using Arch Linux or an Arch based system you need to enable 32bit packages found in multilib repo you can enable it by going to this Arch wiki page.

Dependencies:

  • git
  1. Install git For Ubuntu:
sudo apt install git
  1. Install git For Arch Linux:
sudo pacman -S git
  1. Install git For Fedora:
sudo dnf install git
  1. Install git For OpenSUSE Tumbleweed:
sudo zypper install git
  • python3
  1. Install Python3 For Ubuntu:
sudo apt install python3
  1. Install Python3 For Arch Linux:
sudo pacman -S python
  1. Install Python3 For Fedora:
sudo dnf install python3
  1. Install Python3 For OpenSUSE Tumbleweed:
sudo zypper install python3
  • python3-pip.
  1. Install python3-pip For Ubuntu:
sudo apt install python3-pip
  1. Install python3-pip For Arch Linux:
sudo pacman -S python-pip
  1. Install python3-pip For Fedora:
sudo dnf install python3-pip
  1. Install python3-pip For OpenSUSE Tumbleweed:
sudo zypper install python3-pip
  • Flatpak is needed for installing Athenaeum.

Packages:

  • These Packages are installed using LibreGaming -b
  1. Steam.
  2. Wine-Staging.
  3. Gamemode.

Optional_Packages

  • These Packages + the ones above can be installed using LibreGaming -g
  1. Lutris.
  2. Heroic (Needs AUR enabled on Arch Linux)
  3. mangohud and goverlay(Needs AUR enabled on Arch Linux).

Other_Packages

  • These Packages have their own install option and they are not included in the above packages. They need to be installed seperatly, to know more click here
  1. ProtonGE(You Must run Steam at least once before installing ProtonGE).
  2. Athenaeum Launcher for FOSS games.
  3. itch.io a Launcher for indie games.
  4. Steam Tinker Launch(Only for Arch Linux).

Installation:

GUI

  • To use the GUI interface you need to download the LibreGamingQt-x86_64.AppImage from the releases page and give it execute privileges and run it!

execute privileges

CLI

  • You can install LibreGaming using pip if you have it installed. click Here to install pip3:
sudo pip3 install LibreGaming
  • Or you can install LibreGaming script by entering these commands:
git clone https://github.com/Ahmed-Al-Balochi/LibreGaming.git LibreGaming/ 
cd LibreGaming/
sudo python3 setup.py install --user
  • To update LibreGaming when there is a new release enter this command:
sudo pip3 install LibreGaming -U
  • LibreGaming: command not found.

This error can be solved by setting up the PATH in your shell you can do this by entering these lines in your shell file(.bashrc or .zshrc) and by default your shell file is hidden. to show hidden files enter ls -al in the terminal.

  • Note that the LibreGaming Script is saved in ~/.local/bin directory by default.
### PATH

if [ -d "$HOME/.local/bin" ] ;
  then PATH="$HOME/.local/bin:$PATH"
fi

Usage:

  • Note: you can also run this script using libregaming command if you don’t like LibreGaming. Both can be used, so choose what you prefer.
  • To install all the Gaming packages mentioned in the packages section enter this command:
sudo LibreGaming -g
  • To install Basic Packages(Wine, Steam, Gamemode):
sudo LibreGaming -b
  • To install Lutris Launcher enter this command:
sudo LibreGaming --lutris 
  • To install Heroic Launcher enter this command (Don’t use sudo if you are using OpenSUSE):
sudo LibreGaming --heroic
  • To install MangoHud & Goverlay enter this command:
sudo LibreGaming -o
  • To install ProtonGE enter this command:
LibreGaming -p
  • To install Athenaeum Launcher enter this command:
LibreGaming -ath
  • To install itch.io Launcher enter this command:
LibreGaming --itch
  • To install Minigalaxy Launcher enter this command:
LibreGaming --minigalaxy
  • To install Steam Tinker Launch(For Arch Linux only) enter this command:
LibreGaming --stl

Protonup_Commands

  • To list all the available releases of ProtonGE enter this command:
LibreGaming --release
  • To list all the installed verions of ProtonGE enter this command:
LibreGaming -l
  • To install a specfic release of ProtonGE enter this command: for example:
LibreGaming -t 6.13-GE-1
  • To delete a specfic release of ProtonGE enter this command: for example:
LibreGaming -r 6.13-GE-1

Closing thoughts

I would like to thank all those who downloaded and used LibreGaming, it got more than 39k downloads.and your Feedback is always welcome.

This article is also available on Medium

Video Walkthrough

Other videos showcasing LibreGaming

Built with Hugo
Theme Stack designed by Jimmy