SuSE Support Database

Title: Printing on Samba and apsfilter

---

Mainpage ---- Searchform ---- History ---- Versions ---- Categories ---- Contents
Deutsch
---

Printing on Samba and apsfilter

Applicable to
S.u.S.E. version: 4.x

Problem:

If one uses the apsfilter one can not address one of the printers under Windows95 (Samba), since the filter entry in /etc/printcap is already occupied by apsfilter.

Solution:

One has to define a short shell script as a filter in /etc/printcap.
----------------------[/etc/printcap Auszug]---------------------
#Network printer
lp8|stcolor-a4-auto-color|stcolor auto color:\
        :sd=/var/spool/lpd/lp8:\
        :af=/var/spool/lpd/lp8/acct:\
        :if=/usr/local/sbin/netzprint_lp8:\
        :bk:sh:mx#0:\
        :lp=/dev/null:
------------------------------------------------------------------
The shell script /usr/local/sbin/netzprint_lp8 now contains the apsfilter call and the call for printing over the net.
-----------------------[/usr/local/sbin/netzprint_lp8]------------
#!/bin/sh
/usr/lib/apsfilter/filter/aps-epson-a4-auto-color - $1 $2 $3 $4 $5 $6 $7 
$8| \
/usr/local/sbin/smbprint $1 $2 $3 $4 $5 $6 $7 $8
------------------------------------------------------------------
Create the file /usr/local/sbin/smbprint by copying the template into /usr/doc/packages/samba/printing/smbprint. The last line has to be changed as follows:
) | /usr/bin/smbclient "\\\\$server\\$service" $password -U $name -N -P 
>> \
$logfile
One still needs a configuration file in the spool directory.
-----------------------[/var/spool/lpd/lp8/.config]---------------
server=[Servername to which the printer is connected]
service=[Printer's name]
password="Password for access"
name=[Username on the Windows server]
------------------------------------------------------------------
This information was given to us by our customer Alexander Becker.

Thanks a lot Alexander...

---

Keywords: APSFILTER, NET PRINT, SAMBA

---

Feedback welcome: Send Mail to fehr@suse.de (Please give the following subject: SDB-fehr_druck_1)

---

Mainpage ---- Searchform ---- History ---- Versions ---- Categories ---- Contents
Deutsch
---

SDB-fehr_druck_1, Copyright SuSE GmbH, Nuremberg, Germany - Version: 25. Feb 1997
Impressum - Last generated: 24. Feb 1999 14:46:20 by maddin with sdb_gen 1.00.0