How to install and configure Kodi in Linux: Complete Guide to turning your PC into a multimedia center

Introduction

Kodi was born Xbox Media Center (XBMC) and, after being released as open source, has become one of the most versatile multimedia players in the Linux ecosystem. Its addone-based architecture allows users to adapt the interface and functionalities to their specific needs, from local file reproduction to streaming of content on demand.

In this article we will show you step by step how to install Kodi in the most popular Linux distributions, configure it to get the best performance and make the most of your addons library. In addition, we include common maintenance and problem-solving tips.

Previous requirements

  • An updated Linux distribution (Ubuntu 22.04 LTS or higher, Fedora 38 or higher, openSUSE Leap 15.5, or any derivative based on systemd).
  • Access to a user account with sudo privileges to install packages and repositories.
  • Stable Internet connection to download Kodi packages and their dependencies.
  • Optional but recommended: a remote control compatible with CEC or a keyboard with multimedia keys for a more comfortable living room experience.
  • Sufficient disk space: at least 2 GB for base installation and additional space for your media library.

Installation methods

There are several ways to install Kodi in Linux, each with its advantages. The three most commonly used approaches are: official repositories, Snap and Flatpak packages.

Installation from official repository

This method ensures that you receive security updates and performance improvements directly from the maintainers of your distribution.

Ubuntu and derivatives

Open a terminal and run:

sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt update
sudo apt install kodi

The Team-xbmc PPA provides the latest stable version. If you want to try avant-garde features, change the repository toteam-xbmc/unstableand repeats the process.

Fedora and Red Hat

In Fedora, first it enables RPM Fusion repositories:

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install kodi

In RHEL or CentOS Stream, replacednfbyyumand follow the same steps.

openSUSE

In openSUSE Leap, add the multimedia repository:

sudo zypper addrepo http://download.opensuse.org/repositories/multimedia:/apps/openSUSE_Leap_15.5/multimedia:apps.repo
sudo zypper refresh
sudo zypper install kodi

Installation using Snap

Snap offers an isolated and self-updated version of Kodi, ideal for users who prefer not to touch the system repositories.

sudo snap install kodi

After installation, runsnap run kodior look for Kodi in the application menu. Note that access to external units may require additional interface connections (snap connect kodi:removable-media).

Installation using Flatpak

Flatpak also provides a sandboxing package that works on most distributions.

flatpak install flathub tv.kodi.Kodi

Run withflatpak run tv.kodi.Kodi. As with Snap, it grants access permits to media folders byflatpak override --user --filesystem=~/Videos tv.kodi.Kodiand similar for Music and Images.

Initial configuration

Once installed, release Kodi from the application menu or by the corresponding command according to the method used. The initial configuration wizard will appear:

  • Language: select your preferred language; the interface will be fully translated.
  • Time and date format: adjust according to your time zone.
  • Home Folders: point to the directories where you store your videos, music and photos. You can add multiple sources and specify the type of content (films, series, etc.) for Kodi to perform the automatic scraping of metadata.
  • Resolution and frequency of soda:SettingsScreenchoose the resolution that matches your monitor or TV (e.g. 1920 × 1080 to 60 Hz) and activate the dynamic refreshment mode if your hardware supports it.
  • Audio settings: configure the sound output (HDMI, analog, USB) and activate the passthurgh of formats such as Dolby Digital or DTS if your receiver supports it.

Library management

Kodi stands out for its ability to automatically organize your multimedia collection.

  • Scanning mode: after adding a source, selectLibrary Scanningfor Kodi to read the files and download database metadata like TheMovieDB, TheTVDB and MusicBrainz.
  • Automatic update: regular scanning program fromSettingsAverageManage libraryso that new files are integrated without manual intervention.
  • Miniatures and fanart: activates high resolution art download and allows Kodi to save the miniatures in a centralized folder to reduce disk use.

Essential addons

Kodi's true power lies in his addons. Below is a list of accessories you consider installing according to your use:

  • YouTube: reproduces videos, playlists and channels directly from the Google platform.
  • Netflix(requires official addon and a valid account).
  • Disney +andHulu: available through community addons, although they may require additional authentication steps.
  • PVR IPTV Simple Client: ideal for watching live television using M3U lists provided by your IPTV provider.
  • Seren: addon of transmission of films and series with integration of accounts of Real-Debrid, Premiumize and other high quality sources.
  • The Crew: another popular addon that offers movies, series, sports and live television channels.
  • OpenSubtitles: automatic download of subtitles in multiple languages, with hash search support.
  • Skin Shortcuts: allows you to customize direct access to your chosen skin for quick access to your favorite sections.

To install an addon, navigate toAdd-onsDownload→ choose the corresponding category (video, music, program, etc.), search the name and selectInstall. After installation, many addons require credentials or playback settings.

Performance and optimization

For the best experience, especially in 4K or HDR content, consider the following adjustments:

  • Graphic controller: make sure you have the latest drivers. On NVIDIA cards, the owner driver usually offers better performance in video playback using VDPAU or NVDEC. In AMD, the open source driveramdgpuwith VCN provides excellent acceleration.
  • Hardware acceleration: go toSettingsPlayerVideoand activeAllow hardware acceleration. Select the right method (VDPAU, VA-API, DXVA2, etc.) according to your GPU.
  • Dynamic update frequency: enabledAdjust display refresh ratefor Kodi to change the monitor's refreshment frequency by playing content with different fps (24, 30, 60).
  • Network cache: increases cache size inSettingsNetworkCache sizeif you experience buffering when transmitting from the Internet.
  • Keep the system up to date: run regularlysudo apt update && sudo apt upgrade(Ubuntu) orsudo dnf upgrade(Fedora) to receive kernel improvements and multimedia bookstores.

Common problem solution

  • Kodi does not start: check the log on~/.kodi/temp/kodi.log(or the corresponding route according to the installation method) to identify unit errors or hardware access.
  • Audio problems: verify that the output device is correctly selected inSettingsAudio outputand that the passthurgh is enabled only if your receiver supports it.
  • Addons that do not work: many addons depend on external services that can change their APIs. Remove and reinstall the addon, or visit Kodi's official forum to search for updated versions.
  • High CPU use: disable unnecessary visualizations and reduces interface resolution inSettingsAppearanceResolutionIf you use a modest hardware.

Conclusion

Installing and configuring Kodi in Linux is a simple process that provides access to a full, highly customizable and cost-free multimedia center. Following the steps described, you can have your own live video, music and television playback system, adapted to your tastes and hardware. Explore the vast Addons community, adjust performance parameters and enjoy an entertainment experience without borders, all from the comfort of your desk or living room.

This work is under aCreative Commons License Attribution 4.0 International for Francesc Roig francesc @ vivaldi.net.

EnglishenEnglishEnglish