HOW-TO:Install Kodi for Linux: Difference between revisions
(No difference)
|
Revision as of 23:50, 19 September 2011
Template:XBMC wiki toc Inline If you are having problems, there is a XBMC for Linux specific FAQ specially for Questions about XBMC for Linux in this wiki.
Installation from Team XBMC distribution packages
Ubuntu
From Ubuntu 9.10 (Karmic Koala) onward, you can install from the team-xbmc PPA as follows:
sudo add-apt-repository ppa:team-xbmc sudo apt-get update sudo apt-get install xbmc sudo apt-get update sudo apt-get upgrade
Make sure to have the multiverse
repository enabled, see /etc/apt/sources.list
, it is needed for libfaad0, otherwise you get
xbmc: Depends: xbmc-data (= 2:10.00~svn35648-lucid1) but it is not going to be installed
E: Broken packages
For more details, see the HOW-TO install XBMC for Linux on Ubuntu, a Step-by-Step Guide page (The official XBMC site points to this page) or the minimal Ubuntu guide which is suitable for a HTPC style system without desktop use.
If you are interested in stable XBMC releases (releases that we certify as usable and/or testable), please use the stable PPAs. Once added in your repository list, you will be notified for any update we make. You will have the latest stable version this way.
Dharma with and without Live TV on Ubuntu 8.04 - 11.04
For XBMC Dharma 10.0 with and without PVR-Support (Live-TV) on Ubuntu Hardy Heron, Jaunty Jackalope, Karmic Koala, Maverick Meerkat,Lucid Lynx & Natty Narwhal use this HowTo
Installation from official distribution packages
A number of distributions now provide packages of XBMC. Since installation via distribution packages is simple (usually one or two commands) and the easiest way to get started, this section includes the minimum information on doing that. Distributions are listed in alphabetical order. Following the instructions provided should result in you having a working stand-alone XBMC installation.
Arch
As stable xbmc releases are already available through the community repository, please make sure you have it enabled in your /etc/pacman.conf. After that it's as simple as using pacman to install xbmc and all of its dependencies:
pacman -Syu xbmc
Mandriva
XBMC 10.0 "Dharma" with PVR support is available in contrib/updates of Mandriva 2010.1. You can install it with
urpmi xbmc
Mandriva 2009.1 and 2010.0 have older versions of XBMC that can be installed by running:
urpmi --searchmedia Backports xbmc
Of course, you can install from contrib/backports or from contrib/release using the GUI tool rpmdrake. Note that all these methods are most easily used if you have the full software sources enabled.
Installation from third-party distribution packages
While obviously using distribution-supplied packages is preferable (in terms of updates, continued support, easier distro upgrades etc.) to third-party packages, methods for installing from third-party packages repositories are still easier than installing from source.
Debian
While there are no official Debian packages for xbmc yet, Christian Marillat provides packages in his Debian Multimedia repository.
Simply add this repo to your sources.list as described on the project's site and install xbmc afterwards: http://www.debian-multimedia.org/
Fedora
xbmc builds for Fedora can be installed via the RPM Fusion set of repositories. Follow the RPM Fusion Configuration guide to set up the repositories and install by running:
sudo yum install xbmc
Foresight
xbmc is in official repositories and can be installed by running:
sudo conary update xbmc
Gentoo
xbmc is the official portage tree as media-tv/xbmc. Install with:
sudo emerge --autounmask xbmc
openSUSE
xbmc is available in the Packman repository. To install, add the Packman repository (YaST (package manager) --> repositories --> repositories manager --> add --> community repositories), after which you can install by running:
sudo zypper in XBMC
More information is available on the HOW TO install XBMC on openSUSE Linux page.
Autostarting XBMC
- NOTE*: This step is optional.
It was tested on Arch Linux and Debian.
To automatically start xbmc on your system, do the following.
First you need to make some changes to /etc/inittab
. Add this:
x:5:respawn:/bin/su <YOUR_XBMC_USERNAME> -l -c "/bin/bash --login -c startx >/dev/null 2>&1"
and comment out all other lines beginning with x:5:
. Make sure you
also boot directly into runlevel 5 by changing this line
id:3:initdefault
into this:
id:5:initdefault
- NOTE*: This is a security hole as it autologins a dedicated xbmc user without asking for a password!
Now that we have the user logged in we need it to auto start XBMC.
In /home/<YOUR_XBMC_USERNAME>/.xinitrc
add the following to the end of the file
(after removing/commenting any other exec lines that start a windowmanager):
exec /usr/bin/ck-launch-session /usr/bin/dbus-launch --exit-with-session /usr/bin/xbmc --standalone -fs
You're finished. Next time you reboot you should be greeted with XBMC.
Installation from source
If distribution packages are not available, or you need a newer version, or specific features enabled, then you will most likely need to compile from source. While compiling from source does not differ very much between distributions (except for installation of build dependencies), a few different guides are available in this wiki.
- HOW-TO_GER Ubuntu 10.04 - All-in-One - Installation & Konfiguration von NVIDIA VDPAU, VDR mit VNSI-Server & XBMC PVR-TESTING2 - Hierbei handelt es sich um ein deutsches All-in-One Tutorial wie man XBMC (pvr-testing2) inkl. VDR mit dem VNSI-SERVER und LIRC zum laufen bringt.
- HOW-TO compile XBMC for Linux from source code
- HOW-TO compile XBMC for Linux on Debian/Ubuntu - This is a tutorial on how to compile and install XBMC on Debian and Ubuntu.
- HOW-TO compile XBMC for Linux on Fedora Red Hat Enterprise Linux CentOS - This is a tutorial on how to install XBMC on Fedora 8/9/10, RHEL & CentOS 5.2.
- HOW-TO install XBMC for Linux on Arch Linux, a Step-by-Step Guide