User:Kevgor/Install Script for mplayer

From OLPC
Jump to navigation Jump to search
#!/bin/sh
# 20110828 XO1.5
#bash /media/PATRIOT/mavrothal.sh
#bash /media/PATRIOT/mav2.sh
#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 BaseNewRPMs
yum -yv --disablerepo=* remove gnash gnash-plugin
yum -yv --disablerepo=* --nogpgcheck localinstall /media/PATRIOT/BaseNewRPMs/*.rpm
echo Updates
yum -yv --disablerepo=* --nogpgcheck localinstall /media/PATRIOT/UpdateRPMs/*.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 Chrome
yum -yv --disablerepo=* --nogpgcheck localinstall /media/PATRIOT/Chrome/*.rpm
echo Programming
yum -yv --disablerepo=* --nogpgcheck localinstall /media/PATRIOT/Programming/*.rpm
echo HP
yum -yv --disablerepo=* --nogpgcheck localinstall /media/PATRIOT/HPlip/*.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 Cleanup
yum clean all
echo Please Reboot