Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printing from win2k to a printer on Linux

Status
Not open for further replies.

slok

Programmer
Jul 2, 1999
108
SG
printer: HP Laser 1100
Linux : RH7.0

Samba is setup and from win2k machines I can map the
shared drives and printer.

I use printtool to set up the printer and have tested
successfully when printing from Linux.

however, if I try to print from win2k, the printer doesn't
seems to be receiving print jobs.

if I do a "cat filename > /dev/lp0" followed by a "lpq"
this is the message I got..

==
Printer: lp@Hermes
Queue: no printable jobs in queue
Status: job 'username@Hermes+400' removed at 10:11:58.605
===

any ideas what could be wrong?...
thanks
 
When you say you tested printing from linux did you use the cat command directly to the port? if you did then you bypassed the lp system. try the test print thru the lp spooler with the following:

cat filename | lp -d printername

secondly, did you add the printer manually to samba or did it automatically add from your /etc/printcap file?
what does your /etc/printcap file look like?

 
I tested with the "test" feature in printtool right after
configuring the printer using printtool

so far, I have also tested printing from applications like
Star Office on Linux locally and it works.

the problem so far got to do with printing from win2k.
 
stanhubble,

I tried your suggestion "cat filename | lp -d printername"

and the printer is able to print.

So far, I do not have problems printing locally from the
Linux machine. It is only from win2k.

thanks
 
ok so the linux side of the print queue is fine.
the next thing to look at is the smb.conf and printcap
entries for the printer.

here is an example of a wide open printer in smb.conf

[printername]
comment =
path = /var/spool/samba/printername
read only = Yes
create mask = 0777
guest ok = Yes
print ok = Yes
printable = Yes
print command = lp -c -d %p %s; rm %s
lpq command = lpq -P%p
printer name = printername
oplocks = No
share modes = No


Example /etc/printcap entry
printername: :lp=/dev/lp0:sd=/usr/spool/lpd/printername:

hope this helps
 
starhubble,

tried your suggestion... but for some reason it still
doesn't responds...

could this be an issue with win2k?
I read somewhere where users have reported that printers
don't work when they upgrade from win98 to winME.

 
does the print job get stuck at the w2k end?
try taking the printer offline with the linux queue still enabled and see if a printjob ends up in the spool dir.

do you have any win9x machines to try this from?
one of the major differences between win9x and the
ME/w2k/nt systems are the encrypted password settings.
can you see/add/chg/delete files ok on the server from the w2k machines?

try telling the w2k spooler not to print until the last page is spooled.(*shrug*)

I have multiple w2k machines printing to samba queues on linux and sco but i do have encrypted passwords turned off.

stan
 
apparently, the print job did not get send to the spool directory.

I have ensure that the permission is wide open....

wonder, what could cause the print job to not reach the
directory...

have also double check that the path to spool is the same
on smb.conf and printcap...

weird... nonetheless.. thanks everyone for helping...

currently, using a troublesome solution..
- run VNC...
- dump file on server
- print via VNC-StarOffice etc...

- will have to wait for the win2k server to arrive.. I guess
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top