Harry Putnam <reader@newsguy.com> writes:
I hope John doesn't mind my reprinting part of his private letter here
but mainly wanted to let potential helpers know that the focus of the
problem had changed somewhat.
"John Supplee" <John@rediscov.com> writes:
> If you have a graphical user interface use printtool to setup a remote smb
> printer. Much easier than messing with the scripts. If you can't use
> printtool let me know and I will try to find where the smb stuff is in the
> RH scripts.
I have setup with printtool. But the printcap generated by printtool
has symlink leading to:
/var/spool/lpd/lp/filter -> /usr/lib/rhs/rhs-printfilters//master-filter
I now have found where `master-filter' calls smbprint. It expects to
find it in /usr/lib/rhs/rhs-printfilters/smbprint
A file installed by rhs-printfilters-1.81-1.i386.rpm So to use another
version of smbprint I can either adjust the path in `master-filter' or
copy the cvs smbprint where master-filter expects it.
OK fine. However printing still does not work.
I'm attempting to print to a printer attached to a win2k box from my
linux box. I've setup printcap with the smbclient option using
printtool.
(an EPSON stylus color 900)
cat /etc/printcap
#
# This printcap is being created with printtool v.3.48
# Any changes made here manually will be lost if printtool
# is run later on.
# The presence of this header means that no printcap
# existed when printtool was run.
#
##PRINTTOOL3## SMB uniprint NAxNA letter {} U_EpsonStylusColor stcany {}
lp:\
:sd=/var/spool/lpd/lp:\
:mx#0:\
:sh:\
:if=/var/spool/lpd/lp/filter:\
:af=/var/spool/lpd/lp/acct:\
:lp=/dev/null:
When I attempt to print using:
# lpr -V file
LPRng-3.6.24, Kerberos5, Copyright 1988-2000 Patrick Powell,
<papowell@astart.com>
sending job 'root@reader+315' to lp@localhost
connecting to 'localhost', attempt 1
connected to 'localhost'
requesting printer lp@localhost
sending control file 'cfA315reader.local.lan' to lp@localhost
completed sending 'cfA315reader.local.lan' to lp@localhost
sending data file 'dfA315reader.local.lan' to lp@localhost
completed sending 'dfA315reader.local.lan' to lp@localhost
done job 'root@reader+315' transfer to lp@localhost
The printjob gets spooled but never printed or even sent.
Watching traffic on my local network ethernet (eth1) nothing goes over the
wire. I see a spate of traffic on `lo' like this:
Feb 14 11:17:02 reader kernel: Packet log: output ACCEPT lo PROTO=6
127.0.0.1:515 127.0.0.1:853 L=52 S=0x00 I=12600 F=0x0000 T=64 (#1)
Feb 14 11:17:02 reader kernel: Packet log: input ACCEPT lo PROTO=6
127.0.0.1:515 127.0.0.1:853 L=52 S=0x00 I=12600 F=0x4000 T=64 (#1)
Feb 14 11:17:02 reader kernel: Packet log: output ACCEPT lo PROTO=6
127.0.0.1:853 127.0.0.1:515 L=52 S=0x00 I=12601 F=0x0000 T=64 (#1)
Feb 14 11:17:02 reader kernel: Packet log: input ACCEPT lo PROTO=6
127.0.0.1:853 127.0.0.1:515 L=52 S=0x00 I=12601 F=0x4000 T=64 (#1)
In and out to ports 853 515, nothing goes over the network (eth1).
smbclient can connect and display the shares available though:
(Note printer EP listed)
# smbclient -L chub -U Administrator
[...]
Sharename Type Comment
--------- ---- -------
E$ Disk Default share
IPC$ IPC Remote IPC
D$ Disk Default share
print$ Disk Printer Drivers
dj-f-cdrom Disk
dj-a-floppy Disk
dj-G Disk
dj-H Disk
G$ Disk Default share
EP Printer EP
[...]
Somehow the print job isn't getting sent. But no error messages show up.