XBMC will be renamed to Kodi for v14. Read here for more details
Various pages on the wiki might contain old references to "XBMC", but will most often still apply to "Kodi". Find out how you can help here.

Archive:HOW-TO:Install XBMC on Ubuntu/HOW-TO 4

From Kodi
Jump to: navigation, search
Time.png OUTDATED:
Some information in this article or section has not been updated or refers to XBMC features that have been superseded, and may not be reliable.

I have put some time in creating a good bare Ubuntu 10.10 install of XBMC on an ION 3D 152D.


1 Installation Ubuntu 10.10 Server 64 bit

Download the ISO from Ubuntu. Start the installation. I used the following partition scheme:

Partition scheme:

/dev/sda1 4GB swap
/dev/sda2 rest of the disk 316 GB ext4 mounted

All commands must be executed as root: sudo -s

2 Customisations after default instalation

2.1 Remove apparmor

/etc/init.d/apparmor stop
update-rc.d -f apparmor remove
/etc/init.d/apparmor teardown

2.2 Disable tty1

Showing a console login after powering up does not make sense. So I decided to disable tty1.

mv /etc/init/tty1.conf /etc/init/tty1.conf.org

2.3 Console tweaks

I disabled the graphical login. Seeing the BIOS in VGA font and the rest in high-res font does not make sense. Seeing the splash-screen for .5 seconds didn't make sense either. Disable it all!


-- #GRUB_TERMINAL=console
++ GRUB_TERMINAL=console
++ GRUB_CMDLINE_LINUX_DEFAULT="quiet gfxpayload=text nomodeset"

Grub opnieuw initialiseren:


2.4 Disable DVD/CDROM drive lock

bash -c "echo dev.cdrom.lock=0 >>/etc/sysctl.conf"

2.5 Create xbmc user

adduser xbmc --gecos XBMC
usermod --group audio,video,fuse,cdrom,plugdev xbmc

3 Installation extra packages

apt-get install python-software-properties pkg-config
add-apt-repository ppa:team-xbmc
apt-get update
apt-get install xbmc xinit x11-xserver-utils
apt-get install nvidia-glx-185 nvidia-settings mesa-utils libvdpau-dev
apt-get install lm-sensors curl
apt-get install pm-utils policykit hal
apt-get install linux-sound-base alsa-base alsa-utils
apt-get install unzip
apt-get install xbmc-live

Because polkit-auth is gone in Ubuntu 10.10, I installed it manually.

wget http://ftp.kaist.ac.kr/ubuntu/pool/universe/p/policykit/libpolkit2_0.9-4ubuntu2_amd64.deb
wget http://ftp.kaist.ac.kr/ubuntu/pool/universe/p/policykit/libpolkit-dbus2_0.9-4ubuntu2_amd64.deb
wget http://ftp.kaist.ac.kr/ubuntu/pool/universe/p/policykit/libpolkit-grant2_0.9-4ubuntu2_amd64.deb
wget http://ftp.kaist.ac.kr/ubuntu/pool/universe/p/policykit/policykit_0.9-4ubuntu2_amd64.deb

dpkg -i libpolkit2_0.9-4ubuntu2_amd64.deb
dpkg -i libpolkit-dbus2_0.9-4ubuntu2_amd64.deb
dpkg -i libpolkit-grant2_0.9-4ubuntu2_amd64.deb
dpkg -i policykit_0.9-4ubuntu2_amd64.deb

4 Configuration extra packages

4.1 LM_sensors

Tool to enable temperature reading of CPU in XBMC.


Do you want to add these lines automatically to /etc/modules? (yes/NO)yes

4.2 Configuration XBMC

We want CPU & GPU temperature in XBMC!


-- </advancedsettings>
++ <gputempcommand>echo "$(nvidia-settings -c :0 -tq GPUCoreTemp) C"</gputempcommand>
++ <cputempcommand>echo "$(sensors -u | head -6 |grep "temp1_input"| awk '{print $2 }' |awk '{printf("%d\n",$1 + 0.5);}') C"</cputempcommand>
++ </advancedsettings>

4.3 1920x1080 24p


4.4 Default audio over HDMI

nano /home/xbmc/.asoundrc

And enter the following text:

pcm.dmixer {
  type dmix
  ipc_key 2048
  slave {
    pcm "hw:0,3" 
    period_size 512 
    buffer_size 4096
    rate 44100 
    format S16_LE 
  bindings {
    0 0
    1 1

pcm.!default {
  type plug
  slave.pcm "dmixer"

To save press CRTL+X and then Y and Enter

In XBMC go to System -> System -> Audio output:

Set Audio output to: HDMI Audio output device to: Defaults Passthrough output device to: hdmi

With this configuration is also possible to enable audio crossfading in XMBC (System -> Audio -> Playback) without the annoying "failed to initialize audio device" error.

4.5 Policy xmbc user

polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.suspend
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.hibernate
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdown
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot-multiple-sessions
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdown-multiple-sessions

4.6 Remote control

4.6.1 Asrock packages

apt-get install lirc
apt-get install lirc-modules-source
unzip IR\(10.10\)2.6.35-22.zip
cd Ubuntu\ 10.10/ 
dpkg -i lirc-nct677x-x64-1.1.0-ubuntu10.10-kernel2.6.35.deb

The installer will reconfigure. If not:

 dpkg-reconfigure lirc

Choose at remote control configuration: Nuvoton Tranceivers/Remotes

Choose at IR transmitter: None

4.7 Suspend/Hibernate

Follow this : http://wiki.xbmc.org/index.php?title=Ubuntu_Suspend_/_Wake

if it doesn`t work (i had a black screen with a blinking cursor right after going in suspend mode) then try:


4.8 Weblinks

Personal tools

Wiki help