Kodi Community Forum

Full Version: [LINUX] XBMScript - Easy installation for Ubuntu Jaunty Jackalope (9.04)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
One again: Did menue point 2

Install XBMC SVN Version

always look for the newest version and install them over the installed one ?
So it's ilke an updating function ?

What happens with database, settings, ... ? Will they also be overwritten ?

Is this the way to keep xbmc always up2date ?

Thx in advance

Martin
Cant wait for Karmic Smile

Awesome work mate Smile
revoman Wrote:One again: Did menue point 2

Install XBMC SVN Version

always look for the newest version and install them over the installed one ?
So it's ilke an updating function ?

What happens with database, settings, ... ? Will they also be overwritten ?

Is this the way to keep xbmc always up2date ?

Thx in advance

Martin

Hi

All your database/settings will not be effected. After you have chosen option 2, you are using the svn ppa and the latest svn version. When you want to update xbmc in the future type.
Code:
sudo apt-get update
sudo apt-get install xbmc

cheers.
ravepants Wrote:Cant wait for Karmic Smile

Awesome work mate Smile

As the devs mentioned earlier, there will be no Karmic release yet. When the official betas and release candidates will start rolling out I'll update the script. For now you're much better off on Jaunty with the latest svn Smile
Any ideas on how to get FTP server to work the script option the only thing I used script for first time round wont allow login under user: xbmc Pass:mypassword.

http://xbmscript.pastebin.com/f1e3303e5

Im blind as hell and as well so I cant find any documentation using forum search or wiki... kk I guess I have to sort that out with sum googling...

btw looks like awesome script there if I could suggest you could add or rather fix install plugins like svn repo installer that would help the code looks ok but it didn't install it when tested.

Most of the goodies behind this script seems commented or not available by default

Code:
#cd /home/xbmc/.xbmc/plugins/programs
  #wget http://xbmc-addons.googlecode.com/svn/packages/plugins/programs/SVN_Repo_Installer.zip | tee -a $mypwd/xbmscriptlogs/xbmscript.log
  #unzip SVN_Repo_Installer.zip | tee -a $mypwd/xbmscriptlogs/xbmscript.log
  #rm SVN_Repo_Installer.zip
  #chown -R xbmc:xbmc "SVN Repo Installer"

-----------------------------------------------------------------------------------------------
how I did it

apt-get install unzip -y
cd /home/xbmc/.xbmc/plugins/programs
wget http://xbmc-addons.googlecode.com/svn/packages/plugins/programs/SVN_Repo_Installer.zip
unzip SVN_Repo_Installer.zip
rm SVN_Repo_Installer.zip
chown -R xbmc:xbmc "SVN Repo Installer"

Maybe fixing the Alsa upgrades code which is contained in script by ading them as numbered options like the rest & even possibly add kernel upgrades which on the first the Alsa upgrade is not available atm on xbmc sources like documented and recommended if theres an alternative it also rattles me why the code is on the script yet dont get processed. There are options missing respect to this and all else I mentioned, by design I would have to guess.

http://wiki.xbmc.org/?title=XBMCbuntu thats what I read and tried first before script.

Code:
wget http://xbmc.org/wp-content/uploads/alsaup.sh

Returns 404 not found

So then I used code on your script but you have to uninstall and install the new 1.0.21 alsa mixer has sum issues with the f$/F5 and so on keys
On second note when I did do my upgrade to latest svn I wasnt able to use xbmc again at all odd but true. that was not using script, when I restored image of clean minimal ubuntu and used the script just now it provided same results. NoBlush

Im wondering if system a Asrock ION is possibly faulty (partially dead on arrival) since I get no HDMI output on sound or video. The TV works fine since I am able to use those for other connected equipment .

BTW the script wont break with non xbmc user name tried with both just to ensure it wasn't a factor with the oddities I found even though its suppose to work 100%

thx in advance to replies.
Well system is faulty no HDMI output at all, that however doent explain all other failures =(

Cant get FTP server sorted at all, tomorrow I'll get a replacement machine and see if it was machine or pebkac.

I wanted to add some info as I looked at the script and read somemore about 24hz setup and hwcursor again I had to perform these manually like I did as part of a non scripted install since the code did not execute or put out any errors or warnings

Code:
#--[HW cursor fix
sudo sed -i '40i\ Option "HWCursor" "False"' /etc/X11/xorg.conf

#--[ENABLE 1080p 24Hz (screen section)
sudo sed -i '50i\ Option "DynamicTwinView" "False"' /etc/X11/xorg.conf
sudo sed -i '50i\ Option "FlatPanelProperties" "Scaling = Native"' /etc/X11/xorg.conf

I would not presume to go adding logging support for those options or add numerical menu choice lets face it I see the code but its just too much for my old brain I suppose I would rather see flxfxp messing with his script instead of me ruining it really.

Theres a ton of hidden power for this script that should imho be added with descriptive options. I will make sure flxfxp has some xmas beer and bacon for looking at these things and sorting it out appropriately, I would like to see this script working perfectly to update and remove the grub options from bootup on a normal xbmcLive install where it uses legacy grub though it is well hidden.
Same for other code that may actually run as part of other installs that would benefit a normal upgrade if u just wanted to add it to a XBMCLive install like nvidia 190.42 drivers. (as well as other code snippets)

these are the points I suggest be improved.

> Better FTP server Setup support (e.g. Server Messages, ssl creation etc.)
> Added options to support Existing code (Alsa Upgrades, hwcursor fixes, nvidia drivers upgrade (in case someone is using existing XBMCLive setup to upgrade to svn from there) 24hz Fixes etc.
> Uncomment SVN Repo Intaller and add option to set it up individually from other options.
> GRUB2 Fixes to allow no Grub Boot similar to XBMCLive Setup - https://wiki.ubuntu.com/Grub2
> XBMC Fixes to remove static XBMC leaving only the custom animated uSplash
> Add option to support which uSplash artwork gets installed
- e.g.
Code:
sudo apt-get install usplash-theme-xbmc-*
sudo update-alternatives --config usplash-artwork.so
sudo update-initramfs -u
Though this code is in script user never gets prompted for which one gets selected and installed the default is se for the spinner as the script chooses for you.

> Support for hardware sensors set up & configuration - http://www.lm-sensors.org/wiki/iwizard/ManualInstall

Me hopes the author reads these posts and gives sum feedback addressing the ftp server config to ensure all the configurable fields are processed by script passing it to config like the welcome message and ssl options and whatnot.

Im not holding my breath though just my thoughts on how to improve something great making it more flexible and modular perhaps if each area of script would have a explanation what the code does users like the rest of us could modify and add to script a bit easier. For however complete this is I still find I have to dip into manual config. Good work though.
Hi

3 days ago I installed a fresh Ubuntu 9.04 and afterwards used the FLX XBMScript. This ran without problems but now 3 days later XBMC dosnt start after a fresh install.

Steps
- I install a fresh Ubuntu (formatting disk and so on)
- I choose username and password "xbmc"
- I've choosen basic server and ssh as the only 2 packages in the installation
- wget http://flx.me/script; chmod +x xbmscript.sh; sudo ./xbmscript.sh
- I install the stable version from the script (step 1)
- I install the SVN version (step 2)

When i reboot it shows the XBMC bootscreen, but when it starts i just get the standard "login screen". In other words XBMC dosnt start.

I did exatly the same 3 days ago, and XBMC ran right away.

Maybe it's the script on FLX that has been updated?

Hope someone can help me out.

(I've tried this on 2 complety new ASRock ION 330 - same result)
Do you have any logs? You should be able to have ssh access. Or try to get a shell using ctrl+alt+F1/9
flxfxp I think this is cause the keys sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 91E7EE5E 318C7509 fail to download.

The results are what iGudi describes. I cant find a solution for this I have downloaded the xbmc_24211-1_i386.deb from http://sshcs.com/xbmc/ and sinc I cant FTP since the script wont set it up right for me I SFTP'ed in instead Asrock IPTongueort 22 and voila just as good and no FTP setup necessary making the script option redundant.

I am using my trusted beta 4.0 of FlashFXP I wouldnt use another ftp client even if their free.

To execute the .deb

Code:
dpkg -i xbmc_24211-1_i386.deb

I cant confirm this has worked since Im still playing with set up after I received a replacement Asrock which has a fully working HDMI port since my Last was faulty.

flxfxp have u any comments about my posts? also please notice on a small typo? when u upload logs to xbmscript.pastebin.com the script's code echos xbmscript.pastebin.org instead.
Noticed, fixed Wink Also used your svn repo installer script, completely forgot that I commented it out! Did the ftp eventually work? It should, i just tested it.

Anyway, you make a few nice suggestions, which are all ended into basically polishing up the script a bit, which I will definitely look into.

However, I work full-time and only have limited time at my hands. Therefore, if anyone would like to help me out I would gladly accept it. Inquiries via PM please Smile

Regards,

Dennis
erm if you read my post above I have just updated it - FTP setup via script wont work at all dont know why Ill update this post with logs in a bit.

I am however using sFTP which wont require the script to work. Using Asrock ip and port 22 with sftp over ssh. Works a treat that maybe you can add that info if you want on your blog or whatever.

I appreciate everyone works am not expecting a jump lol. I did however sent u PM Smile

*edit

Logs:
Client log
http://xbmscript.pastebin.com/m168b452a
Script Logs
http://xbmscript.pastebin.com/f8eab9c4

http://xbmscript.pastebin.com/f16f860

Also your FTP Notice after set up reads:

Status: FTP setup finished for $ftppath!
IP: $IP - Port: 21 - Username: $ftpuser

thats the script output thers no actual info or reminder what the settings actually are.

Should be instead Status: FTP setup finished for (Path user selected during set up)
IP: Actual IP for server - Port: 21 - Username: (The username user has set up)

Erm also add option to use non standard ports as well as a ssl certificate creation. <- Not needed for sftp since its part of running ssh server.

*Edit 2

Found a Script by Dominic that may be helpful when adding gpg keys for your exixting PPA's this could be used to include alternative keyservers to fall-back on failure please examine code http://popey.com/blog/2009/06/05/Easy_Sc..._GPG_Keys/

Please modify & use as suitable

See below

Code:
#! /bin/sh

# Simple script to check for all PPAs referenced in your apt sources and
# to grab any signing keys you are missing from keyserver.ubuntu.com.
# Additionally copes with users on launchpad with multiple PPAs
# (e.g., ~asac)
#
# Author: Dominic Evans https://launchpad.net/~oldman
# License: LGPL v2

for APT in `find /etc/apt/ -name *.list`; do
    grep -o "^deb http://ppa.launchpad.net/[a-z0-9\-]\+/[a-z0-9\-]\+" $APT | while read ENTRY ; do
        # work out the referenced user and their ppa
        USER=`echo $ENTRY | cut -d/ -f4`
        PPA=`echo $ENTRY | cut -d/ -f5`
        # some legacy PPAs say 'ubuntu' when they really mean 'ppa', fix that up
        if [ "ubuntu" = "$PPA" ]
        then
            PPA=ppa
        fi
        # scrape the ppa page to get the keyid
        KEYID=`wget -q --no-check-certificate https://launchpad.net/~$USER/+archive/$PPA -O- | grep -o "1024R/[A-Z0-9]\+" | cut -d/ -f2`
        sudo apt-key adv --list-keys $KEYID >/dev/null 2>&1
        if [ $? != 0 ]
        then
            echo Grabbing key $KEYID for archive $PPA by ~$USER
            sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com $KEYID
        else
            echo Already have key $KEYID for archive $PPA by ~$USER
        fi
    done
done

echo DONE
So I've tried to run step 1,2, 8 and 9 again - this didnt solve my problem.

Do i need to do a complete reinstall (ubuntu and xbmscript)?

http://xbmscript.pastebin.com/f37f6f3e5
http://xbmscript.pastebin.com/f45fd348f
http://xbmscript.pastebin.com/f60932bb8
X3lectric Wrote:flxfxp I think this is cause the keys sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 91E7EE5E 318C7509 fail to download.

The results are what iGudi describes. I cant find a solution for this I have downloaded the xbmc_24211-1_i386.deb from http://sshcs.com/xbmc/ and sinc I cant FTP since the script wont set it up right for me I SFTP'ed in instead Asrock IPTongueort 22 and voila just as good and no FTP setup necessary making the script option redundant.

I am using my trusted beta 4.0 of FlashFXP I wouldnt use another ftp client even if their free.

To execute the .deb

Code:
dpkg -i xbmc_24211-1_i386.deb

I cant confirm this has worked since Im still playing with set up after I received a replacement Asrock which has a fully working HDMI port since my Last was faulty.

flxfxp have u any comments about my posts? also please notice on a small typo? when u upload logs to xbmscript.pastebin.com the script's code echos xbmscript.pastebin.org instead.

hugh the .deb bit didnt work just thought I'd say it if anyone sorts it out using that or any other deb let me know.

the keys seem to import now except NO_PUBKEY 1DABDBB4CEC06767 pops up I went off on another mad one and found over here

http://forum.xbmc.org/showthread.php?p=423888
Code:
gpg --keyserver keyserver.ubuntu.com --recv 1DABDBB4CEC06767 && gpg --export --armor 1DABDBB4CEC06767 | sudo apt-key add - && sudo aptitude update

if i said I've tried to set xbmc up using script or manual ways about dozen times and still havent made system work as I want it I wouldnt be lying. Aos trying to set up the Hauppage 226 USB Remote but the script dont have the required libs for it, I read over @
http://www.blushingpenguin.com/mark/blog/?p=24&cp=10 stuff that should help get this sorted so far no joy maybe I picked a crap remote. http://www.lambda-tek.com/componentshop/...ID=1322745 while I've read somewhere that this works ok must have been under windows and I missed it. Yey im a dumb ass!

*edit
Just installed the hauppage remote as the mceusb remote works a treat no config needed.
iGudi Wrote:So I've tried to run step 1,2, 8 and 9 again - this didnt solve my problem.

Do i need to do a complete reinstall (ubuntu and xbmscript)?

http://xbmscript.pastebin.com/f37f6f3e5
http://xbmscript.pastebin.com/f45fd348f
http://xbmscript.pastebin.com/f60932bb8

XBMC Skin Folder Not Found in /usr/share/xbmc/skin!

this is repeated twice in the two last logs no skin no load.
Perhaps you should format and reeinstall the lot again just to be sure.

Im actually imaging the HDD with acronis true image and restoring just a pre-script or xbmc manual install state like I said in previous post Ive tried over Dozen times and still havent the set up working 100%
Hi again I think Im doing all the posts here now lol. With good reason I hope.

flxfxp mate I found something really usefull that could be added to script just about as is. Again this is all extra since u already have a hidden option to upgrade Alsa which works a treat as well... No point just making suggestions might as well dish out code that can be used with your expertise adding loging support for troubleshooting and making script more workable is like I said beyond me.

http://dl.getdropbox.com/u/1113424/webup...0.21-1.tar

That contains a alsa upgrade script that will autmatically do the job for you

1) In putty Sudo su and login to root.

2) From your sFTP client of choice connect to the box & upload to you usual dir make it executable & run by doing chmod +x AlsaUpgrade-1.0.21-1.sh; ./AlsaUpgrade-1.0.21-1.sh -di

3) After this is done while putty is running duplicate session and navigate to /var/log/ you should have the log name on the first terminal window or putty

4) To check out progress and install type tail -f logname.log in my case it was tail -f AlsaUpgradeRev-1.0.21-1-110609-21.11.log the progress will display make sure there are no errors. Reboot when upgrade is done.

Theres not output or progress shown in this script directly maybe this can be fixed/added prior to adding to main xbmscript.sh with relevant options. This is if the existing code benefits from being replaced by this??

Be patiente it does take a while to do the full upgrade.

More info can be found @ http://www.webupd8.org/2009/09/alsa-1021...buntu.html thx to the original creator.

Erm now superseeded by repositories
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37