Archive:HOW-TO:Install XBMC on Ubuntu/HOW-TO 4: Difference between revisions
>Ashex (→Remove apparmor: Don't need to delete the script if startup is disabled.) |
No edit summary |
||
Line 1: | Line 1: | ||
{{outdated}} | |||
I have put some time in creating a good bare Ubuntu 10.10 install of XBMC on an ION 3D 152D. | 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 == | == Installation Ubuntu 10.10 Server 64 bit == |
Revision as of 09:08, 27 June 2013
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
- Ubuntu – XBMC-Repository-Overview - PPAs – 10.1 Dharma and 11.0 Eden – with and without PVR
- HOW-TO_GER Ubuntu 10.04 - All-in-One - Installation & Konfiguration von NVIDIA VDPAU, VDR mit VNSI-Server & XBMC PVR-TESTING2 - Hierbei handelt es sich um ein deutsches All-in-One Tutorial wie man XBMC (pvr-testing2) inkl. VDR mit dem VNSI-SERVER und LIRC zum laufen bringt.