註冊時間: 2009年 1月 14日, 06:05 文章: 1422
|
install_firefox36.sh
!/bin/bash
set -x
FILENANE="firefox3_gtk210.tar.gz" USERHOME="/home/user" bak_src_path="/home/user/sources.list.bak" PACKAGES="firefox firefox-extension-default firefox-locale-zh-tw gtk2-engines libgnomeui-0 libgnomeui-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common librsvg2-2 librsvg2-common"
cd $USERHOME
wget -c "http://eeepc-packages.googlecode.com/files/${FILENANE}" -O "${USERHOME}/${FILENANE}" chown user:user ${FILENANE} tar zxvf ${FILENANE}
mv /etc/apt/sources.list "$bak_src_path" echo "deb file:/home/user/packages eeepc main" > /etc/apt/sources.list
apt-get update apt-get -y --allow-unauthenticated install $PACKAGES
cp "$bak_src_path" /etc/apt/sources.list
|
|