2008年(787)
分类:
2008-10-09 10:32:22
解决了显示网页字体的问题后,接下来的课题就是Firefox显示不了网页上的Flash,点选安装缺失插件,结果安装失败,手动安装提示成功,但是Flash依旧不肯出来;于是在YAST中把新装的flash player 9给卸了,装了个7,结果还一样。在google上有很多人都说能装成功,不管是自动安装还是手动安装,不过他们的系统都不是suse的。现在是1:40,已经成功,终于让Firefox播放flash了。
过程如下:
由于系统自带的Firefox是1.5,播不了Flash,于是我将它升级到2.0,故障依旧;被逼无奈,只好装了个netscape来试试运气,于是到netscape站点下了个最新的9.03,真是方便,解压就可以使用。同样打开,点击其中一个flash,提示flashplayer太旧需要升级,于点我点提示的那个地方开始自动升级,弹出来的接受协议与firefox的一样,就是不知道能否成功。于是等download完,自动配置,呵呵。看到flash加载的进度条了,一阵狂喜。总算是可以看到了,就用netscape来补这个缺吧。
不过netscape是全英文的,还是觉得不大顺眼,既然netscape可以下载成功而且还能自动安装成功,反正播flash的文件都是一样的adoba flash player,不是刚刚下载下来安装的吗?保存在硬盘的哪个目录下呢?
首先想到的/tmp,过去查了,没有。到当初netscape解压的目录,进去找flash字样的文件,也没有;于是我想到了find命令,当然接下来就是硬盘的一顿狂转了。
suse-10:/ # find / -name '*flashplay*'
/usr/lib/browser-plugins/flashplayer.xpt
/usr/lib/browser-plugins/libflashplayer.so
/usr/local/netscape/plugins/flashplayer.xpt
/usr/local/netscape/plugins/libflashplayer.so
find: /proc/18881/task: 没有那个文件或目录
find: /proc/18881/fd: 没有那个文件或目录
find: WARNING: Hard link count is wrong for /: this may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to include directories that should have been searched.
/root/.netscape/plugins/flashplayer.xpt
/root/.netscape/plugins/libflashplayer.so
/root/.macromedia/Flash_Player/macromedia.com/support/flashplayer
/windows/C/Documents and Settings/Administrator/Application Data/Macromedia/Flash Player/macromedia.com/support/flashplayer
suse-10:/ # ~
bash: /root: is a directory
suse-10:/ #
找到了不少,呵呵,有收获。然后用 ls命令一个一个查看,发现:
suse-10:~/.netscape/plugins # ls -u -lt
总计 6895
-rw-r--r-- 1 root root 6148 2007-09-27 01:01 .DS_Store
-rw-r--r-- 1 root root 856 2007-09-27 01:01 flashplayer.xpt
-rwxr-xr-x 1 root root 7040036 2007-09-27 01:01 libflashplayer.so
这不就是我刚才安装flash player的大概时间吗?然后再用ls命令查看其它目录,没有一个与那个时间点相符,估计就是这三个了。
不管3721,再进到firefox的安装目录,我升级firefox后目录变到/usr/bin/firefox-2.0.0.7/了,于是
suse-10:/ # cd /usr/bin/firefox-2.0.0.7/
suse-10:/usr/bin/firefox-2.0.0.7 # ls -ul
总计 13639
-rw-r--r-- 1 root root 0 2007-09-27 01:34 .autoreg
-rw-r--r-- 1 root root 232 2007-09-27 01:34 browserconfig.properties
drwxr-xr-x 3 root root 552 2007-09-27 01:37 chrome
drwxr-xr-x 2 root root 1536 2007-09-27 01:35 components
drwxr-xr-x 5 root root 128 2007-09-27 01:34 defaults
drwxr-xr-x 5 root root 184 2007-09-27 01:37 extensions
-rwxr-xr-x 1 root root 5247 2007-09-27 01:37 firefox
-rwxr-xr-x 1 root root 10552484 2007-09-27 01:37 firefox-bin
drwxr-xr-x 2 root root 144 2007-09-27 01:37 greprefs
drwxr-xr-x 2 root root 176 2007-09-27 01:34 icons
-rw-r--r-- 1 root root 1326 2007-09-27 01:34 install.log
-rw-r--r-- 1 root root 476 2007-09-27 01:34 libfreebl3.chk
-rwxr-xr-x 1 root root 231468 2007-09-27 01:37 libfreebl3.so
-rwxr-xr-x 1 root root 628764 2007-09-27 01:37 libmozjs.so
-rwxr-xr-x 1 root root 176716 2007-09-27 01:37 libnspr4.so
-rwxr-xr-x 1 root root 430608 2007-09-27 01:37 libnss3.so
-rwxr-xr-x 1 root root 276064 2007-09-27 01:37 libnssckbi.so
-rwxr-xr-x 1 root root 15304 2007-09-27 01:37 libplc4.so
-rwxr-xr-x 1 root root 8240 2007-09-27 01:37 libplds4.so
-rwxr-xr-x 1 root root 138316 2007-09-27 01:37 libsmime3.so
-rw-r--r-- 1 root root 476 2007-09-27 01:34 libsoftokn3.chk
-rwxr-xr-x 1 root root 309624 2007-09-27 01:37 libsoftokn3.so
-rwxr-xr-x 1 root root 155560 2007-09-27 01:37 libssl3.so
-rwxr-xr-x 1 root root 94924 2007-09-27 01:37 libxpcom_compat.so
-rwxr-xr-x 1 root root 699056 2007-09-27 01:37 libxpcom_core.so
-rwxr-xr-x 1 root root 9240 2007-09-27 01:37 libxpcom.so
-rwxr-xr-x 1 root root 8284 2007-09-22 12:24 libxpistub.so
-rwxr-xr-x 1 root root 10336 2007-09-27 01:34 mozilla-xremote-client
-rw-r--r-- 1 root root 112 2007-09-27 01:34 old-homepage-default.propertiesdrwxr-xr-x 2 root root 152 2007-09-27 01:38 plugins
-rw-r--r-- 1 root root 177 2007-09-27 01:34 readme.txt
-rw-r--r-- 1 root root 177 2007-09-27 01:34 README.txt
-rw-r--r-- 1 root root 335 2007-09-27 01:34 registry
-rwxr-xr-x 1 root root 13062 2007-09-27 01:34 removed-files
drwxr-xr-x 6 root root 1688 2007-09-27 01:34 res
-rwxr-xr-x 1 root root 10492 2007-09-27 01:37 run-mozilla.sh
drwxr-xr-x 2 root root 240 2007-09-27 01:37 searchplugins
-rwxr-xr-x 1 root root 67496 2007-09-27 01:34 updater
-rw-r--r-- 1 root root 121 2007-09-27 01:34 updater.ini
drwxr-xr-x 3 root root 72 2007-09-27 01:37 updates
-rwxr-xr-x 1 root root 21368 2007-09-27 01:34 xpicleanup
suse-10:/usr/bin/firefox-2.0.0.7 #
找到了plugins目录,于是返回suse-10:~/.netscape/plugin目录将刚才找到的那三个文件(其实只要以下显示的两个)copy过来:
suse-10:~/.netscape/plugins # cp * -r /usr/bin/firefox-2.0.0.7/plugins
suse-10:~/.netscape/plugins # cd /usr/bin/firefox-2.0.0.7/plugins
suse-10:/usr/bin/firefox-2.0.0.7/plugins # ls
flashplayer.xpt libflashplayer.so libnullplugin.so
suse-10:/usr/bin/firefox-2.0.0.7/plugins #
重新打开firefox,进入,终于有了熟悉而陌生的flash进度加载条。总算是成功了。