User:Kevgor/Install Script for Labquest

From OLPC
< User:Kevgor
Revision as of 15:04, 1 November 2011 by Kevgor (talk | contribs)
Jump to navigation Jump to search
#!/bin/sh
# 2011/10/02 XO1.0
echo Activities
unzip -q /media/PATRIOT/Activities.zip -d /home/olpc/Activities
echo NewActivities
unzip -q /media/PATRIOT/NewActivities.zip -d /home/olpc/Activities
# rm -R /home/olpc/Activities/Wikipedia.activity/
cp /media/PATRIOT/WIKIStick.* /home/olpc/Desktop/
sync
echo Updates
yum -yv --disablerepo=* --nogpgcheck localinstall /media/PATRIOT/UpdateRPMs/*.rpm

echo BaseNewRPMs
yum -yv --disablerepo=* remove gnash gnash-plugin
yum -yv --disablerepo=* --nogpgcheck localinstall /media/PATRIOT/BaseNewRPMs/*.rpm

echo Skype
yum -yv --disablerepo=* --nogpgcheck localinstall /media/PATRIOT/Skype/*.rpm
echo BaseUtilities

yum -yv --disablerepo=* --nogpgcheck localinstall /media/PATRIOT/BaseUtilities/*.rpm
echo GUVCrpms

yum -yv --disablerepo=* --nogpgcheck localinstall /media/PATRIOT/GuvcLibs/*.rpm
 
echo mPlayer Tarball
cd /usr/bin
cp /media/PATRIOT/DSDTarball/mplayer.tar /usr/bin/mplayer.tar
tar -xvf mplayer.tar
chmod +x mplayer
rm mplayer.tar
mkdir /home/olpc/.mplayer
mv config /home/olpc/.mplayer
echo mplayerdone
echo DSDTarball
cp /media/PATRIOT/DSDTarball/labquest_xo_0.1-dsd.tar /tmp/
cd /tmp
tar -xvf labquest_xo_0.1-dsd.tar
cd labquest_xo_0.1-dsd
./install.sh
echo DSDdone
echo ActivityFix
chmod 777 /home/olpc/Activities -R
echo Mavrothal Scripts
bash /media/PATRIOT/mavrothal.sh
bash /media/PATRIOT/mav2.sh
echo Cleanup
yum clean all
sync
echo Please Reboot