[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

PDF-Drucker unter SAMBA



Hallo Liste!

In meinem Netzwerk befindet sich ein Linux-Server (Debian 3.0) und ein
Windows 2000-Client.
Der Linux-Rechner dient u.a. als Printserver (CUPS). Als Drucker
verwende ich einen HP LaserJet 1200. Der Drucker wird unter SAMBA
freigegeben.

Das funktioniert auch problemlos.

Nun möchte ich mir einen "PDF-Drucker" einrichten. Meine Idee: Der
Windows-Client sendet ein PostScript-File an den Server, dieses wird mit
"ps2pdf" in eine PDF-Datei konvertiert und im Homeverzeichnis des Users
gespeichert.

Die eingesetzt SAMBA-Version ist 3.0.4-2 (von backports.org).

Hier ein Auszug aus meiner SAMBA-Konfigurationsdatei:

<smb.conf>
     [global]

          [ ... ]

          # Als Drucksystem wird CUPS verwendet:
          printing = cups
          printcap name = /etc/printcap.cups

	  [ ... ]


     [PDF-Drucker]

          comment = PDF-Drucker

          path = /tmp

          writeable = false

          # Es handelt sich um ein "Print-Share"
          printable = true

          print command = /home/samba/pdfdrucker %s
</smb.conf>


Das Skript für die Umwandlung PostScript ---> PDF sieht so aus:

<pdfdrucker>
     #!/bin/bash

     datum=`/bin/date "+%d-%B-%Y_%H-%M-%S"`
     ben=`stat -c "%U" $1`
     verz=`grep ^$ben: /etc/passwd | cut -d : -f 6`

     /usr/bin/ps2pdf $1 /tmp/$datum
     cp /tmp/$datum $verz/Data/$datum.pdf
     rm /tmp/$datum
     rm $1
     chown $ben: $verz/Data/$datum.pdf
     chmod u=rw,g=o= $verz/Data/$datum.pdf
</pdfdrucker>

Die Dateirechte sind so gesetzt, dass das Skript für jeden User les- und
ausführbar ist.

Bei dem Versuch, eine PS-Datei in PDF zu konvertieren, habe ich folgende
Einträge im Logfile entdeckt:

[2004/06/08 21:35:24, 0] smbd/server.c:main(757)
  smbd version 3.0.4-Debian started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2004/06/08 21:35:40, 1] smbd/service.c:make_connection_snum(619)
  gryffindor (192.168.0.10) connect to service Laserdrucker initially as user thilo (uid=1004, gid=100) (pid 4221)
[2004/06/08 21:36:03, 0] printing/print_cups.c:cups_queue_get(911)
  Unable to get jobs for ipp://localhost/printers/PDF-Drucker - client-error-not-found
[2004/06/08 21:36:07, 1] smbd/service.c:make_connection_snum(619)
  gryffindor (192.168.0.10) connect to service PDF-Drucker initially as user thilo (uid=1004, gid=100) (pid 4221)
[2004/06/08 21:36:07, 0] printing/print_cups.c:cups_job_submit(779)
  Unable to print file to PDF-Drucker - client-error-not-found


Fazit: Es funktioniert leider so nicht.

Hat jemand eine Lösung für mich?

Bitte beachtet bei Euren Antworten, dass ich noch Newbie bin.

Vielen Dank für Eure Mühe!

Mit freundlichen Grüßen,

Thilo

--
Registered Linux user #348074 with the Linux counter
http://counter.li.org



Reply to: