How to update XBMCLive to SVN PPA's and Bleeding Edge
#16
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?
HTPC SPECS:Samsung Series 850 58" PDP
[email protected] (full Screen)
XBMCLive : 10.00
HDD: 500GB WD Blue MOBO:P5n7a-VM
GPU: Geforce 9300/nforce 730i/PCI/SSE2
MEMORY: 2 GIG 1066MHZ DDR3 (single)
CPU: Intel® Core™2 Duo CPU E7500 @ 2.93GHz
Reply
#17
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!!!

quoted the entire thing for greatness, because you just solved my inability to update, it worked perfectly!
Board: Zotac ION-A-U Case: M350 Mini ITX Memory: 4GB Patriot PC6400 OS: XBMC on OpenELEC.tv build 6936 on a Corsair 32GB SSD Media Storage: W2K8 running on 14TB RAID 5 on an Asrock board w/ AMD Athlon X2 250 and PERC 6/I controller w/ 8 Samsung HD204UI Green drives Time to interface from power switch: 22.4 seconds.
Reply
#18
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...
Reply
#19
thx, good post!

-Erik
Reply
#20
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 Smile
Reply
#21
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 Smile

comment out the regular one, team-xbmc and leave team-xbmc-svn for the latest builds.
Reply
#22
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...

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.
Reply
#23
It may be too much to ask, but is it possible for you to post a youtube video of this entire pocess? I learn much better by observing and I'm sure others completely new to linux would be entirely greatful for it.
Reply
#24
I've tried looking for a while, but it must be escaping me....is there a way to find out when new revisions of the PPA's are out? I tried looking in the links provided, but i can't find anything in there indicating version numbers. Maybe like an RSS feed i can subscribe to to get updates?

Also is there a way to go back to a previous release? I just updated using this guide to 22290 and now videos play 4x speed and no audio. would like to go back to 21936
Board: Zotac ION-A-U Case: M350 Mini ITX Memory: 4GB Patriot PC6400 OS: XBMC on OpenELEC.tv build 6936 on a Corsair 32GB SSD Media Storage: W2K8 running on 14TB RAID 5 on an Asrock board w/ AMD Athlon X2 250 and PERC 6/I controller w/ 8 Samsung HD204UI Green drives Time to interface from power switch: 22.4 seconds.
Reply
#25
I think you can do this to show the latest version of the PPA:

sudo apt-get update
sudo apt-cache show xbmc

That will show you the information on the latest version of XBMC in the repository (including the version/revision number).
Reply
#26
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.

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
Reply
#27
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.
Reply
#28
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.

Sounds like a restricted driver issue, have you tried to see the output of dmesg?
Reply
#29
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

Oh, and thanks rrambo
Reply
#30
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.

My setup is xbmc live installed to hard drive as fixed disk. My xbmcsources in apt are the ppa svn and the above nvidia-vdpau ppa.. I just do a plain apt-get update and apt-get upgrade from command line... so far it works well.
Reply

Logout Mark Read Team Forum Stats Members Help
How to update XBMCLive to SVN PPA's and Bleeding Edge0