SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
(I don't use Adobe Reader on Slackware much, especially since Firefox now has a built-in PDF viewer, but I keep it on one PC because occasionally a document has trouble viewing or printing with xpdf.)
After using the latest Adobe Reader 9.5.5 as a Firefox plugin on Slackware 14, I find this file left in my home directory:
Code:
C:\nppdf32Log\debuglog.txt
Yes, that is the exact filename that appears in my Slackware home directory. It seems to have some debug messages from the Reader plugin.
Apparently there's not yet a way to avoid the creation of this file (e.g. a command-line option or a preference setting), so eventually I adopted a quick and dirty solution, i.e. replace the debug file name with /dev/null in the nppdf.so library, like so
sed -i.orig 's%C:\\nppdf32Log\\debuglog.txt%/dev/null %' /opt/Adobe/Reader9/Browser/intellinux/nppdf.so
Not only is it troubling that acroread is writing unsolicited files to the system but to add insult to injury
it is a "windows file". The bug seems to related to Adobe debugging code not having been turned off in the release.
I hacked a quick build script which puts things into /opt/Adobe. If you use a different path just make
the relevant change to my code below. I added this to my build script after I expand COMMON.TAR & ILINXR.TAR.
Note: The worry I have with Roberto's solution is it actually changes the library's size and if things are
dependent on hard offsets things can go haywire.
If you looked at my Perl substitution and it conjured scary thoughts of shell-code or if you're simply the curious type and
enjoy looking under the hood, you can see exactly what is getting changed by doing this in a bash shell:
Code:
$ mkdir temp
$ cd temp
$ wget ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i486linux_enu.tar.bz2
$ tar xf AdbeRdr9.5.5-1_i486linux_enu.tar.bz2
$ cd AdobeReader
$ tar xf ILINXR.TAR Adobe/Reader9/Browser/intellinux/nppdf.so --strip 4
$ /usr/bin/perl -i.orig -pe 's|\x43\x3A\x5C\x6E\x70\x70\x64\x66\x33\x32\x4C\x6F\x67\x5C\x64\x65\x62\x75\x67\x6C\x6F\x67\x2E\x74\x78\x74|\x2F\x64\x65\x76\x2F\x6E\x75\x6C\x6C\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00|' nppdf.so
$ diff <(xxd nppdf.so.orig) <(xxd nppdf.so)
I was thinking that with Firefox able to view PDF files without a plugin, I might be finally rid of Adobe Reader. But today I see Slackware changing to the Firefox17.x ESR release (perhaps temporarily, perhaps not). I am guessing that 17ESR does not include the PDF viewer - can anyone confirm this? Do I need to stick to Adobe Reader and its odd debug file?
I was thinking that with Firefox able to view PDF files without a plugin, I might be finally rid of Adobe Reader. But today I see Slackware changing to the Firefox17.x ESR release (perhaps temporarily, perhaps not). I am guessing that 17ESR does not include the PDF viewer - can anyone confirm this? Do I need to stick to Adobe Reader and its odd debug file?
Firefox 17 ESR doesn't have the builtin pdf viewer. I'm hoping the next ESR release (to be released in September, I think...) will include it.
If you use the SBo-maintained Adobe reader you can request that its maintainer, ArTourter, add a fix (such as mine in post #3 above) or do it yourself.
As for the Mozilla reader (pdf.js), you are right, it got included as of FF18. However, you can add it to FF17 as an extension.
Also, and Pat might be interested to know this, there will be version parity between Release and ESR two versions from now. There
will be an ESR 24.x if all goes according to plans.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.