Kodi Community Forum
[LINUX] XBMC Setup Script - Automatic installation of XBMC for Linux - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: [LINUX] XBMC Setup Script - Automatic installation of XBMC for Linux (/showthread.php?tid=55282)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17


- d_schrute - 2010-02-07

biptn Wrote:alrighty then, I got sidetracked with boxee and xbmc. If you are interested in this, it is a perl-gtk menu that I have launch instead of the xbmc-session file now. You are able to choose between, xbmc, boxee, or openbox. If folks dig it, I may add the support to the auto install script. Anyway for the info.

You should have xbmc, boxee, and openbox installed already.

definitely interested here. Thanks bitpn,
D


- d_schrute - 2010-02-07

Ardo Wrote:I'm experiencing the same effect. I have taken to doing CTRL-ALT F1 and using 'shutdown -h now' to cleanly shutdown the machine.

I tried removing EXIT and QUIT from the xbmc-session file but even after a reboot it didn't seem to make any difference, selecting shutdown from xbmc just resulting in the program re-running back to the home screen.

Would really appreciate any info on this as I've just taught my better half how to control the thing for her movies and music Laugh

She just needs to be able to switch it off now!

i think the EXIT/QUIT removal was to keep xbmc from automatically restarting when in openbox

for a temporary fix i did this:

http://forum.xbmc.org/showpost.php?p=495945&postcount=21

but will only work if you've got a remote control.

hope this helps at all,
D


- Valfar - 2010-02-07

Just wanted to give some big thanks to biptn for doing this. I now have spotify running on my Asrock and it's sweet! Can't wait to see the confused faces on the next party i throw when people try to figure out how to check their facebook or something stupid like that Laugh

Edit:

Was this supposed to be libgtk2-perl insted of libperl-gtk2? Cant find libperl-gtk2..

biptn Wrote:make sure libperl-gtk2 is installed

Code:
sudo apt-get install libperl-gtk2



- biptn - 2010-02-08

Valfar, much thanks for catchin' my mistake!! Hope ya dig it. Big Grin


- Valfar - 2010-02-09

Hmm, I'm having some issues here. I did everything in your post, but it just gives me the openbox desktop. No menu at all. Any idea what can cause this? I can see some messages flash, but it's too fast to see what it says..

I did get this earlier as well when I managed to install Spotify (only thing I can launch from the openbox menu is the terminal), but figured it was because of me messing up something. So I did a fresh install of everything, but I still don't get the menu.


- X3lectric - 2010-02-09

check my signature for a kick ass install script that does not compromise and skinp out on quality


- biptn - 2010-02-10

Valfar Wrote:Hmm, I'm having some issues here. I did everything in your post, but it just gives me the openbox desktop. No menu at all. Any idea what can cause this? I can see some messages flash, but it's too fast to see what it says..

I did get this earlier as well when I managed to install Spotify (only thing I can launch from the openbox menu is the terminal), but figured it was because of me messing up something. So I did a fresh install of everything, but I still don't get the menu.


You have a menu in openbox? Can you open a terminal and try running htpc_menu and see what the output is?.........On second thought looks like I forgot to mention making that script executable...I just updated those instructions. Try this
Code:
sudo chmod +x /usr/bin/htpc_menu



Issue after installation - engineuity - 2010-04-13

I was able to install the minimal karmic setup and xbmc using most of the script. After the final reboot, xbmc starts up and then after a few seconds my screen goes black. Oddly, before blacking out I can use my keboard to move around the menu. Am I missing something?


- engineuity - 2010-04-13

... to clarify

"by most of the script", I commented out the Adding NVIDIA repositories, pgp keys, installing headers-generic and nvidia-glx-195, and the XORG + xorg.conf settings

I realized after 2 failed installs that my video drivers were not compatible with nvidia-glx-195... so before running the setupXBMC.sh script, I did the following:
Code:
$ sudo apt-get install envyng-core -y
$ sudo envyng -t
  Selected option 1 to install the NVIDIA driver
  Selected option 1 (in my case version 173) - it is 'compatible' and 'recommended'
I let it reboot and then ran the modified setup script.


- engineuity - 2010-04-13

OK... I feel like a fool now. Everything works. I was using the vga connection on my test monitor and when I switched over to DVI the video connection was fine. It must have switched outputs somewhere in between.


Anyways, I started to work the envyng method into the script with the above changes - It should expand the potential install base to almost any hardware. I didnt realize until my second failed attempt that this was intended for the few boards on the first page of the thread.

Thanks for the script


Zotac mag nd01 - ^tWiSt^ - 2010-05-11

Hi all, is there any tweak to enable spdif audio on my brand new ZOTAC MAG ND01 or it will just works out of the box with this setup script?


doesn´t work with my acer revo - zenman - 2010-07-04

It doesn´t work and in the end it delivers a warning that the packages couldn´t be authenticated.

cyberpark Wrote:Updated post. (so I could write some more beneath)

Image


Background:
The script is intended for people who have ported from another XBMC platform to XBMC Linux, and might not have the knowledge (or patience) to learn how to do every step. The script is based upon a custom system installation, where you can make different paritions, install another Linux OS and other applications and so on, but still gives you the option to boot straight into XBMC with a minimal OS installation.

I would still advice "beginners" who just want a Medie Center out-of-the- box without advanced modifications, to install XBMC Live. But if you want more control over your system and maybe install another Linux OS on another partition, keep on reading...


What the script does:
  • Installs XBMC
  • Installs XBMC Skins
  • Installs XBMC Bootscreens
  • Installs SVN Repo Installer (used for downloading of new plugins & scripts)
  • Installs Generic NVIDIA drivers for all kernels
  • Installs Alsa sound and configures sound levels (manual)
  • Installs Tweaks for video
  • Makes XBMC bootable as default

Hardware Compatibility

TO-DO list:
  • Menu to choose from Stable Release or Bleeding Edge Release
  • Automatic adjustments of all volume channels in Alsamixer
  • Additional tweaks

UPDATES:
  • Enabled 1080p @ 24Hz (24.07.2009)
  • Added H264 acceleration fix (Disabled Composite in xorg.conf) (22.07.2009)
  • Added HWCursor fix (20.07.2009)

NOTES:
  • Do NOT uncomment the SVN Repositories during first time installation, or it will fail.


Installation:

  1. Install Minimal Ubuntu


  2. Log in with XBMC user account


  3. Download the script (or get the code below):
    Code:
    wget http://www.virtualdanny.net/downloads/setupXBMC.sh


  4. Make the script executable:
    Code:
    sudo chmod +x setupXBMC.sh

  5. Run the script with root:
    Code:
    sudo ./setupXBMC.sh




setupXBMC.sh code:
Code:
#!/bin/bash
#------------------------------------------------------------------------------------------------------------
# setupXBMC Version 0.6b - 23/07/2009
# XBMC Installation script - by VirtualDanny.net
# This script will provide an automatic installation of Xbox Media Center
#
# REQUIREMENTS:
# * Clean Ubuntu Jaunty Server Installation (https://help.ubuntu.com/community/Installation/MinimalCD)
# * XBMC Compatible Hardware (http://wiki.xbmc.org/?title=XBMC_for_Linux_specific_FAQ)
# * Internet access
# * Username must be set to 'XBMC' under Ubuntu installation
#
# TO-DO LIST:
# * Menu to choose from Stable Release or Bleeding Edge Release
# * Automatic adjustments of all volume channels in Alsamixer
# * Additional tweaks
#
# KNOWN BUGS:
# * Installation will fail if you uncomment SVN Repositories during first time installation.
#
# Remember to run this script with: sudo ./setupXBMC.sh
#------------------------------------------------------------------------------------------------------------
cd /


##--[ ADDING REPOSITORIES TO SOURCE LIST ]-------------------------------------------------------------------
##    Repositories make it easier to download and stay up-to-date with current releases of Linux applications

echo '#' XBMC Repositories >> /etc/apt/sources.list.d/xbmc.org.list
echo '#' SVN builds are commented out. Remove comment '#' to enable.  >> /etc/apt/sources.list.d/xbmc.org.list
echo '#' Please DO NOT use the SVN builds during first time installation  >> /etc/apt/sources.list.d/xbmc.org.list
echo deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu/ jaunty main >> /etc/apt/sources.list.d/xbmc.org.list
echo deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu/ jaunty main >> /etc/apt/sources.list.d/xbmc.org.list
echo deb http://ppa.launchpad.net/xbmc-addons/ppa/ubuntu jaunty main >> /etc/apt/sources.list.d/xbmc.org.list

echo '#'deb http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu jaunty main >> /etc/apt/sources.list.d/xbmc.org.list
echo '#'deb-src http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu jaunty main >> /etc/apt/sources.list.d/xbmc.org.list



##--[ ADDING NVIDIA REPOISOTIRES TO SOURCE LIST ]------------------------------------------------------------

echo   >> etc/apt/sources.list
echo '#' NVIDIA Repositories >> etc/apt/sources.list
echo deb http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu jaunty main >> etc/apt/sources.list



##--[ ADDING PGP KEYS TO VERFIY VALID SOURCES ]--------------------------------------------------------------

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 318C7509 64234534 CEC06767 0x6D975C4791E7EE5E



##--[ RUNNING A SYSTEM UPDATE ]------------------------------------------------------------------------------

apt-get update



##--[ INSTALL GENERIC NVIDIA GRAPHIC DRIVERS ]---------------------------------------------------------------

apt-get install linux-headers-generic nvidia-glx-185 -y



##--[ INSTALLS XBMC Media Center ]---------------------------------------------------------------------------

apt-get install xbmc -y
apt-get install xbmc-skin-* -y
apt-get install xbmc-eventclients-* -y
apt-get install xbmc-scripts-* -y



##--[ INSTALL XBMC SVN Repo Installer ]----------------------------------------------------------------------

apt-get install unzip -y
cd /
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"



##--[ INSTALL Additional software ]--------------------------------------------------------------------------

apt-get install fluxbox xterm xinit x11-xserver-utils -y




## --[ INSTALL AND CONFIGURE ALSA SOUND ]--------------------------------------------------------------------

apt-get install linux-sound-base alsa-base alsa-utils -y
usermod -a -G audio xbmc

echo
echo AlsaMixer will now start so that you can configre your volum levels.
echo
echo Press 'M' to activate/deactive, Arrows to adjust volume, and ESC to save/quit.
echo Press any Key to contiue, or wait 20 seconds to continue
read -n1 -t20 any_key

alsamixer
alsactl store 0



## --[ INSTALL XBMC Bootscreen ]-----------------------------------------------------------------------------

apt-get install usplash-theme-xbmc-* -y
update-alternatives --set usplash-artwork.so /usr/lib/usplash/xbmc-splash-spinner-black.so
echo xres=1024 >> /etc/usplash.conf
echo yres=768 >> /etc/usplash.conf

update-initramfs -u



## --[ INSTALL Linux IR Remote Control Support]--------------------------------------------------------------

#apt-get install lirc -y



## --[ FINAL SYSTEM UPGRADE ]--------------------------------------------------------------------------------

apt-get update
apt-get upgrade -y



## --[ GENERATE XORG.CONF ]----------------------------------------------------------------------------------

nvidia-xconfig -s --no-logo --force-generate



## --[ ADDING HWcursor fix ]---------------------------------------------------------------------------------

sed -i '40i\    Option         "HWCursor" "False"' /etc/X11/xorg.conf



## --[ ENABLE 1080p 24Hz]------------------------------------------------------------------------------------

sed -i '50i\    Option         "DynamicTwinView" "False"' /etc/X11/xorg.conf



## --[ Disable Composite for better H264 acceleration ]------------------------------------------------------
sed -i '30i\Section "Extensions"' /etc/X11/xorg.conf
sed -i '31i\    Option         "Composite" "Disable"' /etc/X11/xorg.conf
sed -i '32i\EndSection' /etc/X11/xorg.conf



## --[ INSTALLING XBMC HELPERS ]-----------------------------------------------------------------------------
apt-get install xbmc-live python-apt -y


#SYSTEM Reboot
pkill X
reboot


Final notes:

I made this script primarily for personal use and to my friends. I still hope this can be to use for someone else who don't have Linux knowledge and want to install XBMC Media Center in 1-2-3. I learned the Linux language 8 days ago, so feel free to post comments on how to optimize/change the script to get better.

Tested 100% working on ASRock ION 330. I hope it will work on other hardware aswell, but there is always a chance that you need to modify the script to suit your specific hardware (etc Multicard readers, Wireless, Remote Controls, Bluetooth). Please give a feedback on how it went on your system, and I will see what I can do to adapt the script to suit your hardware.

Credit and thanks goes to
joggs, vikjon0, rickx and Haggy who all have given me input or knowledge to make this script better.


Thank you, and good luck with the script!



- Flomaster - 2010-07-13

I am at work for forgive me, but I think I am running the old stable version but keep hearing about these SVN's and I'd like to give it a whirl

is this all I have to do to get this up and running?
cyberpark Wrote:
[COLOR="#4b0082"][b]HOW-TO: upgrade XBMC to new SVN version:

1) Press CTRL+ALT+F2 for Linux Terminal

2) In the terminal, write:
Code:
sudo nano /etc/apt/sources.list.d/xbmc.org.list

3) Uncomment the lines (remove # in front of the line):

Code:
#deb http://ppa.launchpad.net/[b][color=Red]team-xbmc-svn[/color][/b]/ppa/ubuntu jaunty main
#deb-src http://ppa.launchpad.net/[b][color=#ff0000]team-xbmc-svn[/color][/b]/ppa/ubuntu jaunty main

4) Comment the lines (put a # in front of the lines):

Code:
deb http://ppa.launchpad.net/[color=#ff0000][b]team-xbmc[/b][/color]/ppa/ubuntu/jaunty main
deb-src http://ppa.launchpad.net/[b][color=#ff0000]team-xbmc[/color][/b]/ppa/ubuntu/ jaunty main


5) Press CTRL+X to exit and save changes

6) Do the upgrade:

Code:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install xbmc

7) You have now activated the XBMC SVN repositories. Next time you want to upgrade, simply do step 1 and 6.




I have searched the forums and the wiki but it must be my eyes or just to much reading of XBMC info and I have tunnel vision but I was not able to find a easy direct answer or guide to upgrading.

I found this page but was lost as to what to do after getting the GIT
http://wiki.xbmc.org/?title=Git_Usage

-=Jason=-


- X3lectric - 2010-07-15

Released beta 1.0960 contains added support for lucid lynx untested as of yet.

This file is not available as a update yet please keep your 1.0953 release as a backup

You can grab the new file here

Regards


- Stigy - 2010-08-02

Just bought a Zotac box so this script is all I need to get it up and running with a Linux install?

If so this is AWESOME! Thanks in advance for your response too.