Archive:Linux FAQ: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>UNiversal
m (Text replacement - "{{Helix updated}}" to "")
 
(203 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{{cleanup}}<br/>
{{notice|1= {{bigger|1= The Linux FAQ is going though a major overhaul and some things might be missing. For a copy of the old version see '''[http://wiki.kodi.tv/index.php?title=Linux_FAQ&oldid=76795 here]'''.}} }}
{{FAQ header|for XBMC running under Linux-based operating systems.}}
{{XBMC FAQ}}
__TOC__
{{-}}
==General FAQ==
:<big>''See also: '''[[XBMC all platforms FAQ]]''' for FAQs that apply to all versions of XBMC.''</big>


=== Where is the debug log? ===
<pre>$HOME/.xbmc/temp/xbmc.log</pre>
You can generate a debug.log [http://en.wikipedia.org/wiki/Pastebin Pastebin] link automatically quickly to post anywhere that requires a debug.log.
<br />
:{{highlight|'''Note:'''|bordered=yes|color=Lime}} Don't forget to [http://wiki.xbmc.org/index.php?title=Log_file#Enable_Debugging Enable Debugging]
<pre>sudo apt-get install pastebinit -y


cat $HOME/.xbmc/temp/xbmc.log | pastebinit</pre>
<section begin="intro" />'''F'''requently '''A'''sked '''Q'''uestions for Kodi running under Linux-based operating systems.<section end="intro" />


:See also [[HOW-TO Submit a Proper Bug Report]].
__TOC__
{{-}}


=== Where is the UserData folder? ===
=== Supported Linux distributions ===
<pre>$HOME/.xbmc/userdata</pre>
:* Team Kodi provides precompiled binaries for Ubuntu from the '''Team Kodi PPA'''. In the future there will also be precompiled binaries for Debian and Steam OS.
:* Team Kodi recognizes '''[[LibreELEC]]''' versions of Kodi as "pretty damn awesome".
:* Generally speaking, as long as Kodi is compiled per recommended guidelines (see '''[[Compiling Kodi]]'''), those builds are considered "kosher".
:* Kodi builds that use external ffmpeg/libav are not supported and are strongly discouraged.


=== Where is XBMC installed? ===
=== Supported hardware ===
<pre>usr/share/xbmc</pre>
For x86 hardware:
{{collapse top}}
:{{#lst:Supported hardware|Linux}}
{{collapse bottom}}


=== Does XBMC for Linux support Blu-ray or HD DVD playback with or without menus? ===
=== How to install or update Kodi for Linux ===
:Yes, without menus. Dharma (10.0) includes support for playback of unencrypted Blu-ray directories when [http://www.videolan.org/developers/libbluray.html libbluray] is installed. However, XBMC must be compiled from [https://github.com/xbmc/xbmc source]. Installing from a repository like the [https://launchpad.net/~team-xbmc/+archive/unstable Team-XBMC unstable ppa] will not recognize whether libbluray is installed.
{{Main|HOW-TO:Install Kodi for Linux}}


:Currently, only the longest title is played from the Blu-ray directory, even on multi-video Blu-rays (e.g. TV shows). To play a Blu-ray directory, select the /BDMV/index.bdmv in the Blu-ray directory. If stacking is enabled, selecting the Blu-ray directory folder will start playback.


;Frodo (12.0) includes better support for bluray .iso and folder, there is still work being done in this area.
=== Kodi for Linux version ===
: The current stable version of Kodi for Linux is {{Current version}}. This is the same code that all of the other platforms (Android, iOS, Mac, Windows, etc) are using.


=== Which are the supported Linux distributions? ===
=== What version/nightly build/beta of Kodi am I running? ===
:* Supported Linux Operating-System installed on a supported computer, currently supported OS are:
: Kodi main menu > System > Lower submenu > System info. '''Note the build date.'''
:** [http://www.ubuntu.com/download/desktop Ubuntu Desktop] both x86 and x86_64
:** [http://www.ubuntu.com/download/server Ubuntu Server] both x86 and x86_64
:** [https://help.ubuntu.com/community/Installation/MinimalCD Ubuntu minimal] both x86 and x86_64
:* It is possible to compile and run 32-bit XBMC under 64-bit (AMD64/EMT64) Ubuntu if you run it in a 32bit chroot.


=== What is current recommended hardware requirements for XBMC ===
:For end-users the recommended minimum requirement is an [http://en.wikipedia.org/wiki/X86 x86-based computer], with a [http://en.wikipedia.org/wiki/Graphics_Processing_Unit 3D GPU (Graphics Processing Unit)] that at least supports [http://en.wikipedia.org/wiki/Shader_model Shader Model 3.0] and [http://en.wikipedia.org/wiki/OpenGL OpenGL 2.0] (that features 24bpp or 32bpp for 3D hardware-acceleration support, which the XBMC GUI needs to run smoothly at an acceptable frame-rate). Graphic adapters that support [http://en.wikipedia.org/wiki/DirectX DirectX version 9.0c] or later usually meet all of those mentioned requirements, ([[Team-XBMC]] recommends [http://en.wikipedia.org/wiki/Nvidia NVIDIA GeForce 6150 or later] as NVIDIA are currently the manufacturer that offers [http://en.wikipedia.org/wiki/Graphics_hardware_and_FOSS good device-drivers for Linux] (and [http://en.wikipedia.org/wiki/Nvidia NVIDIA GeForce 6150 or later] supports OpenGL 2.0).


=== XBMC for Linux minimum requirements ===
=== How to autostart Kodi in desktop mode ===
{{#lst:Supported hardware|Linux}}


=== Where are XBMC Packages for Ubuntu/Debian? ===
A)
You find new XBMC packages on this [http://www.loggn.de/ubuntu-xbmc-repository-11-eden-airplay-pvr-livetv/ Repository-Overview] for Ubuntu 12.04 and older.


== Troubleshooting ==
<pre>
=== Graphic/video issues ===
sudo sed -i "1i @kodi" /etc/xdg/lxsession/LXDE-pi/autostart
==== Video Device Driver ====
</pre>
:Most of the problems that you encounter with slow display or OpenGL related errors are because you do not have the proper or outdated display drivers installed.
===== Begin but install the video drivers the Ubuntu Way =====
:* For '''NVIDIA''' drivers follow the guide [https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia here (link)]
:* For '''ATI''' drivers follow the guide [https://help.ubuntu.com/community/BinaryDriverHowto/ATI here (link)]
:* For '''Intel''' it is simpler since the drivers are open source so they are usually already pre-installed. You need to make sure that you use the newer 'intel' driver and not the older 'i810' driver or the 'vesa' driver. This could be verified by checking the 'Driver' value in /etc/X11/xorg.conf.
:Check [http://forum.xbmc.org/showthread.php?tid=144633&pid=1239551#pid1239551 this post on forums] for some intel specific information to be added to xorg.conf '''some intel models only'''


==== Verify OpenGL support ====
or B)
:Once you have your drivers in place, you need to make sure that OpenGL is properly configured. Run the following command:


<source lang="bash">
<pre>
# glxinfo | grep -i direct
mkdir -p ~/.config/autostart
</source>
ln -s /usr/bin/kodi ~/.config/autostart
</pre>


:The result should be:
Source of this information is HOW TO: Autostart Kodi for Linux
: direct rendering: Yes
:If the result is "No" it means that the display driver have not been properly configured. Also, you can run the command glxgears and you should see the wheels turning smoothly.


====Update XBMC from any ppa====
=== What are the differences between Ubuntu + Kodi and LibreELEC? ===
We obviously recommend the use of our ppa's, and we acknowledge that Ubuntu is only a small percentage of the other distros, in use, Like Archlinux, Debian, gentoo and others. feel welcome to show how you can upgrade packages in other distros. Though this one is designed for XBMCbuntu and Other Ubuntu installs.
* '''Ubuntu + Kodi:''' This setup will give you the full Unity desktop environment that has enough software installed to be a general computing solution.
* '''[[LibreELEC]]:''' An appliance distribution. Getting software other than what is provided in the basic distribution will be a little difficult, but not impossible.


===Resolving problematic installs===
# Boot your system with the installer thumbdrive and select the "Try Ubuntu" option. This should boot into XBMC.
# Click the Shutdown menu in XBMC (lower-left corner) and select "Exit"
# You should be presented with a log-in screen. Click "Other..." and enter xbmc as the login and select XBMCbuntu from the dropdown menu (below the Login field).
# Click "Login" and you will be prompted for the Password; just leave it blank.
# Click "Login" again and the XBMCbuntu desktop should be displayed.
# On the top-left corner of the desktop should be an icon to install Ubuntu. Double-click the icon and, hopefully, you'll get the installation wizard this time.


====The Upgrade in Ubuntu properly====
=== Getting more help with Kodi for Linux ===
We look at Ubuntu, XBMCBuntu and other similar distros, the transition  and the upgrade attempt to make simplify the process.  
:* '''[http://forum.kodi.tv/forumdisplay.php?fid=52 Kodi for Linux specific help forum]'''
so as below connect to XBMCbuntu via [[SSH]] to run these commands.
:* '''[irc://irc.freenode.org/Kodi #Kodi]''' [[w:IRC|IRC]] chat channel on irc.freenode.org.


<source lang="bash">
sudo apt-get --purge remove xbmc
sudo apt-get install ppa-purge
sudo ppa-purge ppa:whatever-ppa-you-have-now
sudo add-apt-repository ppa:whatever-ppa-here
sudo apt-get update
sudo apt-get install xbmc
</source>


==== Compiz is not compatible with XBMC ====
=== Audio issues ===
:Make sure Compiz visual effects is disabled. You can do this by going to System -> Preferences -> Appearance -> Visual Effects. Make sure "None" is selected. Alternatively, you can tell Compiz not to interfere with XBMC. Install and run CompizConfig, and under General Options tick Unredirect Fullscreen Windows.
:For most audio issues, including configuration examples, see '''Audio''' and '''Audio troubleshooting'''.
 
:For NVIDIA-Graphics use [http://www.loggn.de/ubuntu-vdpau-bilduberlagerungen/ this].
: Minimal xorg.conf for NVidia try [[Minimal NVidia xorg.conf]]


=== Audio issues ===
=== Video tearing on Nvidia GPUs ===
{{frodo box|1=
: When Kodi is used with Nvidia hardware, tearing will occur when the X composite extension is used.
<source lang = "xml">
    For AE (AudioEngine)-specific settings please see the AudioEngine page.
</source>
}}
>> [[AudioEngine|Link to AudioEngine Wiki page]]
==== S/PDIF out for both analog and digital audio ====
:You might find yourself able to get one of both working, but switching from one to the other might not work. Ubuntu and other distributions use PulseAudio to manage ALSA devices and unfortunately it doesn't provide management for passthrough digital audio. The following solution bypasses PulseAudio and forces XBMC to directly use ALSA. There is no need to uninstall or tweak PulseAudio on Ubuntu in any way.


:* Open ~/.asoundrc in a text editor (create the file if it doesn't exist) and add the following:
:* '''Solution 1:''' Enable "Unredirect Fullscreen Window" in Compiz Config Settings Manager. [http://ubuntuforums.org/showthread.php?p=11145045#post11145045]
:{{highlight|'''Note:'''|bordered=yes|color=Lime}} make sure to use the correct card/device id and replace 'pcm "hw:0,1"' with it. You can find the id's by typing 'aplay -l' in a terminal.'''
:*# Install CCSM (Compiz Config Settings Manager): <code>sudo apt-get install compizconfig-settings-manager</code>
:*# Open Compiz Config Settings Manager
:*# Check the option "Unredirect Fullscreen Window", which should be under the "Composite" section.


<source lang="bash">
pcm.dmixer {
    type dmix
    ipc_key 1024
    slave {
        pcm "hw:0,1"
        period_time 0
        period_size 1024
        buffer_size 8192
        #periods 128
        #rate 44100
        rate 48000
    }
    bindings {
        0 0
        1 1
    }
}
</source>


:* Launch XBMC and go to "system->settings->system->audio hardware" and change the following:
:* '''Solution 2:''' Disable the composite extension.
AUDIO OUTPUT DEVICE: custom
:::'''1.''' Add this to the end of /etc/X11/xorg.conf: (make a new file if xorg.conf doesn't exist)
CUSTOM AUDIO DEVICE: plug:dmixer ('''note: this is case sensitive, even though XBMC shows only capitals!''')
<pre>Section "Extensions"
PASSTHROUGH AUDIO DEVICE: iec958
  Option "Composite" "Disable"
EndSection</pre>
:::'''2.''' Then log in with a gnome classic session (without the composite extension compiz doesn't work).
:::'''3.''' Also make sure to set Vertical blank sync to Always enabled in Kodi.


Now all audio output (besides menu sounds) should work including crossfading and switching digital/analog audio sources.


:{{highlight|'''Note:'''|bordered=yes|color=Lime}} '''Unmute alsamixer''' in all cases if your getting no sound just for guidance a couple of quick ones below.
:* '''Solution 3:''' Disable the use of the SDL backing store - this is a bug in Ubuntu which will probably be fixed in due time but could cause tearing right now: http://askubuntu.com/questions/450593/how-do-i-eliminate-screen-tearing-on-14-04-and-xbmc-with-nvidia-331/450673#450673
<pre>
amixer -q set Master 100% unmute
amixer -q set PCM 100% unmute
</pre>


{{XBMC wiki toc}}
=== Why can't I update Kodi on Ubuntu 13.04, 13.10, or other release? ===
[[Category:FAQ|Linux]]
: The precompiled binaries from the Team Kodi PPA only work with Ubuntu releases that are still getting support. When Ubuntu drops support for a version then our PPA stops making a binary for it. Simply update Ubuntu itself and then Kodi updates should work again. If you don't want to update Ubuntu that often then we recommend using a long term support (LTS) version of Ubuntu, such as 14.04, which will be supported until 2019.

Latest revision as of 07:20, 14 November 2020

Emblem-important-yellow.png NOTICE:
The Linux FAQ is going though a major overhaul and some things might be missing. For a copy of the old version see here.


Frequently Asked Questions for Kodi running under Linux-based operating systems.


Supported Linux distributions

  • Team Kodi provides precompiled binaries for Ubuntu from the Team Kodi PPA. In the future there will also be precompiled binaries for Debian and Steam OS.
  • Team Kodi recognizes LibreELEC versions of Kodi as "pretty damn awesome".
  • Generally speaking, as long as Kodi is compiled per recommended guidelines (see Compiling Kodi), those builds are considered "kosher".
  • Kodi builds that use external ffmpeg/libav are not supported and are strongly discouraged.

Supported hardware

For x86 hardware:

How to install or update Kodi for Linux


Kodi for Linux version

The current stable version of Kodi for Linux is Kodi v21 Omega. This is the same code that all of the other platforms (Android, iOS, Mac, Windows, etc) are using.

What version/nightly build/beta of Kodi am I running?

Kodi main menu > System > Lower submenu > System info. Note the build date.


How to autostart Kodi in desktop mode

A)

sudo sed -i "1i @kodi" /etc/xdg/lxsession/LXDE-pi/autostart

or B)

mkdir -p ~/.config/autostart
ln -s /usr/bin/kodi ~/.config/autostart

Source of this information is HOW TO: Autostart Kodi for Linux

What are the differences between Ubuntu + Kodi and LibreELEC?

  • Ubuntu + Kodi: This setup will give you the full Unity desktop environment that has enough software installed to be a general computing solution.
  • LibreELEC: An appliance distribution. Getting software other than what is provided in the basic distribution will be a little difficult, but not impossible.


Getting more help with Kodi for Linux


Audio issues

For most audio issues, including configuration examples, see Audio and Audio troubleshooting.

Video tearing on Nvidia GPUs

When Kodi is used with Nvidia hardware, tearing will occur when the X composite extension is used.
  • Solution 1: Enable "Unredirect Fullscreen Window" in Compiz Config Settings Manager. [1]
    1. Install CCSM (Compiz Config Settings Manager): sudo apt-get install compizconfig-settings-manager
    2. Open Compiz Config Settings Manager
    3. Check the option "Unredirect Fullscreen Window", which should be under the "Composite" section.


  • Solution 2: Disable the composite extension.
1. Add this to the end of /etc/X11/xorg.conf: (make a new file if xorg.conf doesn't exist)
Section "Extensions"
  Option "Composite" "Disable"
EndSection
2. Then log in with a gnome classic session (without the composite extension compiz doesn't work).
3. Also make sure to set Vertical blank sync to Always enabled in Kodi.


Why can't I update Kodi on Ubuntu 13.04, 13.10, or other release?

The precompiled binaries from the Team Kodi PPA only work with Ubuntu releases that are still getting support. When Ubuntu drops support for a version then our PPA stops making a binary for it. Simply update Ubuntu itself and then Kodi updates should work again. If you don't want to update Ubuntu that often then we recommend using a long term support (LTS) version of Ubuntu, such as 14.04, which will be supported until 2019.