Koozali.org: home of the SME Server

Announce: PDF-pver-LAN RPM

Craig D. Jensen

Announce: PDF-pver-LAN RPM
« on: March 27, 2003, 05:50:30 AM »
March 26, 2003
Hello All,

     Lasse Johansson has an excellent how-to
     available to implement "PDF printing to file" on SME 5.  

     I have created an rpm to implement this on SME 5.6.  

     ***This rpm is ONLY FOR SME 5.6!!***
     
     The packages are specifically for this
     version of the underlying redhat OS.

     Binary and Source found here:
     http://mirror.contribs.org/smeserver/contribs/cjensen/mitel/contrib/pdf-over-lan-sme_5.6-ONLY/

     Follow the install instructions in the document here:
     http://mirror.contribs.org/smeserver/contribs/cjensen/mitel/contrib/pdf-over-lan-sme_5.6-ONLY/pdfoverlan-install.txt


     Alternatively,
     MANUAL instructions from Lasse Johansson's site are available here:
     http://e-smith.saxdalen.com/howto/How_to_install_PDF_over_LAN.html
     

--
Regards,
 Craig D. Jensen               mailto:cjensen@acenet-tech.org

http://www.acenet-tech.org/ My computer services site.
http://www.acenet-tech.org/phpBB2/ My forum, business and otherwise.

Tim Hogan

Re: Announce: PDF-pver-LAN RPM
« Reply #1 on: March 27, 2003, 06:53:29 PM »
Craig:

Thanks for the rpm.  I installed it and now have pdf printing working.  You need to clean up a couple of small items in the rpm and install script.  After running the rpm it tells you to go to /opt/administrator/printpdf and run install.sh.  The install.sh file is located in /opt/printpdf.

The install.sh file is set to install the various rpms from /opt/pdfprint but they are located in /opt/printpdf.  I edited the line for each rpm in the install.sh file to correct the location of each rpm and then successfully ran the script.

Regard,

Tim Hogan

Tim Hogan

Re: Announce: PDF-pver-LAN RPM
« Reply #2 on: March 27, 2003, 06:53:29 PM »
Craig:

Thanks for the rpm.  I installed it and now have pdf printing working.  You need to clean up a couple of small items in the rpm and install script.  After running the rpm it tells you to go to /opt/administrator/printpdf and run install.sh.  The install.sh file is located in /opt/printpdf.

The install.sh file is set to install the various rpms from /opt/pdfprint but they are located in /opt/printpdf.  I edited the line for each rpm in the install.sh file to correct the location of each rpm and then successfully ran the script.

Regard,

Tim Hogan

Craig Jensen

Re: Announce: PDF-pver-LAN RPM
« Reply #3 on: March 27, 2003, 07:30:19 PM »
Thank you for catching this Tim.  I am presently fixing this in the script.  For now, since it will take my a few hours to get the large uploads replaced, those installing need to edit the install.sh script to read:

/opt/printpdf

for the path to the packages rather than /opt/administration/printpdf

I failed to catch this in the last build.  New source and binary rpm's will be oploaded by early afternoon MST today.

Craig D. Jensen

Craig Jensen

Re: Announce: PDF-pver-LAN RPM
« Reply #4 on: March 27, 2003, 07:48:56 PM »
corrected rpm's can be found at:

https://www.acenet-tech.org/cdj/pdf-rpm/

I will upload these new ones to contribs.org a bit later today.
Sorry for the goof...

Regards,
Craig Jensen

Craig Jensen

Re: Announce: PDF-pver-LAN RPM
« Reply #5 on: March 27, 2003, 11:10:12 PM »
New rpm, source and binary have now been uploaded.  The script has been corrected.

Regards
Craig D. Jensen

Robert Harlow

Re: Announce: PDF-pver-LAN RPM
« Reply #6 on: March 28, 2003, 05:54:37 PM »
Craig

I edited the problem install.sh filelines so that pdf followed print rather than preceded it and ran ./install.sh.

Several of the lines displayed more error statements. These included, for instance, some stuff about not being able to rename that font directory that errored in the earlier Lasse installer...   This has all been a bit of a poor install all round:-(

I saw that there was a ./uninstall.sh file and reckoned that all of this was better out than in. Even that came back after running with pre-dependency errors and stuff like that:-( I've manually erased the /opt/printpdf/ directory and everything beyond.

From the above I see you have another edition of the 34MB rpm available, I will download that one...;~/

Are there any further directories that I can clean out to enable this install to progress more smoothly?

best wishes, Robert

Robert Harlow

Re: Announce: PDF-pver-LAN RPM
« Reply #7 on: March 28, 2003, 06:05:10 PM »
Craig

There are a number of editions hanging about now. Can I assume that it is the single .tz file below that comprises the corrections? Size 35,751 Date 3/28/2003 Time 8:05AM

http://www.acenet-tech.org/cdj/pdf-rpm/cdj-mitel-pdf-over-lan-1.0.tar.gz

The following file seems to be locked on something. Is it necessary for an install?

http://www.acenet-tech.org/cdj/pdf-rpm/cdj-mitel-pdf-over-lan-1.0.spec

best wishes, Robert

Craig Jensen

Re: Announce: PDF-pver-LAN RPM
« Reply #8 on: March 28, 2003, 06:17:57 PM »
No do not use those.

It appears that you still have the older rpm.  To continue I would do the following:

rpm -q XFree86-libs
rpm -q XFree86-font-utils
rpm -q XFree86-xfs
rpm -q chkfontpath
rpm -q ttfonts
rpm -q ttfonts-ja
rpm -q urw-fonts
rpm -q Omni
rpm -q VFlib2
rpm -q ghostscript
rpm -q ghostscript-fonts

to see which are installed.

If they are all installed, try:

ps2      followed by Tab twice

this should output:
ps2ascii  ps2frag   ps2pdf12  ps2pdfwr  ps2ps
ps2epsi   ps2pdf    ps2pdf13  ps2pk

If so, proceed to the client files installation and you are done.

It appears that you have some of the packages installed and some not.  If you see "not installed" when you rpm -q then you can individually install that package.  However, some of them required --nodeps for installation.  Refer to the install.sh to see which needed this option.

To start fresh do:

rpm -e cdj-mitel-pdf-over-lan

then install the newest rpm.  the newest with corrections is:
35764603 Mar 27 09:55 cdj-mitel-pdf-over-lan-1.0-01.noarch.rpm (from the url you are getting it from)

Regards
Craig

Robert Harlow

Re: Announce: PDF-pver-LAN RPM
« Reply #9 on: March 28, 2003, 07:10:40 PM »
Too late. Didn't know you'd be here soon. Went ahead with the latest dated file on your BBS - that's the one I specified above, it's not an old rpm (?) but the latest dated... Am getting very very confused.

I looked at that tz file structure and worked out where the files had to end up. Manually put the two separate pdf files in the etc and usr structures. Manually put all the /opt/printpdf/ stuff in. Ran the ./install.sh and get a bad interpreter - permission denied error.

Manually got rid of the two fonts directories that seemed to cause Lasse's installer so much grief.

It does not *appear* that I have some packages installed and some not. I DEFINITELY HAVE some packages installed and some not due to continuing installer package failures. I do not know how to unravel these failures. Can only trust that, when one of the installers finally works and finishes appropriately, then these failures will be properly overwritten. Key word here is trust.

I will download the *next newest* file, that is the one you identified at the end of your post. Will try to install that one...

Large file downloading is not a problem, I have broadband. My problem is trying to get the installer to do its job:-(

Got PLENTY of time, the only site I have left in the wild (ie that is now hosted by someone else's servers) has just had its server bank destroyed:-|

best wishes, Robert

Craig D. Jensen

Re: Announce: PDF-pver-LAN RPM
« Reply #10 on: March 28, 2003, 07:34:26 PM »
Let's take this offlist from here.

Re-installing the new rpm will not likely fix your install.  The
critical needs this install completes are:

1. create templates for the smb.conf that make running the printing
possible

2. place all necessary rpm packages in a place where they can be
installed with a script.  Also make the script executable.

3. place the executables in correct locations.

4. allow for placing pdf files into an ibay directory.

So, here is what you have enden up with:

Placing the files in their directories manually has not created
correct permissions.  This is why you get the error about bad command
interpreter.

No templates are expanded and smb is not restarted to reflect changes.

Only partial install of needed rpms.

To fix this you MUST follow similar to my previous posting... first
check for the install of each rpm with "rpm -e rpm-name".  Then, if
some are not installed, install them individually as stated in my
previous post.  After they are all installed check your install with
as root:
#ps2
followed by TAB twice

This should produce the output I mentioned in previous post.

OR... you can remove the main rpm with:
rpm -e cdj-mitel-pdf-over-lan

Then install the newest rpm found here:

http://mirror.contribs.org/smeserver/contribs/cjensen/mitel/contrib/pdf-over-lan-sme_5.6-ONLY/cdj-mitel-pdf-over-lan-1.0-01.noarch.rpm


Trying to do all of this manually without knowing correct
expand-template commands and permissions will NOT likely be
successful.

Robert Harlow

Re: Announce: PDF-pver-LAN RPM
« Reply #11 on: March 28, 2003, 07:47:07 PM »
Craig

Agreed. (I registered into your forum recently). Will email directly from now.

Will run those rpm -q checks (just in case).

Minutes ago I ran that rpm -e (for the main rpm).

Your link above is not the link I was using, hence the confusion.

I have just finished downloading...

http://www.acenet-tech.org/cdj/pdf-rpm/cdj-mitel-pdf-over-lan-1.0-01.noarch.rpm

...which is from your own site. Should I use this one after my checks or ditch it and download the one you specified from the contrib clusters?

best wishes, Robert

dustin

Re: Announce: PDF-pver-LAN RPM
« Reply #12 on: March 29, 2003, 03:07:55 AM »
I kept receiving some chinese error:
Preparing...                ########################################### [100%]
   1:ghostscript            warning: /usr/share/ghostscript/6.52/lib/Fontmap saved as /usr/share/ghostscript/6.52/lib/Fontmap.rpmorig
warning: /usr/share/ghostscript/6.52/lib/Fontmap.GS saved as /usr/share/ghostscript/6.52/lib/Fontmap.GS.rpmorig
warning: /usr/share/ghostscript/6.52/lib/gs_init.ps saved as /usr/share/ghostscript/6.52/lib/gs_init.ps.rpmorig
error: unpacking of archive failed on file /usr/share/ghostscript/Resource/pdfcorefont/chinese_t/Adobe-CNS1-UCS2;3e84e55d: cpio: MD5 sum mismatch

Installing version: ghostscript-6.52-9.4.i386.rpm
with dependency: cups-libs-1.1.14-15.2.i386.rpm

This seemed to fix the problem!
Hope this helps

Robert Harlow

Re: Announce: PDF-pver-LAN RPM
« Reply #13 on: March 29, 2003, 12:37:45 PM »
Dustin

I got that one too but wasn't able to do anything about it, so it's just been ignored;~/ Do you have a URL for that rpm, ie the one that worked please?

How did you manage to capture the screen text to insert into your email? Is there some screen buffer I can interrogate or something? The best I've managed is trying to stare unblinking at the darned screen in the hope that a) I will see/understand all the obtuse sounding errors and b) that I will at least vaguely remember enough about them to be able to get help! You seem to have got it nicely organised:-)

best wishes, Robert

Robert Harlow

Re: Announce: PDF-pver-LAN RPM
« Reply #14 on: March 30, 2003, 03:21:57 AM »
I'm stuck.  Cannot seem to get the installer(s) to do the job properly despite some stalwart assistance from Craig. Think it's time to get back on list...

• The very last line of the installer comes to grief exactly as Dustin outlined above. This results in the ghostscript module not being installed - amongst the other errors he listed. It just won't go in. The ghostscript-fonts module reports (rpm -q) itself installed whereas the ghostscript module says it is not installed.

The rest of the stuff I have completed (I think). I can generate a PDF across the LAN and it is dropped into the iBay called PDFdrop. Except it's badly distorted [or plain rubbish] or/and it is extremely large, even larger than its source document. For instance a 45kB HTML became a rubbish 7MB PDF from PDFoverLAN, whereas Distiller made a perfectly formed 40kB PDF from a W2kPro-SP2 box.

I have found a source for the ghostscript and cups files Dustin specified above...





...also Ferret'd about and found, for instance, a vulnerability report that apparently spawned this ghostscript update...

http://lwn.net/Alerts/1519/

...I understand that that SME5.6u2 (that what I am using here) is based on RedHat 7.3 and so isn't this stuff necessary, or what? Anyone?  As I said, I'm stuck but not sure how to move this forward. Unless I just try (!?) uninstalling this whole PDFoverLAN thing and give Linux-based PDF printing up as a bad idea? I've been relying intensely on Distiller in W2kPro-SP2 for too long to accept much less. PDFoverLAN has got to work, work very well, and produce PDF's beautifully;~/

best wishes, Robert