Archive:HOW-TO:Install XBMC on Ubuntu/HOW-TO 4
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 rm /etc/init.d/apparmor
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-svn/ppa 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
/home/xbmc/.asoundrc
pcm.!default { type asym playback.pcm { type plug slave.pcm "hw:1,3" } }
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