HOW-TO:Install XBMC for Linux on Arch Linux
The following is a guide on installing XBMC as a standalone app on Arch Linux. This guide assumes that you have basic knowledge of Linux and command line usage as Arch Linux is a very simplistic and small distro that needs quite some work to get it running. If you're not after this, please consider using XBMC Live or read the official Ubuntu installation guide.
This guide assumes you already have a working Arch Linux installation with a configured and running X server. If you need help in achieving these prerequisites, please have a look at the official Official Arch Linux Install Guide or the forums at archlinux.org.
1 Installing the stable releases of XBMC
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
You should now be able to run XBMC by using the application shortcut in your menu or by simply by running
xbmc from a terminal.
2 Installing the svn version of XBMC
Warning: This is not the recommended way of using XBMC as svn version are always on the bleeding edge of development and thus can break sometimes. If you want a stable media center experience, go with the stable releases.
2.1 Installing Yaourt
Yaourt is a very handy program. This is a repository tool that wraps around pacman that allows you to easily install packages from the AUR, or what is known as the user repository of packages for Arch. These packages are close to what user/PPA repositories are on Debian/Ubuntu.
Add the following lines to
[archlinuxfr] Server = http://repo.archlinux.fr/i686
Now sync and install yaourt.
# pacman -Syu yaourt
After that you can install xbmc-svn from the AUR using yaourt:
$ yaourt -Syua xbmc-git
This will pull all dependencies, checkout a recent version of xbmc from the SVN repository, patch some files for 64bit compatibility and finally compile, package and install xbmc. Feel free to add your experience or recommendations to the AUR comment page at http://aur.archlinux.org/packages.php?ID=45036.
3 Autostart XBMC (optional)
To automatically start XBMC on boot, have a look at the Linux installation guide, section Autostarting
It is also a good idea, to use a lightweight X Login Manager like Slim, it is also described there how to do auto-logins.
After that i created a xbmc user, member in groups video and audio!.
In the home-directory of this user, i created a file .xinitrc, with the content:
$ exec xbmc-standalone
4 Automounting Disks
Go ahead and install udisks
# pacman -S udisks consolekit
Add dbus to your /etc/rc.conf
Add your user to the storage group next you need to change your .xinitrc
$ exec ck-launch-session dbus-launch xbmc-standalone