当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 懒人amd64 FeistyFawn flash player 安装
帖子发表于 : 2007-10-01 21:27 

注册: 2007-08-25 7:42
帖子: 26
送出感谢: 0 次
接收感谢: 0 次
恩 linux 重装起来比较麻烦 所以我把一些安装 步骤做成 shell script这样至少可以达到半自动的安装

amd64 flash player 是个问题 adobe也不知道是怎么想的 到现在也不出64位flash player害的我们 安装一个flash player 都大费周张

自己尝试做了一个 flash player nsplugin 的包装,结果 有问题>< 不想麻烦的调试了 上网 找了一个


从这下一行开始考
#!/bin/bash

swintel=swiftweasel-2.0.0.6.1_nocona-64bit_ubuntu_6.06-AMD64.deb
swk8=swiftweasel-2.0.0.6.1_k8-64bit_ubuntu_6.06-AMD64.deb
swathlon64=swiftweasel-2.0.0.6.1_athlon64-64bit_ubuntu_6.06-AMD64.deb

sudo mkdir /tmp/javainst


#choose version of ubuntu
#Input code browser
function strinput {
unset refstr
echo -n "$1"
read refstr
}

#Choose a browser to install
echo
echo "This script will install the 64bit Blackdown java plugin."
echo "The plugin makes the version of Firefox Ubuntu installs crash"
echo "when opening a java applet."
echo "Swiftweasel, an optimised version of Firefox does not crash with" echo "this java plugin. This script will install Swiftweasel and "
echo "the Java plugin. It also has an option to install Flash and the "
echo "nspluginwrapper"
echo
echo "可以选这安装下列浏览器."
echo "swiftweasel 是一个完全和firefox兼容的浏览器(就是根据cpu优化,能快那么一点点)"
echo
echo "1 : Swiftweasel for Intel 64bit processors (EMT)"
echo "2 : Swiftweasel for AMD Athlon64 processors"
echo "3 : Swiftweasel for other AMD 64bit processors"
echo "4 : Swiftweasel is already installed"
echo

if [ "$installtype" = "" ]
then
echo "如果你不确定就按回车好了."
echo -n "请输入 (1-4)? : "
strinput
else
refstr=$installtype
fi


if [ "$refstr" = "1" ]
then
echo "Installing Swiftweasel for Intel 64bit processors "
cd /tmp/javainst
sudo wget -c http://downloads.sourceforge.net/swiftweasel/"$swintel"
sudo dpkg -i /tmp/javainst/"$swintel"

elif [ "$refstr" = "2" ]
then
echo "Installing Swiftweasel for AMD Athlon64 processors"
cd /tmp/javainst
sudo wget -c http://downloads.sourceforge.net/swiftweasel/"$swathlon64"
sudo dpkg -i /tmp/javainst/"$swathlon64"

elif [ "$refstr" = "3" ]
then
echo "Installing Swiftweasel for other AMD 64bit processors"
cd /tmp/javainst
sudo wget -c http://downloads.sourceforge.net/swiftweasel/"$swk8"
sudo dpkg -i /tmp/javainst/"$swk8"


elif [ "$refstr" = "4" ]
then
cd /tmp/javainst
echo "Java only install, Swiftweasel is already installed."

else
cd /tmp/javainst
echo "No browser selected, please select an option"

fi

#Input function java
function strinput {
unset refstr
echo -n "$1"
read refstr
}

#Install Java
if [ "$javaask" = "" ]
then
echo
echo
echo
echo
echo "安装Java 插件吗?"
echo -n "Install option (Yes=1 No=2)? : "
strinput
else
refstr=$javaask
fi
if [ "$refstr" = "1" ]
then
#Get the java installer
#sudo wget http://home.comcast.net/~idby/j2re-1.4. ... bin.tar.gz
#sudo tar -xzvf j2re-1.4.2-03-linux-amd64.bin.tar.gz
sudo wget ftp://mirrors.ibiblio.org/pub/mirrors/b ... -amd64.bin

#Change the permissions on the installer so we can run it
sudo chmod 777 j2re-1.4.2-03-linux-amd64.bin

#run installer
sudo ./j2re-1.4.2-03-linux-amd64.bin

#move the folder the installer made
sudo mv /tmp/javainst/j2re1.4.2 /usr/local/

#change the folders owner to root
sudo chown -R root:root /usr/local/j2re1.4.2

#link in the plugin
sudo ln -s /usr/local/j2re1.4.2/plugin/amd64/mozilla/libjavaplugin_oji.so /usr/local/swiftweasel/plugins
else
clear
fi

#Input function flash
function strinput {
unset refstr
echo -n "$1"
read refstr
}

#Install Flash
if [ "$flashask" = "" ]
then
echo
echo
echo
echo
echo "安装Flash 和 nspluginwrapper吗(你就认为是flash就可以拉)?"
echo -n "请选择(Yes=1 No=2)? : "
strinput
else
refstr=$flashask
fi
if [ "$refstr" = "1" ]
then
#Clean out old installs
sudo apt-get remove -y nspluginwrapper
sudo apt-get remove -y nspluginwrapper-i386
sudo rm -f /usr/lib/mozilla/plugins/flashplayer.xpt
sudo rm -f /usr/lib/mozilla/plugins/libflashplayer.so
sudo rm -f /usr/lib/mozilla/plugins/npwrapper.libflashplayer.so
sudo rm -f ~/.mozilla/plugins/npwrapper.libflashplayer.so

#make working directory
sudo mkdir /tmp/nsplugwrapper

#move to working directory
cd /tmp/nsplugwrapper

#install needed packages
sudo apt-get -y install ia32-libs ia32-libs-gtk linux32 lib32asound2 gsfonts-x11 ia32-libs-sdl

#Dowload rpm's
sudo wget -c http://home.comcast.net/~ubuntume/nsplu ... _amd64.deb

#Install deb files
sudo dpkg -i *.deb

#Get Flash and place it
sudo wget -c http://fpdownload.macromedia.com/get/fl ... nux.tar.gz
sudo tar -xzvf install_flash_player_9_linux.tar.gz
sudo mv -f /tmp/nsplugwrapper/install_flash_player_9_linux/libflashplayer.so /usr/lib/mozilla/plugins/
sudo mv -f /tmp/nsplugwrapper/install_flash_player_9_linux/flashplayer.xpt /usr/lib/mozilla/plugins/

#make wrapped plugin
nspluginwrapper -i /usr/lib/mozilla/plugins/libflashplayer.so
sudo mv ~/.mozilla/plugins/npwrapper.libflashplayer.so /usr/lib/mozilla/plugins/
sudo ln -s /usr/lib/mozilla/plugins/npwrapper.libflashplayer.so /usr/lib/mozilla-firefox/plugins/
else
clear
fi

#Set Ownership of plugins
function strinput {
unset refstr
echo -n "$1"
read refstr
}

#Set Ownership of plugins
if [ "$ownask" = "" ]
then
echo
echo
echo
echo
echo "Finaly we need to set the ownership of the files to you"
echo -n "请输入您的用户名(不要输错了,错了就白装了) "
strinput
else
refstr=root
fi

if [ "$refstr" = "root" ]
then
sudo chown -R root:root /usr/lib/mozilla/plugins/
sudo chown -R root:root /usr/local/swiftweasel/plugins/
echo
echo
echo
echo
echo "都装完啦!"
echo "You will need to use Swiftweasel to use java. It is in the"
echo "Internet menu. If you had Swiftweasel installed already you"
echo "will need to restart it."
else
sudo chown -R "$refstr":"$refstr" /usr/lib/mozilla/plugins/
sudo chown -R "$refstr":"$refstr" /usr/local/swiftweasel/plugins/
echo
echo
echo
echo
echo "都装完拉"
echo "You will need to use Swiftweasel to use java. It is in the"
echo "Internet menu. If you had Swiftweasel installed already you"
echo "will need to restart it."
fi
#===================到这里结束==================

随便建立一个信文件

然后"cd 你的文件目录"例如“cd ~/" 如果在当前目录下建立就不用这一步
在然后 chmod 755 文件名(你新建的那个)例如“chmod 755 install

最后 sudo ./文件名


ps:还有 就是这个 浏览器的配置文件都在 ~/.mozilla/swiftweasel

原文网站 http://tghc.org/forum/viewtopic.php?id=4


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2007-10-06 16:22 

注册: 2007-10-06 16:16
帖子: 26
送出感谢: 0 次
接收感谢: 0 次
:D 支持了!


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译