Koozali.org: home of the SME Server

PDF-over-LAN

CooLCaT1975

PDF-over-LAN
« Reply #30 on: March 18, 2007, 04:34:08 PM »
have you applied all updates?

Code: [Select]
yum list updates

Code: [Select]
yum update


Offline pfloor

  • ****
  • 889
  • +1/-0
Re: PDF-over-LAN
« Reply #32 on: March 18, 2007, 06:48:08 PM »
Quote from: "sognenovski"
Updated this Contrib from a previous Contrib.

In summary
All required RPM’s are in one RPM. (Perhaps there is better way? yum)

Hints:

-Don't package all those RPM's inside this RPM.  Give your RPM the proper requires and let yum figure out the dependancies.  This method will install the correct needed dependancies with up to date centos versions.  This will also drop the size of your RPM to a few hundred KB.  It will also do the proper thing when it comes time to remove your package.
-Don't put templates included in your RPM in the templates-custom directory, put them in the templates directory.
-Don't use chmod on the templates, use templates.metadata to set pemissions if needed.
-Don't set permissions on templates any higher than needed. I don't think any of the templates included in this RPM need anything more than 644. (template fragments don't generally need to be executable and 755 is most likely too permissive).
-The template under /etc/samba/smb.conf may not be correct, that directory doesn't exist and that template is doubled up under /etc/smb.conf.
-I don't know if the method used to create the ibay is correct.  You may want to use the db and events whenever possible (eg. set ibay properties in the db and use "signal-event ibay-create")
-Get rid of the uninstall.sh script.  You should write you package so that yum does everything for you.

I'm sure there are more tips.  I suggest you read the deveoper's guide found here: http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/devguide.html
In life, you must either "Push, Pull or Get out of the way!"

Offline sognenovski

  • **
  • 64
  • +0/-0
PDF-over-LAN
« Reply #33 on: March 27, 2007, 02:09:25 AM »
Thanks for the comments and hints. Huge learning curve for me…sigh.

Here is the new release with the suggested fixes. I do believe rpm should upgrade from previous version but as always test server first.

For fresh installs ghostscript dependencies are required.

yum –y install ghostscript

wget http://mirror.contribs.org/smeserver/contribs/sognenovski/RPMS/smeserver-pdf-over-lan-2.0-01.noarch.rpm

rpm –Uvh smeserver-pdf-over-lan-2.0-01.noarch.rpm  

and the excellent how to from sonoracomm – Windows Driver
http://mirror.contribs.org/smeserver/contribs/sognenovski/Howto/smeserver-pdf-over-lan-2.0-0.1.txt


Steve

Offline pfloor

  • ****
  • 889
  • +1/-0
PDF-over-LAN
« Reply #34 on: March 27, 2007, 03:03:06 AM »
Quote from: "sognenovski"
Thanks for the comments and hints. Huge learning curve for me…sigh.

Here is the new release with the suggested fixes. I do believe rpm should upgrade from previous version but as always test server first.

For fresh installs ghostscript dependencies are required.

yum –y install ghostscript

wget http://mirror.contribs.org/smeserver/contribs/sognenovski/RPMS/smeserver-pdf-over-lan-2.0-01.noarch.rpm

rpm –Uvh smeserver-pdf-over-lan-2.0-01.noarch.rpm  

and the excellent how to from sonoracomm – Windows Driver
http://mirror.contribs.org/smeserver/contribs/sognenovski/Howto/smeserver-pdf-over-lan-2.0-0.1.txt


Steve

Wow your rpm went from 24 Meg to 23 KB...Good work.  It also doesn't conflict with my servers that already have ghostscript installed for hylafax.

I would suggest the install command should be:

# yum localinstall smeserver-pdf-over-lan-2.0-01.noarch.rpm

This will pull in all the required packages if needed like on this server that is nearly bone stock:

Code: [Select]

# yum localinstall smeserver-pdf-over-lan-2.0-01.noarch.rpm
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "smeserver" plugin
Loading "fastestmirror" plugin
Setting up Local Package Process
Examining smeserver-pdf-over-lan-2.0-01.noarch.rpm: smeserver-pdf-over-lan - 2.0-01.noarch
Marking smeserver-pdf-over-lan-2.0-01.noarch.rpm to be installed
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package smeserver-pdf-over-lan.noarch 0:2.0-01 set to be updated
--> Running transaction check
Setting up repositories
smeaddons                 100% |=========================|  951 B    00:00
updates                   100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
smeos                     100% |=========================|  951 B    00:00
smeupdates                100% |=========================|  951 B    00:00
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Excluding Packages from CentOS - updates
Finished
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Excluding Packages from CentOS - os
Finished
--> Processing Dependency: ghostscript >= 7.0 for package: smeserver-pdf-over-lan
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for ghostscript to pack into transaction set.
ghostscript-7.07-33.i386. 100% |=========================| 111 kB    00:00
---> Package ghostscript.i386 0:7.07-33 set to be updated
--> Running transaction check
--> Processing Dependency: urw-fonts >= 1.1 for package: ghostscript
--> Processing Dependency: VFlib2 for package: ghostscript
--> Processing Dependency: libICE.so.6 for package: ghostscript
--> Processing Dependency: libVFlib2.so.24 for package: ghostscript
--> Processing Dependency: libXt.so.6 for package: ghostscript
--> Processing Dependency: libX11.so.6 for package: ghostscript
--> Processing Dependency: libXext.so.6 for package: ghostscript
--> Processing Dependency: libSM.so.6 for package: ghostscript
--> Processing Dependency: ghostscript-fonts for package: ghostscript
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for VFlib2 to pack into transaction set.
VFlib2-2.25.6-25.i386.rpm 100% |=========================|  14 kB    00:00
---> Package VFlib2.i386 0:2.25.6-25 set to be updated
---> Downloading header for ghostscript-fonts to pack into transaction set.
ghostscript-fonts-5.50-13 100% |=========================|  10 kB    00:00
---> Package ghostscript-fonts.noarch 0:5.50-13 set to be updated
---> Package xorg-x11-libs.i386 0:6.8.2-1.EL.13.37.5 set to be updated
---> Downloading header for urw-fonts to pack into transaction set.
urw-fonts-2.2-6.1.noarch. 100% |=========================|  16 kB    00:00
---> Package urw-fonts.noarch 0:2.2-6.1 set to be updated
--> Running transaction check
--> Processing Dependency: libfontconfig.so.1 for package: xorg-x11-libs
--> Processing Dependency: chkfontpath for package: urw-fonts
--> Processing Dependency: /usr/bin/fc-cache for package: ghostscript-fonts
--> Processing Dependency: fontconfig for package: urw-fonts
--> Processing Dependency: /usr/X11R6/bin/mkfontscale for package: urw-fonts
--> Processing Dependency: libGL.so.1 for package: xorg-x11-libs
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package xorg-x11-Mesa-libGL.i386 0:6.8.2-1.EL.13.37.5 set to be updated
---> Package fontconfig.i386 0:2.2.3-7.centos4 set to be updated
---> Downloading header for xorg-x11-font-utils to pack into transaction set.
xorg-x11-font-utils-6.8.2 100% |=========================| 257 kB    00:01
---> Package xorg-x11-font-utils.i386 0:6.8.2-1.EL.13.37.5 set to be updated
---> Downloading header for chkfontpath to pack into transaction set.
chkfontpath-1.10.0-2.i386 100% |=========================| 5.8 kB    00:00
---> Package chkfontpath.i386 0:1.10.0-2 set to be updated
--> Running transaction check
--> Processing Dependency: xfs for package: chkfontpath
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for xorg-x11-xfs to pack into transaction set.
xorg-x11-xfs-6.8.2-1.EL.1 100% |=========================| 260 kB    00:01
---> Package xorg-x11-xfs.i386 0:6.8.2-1.EL.13.37.5 set to be updated
--> Running transaction check
--> Processing Dependency: /usr/bin/ttmkfdir for package: xorg-x11-xfs
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for ttmkfdir to pack into transaction set.
ttmkfdir-3.0.9-14.1.EL.i3 100% |=========================| 5.5 kB    00:00
---> Package ttmkfdir.i386 0:3.0.9-14.1.EL set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 smeserver-pdf-over-lan  noarch     2.0-01           smeserver-pdf-over-lan-2.0-01.noarch.rpm   23 k
Installing for dependencies:
 VFlib2                  i386       2.25.6-25        base              271 k
 chkfontpath             i386       1.10.0-2         base               13 k
 fontconfig              i386       2.2.3-7.centos4  smeos             117 k
 ghostscript             i386       7.07-33          base              7.6 M
 ghostscript-fonts       noarch     5.50-13          base              808 k
 ttmkfdir                i386       3.0.9-14.1.EL    base               43 k
 urw-fonts               noarch     2.2-6.1          base              4.5 M
 xorg-x11-Mesa-libGL     i386       6.8.2-1.EL.13.37.5  updates           379 k
 xorg-x11-font-utils     i386       6.8.2-1.EL.13.37.5  updates           302 k
 xorg-x11-libs           i386       6.8.2-1.EL.13.37.5  updates           2.7 M
 xorg-x11-xfs            i386       6.8.2-1.EL.13.37.5  updates           315 k

Transaction Summary
=============================================================================
Install     12 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 17 M
Is this ok [y/N]:

This is the beauty of yum.  You put 1 "requires" for ghostscript in your rpm and it makes it pull in all the rest.  It also pulls in the most recent and keeps them up to date so you don't have to worry about maintaining them.  Gotta love that yum!!!
In life, you must either "Push, Pull or Get out of the way!"

Offline sognenovski

  • **
  • 64
  • +0/-0
PDF-over-LAN
« Reply #35 on: March 27, 2007, 03:19:11 AM »
Yup...Thats yum my new friend! :D

A note for those upgrading.
You will have to reinstall the windows client driver as the pdf printer name has change to just 'pdf' :(

enjoy!

Offline sonoracomm

  • *
  • 208
  • +0/-0
    • http://www.sonoracomm.com
PDF-over-LAN
« Reply #36 on: March 27, 2007, 08:47:25 AM »
Hi again Steve,

Thanks much for the update!

I tested the new rpm on my home server and it looks really good.  Excellent work!

I updated my howto for your new rpm...mostly by stripping out about two thirds.  ;-)

http://www.sonoracomm.com/index.php?option=com_content&task=view&id=170

These are the commands I used to install it:
Code: [Select]
cd ~
wget http://mirror.contribs.org/smeserver/contribs/\
sognenovski/RPMS/smeserver-pdf-over-lan-2.0-01.noarch.rpm
yum localinstall -y --enablerepo=base \
smeserver-pdf-over-lan-2.0-01.noarch.rpm

I haven't done much testing (time for bed), but it seems to install easily and work just fine.

Thanks again,

G

Offline cool34000

  • *
  • 339
  • +0/-0
PDF-over-LAN
« Reply #37 on: March 27, 2007, 11:52:46 AM »
Great thanks to both of you for the update !
The rpm is cleaner now (and very light !)

grpinson

I
« Reply #38 on: April 20, 2007, 11:52:45 PM »
Thanks guys for the RPM and information. Was wondering if there is a way to configure to email the pdf as an attachment to the user? There is another post about pdf print on lan in inbox, but unfortunately, it is for 6.x and the links that are supplied appear invalid.

Offline pfloor

  • ****
  • 889
  • +1/-0
Re: I
« Reply #39 on: April 21, 2007, 01:41:45 AM »
Quote from: "grpinson"
Thanks guys for the RPM and information. Was wondering if there is a way to configure to email the pdf as an attachment to the user? There is another post about pdf print on lan in inbox, but unfortunately, it is for 6.x and the links that are supplied appear invalid.

According to post #1, this contrib does what you want:
Quote from: "sognenovski in post #1"
pdfdrop ibay is created.
PDF are saved in the pdfdrop ibay and also emailed to the login user.
windozze driver located pdfdrop ibay
In life, you must either "Push, Pull or Get out of the way!"

EnglishRob

PDF-over-LAN
« Reply #40 on: July 01, 2007, 02:19:00 AM »
Just tried this on my SME Server with my other half's XP laptop.  Works really well, PDF appeared in my e-mail and also in the pdfdrop share.

Only one snag, when printing a Windows Printer Test Page it printed the black text in a kind of maroon colour.  I haven't tried printing anything else and I was also using the Windows XP Apple Colour Laserwriter 12/600 driver rather than the Adobe Postscript driver.  Still looks very promising and possibly quicker and less hassle than PDF Creator.

Rob

Offline sonoracomm

  • *
  • 208
  • +0/-0
    • http://www.sonoracomm.com
PDF-over-LAN
« Reply #41 on: July 01, 2007, 07:49:57 PM »
Hi Rob,

That is surely a function of the printer driver and I've seen that before.  I think it's a display issue and I suspect it will print normally.

Try the Adobe driver...it may be better anyway.

G

Offline cool34000

  • *
  • 339
  • +0/-0
PDF-over-LAN
« Reply #42 on: July 02, 2007, 04:23:33 PM »
Hi all,


Does anyone had success with this RPM under Vista?

Apple Color Laserwriter 12/600 driver is no more available under Vista and the few PS printers I've tested just don't work... :cry:
Adobe PS driver don't work also under Vista (maybe because I use an x64 version of Vista...)

Thanks