- biptn - 2009-12-13
Yeah the 185 drivers need to be 190, that is fixed now. This new script doesn't depend on the username being "xbmc", it will rather use the first user account that was created/or has the userid 1000. I've also added the Launcher plugin with this and chnaged the way it adds repositories to karmic. I would appreciate feedback....I have not had a chance to test it yet.
Code: #!/bin/bash
#------------------------------------------------------------------------------------------------------------
# setupXBMC Version 0.8a - 12/12/2009
# XBMC Installation script - by VirtualDanny.net
# Modified by BiptoN
# This script will provide an automatic installation of Xbox Media Center
#
# REQUIREMENTS:
# * Clean Ubuntu Jaunty/Intrepid/Hardy Installation (https://help.ubuntu.com/community/Installation/MinimalCD)
# * XBMC Compatible Hardware (http://wiki.xbmc.org/?title=XBMC_for_Linux_specific_FAQ)
# * Internet access
#
# TO-DO LIST:
# * Menu to choose from Stable Release or Bleeding Edge Release
# * Automatic adjustments of all volume channels in Alsamixer
# * Additional tweaks
# * Setup common folders and setup simple samba
# * Give option for ATI/Nvidia Driver setup
#
# KNOWN BUGS:
# * Installation will fail if you uncomment SVN Repositories during first time installation.
#
# Remember to run this script with: sudo ./setupXBMC.sh
#------------------------------------------------------------------------------------------------------------
## --[ Miscellaneous variables ]------------------------------------------------
RELEASE=`cat /etc/lsb-release | grep CODENAME | cut -d = -f2`
usr=`cat /etc/passwd | grep 1000 |cut -d : -f1` ## Assuming the first account is the account your using ##
usrhm="/home/$usr"
cd /
##--[ ADDING REPOSITORIES TO SOURCE LIST ]-------------------------------------------------------------------
## Repositories make it easier to download and stay up-to-date with current releases of Linux applications
if [ $RELEASE = karmic ]
then
add-apt-repository ppa:team-xbmc
else
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/ $RELEASE main >> /etc/apt/sources.list.d/xbmc.org.list
echo deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu/ $RELEASE main >> /etc/apt/sources.list.d/xbmc.org.list
echo deb http://ppa.launchpad.net/xbmc-addons/ppa/ubuntu $RELEASE main >> /etc/apt/sources.list.d/xbmc.org.list
echo '#'deb http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu $RELEASE main >> /etc/apt/sources.list.d/xbmc.org.list
echo '#'deb-src http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu $RELEASE main >> /etc/apt/sources.list.d/xbmc.org.list
fi
##--[ ADDING NVIDIA REPOSITORIES TO SOURCE LIST ]------------------------------------------------------------
if [ $RELEASE = karmic ]
then
add-apt-repository ppa:nvidia-vdpau/ppa
else
echo >> etc/apt/sources.list
echo '#' NVIDIA Repositories >> etc/apt/sources.list
echo deb http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu $RELEASE main >> etc/apt/sources.list
fi
##--[ ADDING PGP KEYS TO VERFIY VALID SOURCES ]--------------------------------------------------------------
if [ $RELEASE = karmic ]
then
echo "We should have our keys already installed..rollin' on"
else
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 318C7509 64234534 CEC06767 0x6D975C4791E7EE5E
fi
##--[ RUNNING A SYSTEM UPDATE ]------------------------------------------------------------------------------
apt-get update
##--[ INSTALL GENERIC NVIDIA GRAPHIC DRIVERS ]---------------------------------------------------------------
apt-get install linux-headers-generic nvidia-glx-190 -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 and Launcher]----------------------------------------------------------------------
apt-get install unzip -y
cd /
cd $usrhm/.xbmc/plugins/programs
wget http://xbmc-addons.googlecode.com/svn/packages/plugins/programs/SVN_Repo_Installer.zip
wget http://xbmc-launcher.googlecode.com/files/Launcher1.04.zip
unzip -o SVN_Repo_Installer.zip
unzip -o Launcher1.04.zip
rm SVN_Repo_Installer.zip
rm Launcher1.04.zip
chown -R $usr:$usr "SVN Repo Installer"
chown -R $usr:$usr Launcher
##--[ INSTALL Additional software ]--------------------------------------------------------------------------
apt-get install openbox 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 $usr
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 ### I'm not sure this is necessary ###
## --[ 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
## --[ Setup autologin for user ]-----------------------------------------------------------------------------------
if [[ "$RELEASE" == "hardy" || "$RELEASE" == "intrepid" || "$RELEASE" == "jaunty" ]]
then
echo '# tty1 - getty' > /etc/event.d/tty1
echo '#' >> /etc/event.d/tty1
echo '# This service maintains a getty on tty1 from the point the system is' >> /etc/event.d/tty1
echo '# started until it is shut down again.' >> /etc/event.d/tty1
echo >> /etc/event.d/tty1
echo 'start on stopped rc2' >> /etc/event.d/tty1
echo 'start on stopped rc3' >> /etc/event.d/tty1
echo 'start on stopped rc4' >> /etc/event.d/tty1
echo 'start on stopped rc5' >> /etc/event.d/tty1
echo >> /etc/event.d/tty1
echo 'stop on runlevel 0' >> /etc/event.d/tty1
echo 'stop on runlevel 1' >> /etc/event.d/tty1
echo 'stop on runlevel 6' >> /etc/event.d/tty1
echo >> /etc/event.d/tty1
echo 'respawn' >> /etc/event.d/tty1
echo 'exec /bin/login -f '$usr' </dev/tty1 > /dev/tty1 2>&1' >> /etc/event.d/tty1
elif [ "$RELEASE" == "karmic" ]
then
echo '# tty1 - getty' > /etc/init/tty1.conf
echo '#' >> /etc/init/tty1.conf
echo '# This service maintains a getty on tty1 from the point the system is' >> /etc/init/tty1.conf
echo '# started until it is shut down again.' >> /etc/init/tty1.conf
echo >> /etc/init/tty1.conf
echo 'start on stopped rc RUNLEVEL=[2345]' >> /etc/init/tty1.conf
echo 'stop on runlevel [!2345]' >> /etc/init/tty1.conf
echo >> /etc/init/tty1.conf
echo 'respawn' >> /etc/init/tty1.conf
echo 'exec /bin/login -f '$usr' </dev/tty1 > /dev/tty1 2>&1' >> /etc/init/tty1.conf
fi
echo 'case "`tty`" in' > $usrhm/.bash_profile
echo '/dev/tty1) clear && startx &>/dev/null;;' >> $usrhm/.bash_profile
echo 'esac' >> $usrhm/.bash_profile
echo exec openbox-session > $usrhm/.xinitrc
mkdir -p $usrhm/.config/openbox
echo '#!/bin/bash' > /usr/local/bin/xbmc-session
echo >> /usr/local/bin/xbmc-session
echo 'trap "xbmc" SIGINT SIGHUP EXIT SIGTERM QUIT SIGSEGV' >> /usr/local/bin/xbmc-session
echo 'while true' >> /usr/local/bin/xbmc-session
echo 'do' >> /usr/local/bin/xbmc-session
echo 'xbmc' >> /usr/local/bin/xbmc-session
echo 'sleep 3' >> /usr/local/bin/xbmc-session
echo 'done' >> /usr/local/bin/xbmc-session
chmod +x /usr/local/bin/xbmc-session
echo xbmc-session > $usrhm/.config/openbox/autostart.sh
mkdir -p $usrhm/Media/Videos
mkdir -p $usrhm/Media/Movies
mkdir -p $usrhm/Media/Music
mkdir -p $usrhm/Media/Pictures
chown -R $usr:$usr $usrhm
#SYSTEM Reboot
sync
/sbin/reboot
- Txori82 - 2009-12-13
Hi
add-apt-repository gives me an error.
Iy I delete
Code: if [ $RELEASE = karmic ]
then
add-apt-repository ppa:team-xbmc
else
At the end, I recived the same error with OpenGL. I Think that there is a bug with the last XBMC...
- prupert - 2009-12-13
Is there a way to use the script to update your current setup?? I guess not. In that case, anyone know how I can update to the latest version of the Nvidea drivers, or does Ubuntu do that automatically (drivers is Ubuntu is all new to me).
I would test out your script, but as I have already used a previous version of your script to set up XBMC, I guess the script wont work for me again.
Wonderful - dirkieh - 2009-12-13
Hi,
just wanted everybody to let know, that the script solved my problems which were caused by an silly system-update of myself.
Just ran sudo ./setupXBMC.sh again, took 5 min on my Revo.
Everything went back to normal.
Thank you once again for the wonderful script !
- biptn - 2009-12-13
Txori82 Wrote:Hi
add-apt-repository gives me an error.
Iy I delete
Code: if [ $RELEASE = karmic ]
then
add-apt-repository ppa:team-xbmc
else
At the end, I recived the same error with OpenGL. I Think that there is a bug with the last XBMC...
So are you running karmic? What version of the nvidia module do you have installed? Code: cat /proc/driver/nvidia/version
What does glxinfo return when you run it?
- prupert - 2009-12-14
dirkieh Wrote:Hi,
just wanted everybody to let know, that the script solved my problems which were caused by an silly system-update of myself.
Just ran sudo ./setupXBMC.sh again, took 5 min on my Revo.
Everything went back to normal.
Thank you once again for the wonderful script !
Aha, so did it update the installation, or replace it (i.e. did it wipe your library and all your settings)?
Cool if this can also be used as an update script as well.....
- biptn - 2009-12-14
i'll add an update feature to it in the next couple days.
- Txori82 - 2009-12-14
Ok. I hope it'll work fine
- prupert - 2009-12-14
Update feature would rule!
- prupert - 2009-12-15
Running Boxee alongside xbmc on this set-up.
Hi, so, I have got access to the new Boxee beta, that runs on Karmic.
I would love to get it running on my XBMC box, that I have set up using this script. Thing is, I haven't really got a clue about how to get boxee running under the set up that this script creates.
Just launching the boxee script through the Launcher plugin doesn't work, it just ask about Importing Files from Path and then goes back to the main Launcher plugin window.
Obviously using Ctl Alt F2 to get a new login screen and the running the boxee start up script from there crashes out since boxee can't find a screen to draw to - I assume.
I am guessing I need to make a new openbox script to run boxee with, but its all very confusing to me.....
Can any one give me any pointers on what to do?
Ideally I'll like to be able to launch boxee from from XBMC via remote, by if I need to use a keyboard, that'd be acceptable....
Or should I post this as a separate post...?
- prupert - 2009-12-15
Failing advice, if biptn could talk me through how we are getting an xbmc screen up and running, that would help.
I guess when the box boots, X is autostarted, and then openbox is autostarted and it runs the xbmc-session script that calls xbmc.
I guess to run boxee, I need to run another version of X and another version of openbox that calls boxee. I guess this would put excessive load on the system though. So it would be better if I could kill the X server and the openbox session that is autostarted first. However, I am not sure how to do this....
Using Ctrl Alt F2 gets me to a new login screen, but I can't seem to close X and openbox from that login (I guess coz it is a separate login).....
- biptn - 2009-12-15
i'm workin' on it for ya, I'm using a script from a fella that starts another x session, tehn I have a scrip launched from the launcher plugin that barks off whatever app it may be in that new session, when it is cloed, dies, crashes, it returns to xbmc. I should have a quick hacked script for ya around lunch time. (California time)
- prupert - 2009-12-15
Ahh cool.
I actually sorted out a basic way of doing it, since I worked out (me being dumb as usual) that openbox is a desktop manager, all I had to do was edit the openbox menu allowing me to launch XBMC and Boxee via a menu entry.
I am gonna try and get lirexec to launch either boxee or xbmc based on a command from my remote (so I exit out of XBMC, then press the button on my remote to load boxee for example).
So, don't let it take up too much of your time, but if you can work out a way of doing it from within XBMC, that'd be cool
- biptn - 2009-12-15
This version now has an Install/Update feature for all ya.
Code: #!/bin/bash
#------------------------------------------------------------------------------------------------------------
# setupXBMC Version 0.8b - 12/12/2009
# XBMC Installation script - by VirtualDanny.net
# Modified by BiptoN
# This script will provide an automatic installation of Xbox Media Center
#
# REQUIREMENTS:
# * Clean Ubuntu Jaunty/Intrepid/Hardy Installation (https://help.ubuntu.com/community/Installation/MinimalCD)
# * XBMC Compatible Hardware (http://wiki.xbmc.org/?title=XBMC_for_Linux_specific_FAQ)
# * Internet access
#
# TO-DO LIST:
# * Menu to choose from Stable Release or Bleeding Edge Release
# * Automatic adjustments of all volume channels in Alsamixer
# * Additional tweaks
# * Setup common folders and setup simple samba
# * Give option for ATI/Nvidia Driver setup
#
# KNOWN BUGS:
# * Installation will fail if you uncomment SVN Repositories during first time installation.
#
# Remember to run this script with: sudo ./setupXBMC.sh
#------------------------------------------------------------------------------------------------------------
function sysup { apt-get update && apt-get upgrade -y }
## Upgrade or Install ##
echo "(U)pgrade system"
echo "(I)nstall on new system"
read action
case $action in
"U" | "u" ) sysup ; exit 0
;;
"I" | "i" ) echo "Alrighty then, installin' XBMC for ya" ; clear
;;
esac
## --[ Miscellaneous variables ]------------------------------------------------
RELEASE=`cat /etc/lsb-release | grep CODENAME | cut -d = -f2`
usr=`cat /etc/passwd | grep 1000 |cut -d : -f1` ## Assuming the first account is the account your using ##
usrhm="/home/$usr"
cd /
##--[ ADDING REPOSITORIES TO SOURCE LIST ]-------------------------------------------------------------------
## Repositories make it easier to download and stay up-to-date with current releases of Linux applications
if [ $RELEASE = karmic ]
then
add-apt-repository ppa:team-xbmc
else
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/ $RELEASE main >> /etc/apt/sources.list.d/xbmc.org.list
echo deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu/ $RELEASE main >> /etc/apt/sources.list.d/xbmc.org.list
echo deb http://ppa.launchpad.net/xbmc-addons/ppa/ubuntu $RELEASE main >> /etc/apt/sources.list.d/xbmc.org.list
echo '#'deb http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu $RELEASE main >> /etc/apt/sources.list.d/xbmc.org.list
echo '#'deb-src http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu $RELEASE main >> /etc/apt/sources.list.d/xbmc.org.list
fi
##--[ ADDING NVIDIA REPOSITORIES TO SOURCE LIST ]------------------------------------------------------------
if [ $RELEASE = karmic ]
then
add-apt-repository ppa:nvidia-vdpau/ppa
else
echo >> etc/apt/sources.list
echo '#' NVIDIA Repositories >> etc/apt/sources.list
echo deb http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu $RELEASE main >> etc/apt/sources.list
fi
##--[ ADDING PGP KEYS TO VERFIY VALID SOURCES ]--------------------------------------------------------------
if [ $RELEASE = karmic ]
then
echo "We should have our keys already installed..rollin' on"
else
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 318C7509 64234534 CEC06767 0x6D975C4791E7EE5E
fi
##--[ RUNNING A SYSTEM UPDATE ]------------------------------------------------------------------------------
apt-get update
##--[ INSTALL GENERIC NVIDIA GRAPHIC DRIVERS ]---------------------------------------------------------------
apt-get install linux-headers-generic nvidia-glx-190 -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 and Launcher]----------------------------------------------------------------------
apt-get install unzip -y
cd /
cd $usrhm/.xbmc/plugins/programs
wget http://xbmc-addons.googlecode.com/svn/packages/plugins/programs/SVN_Repo_Installer.zip
wget http://xbmc-launcher.googlecode.com/files/Launcher1.04.zip
unzip -o SVN_Repo_Installer.zip
unzip -o Launcher1.04.zip
rm SVN_Repo_Installer.zip
rm Launcher1.04.zip
chown -R $usr:$usr "SVN Repo Installer"
chown -R $usr:$usr Launcher
##--[ INSTALL Additional software ]--------------------------------------------------------------------------
apt-get install openbox 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 $usr
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
## --[ FINAL SYSTEM UPGRADE ]--------------------------------------------------------------------------------
sysup
## --[ 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
## --[ Setup autologin for user ]-----------------------------------------------------------------------------------
if [[ "$RELEASE" == "hardy" || "$RELEASE" == "intrepid" || "$RELEASE" == "jaunty" ]]
then
echo '# tty1 - getty' > /etc/event.d/tty1
echo '#' >> /etc/event.d/tty1
echo '# This service maintains a getty on tty1 from the point the system is' >> /etc/event.d/tty1
echo '# started until it is shut down again.' >> /etc/event.d/tty1
echo >> /etc/event.d/tty1
echo 'start on stopped rc2' >> /etc/event.d/tty1
echo 'start on stopped rc3' >> /etc/event.d/tty1
echo 'start on stopped rc4' >> /etc/event.d/tty1
echo 'start on stopped rc5' >> /etc/event.d/tty1
echo >> /etc/event.d/tty1
echo 'stop on runlevel 0' >> /etc/event.d/tty1
echo 'stop on runlevel 1' >> /etc/event.d/tty1
echo 'stop on runlevel 6' >> /etc/event.d/tty1
echo >> /etc/event.d/tty1
echo 'respawn' >> /etc/event.d/tty1
echo 'exec /bin/login -f '$usr' </dev/tty1 > /dev/tty1 2>&1' >> /etc/event.d/tty1
elif [ "$RELEASE" == "karmic" ]
then
echo '# tty1 - getty' > /etc/init/tty1.conf
echo '#' >> /etc/init/tty1.conf
echo '# This service maintains a getty on tty1 from the point the system is' >> /etc/init/tty1.conf
echo '# started until it is shut down again.' >> /etc/init/tty1.conf
echo >> /etc/init/tty1.conf
echo 'start on stopped rc RUNLEVEL=[2345]' >> /etc/init/tty1.conf
echo 'stop on runlevel [!2345]' >> /etc/init/tty1.conf
echo >> /etc/init/tty1.conf
echo 'respawn' >> /etc/init/tty1.conf
echo 'exec /bin/login -f '$usr' </dev/tty1 > /dev/tty1 2>&1' >> /etc/init/tty1.conf
fi
echo 'case "`tty`" in' > $usrhm/.bash_profile
echo '/dev/tty1) clear && startx &>/dev/null;;' >> $usrhm/.bash_profile
echo 'esac' >> $usrhm/.bash_profile
echo exec openbox-session > $usrhm/.xinitrc
mkdir -p $usrhm/.config/openbox
echo '#!/bin/bash' > /usr/local/bin/xbmc-session
echo >> /usr/local/bin/xbmc-session
echo 'trap "xbmc" SIGINT SIGHUP EXIT SIGTERM QUIT SIGSEGV' >> /usr/local/bin/xbmc-session
echo 'while true' >> /usr/local/bin/xbmc-session
echo 'do' >> /usr/local/bin/xbmc-session
echo 'xbmc' >> /usr/local/bin/xbmc-session
echo 'sleep 3' >> /usr/local/bin/xbmc-session
echo 'done' >> /usr/local/bin/xbmc-session
chmod +x /usr/local/bin/xbmc-session
echo xbmc-session > $usrhm/.config/openbox/autostart.sh
mkdir -p $usrhm/Media/Videos
mkdir -p $usrhm/Media/Movies
mkdir -p $usrhm/Media/Music
mkdir -p $usrhm/Media/Pictures
chown -R $usr:$usr $usrhm
#SYSTEM Reboot
#pkill X
sync
/sbin/reboot
- prupert - 2009-12-15
Ohh, that is officially AWESOME.
Loving this, cheers
|