[Samba] NO print from linux to windows using samba

samba at trevenque.es samba at trevenque.es
Sun Feb 3 09:05:08 GMT 2002


Hi to everyone,

I'm trying to print from linux (RH 7.1) to windoze (98/2000 Server) throught lpd/smblient and I'm having troubles. I can print normally from win hosts and if I check log files from the lp entry on /etc/printcap that uses smbprint macro I don't get error messages. If I try to do the same operation using smbclient command line interface (smb:> print) it prints blank pages (and it has a full toner ...).

-/etc/printcap:

printer:
    :sh:
    :lp=/dev/null:
    :sd=/usr/spool/lpd/%P:
    :if=/usr/bin/smbprint:

## use smbprint macro ##


-/usr/bin/smbprint

cat | /usr/bin/smbclient "//HOST/hp_printer" -N -c "" >/tmp/smbcli.log

## send to the HOST share with no command/password ... ##


-/tmp/smbcli.log

SSL: Error error setting CA cert locations: error:00000000:lib(0):func(0):reason(0)
trying default locations.
added interface ip=aaa.aaa.aaa.aaa bcast=aaa.aaa.aaa.255 mask=255.255.255.0
session request to xxx.xxx.xxx.xxx failed (Called name not present)
session request to xxx failed (Called name not present)
Domain=[WORKGROUP] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
putting file - as stdin-18291 (14.038 kb/s) (average 14.0381 kb/s)

## it sends the doc, what the hell!! ##


-/usr/bin/smbprint/status.HOSTNAME

[root at treven HOSTNAME]# tail status.HOSTNAME
opening device '/dev/null' at 2002-02-03-08:01:31.457 ## A=root at HOSTNAME+281 number=281 process=18283 printing job 'root at HOSTNAME+281' at 2002-02-03-08:01:31.457 ## A=root at HOSTNAME+281 number=281 process=18283 processing 'dfA281HOSTNAME', size 230, format 'f', IF filter 'smbprint' at 2002-02-03-08:01:31.458 ## A=root at HOSTNAME+281 number=281 process=18283 IF filter 'smbprint' filter finished at 2002-02-03-08:01:32.908 ## A=root at HOSTNAME+281 number=281 process=18283 printing finished at 2002-02-03-08:01:32.908 ## A=root at HOSTNAME+281 number=281 process=18283 accounting at end at 2002-02-03-08:01:32.909 ## A=root at HOSTNAME+281 number=281 process=18283 finished 'root at HOSTNAME+281', status 'JSUCC' at 2002-02-03-08:01:32.909 ## A=root at HOSTNAME+281 number=281 process=18283 subserver pid 18283 exit status 'JSUCC' at 2002-02-03-08:01:32.911 ## A=<NULL> number=0 process=18282 HOSTNAME at HOSTNAME: job 'cfA281HOSTNAME' printed at 2002-02-03-08:01:32.922 ## A=<NULL> number=281 process=18282
job 'cfA281HOSTNAME' removed at 2002-02-03-08:01:32.938 ## A=<NULL> n
umber=281 process=18282

## ok, wright, no error!!! ##

I'm desesperated because it happens to me on two HP laser printers (pararell port conection), both on the same netbios workgroup name and on different windoze (windows 98 and 2000). If works fine if I use an CSMLPD program (but it's not freeware and I wish use samba directly).


Please HELP!!!


P.D: I tried even to use to lastest samba tools package (2.2) and no way!!!

ANOTHER QUESTION: why "smbclient -L host" (where host is not uppercase) do not work if I try to see windows98 shares and it works fine with windows 2000 in both ways???? 


Yours ... someone travelling over the dessert



___________________________________
NOCC, http://nocc.sourceforge.net






More information about the samba mailing list