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

From Official Kodi Wiki
Revision as of 09:49, 19 March 2014 by Ned Scott (talk | contribs) (Ned Scott moved page HOW-TO:Install XBMC on Ubuntu/HOW-TO 4 to Archive:HOW-TO:Install XBMC on Ubuntu/HOW-TO 4)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Time.png THIS PAGE IS OUTDATED:

This page or section has not been updated in a long time, no longer applies, refers to features that have been replaced/removed, and/or may not be reliable.

This page is only kept for historical reasons, or in case someone wants to try updating it.

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

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

Customisations after default instalation

Remove apparmor

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

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

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!

/etc/default/grub

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

Grub opnieuw initialiseren:

update-grub

Disable DVD/CDROM drive lock

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

Create xbmc user

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

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

Configuration extra packages

LM_sensors

Tool to enable temperature reading of CPU in XBMC.

sensors-detect

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

Configuration XBMC

We want CPU & GPU temperature in XBMC!

/home/xbmc/.xbmc/userdata/advancedsettings.xml

-- </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>

1920x1080 24p

http://wasietsmet.nl/xbmc/24p-in-xbmc-met-nvidia-ion/

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.

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

Remote control

Asrock packages

apt-get install lirc
apt-get install lirc-modules-source
wget ftp://174.142.97.10/drivers/Nettop/Ubuntu/IR\(10.10\)2.6.35-22.zip
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

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:

http://thecodecentral.com/2011/01/18/fix-ubuntu-10-10-suspendhibernate-not-working-bug

Weblinks