Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Craig D. Jensen on March 27, 2003, 05:50:30 AM

Title: Announce: PDF-pver-LAN RPM
Post by: Craig D. Jensen 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.
Title: Re: Announce: PDF-pver-LAN RPM
Post by: Tim Hogan 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
Title: Re: Announce: PDF-pver-LAN RPM
Post by: Tim Hogan 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
Title: Re: Announce: PDF-pver-LAN RPM
Post by: Craig Jensen 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
Title: Re: Announce: PDF-pver-LAN RPM
Post by: Craig Jensen 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
Title: Re: Announce: PDF-pver-LAN RPM
Post by: Craig Jensen 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
Title: Re: Announce: PDF-pver-LAN RPM
Post by: Robert Harlow 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
Title: Re: Announce: PDF-pver-LAN RPM
Post by: Robert Harlow 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
Title: Re: Announce: PDF-pver-LAN RPM
Post by: Craig Jensen 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
Title: Re: Announce: PDF-pver-LAN RPM
Post by: Robert Harlow 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
Title: Re: Announce: PDF-pver-LAN RPM
Post by: Craig D. Jensen 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.
Title: Re: Announce: PDF-pver-LAN RPM
Post by: Robert Harlow 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
Title: Re: Announce: PDF-pver-LAN RPM
Post by: dustin 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
Title: Re: Announce: PDF-pver-LAN RPM
Post by: Robert Harlow 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
Title: Re: Announce: PDF-pver-LAN RPM
Post by: Robert Harlow 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
Title: Re: Announce: PDF-pver-LAN RPM
Post by: Craig Jensen on March 30, 2003, 10:43:03 AM
Robert,

  Remove the ghostscript-fonts, then re-install both with the single line command from /opt/printpdf:
#rpm -Uvh --nodeps /opt/printpdf/ghostscript-fonts-6.52-8.i386.rpm ghostscript-5.50-3.noarch.rpm

They need to be installed together.

Craig
Title: Re: Announce: PDF-pver-LAN RPM
Post by: Robert Harlow on March 30, 2003, 04:58:56 PM
Craig

<#rpm -Uvh --nodeps /opt/printpdf/ghostscript-fonts-6.52-8.i386.rpm ghostscript-5.50-3.noarch.rpm>

This is fundamentally the same as the last line in the internal install.sh file. This is the stage I have not been able to get to complete.

The included rpm files, for the install.sh to work on, simply aren't there. Have you switched the file names or something? I asked before if the install.sh's last line was correct. Please would you check it once again, it doesn't make sense to me [not that it should BTW as I am not so experienced to decide]. I keep checking with Midnight Commander and DIR but those files don't exist here, other files with switched names do exist but they are not the ones being called by the install.sh originally or your command line statement. Please clarify.

I assume you can't support those [newer?] rpm files to which Dustin has referred.

best wishes, Robert
Title: Re: Announce: PDF-pver-LAN RPM
Post by: Robert Harlow on March 30, 2003, 05:19:28 PM
Craig

In my foolishness (as opposed to wisdom) I decided that you got the word *fonts* in the wrong place in the wrong filename's rpm. As the previous attempt got nowhere I thought that it would be OK to experiment with the word *fonts* switched around. The following command is almost exactly what is in the install.sh file (that failed to install properly)...

<<#rpm -Uvh --nodeps /opt/printpdf/ghostscript-6.52-8.i386.rpm ghostscript-fonts-5.50-3.noarch.rpm>

...and this ran more fully but is still wrong(?). I get the same issues as I got before and the ones that Dustin reported. I can't show you the displayed text on the server's display as I don't know how to get the characters out of the screen buffers or whatever. Things are back to their faulty normal. It still doesn't work even after the correction to the command line statement. Two warning lines and that chinese error.

rpm -q ghostscript-font ----->installed
rpm -q ghostscript ---->not installed

I'm back to square one. Are you sure that this thing works? And are you sure I don't need to use those two updater rpm's, that Dustin specified, to get PDFoverLAN to install and work properly?

best wishes, Robert
Title: Re: Announce: PDF-pver-LAN RPM
Post by: Robert Harlow on March 30, 2003, 11:32:41 PM
Craig

Thank you for the off-list notes. Yes, of course I will assist in any way I can to get this thing implemented. Preferably to install more reliably and particularly in getting it to produce PDF's of the sort of quality I expected here on a SME5.6u2 platform.  -----> *PDFoverLAN must work, work well, and produce beautiful documents* <-----

I would have to advise lame SME5.6u2 users [like me] to implement the current iteration of PDFoverLAN with -great caution-... I have now removed it. I understand that 5.6 might fare as badly but I cannot confirm. If your server is at 5.6u2 then it is unlikely you will be rewarded with nice PDFs.  Craig is investigating and will, no doubt, crack the problem(s) in due course.

best wishes, Robert
Title: Re: Announce: PDF-pver-LAN RPM
Post by: Dustin Blad on March 30, 2003, 11:50:28 PM
Robert,
     These are the files that I have installed with 5.6 u2 with:
glibc-2.2.5-43.i386.rpm
glibc-common-2.2.5-43.i386.rpm
and it is working superbly. These files can be found at
http://www.rpmfind.net and will also fix mysql ODBC problems that you might have:

As for PDF over LAN these are the files that I have now:

XFree86-libs-4.2.0-8
XFree86-font-utils-4.2.0-8
XFree86-xfs-4.2.0-8
chkfontpath-1.9.5-2
ttfonts-1.0-9
ttfonts-ja-1.2-8
urw-fonts-2.0-17
Omni-0.5.1-3
VFlib2-2.25.6-4
ghostscript-6.52-9.4
ghostscript-fonts-5.50-3

which can be found by:

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

Notice that I am using ghostscript-6.52-9.4 which seems to work great because the previous version gives errors about some Chinese stuff. Anyhow, you can find this RPM as well as MANY RPM's at http://www.rpmfind.net/linux/rpm2html/search.php?query=ghostscript
Make sure you get the redhat 7.3 updates.
I am running this setup perfectly.

As for copying and pasting, USE putty and ssh to connect to your box if you are using a windows client. Then you can copy and paste to your hearts content.
Hope this helps! Good Luck!
Title: Re: Announce: PDF-pver-LAN RPM
Post by: Robert Harlow on March 31, 2003, 12:02:46 AM
Dustin

Putty holding Windows together! Yes, I like that, certainly will, THANKS.

Earlier I did have a very amateur-ish go with both the updated ghostscript file (which installed without errors as you indicated) but I was still producing poor & bloated PDFs. The cups file gave me dependency issues which I tried even more amateurishly to follow and resolve but just got deeper and deeper into further dependencies - apparently. It was then I decided to call it a day and removed everything.

I think Craig will look at your notes above soon enough and sort things out:-)

Once again my sincere thanks. I'm off to dig into some putty now.

best wishes, Robert
Title: Re: Announce: PDF-pver-LAN RPM
Post by: Dustin Blad on March 31, 2003, 12:04:04 AM
I forgot to mention:
If you need a good file lister to use to disply pdf's as well as other files:
http://www.cjgexplorer.com.ar/
CJG Exlorer is the simplest lister that I have seen.  I have deployed this solution in an office of real estate agents and it works great.
1. Users Print the PDF from their desktop
2. Users Go to the website and view the PDF documents in an intuitive split screen interface.
PDF over LAN and CJG will do this.