I just joined this list, If this has been answered before I apologize: I have a Redhat 7.2 box running Samba 2.2.4 I have a few printers running on JetDirect boxes that I am attempting to print to. I used printconf in Redhat to set them up within the linux box. Everything works fine from the linux box. I set them up within samba (see [printers] below), but when I print I get "Failed to open, retrying" on the queue. If I do remove "use client driver=yes", I can then print but Win2k tells me that under "status" that "access denied; unable to connect" on the queue. I've tried testing with "use client driver=yes" and "disable spoolss yes" and it does not seem to make much difference other than getting rid of the "access denied; unable to connect error" Here is what I think the important section in the smb.conf [printers] comment = All Printers path = /var/spool/lpd printer admin = jgerry guest ok = Yes printable = Yes use client driver = Yes browseable = No Any suggestions? Thanks, Justin
Try commenting out the "printer admin=" entry -use it only when installing drivers? I believe you also have to create a dir for samba to spool to, chmod 01777, chown root.daemon e.g. /var/spool/samba and change the "path=" entry to it. Jim> -----Original Message----- > From: JUSTIN GERRY [mailto:JGERRY@butchers.com] > Sent: Friday, May 10, 2002 1:05 PM > To: samba@lists.samba.org > Subject: [Samba] Win2k Printing Problems > > > I just joined this list, If this has been answered before I apologize: > > I have a Redhat 7.2 box running Samba 2.2.4 > > I have a few printers running on JetDirect boxes that I am attempting > to print to. > > I used printconf in Redhat to set them up within the linux box. > Everything works fine from the linux box. > > I set them up within samba (see [printers] below), but when I print I > get "Failed to open, retrying" on the queue. > > If I do remove "use client driver=yes", I can then print but Win2k > tells me that under "status" that "access denied; unable to > connect" on > the queue. > > I've tried testing with "use client driver=yes" and "disable spoolss > yes" and it does not seem to make much difference other than > getting rid > of the "access denied; unable to connect error" > > Here is what I think the important section in the smb.conf > > [printers] > comment = All Printers > path = /var/spool/lpd > printer admin = jgerry > guest ok = Yes > printable = Yes > use client driver = Yes > browseable = No > > Any suggestions? > > Thanks, > Justin > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
I made all the changes you suggested. I restarted smb,nmb and lpd just to be sure. My Win2k box is still giving me the same error under "status" "failed to open, retrying" and eventually "access denied; unable to connect" on the queue. Other permissions to check?? Thanks, Justin>>> "Van Sickler, Jim" <vansickj-eodc@Kaman.com> 05/10 4:33 PM >>>Try commenting out the "printer admin=" entry -use it only when installing drivers? I believe you also have to create a dir for samba to spool to, chmod 01777, chown root.daemon e.g. /var/spool/samba and change the "path=" entry to it. Jim> -----Original Message----- > From: JUSTIN GERRY [mailto:JGERRY@butchers.com] > Sent: Friday, May 10, 2002 1:05 PM > To: samba@lists.samba.org > Subject: [Samba] Win2k Printing Problems > > > I just joined this list, If this has been answered before Iapologize:> > I have a Redhat 7.2 box running Samba 2.2.4 > > I have a few printers running on JetDirect boxes that I amattempting> to print to. > > I used printconf in Redhat to set them up within the linux box. > Everything works fine from the linux box. > > I set them up within samba (see [printers] below), but when I printI> get "Failed to open, retrying" on the queue. > > If I do remove "use client driver=yes", I can then print but Win2k > tells me that under "status" that "access denied; unable to > connect" on > the queue. > > I've tried testing with "use client driver=yes" and "disable spoolss > yes" and it does not seem to make much difference other than > getting rid > of the "access denied; unable to connect error" > > Here is what I think the important section in the smb.conf > > [printers] > comment = All Printers > path = /var/spool/lpd > printer admin = jgerry > guest ok = Yes > printable = Yes > use client driver = Yes > browseable = No > > Any suggestions? > > Thanks, > Justin > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
What port is listed on the Properties box on the Win2k PC? see http://support.microsoft.com/default.aspx?scid=kb;EN-US;q255507 I'd think it should list the network share, e.g. \\samba2\hp4plus like that. What does your /etc/printcap have listed for the printer ports? mine are: :rm=192.168.2.2 :rp=raw JIm> -----Original Message----- > From: JUSTIN GERRY [mailto:JGERRY@butchers.com] > Sent: Friday, May 10, 2002 2:10 PM > To: samba@lists.samba.org > Subject: Re: RE: [Samba] Win2k Printing Problems > > > I made all the changes you suggested. I restarted smb,nmb and lpd just > to be sure. > > My Win2k box is still giving me the same error under "status" "failed > to open, retrying" and eventually "access denied; unable to > connect" on > the queue. > > Other permissions to check?? > > Thanks, > Justin > > > >>> "Van Sickler, Jim" <vansickj-eodc@Kaman.com> 05/10 4:33 PM >>> > Try commenting out the "printer admin=" entry > -use it only when installing drivers? > > I believe you also have to create a dir for > samba to spool to, chmod 01777, chown root.daemon > > e.g. /var/spool/samba > > and change the "path=" entry to it. > > Jim > > > -----Original Message----- > > From: JUSTIN GERRY [mailto:JGERRY@butchers.com] > > Sent: Friday, May 10, 2002 1:05 PM > > To: samba@lists.samba.org > > Subject: [Samba] Win2k Printing Problems > > > > > > I just joined this list, If this has been answered before I > apologize: > > > > I have a Redhat 7.2 box running Samba 2.2.4 > > > > I have a few printers running on JetDirect boxes that I am > attempting > > to print to. > > > > I used printconf in Redhat to set them up within the linux box. > > Everything works fine from the linux box. > > > > I set them up within samba (see [printers] below), but when I print > I > > get "Failed to open, retrying" on the queue. > > > > If I do remove "use client driver=yes", I can then print but Win2k > > tells me that under "status" that "access denied; unable to > > connect" on > > the queue. > > > > I've tried testing with "use client driver=yes" and "disable spoolss > > > yes" and it does not seem to make much difference other than > > getting rid > > of the "access denied; unable to connect error" > > > > Here is what I think the important section in the smb.conf > > > > [printers] > > comment = All Printers > > path = /var/spool/lpd > > printer admin = jgerry > > guest ok = Yes > > printable = Yes > > use client driver = Yes > > browseable = No > > > > Any suggestions? > > > > Thanks, > > Justin > > > > > > > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: http://lists.samba.org/mailman/listinfo/samba > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Sorry it took me a couple days to get back to you: I have NO ports listed in the Properties box of the Win2k PC. I figured that this might be a problem. Is there a way that I can make a change on the Linux box to have the Win2k PC create a port (would be a share name like you said)? Or do I need to be creative with the registry like the microsoft article states. Also here is my /etc/printcap (again printconf created this): HPIII_IT_CUBE|IT_CUBE:\ :sh:\ :ml=0:\ :mx=0:\ :sd=/var/spool/lpd/HPIII_IT_CUBE:\ :lp=|/usr/share/printconf/jetdirectprint:\ :lpd_bounce=true:\ :if=/usr/share/printconf/mf_wrapper: HP8150N_FINANCE:\ :sh:\ :ml=0:\ :mx=0:\ :sd=/var/spool/lpd/HP8150N_FINANCE:\ :lp=|/usr/share/printconf/jetdirectprint:\ :lpd_bounce=true:\ :if=/usr/share/printconf/mf_wrapper: Thanks, Justin>>> "Van Sickler, Jim" <vansickj-eodc@Kaman.com> 05/10 5:25 PM >>>What port is listed on the Properties box on the Win2k PC? see http://support.microsoft.com/default.aspx?scid=kb;EN-US;q255507 I'd think it should list the network share, e.g. \\samba2\hp4plus like that. What does your /etc/printcap have listed for the printer ports? mine are: :rm=192.168.2.2 :rp=raw JIm> -----Original Message----- > From: JUSTIN GERRY [mailto:JGERRY@butchers.com] > Sent: Friday, May 10, 2002 2:10 PM > To: samba@lists.samba.org > Subject: Re: RE: [Samba] Win2k Printing Problems > > > I made all the changes you suggested. I restarted smb,nmb and lpdjust> to be sure. > > My Win2k box is still giving me the same error under "status""failed> to open, retrying" and eventually "access denied; unable to > connect" on > the queue. > > Other permissions to check?? > > Thanks, > Justin > > > >>> "Van Sickler, Jim" <vansickj-eodc@Kaman.com> 05/10 4:33 PM >>> > Try commenting out the "printer admin=" entry > -use it only when installing drivers? > > I believe you also have to create a dir for > samba to spool to, chmod 01777, chown root.daemon > > e.g. /var/spool/samba > > and change the "path=" entry to it. > > Jim > > > -----Original Message----- > > From: JUSTIN GERRY [mailto:JGERRY@butchers.com] > > Sent: Friday, May 10, 2002 1:05 PM > > To: samba@lists.samba.org > > Subject: [Samba] Win2k Printing Problems > > > > > > I just joined this list, If this has been answered before I > apologize: > > > > I have a Redhat 7.2 box running Samba 2.2.4 > > > > I have a few printers running on JetDirect boxes that I am > attempting > > to print to. > > > > I used printconf in Redhat to set them up within the linux box. > > Everything works fine from the linux box. > > > > I set them up within samba (see [printers] below), but when Iprint> I > > get "Failed to open, retrying" on the queue. > > > > If I do remove "use client driver=yes", I can then print but Win2k > > tells me that under "status" that "access denied; unable to > > connect" on > > the queue. > > > > I've tried testing with "use client driver=yes" and "disablespoolss> > > yes" and it does not seem to make much difference other than > > getting rid > > of the "access denied; unable to connect error" > > > > Here is what I think the important section in the smb.conf > > > > [printers] > > comment = All Printers > > path = /var/spool/lpd > > printer admin = jgerry > > guest ok = Yes > > printable = Yes > > use client driver = Yes > > browseable = No > > > > Any suggestions? > > > > Thanks, > > Justin > > > > > > > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: http://lists.samba.org/mailman/listinfo/samba > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Update: I reconfigured my printcap files to reflect a raw setup like you had listed. I can now print to my network printers (although one of them keeps printing a banner page... could be a jetdirect issue), but I still get the "Failed to open,retrying" on the queue and I can't see any of the jobs listed in the queue. Once the print job clears, the error message goes away. Any more suggestions? Thanks for your help, Justin>>> "Van Sickler, Jim" <vansickj-eodc@Kaman.com> 05/10 5:25 PM >>>What port is listed on the Properties box on the Win2k PC? see http://support.microsoft.com/default.aspx?scid=kb;EN-US;q255507 I'd think it should list the network share, e.g. \\samba2\hp4plus like that. What does your /etc/printcap have listed for the printer ports? mine are: :rm=192.168.2.2 :rp=raw JIm> -----Original Message----- > From: JUSTIN GERRY [mailto:JGERRY@butchers.com] > Sent: Friday, May 10, 2002 2:10 PM > To: samba@lists.samba.org > Subject: Re: RE: [Samba] Win2k Printing Problems > > > I made all the changes you suggested. I restarted smb,nmb and lpdjust> to be sure. > > My Win2k box is still giving me the same error under "status""failed> to open, retrying" and eventually "access denied; unable to > connect" on > the queue. > > Other permissions to check?? > > Thanks, > Justin > > > >>> "Van Sickler, Jim" <vansickj-eodc@Kaman.com> 05/10 4:33 PM >>> > Try commenting out the "printer admin=" entry > -use it only when installing drivers? > > I believe you also have to create a dir for > samba to spool to, chmod 01777, chown root.daemon > > e.g. /var/spool/samba > > and change the "path=" entry to it. > > Jim > > > -----Original Message----- > > From: JUSTIN GERRY [mailto:JGERRY@butchers.com] > > Sent: Friday, May 10, 2002 1:05 PM > > To: samba@lists.samba.org > > Subject: [Samba] Win2k Printing Problems > > > > > > I just joined this list, If this has been answered before I > apologize: > > > > I have a Redhat 7.2 box running Samba 2.2.4 > > > > I have a few printers running on JetDirect boxes that I am > attempting > > to print to. > > > > I used printconf in Redhat to set them up within the linux box. > > Everything works fine from the linux box. > > > > I set them up within samba (see [printers] below), but when Iprint> I > > get "Failed to open, retrying" on the queue. > > > > If I do remove "use client driver=yes", I can then print but Win2k > > tells me that under "status" that "access denied; unable to > > connect" on > > the queue. > > > > I've tried testing with "use client driver=yes" and "disablespoolss> > > yes" and it does not seem to make much difference other than > > getting rid > > of the "access denied; unable to connect error" > > > > Here is what I think the important section in the smb.conf > > > > [printers] > > comment = All Printers > > path = /var/spool/lpd > > printer admin = jgerry > > guest ok = Yes > > printable = Yes > > use client driver = Yes > > browseable = No > > > > Any suggestions? > > > > Thanks, > > Justin > > > > > > > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: http://lists.samba.org/mailman/listinfo/samba > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Microsoft file and print sharing is already installed.... not sure why that would make any difference....but Microsoft stuff is strange... Still no luck with the "Failed to open,retrying" on the queue and I can't see any of the jobs listed in the queue. I can print, but I ge this message repeatedly until the print job is done. If anyone else has any suggestions for this problem, please let me know. Thanks, justin>>> Joern Knechtel <ZCHBDBAXIQPE@spammotel.com> 05/13 8:35 PM >>> > I can now print to my network printers (although one of them keeps > printing a banner page... could be a jetdirect issue), but I stillget> the "Failed to open,retrying" on the queue and I can't see any ofthe> jobs listed in the queue. Once the print job clears, the errormessage> goes away. > > Any more suggestions?Hmm...try installing MS print & share services on the client if u havent done that already. Just to see what happens :-) cu jk
Justin, Take a look at this link: http://ftp.ist.utl.pt/pub/windowsnt/mirror-microsoft/kb/Q163/2/41.TXT Jim> -----Original Message----- > From: JUSTIN GERRY [mailto:JGERRY@butchers.com] > Sent: Tuesday, May 14, 2002 1:48 PM > To: ZCHBDBAXIQPE@spammotel.com > Cc: samba@lists.samba.org > Subject: Re: [Samba] Win2k Printing Problems > > > Microsoft file and print sharing is already installed.... not sure why > that would make any difference....but Microsoft stuff is strange... > > Still no luck with the "Failed to open,retrying" on the queue and I > can't see any of the jobs listed in the queue. I can print, but I ge > this message repeatedly until the print job is done. > > If anyone else has any suggestions for this problem, please let me > know. > > Thanks, > justin > > > >>> Joern Knechtel <ZCHBDBAXIQPE@spammotel.com> 05/13 8:35 PM >>> > > I can now print to my network printers (although one of them keeps > > printing a banner page... could be a jetdirect issue), but I still > get > > the "Failed to open,retrying" on the queue and I can't see any of > the > > jobs listed in the queue. Once the print job clears, the error > message > > goes away. > > > > Any more suggestions? > > Hmm...try installing MS print & share services on the client if u > havent done that already. > Just to see what happens :-) > > cu > > jk > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Yes, it is exactly that problem. I added the port (lpr) through the printer setup and re-linked the printer (manually changed the port to match the new port) that did not have a port listed through the registry and it works fine (finally!!...thank you!!) The /'s are messing up Win2k and it won't add a lpr port to the machine. Is there any potential fix for this problem? Would the enumports command in smb.conf help at all? Thanks, Justin>>> "Van Sickler, Jim" <vansickj-eodc@Kaman.com> 05/14 5:30 PM >>>Justin, Take a look at this link: http://ftp.ist.utl.pt/pub/windowsnt/mirror-microsoft/kb/Q163/2/41.TXT Jim> -----Original Message----- > From: JUSTIN GERRY [mailto:JGERRY@butchers.com] > Sent: Tuesday, May 14, 2002 1:48 PM > To: ZCHBDBAXIQPE@spammotel.com > Cc: samba@lists.samba.org > Subject: Re: [Samba] Win2k Printing Problems > > > Microsoft file and print sharing is already installed.... not surewhy> that would make any difference....but Microsoft stuff is strange... > > Still no luck with the "Failed to open,retrying" on the queue and I > can't see any of the jobs listed in the queue. I can print, but I ge > this message repeatedly until the print job is done. > > If anyone else has any suggestions for this problem, please let me > know. > > Thanks, > justin > > > >>> Joern Knechtel <ZCHBDBAXIQPE@spammotel.com> 05/13 8:35 PM >>> > > I can now print to my network printers (although one of them keeps > > printing a banner page... could be a jetdirect issue), but I still > get > > the "Failed to open,retrying" on the queue and I can't see any of > the > > jobs listed in the queue. Once the print job clears, the error > message > > goes away. > > > > Any more suggestions? > > Hmm...try installing MS print & share services on the client if u > havent done that already. > Just to see what happens :-) > > cu > > jk > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Justin, Did you use the IP address of the printer as the lpr port? If so, you're bypassing samba and printing directly to the printer. I'm not sure where the /'s are located. The MS doc mentions the LPD queue name; if yours has / in it somewhere, try renaming it so that it doesn't and see if the error message goes away. Jim> -----Original Message----- > From: JUSTIN GERRY [mailto:JGERRY@butchers.com] > Sent: Wednesday, May 15, 2002 6:53 AM > To: vansickj-eodc@Kaman.com; ZCHBDBAXIQPE@spammotel.com > Cc: samba@lists.samba.org > Subject: Re: RE: [Samba] Win2k Printing Problems > > > Yes, it is exactly that problem. > > I added the port (lpr) through the printer setup and re-linked the > printer (manually changed the port to match the new port) that did not > have a port listed through the registry and it works fine > (finally!!...thank you!!) > > The /'s are messing up Win2k and it won't add a lpr port to the > machine. Is there any potential fix for this problem? > > Would the enumports command in smb.conf help at all? > > Thanks, > Justin > > > >>> "Van Sickler, Jim" <vansickj-eodc@Kaman.com> 05/14 5:30 PM >>> > Justin, > > Take a look at this link: > > http://ftp.ist.utl.pt/pub/windowsnt/mirror-microsoft/kb/Q163/2/41.TXT > > Jim > > > -----Original Message----- > > From: JUSTIN GERRY [mailto:JGERRY@butchers.com] > > Sent: Tuesday, May 14, 2002 1:48 PM > > To: ZCHBDBAXIQPE@spammotel.com > > Cc: samba@lists.samba.org > > Subject: Re: [Samba] Win2k Printing Problems > > > > > > Microsoft file and print sharing is already installed.... not sure > why > > that would make any difference....but Microsoft stuff is strange... > > > > Still no luck with the "Failed to open,retrying" on the queue and I > > can't see any of the jobs listed in the queue. I can print, but I ge > > this message repeatedly until the print job is done. > > > > If anyone else has any suggestions for this problem, please let me > > know. > > > > Thanks, > > justin > > > > > > >>> Joern Knechtel <ZCHBDBAXIQPE@spammotel.com> 05/13 8:35 PM >>> > > > I can now print to my network printers (although one of them keeps > > > printing a banner page... could be a jetdirect issue), but I still > > get > > > the "Failed to open,retrying" on the queue and I can't see any of > > the > > > jobs listed in the queue. Once the print job clears, the error > > message > > > goes away. > > > > > > Any more suggestions? > > > > Hmm...try installing MS print & share services on the client if u > > havent done that already. > > Just to see what happens :-) > > > > cu > > > > jk > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: http://lists.samba.org/mailman/listinfo/samba > > >
No my ports are: servername (ip address in my case as I am going across a router) print server (actual printcap name) When I add a printer to a Win2k box, in the registry under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers I get a printer name, within the printer name there is a key called "Port", this key gets assigned to: \\servername\printer_queue Win2k does not create a printer queue under any of the "Monitors" section therefore it can locally spool anything. The port name is invalid!! It NEEDS to add a printer queue (or perhaps a the proper term is a "pointer" to a printer queue) under: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors It just looks like Win2k is unable to handle creating the queue under lpr section (or any other folder in monitors) when you automatically add a printer from a Samba box. The /s prevent this somehow. I know that if I export a reg file from the monitors section and try to change it to get the slashes to appear correctly on how the port name is listed and try to import it, the registry key does not get imported properly. In order for me to print from my Win2k box: 1) I need to manually create the port with Win2k by adding a printer to the local machine and then selecting "create new port" of the lpr type, it is here that I enter the servername and printer_queue name. Once this is added I have to change the "port" settings under the "Printers" section (listed above) to servername:printer_queue instead of \\servername\printer_queue It works, but I know it is complete bandaid fix. I would like to know if there is some way to get the real windows port of some sort to be created. I am curious if the enumports command could help me in some way by listing some artifical ports (perhaps of the same name as the real queue on the linux box) and maybe the Win2k will pick this up somehow on an install. -Justin>>> "Van Sickler, Jim" <vansickj-eodc@Kaman.com> 05/15 12:04 PM >>>Justin, Did you use the IP address of the printer as the lpr port? If so, you're bypassing samba and printing directly to the printer. I'm not sure where the /'s are located. The MS doc mentions the LPD queue name; if yours has / in it somewhere, try renaming it so that it doesn't and see if the error message goes away. Jim> -----Original Message----- > From: JUSTIN GERRY [mailto:JGERRY@butchers.com] > Sent: Wednesday, May 15, 2002 6:53 AM > To: vansickj-eodc@Kaman.com; ZCHBDBAXIQPE@spammotel.com > Cc: samba@lists.samba.org > Subject: Re: RE: [Samba] Win2k Printing Problems > > > Yes, it is exactly that problem. > > I added the port (lpr) through the printer setup and re-linked the > printer (manually changed the port to match the new port) that didnot> have a port listed through the registry and it works fine > (finally!!...thank you!!) > > The /'s are messing up Win2k and it won't add a lpr port to the > machine. Is there any potential fix for this problem? > > Would the enumports command in smb.conf help at all? > > Thanks, > Justin > > > >>> "Van Sickler, Jim" <vansickj-eodc@Kaman.com> 05/14 5:30 PM >>> > Justin, > > Take a look at this link: > > http://ftp.ist.utl.pt/pub/windowsnt/mirror-microsoft/kb/Q163/2/41.TXT> > Jim > > > -----Original Message----- > > From: JUSTIN GERRY [mailto:JGERRY@butchers.com] > > Sent: Tuesday, May 14, 2002 1:48 PM > > To: ZCHBDBAXIQPE@spammotel.com > > Cc: samba@lists.samba.org > > Subject: Re: [Samba] Win2k Printing Problems > > > > > > Microsoft file and print sharing is already installed.... not sure > why > > that would make any difference....but Microsoft stuff isstrange...> > > > Still no luck with the "Failed to open,retrying" on the queue andI> > can't see any of the jobs listed in the queue. I can print, but Ige> > this message repeatedly until the print job is done. > > > > If anyone else has any suggestions for this problem, please let me > > know. > > > > Thanks, > > justin > > > > > > >>> Joern Knechtel <ZCHBDBAXIQPE@spammotel.com> 05/13 8:35 PM >>> > > > I can now print to my network printers (although one of themkeeps> > > printing a banner page... could be a jetdirect issue), but Istill> > get > > > the "Failed to open,retrying" on the queue and I can't see anyof> > the > > > jobs listed in the queue. Once the print job clears, the error > > message > > > goes away. > > > > > > Any more suggestions? > > > > Hmm...try installing MS print & share services on the client if u > > havent done that already. > > Just to see what happens :-) > > > > cu > > > > jk > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: http://lists.samba.org/mailman/listinfo/samba > > >
Here is my now messy printer install to get Win2k SP2 boxes to work properly. If anyone has anything to add to this let me know. I really wish it was possible to get Samba to report some sort of dummy printer port for Win2k so it would add a section under "Monitors". The share name with the slashes seem to give Win2k a hard time, as it can not add a print monitor anywhere in the registry. And I still have not even looked into getting the print driver to automatically install. Thanks, Justin ******Start of How to*********** How to Setup Samba and LPR to print to HP Jetdirect boxes from a Win2k machine. *I am assuming you already have samba up and running* I will be adding a printer I call *HPIII_IT_CUBE*, which is an HP Laserjet 3 printer to with a Jetdirect box attached to it. FYI, my samba server is called "samba". 1) On the linux box: a) create a dir for samba to spool to. Usually its /var/spool/samba b) chmod 01777 /var/spool/samba c) chown root.daemon /var/spool/samba d) create a spool dir in /var/spool/lpd with the name of the printer (my case its HPIII_IT_CUBE) e) chown lp.lp /var/spool/lpd/HPIII_IT_CUBE f) Edit printcap file In the printcap file make sure that each printer has entries modeled after this example: HPIII_IT_CUBE:\ :rm=172.30.12.25:\ :sd=/var/spool/lpd/HPIII_IT_CUBE:\ :rp=raw: g) Restart LPR (service lpd restart), it should come up clean with no errors h) Run testprns to see if you get an ok 2) In the smb.conf under printers section: Change or add the following under the [printer] section a) path=/var/spool/samba b) use client driver=yes Change or add the following under the [global] section a) printcap name =/etc/printcap b) load printers = yes 3) On the Win2k box: a) Browse to file server and double click on the printer b) It should ask you for a driver file, go through the usual APW motions (adding HPIII driver etc..) c) Go back to APW, install a *Local Printer* d) In Select the Printer Port go to *create a new port* e) Select *LPR Port* f) In *Name or address of server providing lpd* put the name of your samba server (my case its samba) g) In *Name of printer or print queue on that server* put the name from your printcap file of the printer you just added (my case it is HP_III_IT_CUBE) h) Load regedit or regedit32 (see next messy section) REGEDIT: We will be working in: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\ 1) You should now see an entry under the LPR Port under the Monitor tab like this: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\LPR Port\Ports\samba:hpiii_it_cube] "Server Name"="Samba" "Printer Name"="hpiii_it_cube" "OldSunCompatibility"=dword:00000000 "HpUxCompatibility"=dword:00000000 "EnableBannerPage"=dword:00000000 2) Now go to the tab: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\,,samba,hp_iii_it_cube] a) Find the key called *Port*, it should say *Port=\\samba\hpiii_it_cube* b) Change the *Port* tab to: *Port=samba:hpiii_it_cube* which will then match the pointer in the monitor tab that we set up in Step 1 3) Go back to "Settings" then "Printers" and right click to bring up the properties. a) Click on Ports tab b) You should see a checkmark next to a lpr port with a servername/printer like we see from step 1 ***********End How to******************************
I want to be able to use the Samba box as a print server. I just don't understand why I need to go through all of these steps to make it work. I don't want to use TCP/IP printing on the W2k client, I would love to be able to click and install a printer through the samba box without all this mess. I eventually want to be able to do the automatic print driver install as well, but I still can't get the client machines, Win2k or NT to add a printer that actually works because of a missing port section. Based on your comments, if I remove those sections I won't have any printers listed on the samba box right? If anyone has been able to add printers to their Win2k machine and actually get them to work properly let me know how you did it. Maybe I am over complicating things. Email me a how to or if you have configs to look at just email me directly. Thanks, Justin>>> Chris Smith <chris@realcomputerguy.com> 05/17 10:52 AM >>>If you've installed TCP/IP printing on the W2k client and setting up an LPR port why bother using Samba for the printing at all? If you skip these steps: 1a,1b,2a & 2b(printer),2a & 2b(global), 3h and everything after it you should be able to print just fine. On Thu, 2002-05-16 at 15:26, JUSTIN GERRY wrote:> Here is my now messy printer install to get Win2k SP2 boxes to workproperly. If anyone has anything to add to this let me know.> > I really wish it was possible to get Samba to report some sort ofdummy printer port for Win2k so it would add a section under "Monitors". The share name with the slashes seem to give Win2k a hard time, as it can not add a print monitor anywhere in the registry.> > And I still have not even looked into getting the print driver toautomatically install.> > Thanks, > Justin > > ******Start of How to*********** > How to Setup Samba and LPR to print to HP Jetdirect boxes from aWin2k machine.> > *I am assuming you already have samba up and running* > > I will be adding a printer I call *HPIII_IT_CUBE*, which is an HPLaserjet 3 printer to with a Jetdirect box attached to it. FYI, my samba server is called "samba".> > 1) On the linux box: > a) create a dir for samba to spool to. Usually its/var/spool/samba> b) chmod 01777 /var/spool/samba > c) chown root.daemon /var/spool/samba > d) create a spool dir in /var/spool/lpd with thename of the printer (my case its HPIII_IT_CUBE)> e) chown lp.lp /var/spool/lpd/HPIII_IT_CUBE > f) Edit printcap file > In the printcap file make sure that each printer has entriesmodeled after this example:> > HPIII_IT_CUBE:\ > :rm=172.30.12.25:\ > :sd=/var/spool/lpd/HPIII_IT_CUBE:\ > :rp=raw: > > g) Restart LPR (service lpd restart), it shouldcome up clean with no errors> h) Run testprns to see if you get an ok > > 2) In the smb.conf under printers section: > > Change or add the following under the [printer] section > a) path=/var/spool/samba > b) use client driver=yes > > Change or add the following under the [global] section > a) printcap name =/etc/printcap > b) load printers = yes > > 3) On the Win2k box: > a) Browse to file server and double click on theprinter> b) It should ask you for a driver file, go throughthe usual APW motions (adding HPIII driver etc..)> c) Go back to APW, install a *Local Printer* > d) In Select the Printer Port go to *create a new port* > e) Select *LPR Port* > f) In *Name or address of server providing lpd* put the name ofyour samba server (my case its samba)> g) In *Name of printer or print queue on that server* put the namefrom your printcap file of the printer you just added (my case it is HP_III_IT_CUBE)> h) Load regedit or regedit32 (see next messy section) > REGEDIT: > > We will be working in: > [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\ > > 1) You should now see an entry under the LPR Portunder the Monitor tab like this:>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\LPR Port\Ports\samba:hpiii_it_cube]> "Server Name"="Samba" > "Printer Name"="hpiii_it_cube" > "OldSunCompatibility"=dword:00000000 > "HpUxCompatibility"=dword:00000000 > "EnableBannerPage"=dword:00000000 > > 2) Now go to the tab: >[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\,,samba,hp_iii_it_cube]> a) Find the key called *Port*, it should say*Port=\\samba\hpiii_it_cube*> b) Change the *Port* tab to: *Port=samba:hpiii_it_cube* whichwill then match the pointer in the monitor tab that we set up in Step 1> > 3) Go back to "Settings" then "Printers" and right click to bring upthe properties.> a) Click on Ports tab > b) You should see a checkmark next to a lpr port with aservername/printer like we see from step 1> > > > ***********End How to****************************** > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba-- 'Nix MS - Just Say .NyET
Justin, You do want to use the samba box to manage your printers; otherwise all of your PCs are going to be fighting over the printers... that gets real ugly real fast! I don't think you should need to add the printer as a Local Printer, and edit the registry. There may be a better way... set "disable spoolss=no" in smb.conf; add yourself to "printer admins" and "write list"; create the printer share directory and smb.conf entry. Then install whatever drivers you can: extract the current HP drivers to an accessible directory, and have a Win2k directory with SP2 streamlined into it (http://www.microsoft.com/windows2000/docs/SPDeploy.doc Page 33). for installing the legacy printer drivers. (e.g. DJ550C for OfficeJet 570's, etc)... Then set "disable spoolss=yes", and restart samba. Install your printers as "Network Printers" and check their Port assignment to see if they're connected to the samba box via a "Lan Manager Printer Port". This is the way Samba used to do it, prior to incorporating the spoolss code. -------------------------------------------- Let us know how it goes, Jim p.s. I'd shorten your printer names... The lpd printer name and the Samba share name don't have to match; I'd try using shorter names for lpd, like "ithpiii". Try typing "lpq -PHPIII_IT_CUBE -l" a few times, and I think you'll agree... I'm lazy, and a slow typer...> -----Original Message----- > From: JUSTIN GERRY [mailto:JGERRY@butchers.com] > Sent: Friday, May 17, 2002 9:44 AM > To: SAmba@lists.samba.org > Subject: Re: RE: [Samba] Win2k Printing Problems > > > I want to be able to use the Samba box as a print server. I just don't > understand why I need to go through all of these steps to > make it work. > > I don't want to use TCP/IP printing on the W2k client, I would love to > be able to click and install a printer through the samba box > without all > this mess. I eventually want to be able to do the automatic > print driver > install as well, but I still can't get the client machines, > Win2k or NT > to add a printer that actually works because of a missing > port section. > > > Based on your comments, if I remove those sections I won't have any > printers listed on the samba box right? > > If anyone has been able to add printers to their Win2k machine and > actually get them to work properly let me know how you did it. Maybe I > am over complicating things. Email me a how to or if you have > configs to > look at just email me directly. > > Thanks, > Justin > > > >>> Chris Smith <chris@realcomputerguy.com> 05/17 10:52 AM >>> > If you've installed TCP/IP printing on the W2k client and setting up > an > LPR port why bother using Samba for the printing at all? > > If you skip these steps: 1a,1b,2a & 2b(printer),2a & 2b(global), 3h > and > everything after it you should be able to print just fine. > > > > On Thu, 2002-05-16 at 15:26, JUSTIN GERRY wrote: > > Here is my now messy printer install to get Win2k SP2 boxes to work > properly. If anyone has anything to add to this let me know. > > > > I really wish it was possible to get Samba to report some sort of > dummy printer port for Win2k so it would add a section under > "Monitors". > The share name with the slashes seem to give Win2k a hard time, as it > can not add a print monitor anywhere in the registry. > > > > And I still have not even looked into getting the print driver to > automatically install. > > > > Thanks, > > Justin > > > > ******Start of How to*********** > > How to Setup Samba and LPR to print to HP Jetdirect boxes from a > Win2k machine. > > > > *I am assuming you already have samba up and running* > > > > I will be adding a printer I call *HPIII_IT_CUBE*, which is an HP > Laserjet 3 printer to with a Jetdirect box attached to it. > FYI, my samba > server is called "samba". > > > > 1) On the linux box: > > a) create a dir for samba to spool to. Usually its > /var/spool/samba > > b) chmod 01777 /var/spool/samba > > c) chown root.daemon /var/spool/samba > > d) create a spool dir in /var/spool/lpd with the > name of the printer (my case its HPIII_IT_CUBE) > > e) chown lp.lp /var/spool/lpd/HPIII_IT_CUBE > > f) Edit printcap file > > In the printcap file make sure that each printer has entries > modeled after this example: > > > > HPIII_IT_CUBE:\ > > :rm=172.30.12.25:\ > > :sd=/var/spool/lpd/HPIII_IT_CUBE:\ > > :rp=raw: > > > > g) Restart LPR (service lpd restart), it should > come up clean with no errors > > h) Run testprns to see if you get an ok > > > > 2) In the smb.conf under printers section: > > > > Change or add the following under the [printer] section > > a) path=/var/spool/samba > > b) use client driver=yes > > > > Change or add the following under the [global] section > > a) printcap name =/etc/printcap > > b) load printers = yes > > > > 3) On the Win2k box: > > a) Browse to file server and double click on the > printer > > b) It should ask you for a driver file, go through > the usual APW motions (adding HPIII driver etc..) > > c) Go back to APW, install a *Local Printer* > > d) In Select the Printer Port go to *create a new port* > > e) Select *LPR Port* > > f) In *Name or address of server providing lpd* put the name of > your samba server (my case its samba) > > g) In *Name of printer or print queue on that server* put the name > from your printcap file of the printer you just added (my case it is > HP_III_IT_CUBE) > > h) Load regedit or regedit32 (see next messy section) > > REGEDIT: > > > > We will be working in: > > [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\ > > > > 1) You should now see an entry under the LPR Port > under the Monitor tab like this: > > > > [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Mon > itors\LPR > Port\Ports\samba:hpiii_it_cube] > > "Server Name"="Samba" > > "Printer Name"="hpiii_it_cube" > > "OldSunCompatibility"=dword:00000000 > > "HpUxCompatibility"=dword:00000000 > > "EnableBannerPage"=dword:00000000 > > > > 2) Now go to the tab: > > > > [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Pri > nters\,,samba,hp_iii_it_cube] > > a) Find the key called *Port*, it should say > *Port=\\samba\hpiii_it_cube* > > b) Change the *Port* tab to: *Port=samba:hpiii_it_cube* which > will then match the pointer in the monitor tab that we set up > in Step 1 > > > > 3) Go back to "Settings" then "Printers" and right click to bring up > the properties. > > a) Click on Ports tab > > b) You should see a checkmark next to a lpr port with a > servername/printer like we see from step 1 > > > > > > > > ***********End How to****************************** > > > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: http://lists.samba.org/mailman/listinfo/samba > -- > 'Nix MS - Just Say .NyET > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
OK, this is starting to make more sense to me now. I figured out where to "upload" drivers to the server through the Printer share folder on the samba box. My only problem, is that when I try to upload a driver I get the message "Operation Could not be completed" I added my account... jgerry to printer admin and write list. I also made the print$ share with [print$] path = /space/printers guest ok = yes browseable = yes read only = no writable = yes -Justin>>> "Van Sickler, Jim" <vansickj-eodc@Kaman.com> 05/17 1:44 PM >>>Justin, You do want to use the samba box to manage your printers; otherwise all of your PCs are going to be fighting over the printers... that gets real ugly real fast! I don't think you should need to add the printer as a Local Printer, and edit the registry. There may be a better way... set "disable spoolss=no" in smb.conf; add yourself to "printer admins" and "write list"; create the printer share directory and smb.conf entry. Then install whatever drivers you can: extract the current HP drivers to an accessible directory, and have a Win2k directory with SP2 streamlined into it (http://www.microsoft.com/windows2000/docs/SPDeploy.doc Page 33). for installing the legacy printer drivers. (e.g. DJ550C for OfficeJet 570's, etc)... Then set "disable spoolss=yes", and restart samba. Install your printers as "Network Printers" and check their Port assignment to see if they're connected to the samba box via a "Lan Manager Printer Port". This is the way Samba used to do it, prior to incorporating the spoolss code. -------------------------------------------- Let us know how it goes, Jim p.s. I'd shorten your printer names... The lpd printer name and the Samba share name don't have to match; I'd try using shorter names for lpd, like "ithpiii". Try typing "lpq -PHPIII_IT_CUBE -l" a few times, and I think you'll agree... I'm lazy, and a slow typer...> -----Original Message----- > From: JUSTIN GERRY [mailto:JGERRY@butchers.com] > Sent: Friday, May 17, 2002 9:44 AM > To: SAmba@lists.samba.org > Subject: Re: RE: [Samba] Win2k Printing Problems > > > I want to be able to use the Samba box as a print server. I justdon't> understand why I need to go through all of these steps to > make it work. > > I don't want to use TCP/IP printing on the W2k client, I would loveto> be able to click and install a printer through the samba box > without all > this mess. I eventually want to be able to do the automatic > print driver > install as well, but I still can't get the client machines, > Win2k or NT > to add a printer that actually works because of a missing > port section. > > > Based on your comments, if I remove those sections I won't have any > printers listed on the samba box right? > > If anyone has been able to add printers to their Win2k machine and > actually get them to work properly let me know how you did it. MaybeI> am over complicating things. Email me a how to or if you have > configs to > look at just email me directly. > > Thanks, > Justin > > > >>> Chris Smith <chris@realcomputerguy.com> 05/17 10:52 AM >>> > If you've installed TCP/IP printing on the W2k client and setting up > an > LPR port why bother using Samba for the printing at all? > > If you skip these steps: 1a,1b,2a & 2b(printer),2a & 2b(global), 3h > and > everything after it you should be able to print just fine. > > > > On Thu, 2002-05-16 at 15:26, JUSTIN GERRY wrote: > > Here is my now messy printer install to get Win2k SP2 boxes towork> properly. If anyone has anything to add to this let me know. > > > > I really wish it was possible to get Samba to report some sort of > dummy printer port for Win2k so it would add a section under > "Monitors". > The share name with the slashes seem to give Win2k a hard time, asit> can not add a print monitor anywhere in the registry. > > > > And I still have not even looked into getting the print driver to > automatically install. > > > > Thanks, > > Justin > > > > ******Start of How to*********** > > How to Setup Samba and LPR to print to HP Jetdirect boxes from a > Win2k machine. > > > > *I am assuming you already have samba up and running* > > > > I will be adding a printer I call *HPIII_IT_CUBE*, which is an HP > Laserjet 3 printer to with a Jetdirect box attached to it. > FYI, my samba > server is called "samba". > > > > 1) On the linux box: > > a) create a dir for samba to spool to. Usually its > /var/spool/samba > > b) chmod 01777 /var/spool/samba > > c) chown root.daemon /var/spool/samba > > d) create a spool dir in /var/spool/lpd with the > name of the printer (my case its HPIII_IT_CUBE) > > e) chown lp.lp /var/spool/lpd/HPIII_IT_CUBE > > f) Edit printcap file > > In the printcap file make sure that each printer has entries > modeled after this example: > > > > HPIII_IT_CUBE:\ > > :rm=172.30.12.25:\ > > :sd=/var/spool/lpd/HPIII_IT_CUBE:\ > > :rp=raw: > > > > g) Restart LPR (service lpd restart), it should > come up clean with no errors > > h) Run testprns to see if you get an ok > > > > 2) In the smb.conf under printers section: > > > > Change or add the following under the [printer] section > > a) path=/var/spool/samba > > b) use client driver=yes > > > > Change or add the following under the [global] section > > a) printcap name =/etc/printcap > > b) load printers = yes > > > > 3) On the Win2k box: > > a) Browse to file server and double click on the > printer > > b) It should ask you for a driver file, go through > the usual APW motions (adding HPIII driver etc..) > > c) Go back to APW, install a *Local Printer* > > d) In Select the Printer Port go to *create a new port* > > e) Select *LPR Port* > > f) In *Name or address of server providing lpd* put the name of > your samba server (my case its samba) > > g) In *Name of printer or print queue on that server* put the name > from your printcap file of the printer you just added (my case it is > HP_III_IT_CUBE) > > h) Load regedit or regedit32 (see next messy section) > > REGEDIT: > > > > We will be working in: > > [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\ > > > > 1) You should now see an entry under the LPR Port > under the Monitor tab like this: > > > > [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Mon > itors\LPR > Port\Ports\samba:hpiii_it_cube] > > "Server Name"="Samba" > > "Printer Name"="hpiii_it_cube" > > "OldSunCompatibility"=dword:00000000 > > "HpUxCompatibility"=dword:00000000 > > "EnableBannerPage"=dword:00000000 > > > > 2) Now go to the tab: > > > > [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Pri > nters\,,samba,hp_iii_it_cube] > > a) Find the key called *Port*, it should say > *Port=\\samba\hpiii_it_cube* > > b) Change the *Port* tab to: *Port=samba:hpiii_it_cube*which> will then match the pointer in the monitor tab that we set up > in Step 1 > > > > 3) Go back to "Settings" then "Printers" and right click to bringup> the properties. > > a) Click on Ports tab > > b) You should see a checkmark next to a lpr port with a > servername/printer like we see from step 1 > > > > > > > > ***********End How to****************************** > > > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: http://lists.samba.org/mailman/listinfo/samba > -- > 'Nix MS - Just Say .NyET > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >-- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
I really want to use the linux box to manage the printers, direct tcpip is not an option here. I want a point and click install solution for a few network printers. Linux/samba can provide that assuming I can figure everything out. -Justin>>> Chris Smith <chris@realcomputerguy.com> 05/17 3:11 PM >>>On Fri, 2002-05-17 at 13:44, Van Sickler, Jim wrote:> You do want to use the samba box to manage > your printers; otherwise all of your PCs > are going to be fighting over the printers... > that gets real ugly real fast!I think you're mistaken here. The lpd server will easily spool and queue all of the tasks. It would be different if he was printing directly to the lpd ports on the "print servers" (the JetDirect boxes) but he's not, he's printing to the lprng queue on the server.> I don't think you should need to add the > printer as a Local Printer, and edit the > registry. There may be a better way...The registry edit isn't needed at all, LPR or Samba. LPR printers in MS land are local printers by definition and not to be confused with printers actually locally attached to the system. In many cases using TCP/IP printing (Unix printing, lpr printing, etc.) can be more useful. For one, since it is, in MS speak, a local printer it is accessible by all users (subject to security) once installed - no need to add the printer again for every user. It is not a good option for the Win9x based clients as there is no MS supplied lpr client software. There are some third party clients but I believe an extra cost is involved. However, in this case, we are talking about a Win2k client.> set "disable spoolss=no" in smb.conf;This is the default.> snip < > > Then set "disable spoolss=yes", and restart samba. >But according to the docs "diaable spoolss=yes" will: " disable the capability of Windows NT/2000 clients to download print drivers from the Samba host upon demand. Be very careful about enabling this parameter." Automatic print driver installation is one of the few pluses to using the Samba interface (the other is support for Win9x clients without third party lpr client software needed). If you're going to give that up and don't have Win9x clients TCP/IP printing is possibly a better overall solution. Your jobs wont get "double spooled" any longer either.> p.s. I'd shorten your printer names...Good idea. Chris -- 'Nix MS - Just Say .NyET -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Thanks for the reply. When I get time again, I will patch the tarball and create a new rpm and install. -Justin>>> "Gerald (Jerry) Carter" <jerry@samba.org> 05/28 11:12 AM >>>On Fri, 17 May 2002, JUSTIN GERRY wrote:> OK, this is starting to make more sense to me now. I figured outwhere> to "upload" drivers to the server through the Printer share folderon> the samba box. > > My only problem, is that when I try to upload a driver I get the > message "Operation Could not be completed" > > I added my account... jgerry to printer admin and write list.There was an alignment bug in 2.2.4 that affecting upload and viewing printer properties from win2k clients. You can grab the printer rollup patch from ftp://samba.org/pub/jerry/samba-2.2.4-patches/ cheers, jerry --------------------------------------------------------------------- Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org -- http://www.plainjoe.org "Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--