红联Linux门户
Linux帮助

让linux中的firefox直接打开PDF文档

发布时间:2009-11-17 15:00:37来源:红联作者:foolishken
[i=s] 本帖最后由 foolishken 于 2009-11-17 15:05 编辑 [/i]

在linux下用firefox不能直接打开pdf文档,如何才能在firefox中直接打开呢,如下步骤将告诉你如何处理这个问题。
通用linux方法:到
http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0.9/enu/AdobeReader_enu-7.0.9-1.i386.tar.gz
下载AdobeReader 7.0.9(虽然版本不是最新,但是还是够用的)的英文版本的安装包,下载之后将其解压到桌面上AdobeReader文件夹内,打开文件夹,找到INSTALL文件,右键>属性>权限,选择“允许以程序执行文件”,然后确定即可。

打开终端,输入cd /home/hao/桌面/AdobeReader(hao是本人的用户名,这里你要改成你自己的用户名),再输入 su ./INSTALL(注意大小写,不可写错,如果是ubuntu linux的话,要输入sudo ./INSTALL),接着输入密码,然后出现如下语句:
This installation requires 111 MB of free disk space.



Enter installation directory for Adobe Reader 7.0.9 [/usr/local/Adobe/Acrobat7.0]
此时直接回车就可以了,过一会儿出现如下语句:
/usr/local/Adobe/Acrobat7.0



Installing platform independent files ... Done



Installing platform dependent files ... Done



Do you want to install the browser plugin ? [y/n]
此时输入一个y然后回车就 可以了,回车之后又出现如下语句:
This will install the browser plugin for acroread.



Do you want to perform automatic installation ? [y/n]
此时再输入一个y,回车,然后出现如下语句:
Trying to install plugin for browser - firefox

Installing plugin in /usr/lib/firefox-3.5.5/firefox.sh

The plugin seems to be already installed. Are you sure you want to overwrite ? [y/n]
此时再输入一个y,回车,然后出现如下语句:
Installation successful. /usr/lib/firefox-3.5.5/plugins/nppdf.so




Trying to install plugin for browser - mozilla

Installation failed




Finished with automatic install.

Do you want to perform manual installation ? [y/n]
此时再输入一个y,回车,然后出现如下语句:
Acroread path specified - /usr/local/Adobe/Acrobat7.0



1. Perform global installation

2. Perform user-specific installation (Mozilla/Firefox/Netscape)

3. Quit

Enter your choice [1/2/3]
这里是关键的步骤,在这儿输入一个2,然后回车,然后直接再输入一个y,回车,当显示如下语句时,表示安装成功了:
Installation successful.

/home/hao/.mozilla/plugins/nppdf.so has been added.

This will enable the plugin for Mozilla, Firefox and Netscape.

Press to continue ...
直接再按一下回车就ok了。最后再在终端里输入3,回车,出现:If you are facing any problem in getting the installation to work for your browser, please copy the following file to the plugin folder of the browser:

/usr/local/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so



In case of difficulties please refer to the documentation provided along with the browser for addition of new plugins.

Please login again for changes to MIME types and icons to take effect.的时候就算是大功告成了。

如果你的系统支持rpm包的话,那就更简单了,直接在
http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0.9/enu/AdobeReader_enu-7.0.9-1.i386.rpm
下载一个安装就ok了,太容易不过了。

这次用firefox打开pdf文档就可以直接看了。
文章评论

共有 22 条评论

  1. 1010e 于 2012-10-28 09:47:28发表:

    有空要试一试

  2. bxl888 于 2012-05-03 18:34:55发表:

    好,顶一个!!!

  3. pbb7771930 于 2012-02-04 14:30:43发表:

    好好学习,天天向上

  4. haoge512 于 2011-10-31 22:19:12发表:

    试一下啊

  5. tangzhongchun 于 2011-05-08 14:21:37发表:

    :-),还是直接用阅读器打开方便。

  6. hudengke718 于 2011-05-07 09:29:48发表:

    这么多y和n的看得我头都晕了。

  7. weixiaoyu111 于 2011-01-04 13:09:59发表:

    为为为wwwwwwwwwwww

  8. AliceDai 于 2010-11-22 17:51:35发表:

    好的,谢谢,我也这样试一下!

  9. newa 于 2010-10-28 12:59:11发表:

    怎么我的本来就可以打开呢,而且不用它也可以直接双击打开。

  10. pengzhenguo 于 2010-10-18 12:15:49发表:

    路过。

  11. dragon0_0 于 2010-10-16 18:55:58发表:

    这样还不如直接安装个软件不是更好嘛,这样显得更麻烦了

  12. yanlong938 于 2010-08-03 23:35:41发表:

    学习个 谢谢

  13. lcezdjzx 于 2010-06-29 16:38:18发表:

    很有帮助,多有启发,深表感谢!

  14. zcf115 于 2010-06-24 18:07:37发表:

    基本知识,早会了。有点简单哈。

  15. wst021 于 2010-06-22 09:56:50发表:

    进来学习交友!

  16. sida2004 于 2010-06-21 22:35:57发表:

    来瞄一喵

  17. 天真花语 于 2010-06-21 15:26:23发表:

    顶!!!!!!!!!!!!!!!!!!!!!!!!

  18. ydxCTO 于 2010-01-25 19:58:46发表:

    不错,领教了!

  19. yong009003 于 2010-01-19 13:23:06发表:

    有空我也试试!:49ab:1

  20. yiwenlong2 于 2009-12-30 16:18:51发表:

    不错免得下载

  21. syblack 于 2009-11-18 13:32:57发表:

    来看看

  22. yvcxun 于 2009-11-17 15:16:35发表:

    不多此一举了