NT printing problem

Steve Litt slitt at troubleshooters.com
Sat Oct 16 17:40:09 GMT 1999

First step is to tell [deskjet] what print queue (from /etc/printcap) it's
using. If that doesn't help see if you can print to that queue from the
command line using lpr or whatever your system uses. Once you can, try this

echo "^MHello World^L" | smbclient "//mainserv/lp_text" -Ubogususer%bogus
-c "put - f"

That should print out Hello World in the upper left of a page, and formfeed
it. If not, troubleshoot. Install your own print command= as a test point.

Remember you make the control characters with Ctrl-V Ctrl-L, etc. Once you
can print from smbclient, do this from the Wijndows command line:

echo Hello World^L > \\servername\deskjet

Once you get that to work, attach a Windows printer to the share.

Steve Litt

At 02:36 AM 10/17/1999 +1000, Cooper, Tom wrote:
>I've got Samba 2.0.3 running on my Linux box.
>Marvin is the samba server.  Bugs is the NT box.
>Attached is the relevant part of my smb.conf file.  I removed several parts
>from what's attached to save bandwidth.  What you see is simply the part
>that pertains to my printer.
>I can't print to the DeskJet printer.  The printer appears in my network
>neighborhood, but I just can't get to it.  I print, and no error is reported
>to NT, but the job simply disappears.
>Nothing comes out of my printer - no lights blink on it....nothing!
>Any suggestions?
>Thanks for the help.
>Tom Cooper
>On Marvin, the log file reports:
>[1999/10/16 12:22:39, 1] smbd/service.c:make_connection(488)
>  bugs ( connect to service tcooper as user tcooper (uid=500,
>gid=600) (pid 7540)
>[1999/10/16 12:32:04, 1] smbd/service.c:make_connection(488)
>  bugs ( connect to service DeskJet as user tcooper (uid=500,
>gid=600) (pid 7540)
>[tcooper at marvin tcooper]$ testparm
>Load smb config files from /etc/smb.conf
>Processing section "[homes]"
>Processing section "[DeskJet]"
>Loaded services file OK.
>Press enter to see a dump of your service definitions     
>        comment = HP 682C DeskJet
>        path = /var/spool/samba
>        read only = No
>        guest ok = Yes
>        print ok = Yes
>Attachment Converted: "e:\eudora\attach\smb1.con"

More information about the samba mailing list