2009-07-29, 04:24
Quote:Thanks, this worked really well for me. I had some trouble getting the lines copied into the list file correctly, but after I fixed it everything went smoothly.
What was it that went wrong?
Quote:Thanks, this worked really well for me. I had some trouble getting the lines copied into the list file correctly, but after I fixed it everything went smoothly.
newb2linux Wrote:How to Install XBMC-Live to My HTPC and Update to Bleeding EDGE
UPDATED * July 14th 2009
Added the line "sudo apt-get install xbmc" to the SVN PPA Section 5.)
Requirements:
XBMCLive CD
Internet conection
Putty (ssh program)
bit of knowledge
1.) Boot from XBMCLive CD 9.04
Install to HDD - follow prompts. [do not choose removable disk]
choose a password (don't forget it) EX: "xbmc"
eject and reboot
Were going to add the PPA's from wattazoum (good stuff wattazoum)
http://www.xbmc.org/forum/showthread.php?t=33327
I choose SVN PPA's but this can be used as a template for any of the PPA's listed here. (don't forget to change your GPA keys tough)
https://edge.launchpad.net/~team-xbmc-svn/+archive/ppa
2). ssh into xbmc user account using putty
username =xbmc
password =xbmc (what ever you choose)
3). add the deb's to the 3rd party sources.list
Code:sudo pico /etc/apt/sources.list.d/xbmc.org.list
copy and paste these lines
Code:deb http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu jaunty main
save updated list. (press ctrl x, y and then enter)
4.) import the GPA key
Code:sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 64234534
Now you have updated the PPA's and have a valid key.
5.) update and upgrade the latest PPA's
Code:sudo apt-get update
sudo apt-get upgrade
sudo apt-get install xbmc
sudo reboot
you have now updated XBMC to the current SVN PPA's if you want to live on the edge keep reading.
OPTIONAL
BLEEDING EDGE update
(this is only if you dont mind dealing with possible bugs)
6.) Install build environment, install and build
Code:sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++5 dkms linux-headers-$(uname -r)
sudo apt-get install subversion
sudo apt-get build-dep xbmc
sudo apt-get update
sudo apt-get upgrade
***NOTE***
At the time of writing this --HOW TO-- there was a bug in the xbmc-live PPA's update.
if you see this error:
"xbmc-live
E: Sub-process /usr/bin/dpkg returned an error code (1)"
copy and paste this into terminal
Code:sudo rm /var/lib/dpkg/info/xbmc-live.postinst
sudo pico /var/lib/dpkg/info/xbmc-live.postinst
copy this modified xbmc-live.postinst
Code:#!/bin/sh
# postinst script for test
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <postinst> `abort-remove'
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
configure)
sed -i.bak-xbmc-live s/allowed_users=console/allowed_users=anybody/ /etc/X11/Xwrapper.config
USER=xbmc
USER_EXISTS=`grep $USER /etc/passwd|awk -F : '{print $1}'`
if [ ! "$USER_EXISTS" = "$USER" ]; then
adduser $USER
fi
USER_IN_GROUP=`groups xbmc|grep adm`
if [ "$USER_IN_GROUP" = "" ]; then
adduser xbmc adm
fi
USER_IN_GROUP=`groups xbmc|grep dialout`
if [ "$USER_IN_GROUP" = "" ]; then
adduser xbmc dialout
fi
USER_IN_GROUP=`groups xbmc|grep cdrom`
if [ "$USER_IN_GROUP" = "" ]; then
adduser xbmc cdrom
fi
USER_IN_GROUP=`groups xbmc|grep floppy`
if [ "$USER_IN_GROUP" = "" ]; then
adduser xbmc floppy
fi
USER_IN_GROUP=`groups xbmc|grep audio`
if [ "$USER_IN_GROUP" = "" ]; then
adduser xbmc audio
fi
USER_IN_GROUP=`groups xbmc|grep dip`
if [ "$USER_IN_GROUP" = "" ]; then
adduser xbmc dip
fi
USER_IN_GROUP=`groups xbmc|grep video`
if [ "$USER_IN_GROUP" = "" ]; then
adduser xbmc video
fi
USER_IN_GROUP=`groups xbmc|grep plugdev`
if [ "$USER_IN_GROUP" = "" ]; then
adduser xbmc plugdev
fi
USER_IN_GROUP=`groups xbmc|grep fuse`
if [ "$USER_IN_GROUP" = "" ]; then
adduser xbmc fuse
fi
# USER_IN_GROUP=`groups xbmc|grep sudo`
# if [ "$USER_IN_GROUP" = "" ]; then
# adduser xbmc sudo
# fi
AUTH_EXISTS=`polkit-auth --user xbmc --show-obtainable --explicit | grep org.freedesktop.hal.power-management.shutdown`
if [ "$AUTH_EXISTS" = "" ]; then
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdown
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdown-multiple-sessions
fi
AUTH_EXISTS=`polkit-auth --user xbmc --show-obtainable --explicit | grep org.freedesktop.hal.power-management.reboot`
if [ "$AUTH_EXISTS" = "" ]; then
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot-multiple-sessions
fi
AUTH_EXISTS=`polkit-auth --user xbmc --show-obtainable --explicit | grep org.freedesktop.hal.power-management.set-powersave`
if [ "$AUTH_EXISTS" = "" ]; then
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.set-powersave
fi
AUTH_EXISTS=`polkit-auth --user xbmc --show-obtainable --explicit | grep org.freedesktop.hal.power-management.suspend`
if [ "$AUTH_EXISTS" = "" ]; then
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.suspend
fi
AUTH_EXISTS=`polkit-auth --user xbmc --show-obtainable --explicit | grep org.freedesktop.hal.power-management.hibernate`
if [ "$AUTH_EXISTS" = "" ]; then
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.hibernate
fi
AUTH_EXISTS=`polkit-auth --user xbmc --show-obtainable --explicit | grep org.freedesktop.hal.storage.mount-removable`
if [ "$AUTH_EXISTS" = "" ]; then
polkit-auth --user xbmc --grant org.freedesktop.hal.storage.mount-removable
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
# Automatically added by dh_installinit
if [ -x "/etc/init.d/xbmc-live" ]; then
update-rc.d xbmc-live defaults >/dev/null
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d xbmc-live start || exit $?
else
/etc/init.d/xbmc-live start || exit $?
fi
fi
# End automatically added section
exit 0
save and exit pico
reinstall xbmc-live
Code:sudo apt-get install xbmc-live
Please let me know if this was helpfull or if you come across any errors.
I will update if needed.
GOOD LUCK!!!
deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu jaunty main
# deb http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu/ jaunty main
# deb http://ppa.launchpad.net/xbmc-addons/ppa/ubuntu/ jaunty main
deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu jaunty main
# deb http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu/ jaunty main
# deb http://ppa.launchpad.net/xbmc-addons/ppa/ubuntu/ jaunty main
deb http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu jaunty main
sofakng Wrote:I'm a newbie when it comes to Linux/Ubuntu and Aptitude but I'm wondering about the xbmc.org.list file.
For example, XBMC Live comes with it setup like this:
Code:deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu jaunty main
# deb http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu/ jaunty main
# deb http://ppa.launchpad.net/xbmc-addons/ppa/ubuntu/ jaunty main
After modifying it using the instructions given here (to update to SVN), it looks like this:
Code:deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu jaunty main
# deb http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu/ jaunty main
# deb http://ppa.launchpad.net/xbmc-addons/ppa/ubuntu/ jaunty main
deb http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu jaunty main
Now, I'm a little confused because when I perform "apt-get install xbmc", wouldn't it find two versions of it? (on in /team-xbmc/ppa and another in /team-xbmc-svn/ppa)
How does it know which version to use?
It seems to work properly and gets the SVN version but I'm just wondering how it's working.
Thanks for any help
rrambo Wrote:I have done this also and it works perfectly.. In addition, I added Nvidia's PPA so I have the latest video drivers as well with an update...
MacLeod_1980 Wrote:Could you want to divulge the code for doing this, so that the main post can be edited to add this as an option - I think for the system I will be building I will require the NVIDIA restricted drivers.
sofakng Wrote:I tried using these with XBMC Live 9.04.1 and it broke something pretty bad because Ubuntu would boot but XBMC wouldn't start and I had a lot of other errors.
Somebody on here said they had to recompile the kernel, but I'm not sure what exactly they did.
rrambo Wrote:Sure, add these sources.. YMMV, but I've yet to have a problem with this:
deb http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu jaunty main
sofakng Wrote:I tried using these with XBMC Live 9.04.1 and it broke something pretty bad because Ubuntu would boot but XBMC wouldn't start and I had a lot of other errors.
Somebody on here said they had to recompile the kernel, but I'm not sure what exactly they did.