Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2292553
  • 博文数量: 168
  • 博客积分: 6641
  • 博客等级: 准将
  • 技术积分: 1996
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-02 11:49
文章存档

2020年(4)

2019年(6)

2017年(1)

2016年(3)

2015年(3)

2014年(8)

2013年(2)

2012年(12)

2011年(19)

2010年(10)

2009年(3)

2008年(17)

2007年(80)

分类: LINUX

2007-06-02 14:20:49

#/bin/bash
#Simple Install Scripts for SuperUser.
#By Kenthy#qingdaonews.com 2006.10.16
 
# For Thizlinux 7.0 or Redhat Linux 9.0, Only for reference.
# Need Packages:
# MPlayer-1.0pre8.tar.bz2
# Font+Skin-MPlayer-1.0pre8.tar.bz2
# mplayer_codecs-all-20060611.tar.bz2
 
#Step1: Compile Mplayer1.0 Main Contents For Gui.
echo "*****************************************************"
echo "Starting to install MPlayer-1.0pre8."
echo "Now decompress the tarball package ........"
tar jxvf MPlayer-1.0pre8.tar.bz2 -C /usr/src/ > /dev/null
echo "Compiling and Installing ........"
cd /usr/src/MPlayer-1.0pre8
./configure --enable-gui --language=zh_CN --charset=utf8 > /dev/null
make && make install > /dev/null
#Step2: Install The Font And Skins
echo "*****************************************************"
echo "Preparing for font and Skins for Gui-MPlayer"
echo "*****************************************************"
sleep 2
cd -
mkdir -p /usr/local/share/mplayer > /dev/null
mkdir ~/.mplayer > /dev/null
tar jxvf Font+Skin-MPlayer-1.0pre8.tar.bz2 -C /usr/local/share/mplayer/ > /dev/null
ln -s /usr/local/share/mplayer/font/font-arial-iso-8859-1/font-arial-14-iso-8859-1 ~/.mplayer/font
echo "*****************************************************"
echo "Congratuations!!.MPlayer-1.0pre8 Has Been Installed.."
echo "*****************************************************"
sleep 2
echo ""
#Step3: Install The codecs According User's Decision
read -p "Would you install the all-codecs package,then? (Y/N)  " DIC
if [ $DIC = "Y" ] || [ $DIC = "y" ] ; then
 echo "Start to copy codecs files ......."
 tar jxvf mplayer_codecs-all-20060611.tar.bz2 -C /usr/local/lib/
 mv -f /usr/local/lib/all-20060611 /usr/local/lib/codecs
else
 echo "OK. The all-codecs package will not be install to your system."
 exit 0
fi
echo "*****************************************************"
echo "Now Deleting The Spare Files During This Installing"
rm -rf /usr/src/MPlayer-1.0pre8
echo "All things have been done. Enjoy Your Life!!!"
echo "*****************************************************"
阅读(957) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~