2009-07-24, 10:52
Updated post. (so I could write some more beneath)
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:
Hardware Compatibility
TO-DO list:
UPDATES:
NOTES:
Installation:
setupXBMC.sh code:
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!
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
- ASRock ION 330 - working!
- Acer Revo ION - working!
- Zotac ION - working!
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:
- Install Minimal Ubuntu
- Log in with XBMC user account
- Download the script (or get the code below):
Code:wget http://www.virtualdanny.net/downloads/setupXBMC.sh
- Make the script executable:
Code:sudo chmod +x setupXBMC.sh
- 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!