Installing XBMC / Kodi on Ubuntu Linux is similar to installing it on Arch Linux. When it comes to running XBMC on boot is significantly different on Arch Linux. It’s possible to run XBMC after Desktop has loaded with auto login but a Desktop environment is very much optional in Arch. I opted to give Desktop environment a miss since I will use my system mainly as a dedicated HTPC / Home Server. Note that there is an updated guide on how to install Kodi on Arch Linux that you should use.
Install & Configure XBMC
sudo pacman -S xbmc
Optionally install Add-Ons for PVR functionality.
sudo pacman -S xbmc-pvr-addons
Remove PulseAudio if it causes issues.
sudo pacman -Rdd pulseaudio
Pulse audio allows sound from XBMC and other application simultaneously but this means no digital passthrough. It can also cause the XBMC volume controls to stop working properly.
Start XBMC manually.
sudo startx /usr/bin/xbmc --standalone
Run XBMC at Startup
Open or create a new systemd service file for XBMC.
sudo nano /usr/lib/systemd/system/xbmc.service
Copy the script and save the configuration file.
[Unit] Description = XBMC standalone xinit Service After = remote-fs.target [Service] User = root Type = simple ExecStart = /usr/bin/xbmc-standalone [Install] WantedBy = multi-user.target
Note that XBMC needs
root privileges and will fail running as any other user.
Start XBMC service.
sudo systemctl start xbmc.service
Stop XBMC service.
sudo systemctl stop xbmc.service
Enable XBMC service.
sudo systemctl enable xbmc.service
sudo pacman -S xbmc sudo pacman -S xbmc-pvr-addons
sudo pacman -Rdd pulseaudio sudo startx /usr/bin/xbmc --standalone sudo nano /usr/lib/systemd/system/xbmc.service sudo systemctl start xbmc.service sudo systemctl stop xbmc.service sudo systemctl enable xbmc.service