Re: samba printing only test.pls ignore it.
Hi sorry.. this is only test..pls ignore it. Andras Kende napsal(a): -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mikko Heiskanen Sent: Sunday, January 23, 2005 4:44 PM To: [EMAIL PROTECTED] Subject: RE: samba printing On Sun, 2005-01-23 at 23:06, Andras Kende wrote: Hello, Looks like the spool directories are different in /etc/printcap and in smb.conf: sd=/var/spool/raw: path = /var/spool/samba Try to set to the same path, also make sure windows user has Enough privileges to write to spool directory... Best regards, Andras Kende Hi, Appreciate the answer, but to my understanding, the two spool directories need to be separate. From the samba documentation: Successful printing from a Windows client via a Samba print server to a UNIX printer involves six (potentially seven) stages: 3.Windows sends a copy of the print file over the network into Samba's spooling area. 5. Samba invokes the print command to hand the file over to the UNIX print subsystem's spooling area. I am naturally with admin priviledges on windows side. I am though almost certain it is some little configuration err. As always. Mikko ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Hello, Sorry for the definitely wrong answer... my mistake !! Here is also a nice samba print howto maybe you can find something: http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/Samba-HOWTO-Collection -3.0-PrintingChapter-11th-draft.html Best regards, Andras Kende http://www.kende.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: samba printing
On Mon, 2005-01-24 at 04:48, McCy Ron wrote: I have/had the same problem - couldn't print to the Samba shared printer until I found in the Handbook a couple of line of code that were missing in my smb.conf [printers] comment = Guttenburgs Pride printable = yes printing = BSD printcap name = /etc/printcap print command = /usr/bin/lpr -P%p -r %s path = /var/spool/samba min print space = 2000 public = yes I've got a printcap setting that uses a pass-through filter. Windows provides the drivers that talk to the printer correctly. BSD need only pass the bytes through. ### ### printcap setup for Samba printer share.. broxima|hplj4|Samba Laser:\ :sh:\ :lp=/dev/lpt0:sd=/var/spool/output/broxima:\ :lf=/var/log/smbprt-errs:\ :if=/usr/libexec/pass-prt:\ ### pass-prt ..Pass through filter #!/bin/sh /bin/cat exit 0 exit Right you are about the pass-through. I read from a webpage where there was used a printcap entry with raw -driver. I understand it accomplishes the same as the pass-through filter. Correct me if I'm wrong. I've done some more digging, and found the following to put into the samba configuration file. smb.conf: print command = /usr/bin/lpr -P%S /var/spool/samba/%s; /bin/rm /var/spool/samba/%s; /bin/echo %T %U %M %I %a %S /var/spool/samba/smbprint.log Which, ofcourse, keeps appending to the file, so one might want to logrotate it. So now it is working. Hope this helps others who have struggled to get it work. Oh, and by the way, samba version is 2.2.8a. Mikko ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: samba printing
On Sun, 23 Jan 2005, McCy Ron wrote: I've got a printcap setting that uses a pass-through filter. Windows provides the drivers that talk to the printer correctly. BSD need only pass the bytes through. ### ### printcap setup for Samba printer share.. broxima|hplj4|Samba Laser:\ :sh:\ :lp=/dev/lpt0:sd=/var/spool/output/broxima:\ :lf=/var/log/smbprt-errs:\ :if=/usr/libexec/pass-prt:\ ### pass-prt ..Pass through filter #!/bin/sh /bin/cat exit 0 exit That looks like it is the same as having no input filter at all, i.e.: broxima|hplj4|Samba Laser:\ :sh:\ :lp=/dev/lpt0:sd=/var/spool/output/broxima:\ :lf=/var/log/smbprt-errs: -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: samba printing
The pass-through script, and the idea to use it, came from FreeBSD Unleashed. I didn't know you could get away with not having a filter in printcap. I'll try your idea to see if it works. I'm using the same idea for other remote Ethernet printers this computer serves. Warren Block wrote: On Sun, 23 Jan 2005, McCy Ron wrote: I've got a printcap setting that uses a pass-through filter. Windows provides the drivers that talk to the printer correctly. BSD need only pass the bytes through. ### ### printcap setup for Samba printer share.. broxima|hplj4|Samba Laser:\ :sh:\ :lp=/dev/lpt0:sd=/var/spool/output/broxima:\ :lf=/var/log/smbprt-errs:\ :if=/usr/libexec/pass-prt:\ ### pass-prt ..Pass through filter #!/bin/sh /bin/cat exit 0 exit That looks like it is the same as having no input filter at all, i.e.: broxima|hplj4|Samba Laser:\ :sh:\ :lp=/dev/lpt0:sd=/var/spool/output/broxima:\ :lf=/var/log/smbprt-errs: -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: samba printing
Make sure all the permissions are correct on the spool directories, they should be 755. During this troubleshooting, I'd recommend looking at any tcp communication while trying to print.. Good Luck! On Sun, 23 Jan 2005 20:33:47 +0200, Mikko Heiskanen [EMAIL PROTECTED] wrote: Hi list, I'm having hard time getting printing working from samba winXP client to a printer parallelport connected to my FreeBSD-4.10-release box. I have a HP Laserjet 1200 -printer, and am using LPD and apsfilter with postscript driver as suggested by linuxprinting.org. Everything works real well under BSD, but I am unable to get any output to printer from the Windows box. I have gathered different bits and pieces from around the net and manuals, and have come up with the following: /etc/printcap: lp|PS;r=1200x1200;q=medium;c=full;p=a4;m=auto:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/lp:\ :lf=/var/spool/lpd/lp/log:\ :af=/var/spool/lpd/lp/acct:\ :mx#0:\ :sh: raw|hp|HP LaserJet 1200:\ :lp=/dev/lpt0:\ :sd=/var/spool/raw:\ :lf=/var/spool/raw/log:\ :af=/var/spool/raw/acct:\ :mx#0:\ :sf:\ :sh: $ ls -ld /var/spool/lpd/lp drwxr-xr-x 2 root daemon 512 Jan 23 19:59 /var/spool/lpd/lp $ ls -ld /var/spool/raw/ drwxr-xr-x 2 root wheel 512 Jan 23 19:57 /var/spool/raw/ /usr/local/etc/smb.conf: [global] hosts allow 10.0.0. security = user encrypt passwords = yes socket options = TCP_NODELAY client code page=850 wins support = yes printing = bsd printcap name = /etc/printcap [lp] comment = Laserjet 1200 path = /var/spool/samba printer name = raw public = yes writeable = no printable = yes $ ls -ld /var/spool/samba/ drwxrwxrwt 2 root wheel 512 Jan 23 20:03 /var/spool/samba/ In the Windows box, I've added a local printer with the Add new printer wizard pointing it to lpt1-port. After that, I have opened a command prompt, and typed net use lpt1: \\10.0.0.1\lp. I have filesharing also in samba, and that works without problems. My windows username and password are same as samba username and password. However, as said, nothing gets printed. No files are in the spooldirectories. I do not know how to proceed, and would love some guidance. Thanks, Mikko ps. would hate to have to put it into windows box, as printer supports PS. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- gabriel, Member of: FreeBSD-Announce FreeBSD-Hardware FreeBSD-Multimedia FreeBSD-questions ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: samba printing
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mikko Heiskanen Sent: Sunday, January 23, 2005 12:34 PM To: [EMAIL PROTECTED] Subject: samba printing Hi list, I'm having hard time getting printing working from samba winXP client to a printer parallelport connected to my FreeBSD-4.10-release box. I have a HP Laserjet 1200 -printer, and am using LPD and apsfilter with postscript driver as suggested by linuxprinting.org. Everything works real well under BSD, but I am unable to get any output to printer from the Windows box. I have gathered different bits and pieces from around the net and manuals, and have come up with the following: /etc/printcap: lp|PS;r=1200x1200;q=medium;c=full;p=a4;m=auto:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/lp:\ :lf=/var/spool/lpd/lp/log:\ :af=/var/spool/lpd/lp/acct:\ :mx#0:\ :sh: raw|hp|HP LaserJet 1200:\ :lp=/dev/lpt0:\ :sd=/var/spool/raw:\ :lf=/var/spool/raw/log:\ :af=/var/spool/raw/acct:\ :mx#0:\ :sf:\ :sh: $ ls -ld /var/spool/lpd/lp drwxr-xr-x 2 root daemon 512 Jan 23 19:59 /var/spool/lpd/lp $ ls -ld /var/spool/raw/ drwxr-xr-x 2 root wheel 512 Jan 23 19:57 /var/spool/raw/ /usr/local/etc/smb.conf: [global] hosts allow 10.0.0. security = user encrypt passwords = yes socket options = TCP_NODELAY client code page=850 wins support = yes printing = bsd printcap name = /etc/printcap [lp] comment = Laserjet 1200 path = /var/spool/samba printer name = raw public = yes writeable = no printable = yes $ ls -ld /var/spool/samba/ drwxrwxrwt 2 root wheel 512 Jan 23 20:03 /var/spool/samba/ In the Windows box, I've added a local printer with the Add new printer wizard pointing it to lpt1-port. After that, I have opened a command prompt, and typed net use lpt1: \\10.0.0.1\lp. I have filesharing also in samba, and that works without problems. My windows username and password are same as samba username and password. However, as said, nothing gets printed. No files are in the spooldirectories. I do not know how to proceed, and would love some guidance. Thanks, Mikko ps. would hate to have to put it into windows box, as printer supports PS. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Hello, Looks like the spool directories are different in /etc/printcap and in smb.conf: sd=/var/spool/raw: path = /var/spool/samba Try to set to the same path, also make sure windows user has Enough privileges to write to spool directory... Best regards, Andras Kende http://www.kende.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: samba printing
On Sun, 2005-01-23 at 23:06, Andras Kende wrote: Hello, Looks like the spool directories are different in /etc/printcap and in smb.conf: sd=/var/spool/raw: path = /var/spool/samba Try to set to the same path, also make sure windows user has Enough privileges to write to spool directory... Best regards, Andras Kende Hi, Appreciate the answer, but to my understanding, the two spool directories need to be separate. From the samba documentation: Successful printing from a Windows client via a Samba print server to a UNIX printer involves six (potentially seven) stages: 3.Windows sends a copy of the print file over the network into Samba's spooling area. 5. Samba invokes the print command to hand the file over to the UNIX print subsystem's spooling area. I am naturally with admin priviledges on windows side. I am though almost certain it is some little configuration err. As always. Mikko ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: samba printing
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mikko Heiskanen Sent: Sunday, January 23, 2005 4:44 PM To: [EMAIL PROTECTED] Subject: RE: samba printing On Sun, 2005-01-23 at 23:06, Andras Kende wrote: Hello, Looks like the spool directories are different in /etc/printcap and in smb.conf: sd=/var/spool/raw: path = /var/spool/samba Try to set to the same path, also make sure windows user has Enough privileges to write to spool directory... Best regards, Andras Kende Hi, Appreciate the answer, but to my understanding, the two spool directories need to be separate. From the samba documentation: Successful printing from a Windows client via a Samba print server to a UNIX printer involves six (potentially seven) stages: 3.Windows sends a copy of the print file over the network into Samba's spooling area. 5. Samba invokes the print command to hand the file over to the UNIX print subsystem's spooling area. I am naturally with admin priviledges on windows side. I am though almost certain it is some little configuration err. As always. Mikko ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Hello, Sorry for the definitely wrong answer... my mistake !! Here is also a nice samba print howto maybe you can find something: http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/Samba-HOWTO-Collection -3.0-PrintingChapter-11th-draft.html Best regards, Andras Kende http://www.kende.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: samba printing
I have/had the same problem - couldn't print to the Samba shared printer until I found in the Handbook a couple of line of code that were missing in my smb.conf [printers] comment = Guttenburgs Pride printable = yes printing = BSD printcap name = /etc/printcap print command = /usr/bin/lpr -P%p -r %s path = /var/spool/samba min print space = 2000 public = yes I've got a printcap setting that uses a pass-through filter. Windows provides the drivers that talk to the printer correctly. BSD need only pass the bytes through. ### ### printcap setup for Samba printer share.. broxima|hplj4|Samba Laser:\ :sh:\ :lp=/dev/lpt0:sd=/var/spool/output/broxima:\ :lf=/var/log/smbprt-errs:\ :if=/usr/libexec/pass-prt:\ ### pass-prt ..Pass through filter #!/bin/sh /bin/cat exit 0 exit Mikko Heiskanen wrote: Hi list, I'm having hard time getting printing working from samba winXP client to a printer parallelport connected to my FreeBSD-4.10-release box. I have a HP Laserjet 1200 -printer, and am using LPD and apsfilter with postscript driver as suggested by linuxprinting.org. Everything works real well under BSD, but I am unable to get any output to printer from the Windows box. I have gathered different bits and pieces from around the net and manuals, and have come up with the following: /etc/printcap: lp|PS;r=1200x1200;q=medium;c=full;p=a4;m=auto:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/lp:\ :lf=/var/spool/lpd/lp/log:\ :af=/var/spool/lpd/lp/acct:\ :mx#0:\ :sh: raw|hp|HP LaserJet 1200:\ :lp=/dev/lpt0:\ :sd=/var/spool/raw:\ :lf=/var/spool/raw/log:\ :af=/var/spool/raw/acct:\ :mx#0:\ :sf:\ :sh: $ ls -ld /var/spool/lpd/lp drwxr-xr-x 2 root daemon 512 Jan 23 19:59 /var/spool/lpd/lp $ ls -ld /var/spool/raw/ drwxr-xr-x 2 root wheel 512 Jan 23 19:57 /var/spool/raw/ /usr/local/etc/smb.conf: [global] hosts allow 10.0.0. security = user encrypt passwords = yes socket options = TCP_NODELAY client code page=850 wins support = yes printing = bsd printcap name = /etc/printcap [lp] comment = Laserjet 1200 path = /var/spool/samba printer name = raw public = yes writeable = no printable = yes $ ls -ld /var/spool/samba/ drwxrwxrwt 2 root wheel 512 Jan 23 20:03 /var/spool/samba/ In the Windows box, I've added a local printer with the Add new printer wizard pointing it to lpt1-port. After that, I have opened a command prompt, and typed net use lpt1: \\10.0.0.1\lp. I have filesharing also in samba, and that works without problems. My windows username and password are same as samba username and password. However, as said, nothing gets printed. No files are in the spooldirectories. I do not know how to proceed, and would love some guidance. Thanks, Mikko ps. would hate to have to put it into windows box, as printer supports PS. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: samba printing
Hmm - I use ... printing = lprng and my standard lp setup that all unix programs use on the windows box is can see \\unixhost\lp as an available printer so I just added it using the wizard on winblows... To avoid windows sending printer binary codes I chose a printer type of Postscript. It Just Works (tm) I suspect that lpr would work also - I think the real trick is to sidestep the windows print-ripping actions and let The Printer Print (tm) BTW I ma using a HP 5MP on a parallel port of the FBSD boxen. The 5MP has the postscript engine inboard. mjt On Mon, 2005-01-24 at 13:48, McCy Ron wrote: I have/had the same problem - couldn't print to the Samba shared printer until I found in the Handbook a couple of line of code that were missing in my smb.conf [printers] comment = Guttenburgs Pride printable = yes printing = BSD printcap name = /etc/printcap print command = /usr/bin/lpr -P%p -r %s path = /var/spool/samba min print space = 2000 public = yes I've got a printcap setting that uses a pass-through filter. Windows provides the drivers that talk to the printer correctly. BSD need only pass the bytes through. ### ### printcap setup for Samba printer share.. broxima|hplj4|Samba Laser:\ :sh:\ :lp=/dev/lpt0:sd=/var/spool/output/broxima:\ :lf=/var/log/smbprt-errs:\ :if=/usr/libexec/pass-prt:\ ### pass-prt ..Pass through filter #!/bin/sh /bin/cat exit 0 exit Mikko Heiskanen wrote: Hi list, I'm having hard time getting printing working from samba winXP client to a printer parallelport connected to my FreeBSD-4.10-release box. I have a HP Laserjet 1200 -printer, and am using LPD and apsfilter with postscript driver as suggested by linuxprinting.org. Everything works real well under BSD, but I am unable to get any output to printer from the Windows box. I have gathered different bits and pieces from around the net and manuals, and have come up with the following: /etc/printcap: lp|PS;r=1200x1200;q=medium;c=full;p=a4;m=auto:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/lp:\ :lf=/var/spool/lpd/lp/log:\ :af=/var/spool/lpd/lp/acct:\ :mx#0:\ :sh: raw|hp|HP LaserJet 1200:\ :lp=/dev/lpt0:\ :sd=/var/spool/raw:\ :lf=/var/spool/raw/log:\ :af=/var/spool/raw/acct:\ :mx#0:\ :sf:\ :sh: $ ls -ld /var/spool/lpd/lp drwxr-xr-x 2 root daemon 512 Jan 23 19:59 /var/spool/lpd/lp $ ls -ld /var/spool/raw/ drwxr-xr-x 2 root wheel 512 Jan 23 19:57 /var/spool/raw/ /usr/local/etc/smb.conf: [global] hosts allow 10.0.0. security = user encrypt passwords = yes socket options = TCP_NODELAY client code page=850 wins support = yes printing = bsd printcap name = /etc/printcap [lp] comment = Laserjet 1200 path = /var/spool/samba printer name = raw public = yes writeable = no printable = yes $ ls -ld /var/spool/samba/ drwxrwxrwt 2 root wheel 512 Jan 23 20:03 /var/spool/samba/ In the Windows box, I've added a local printer with the Add new printer wizard pointing it to lpt1-port. After that, I have opened a command prompt, and typed net use lpt1: \\10.0.0.1\lp. I have filesharing also in samba, and that works without problems. My windows username and password are same as samba username and password. However, as said, nothing gets printed. No files are in the spooldirectories. I do not know how to proceed, and would love some guidance. Thanks, Mikko ps. would hate to have to put it into windows box, as printer supports PS. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ***This Email has been scanned for Viruses by MailMarshal.*** -- Murray Taylor Special Projects Engineer - Bytecraft Systems Entertainment P: +61 3 8710 2555 F: +61 3 8710 2599 D: +61 3 9238 4275 M: +61 417 319 256 E: [EMAIL PROTECTED] or visit us on the web http://www.bytecraftsystems.com http://www.bytecraftentertainment.com --- The information transmitted in this e-mail is for the exclusive use of the intended addressee and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of it, or the taking of any action in reliance upon this information by persons and/or entities other than the
Re: Samba Printing
Thanks for that web page, I had run into it a while ago and completely forgot about it. I ammended my printcap to include the entry : # APS2_BEGIN:printer2 # - don't delete start label for apsfilter printer2 # - no other printer defines between BEGIN and END LABEL Canoni850|bjc800:\ :lp=/dev/lpt0:\ :sd=/var/spool/lpd/Canoni850:\ :lf=/var/spool/lpd/Canoni850/log:\ :mx#0:\ :sh: # APS2_END - don't delete this To handle all the raw printing ( ie. from windows ) And ammended my smb.conf printers section to [printers] comment = Printers path = /var/spool/lpd browseable = no printable = yes public = yes # create mode = 4777 [Canoni850] comment = Canoni850 path = /var/spool/lpd/Canoni850 browseable = yes printable = yes # printer driver = Canon i850 [lp] comment = FreeBSD printer browseable = no printable = yes However I still have the same problem. The weird part is that on the XP client when I go to print a test page, nothing shows up in the printers que, but no error comes up either. Here is what I got in log.smbd with log level at 10 [2003/08/12 23:40:55, 5] lib/util_sock.c:print_socket_options(111) socket option SO_SNDLOWAT = 2048 [2003/08/12 23:40:55, 5] lib/util_sock.c:print_socket_options(111) socket option SO_RCVLOWAT = 1 [2003/08/12 23:40:55, 5] lib/util_sock.c:print_socket_options(111) socket option SO_SNDTIMEO = 0 [2003/08/12 23:40:55, 5] lib/util_sock.c:print_socket_options(111) socket option SO_RCVTIMEO = 0 [2003/08/12 23:40:55, 10] printing/nt_printing.c:update_c_setprinter(368) update_c_setprinter: c_setprinter = 0 [2003/08/12 23:40:55, 6] param/loadparm.c:lp_file_list_changed(2302) lp_file_list_changed() file /usr/local/etc/smb.conf - /usr/local/etc/smb.conf last mod_time: Tue Au [2003/08/12 23:40:55, 3] smbd/oplock.c:init_oplocks(1214) open_oplock_ipc: opening loopback UDP socket. [2003/08/12 23:40:55, 3] lib/util_sock.c:open_socket_in(813) bind succeeded on port 0 [2003/08/12 23:40:55, 3] smbd/oplock.c:init_oplocks(1245) open_oplock ipc: pid = 9747, global_oplock_port = 49804 [2003/08/12 23:40:55, 4] lib/time.c:get_serverzone(114) Serverzone is -36000 [2003/08/12 23:40:55, 10] lib/util_sock.c:read_smb_length_return_keepalive(559) got smb length of 68 [2003/08/12 23:40:55, 10] lib/access.c:check_access(304) check_access: allow = , deny = [2003/08/12 23:40:55, 6] smbd/process.c:process_smb(845) got message type 0x81 of len 0x44 [2003/08/12 23:40:55, 3] smbd/process.c:process_smb(846) Transaction 0 of length 72 [2003/08/12 23:40:55, 2] smbd/reply.c:reply_special(92) netbios connect: name1=DAVESSERVER name2=JOSE [2003/08/12 23:40:55, 2] smbd/reply.c:reply_special(111) netbios connect: local=davesserver remote=jose Jose is the name of the XP client, davesserver is the name of the FreeBSD box. Again sorry about the long post Any help is appreciated Thankyou David On Tue, 12 Aug 2003 07:24 am, you wrote: David Lodeiro wrote: A couple of days ago I set up my printer on my FreeBSD server and set it up so I could print from my FreeBSD client. This all works very well, printing from botht the server and the FBSD client. However, I also have samba set up for file serving with my dads XP box. I have been trying for quite some time now to set samba up to enable me to print from the XP client. My situation at the moment is that the XP client can detect the printer in explorer, I can set up a printer to print to it without any errors, however when I go to print a test page, nothing happens. No errors, no printout. I started the smbd and nmbd demons with debugger set to 10 to see if I could find something out Firstly , this is the relevent part of my printcap Canoni850|bjc800;r=600x600;q=photo;c=full;p=a4;m=auto:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/Canoni850:\ :lf=/var/spool/lpd/Canoni850/log:\ :af=/var/spool/lpd/Canoni850/acct:\ :mx#0:\ :sh: I can print from FBSD using lpr -P Canoni850 filename here is the relvant section from smb.conf [global[ load printers = yes use client driver = yes show add printer wizard [printers] comment = Canon i850 path = /var/spool/lpd/samba browseable = yes printable = yes public = yes File sharing on with this smb.conf works without any problems my /var/spool/lpd directory contains the directories = Canoni850 lp samba all with r w x permisions and the sticky bit if I have path = /var/spool/lpd/Canoni850 snip And still nothing comes out of my printer , and nothing is present in my lpq on the server. Does anyone now what is going on in my log? sorry about the long post Thanks David ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe,
Re: Samba Printing
David Lodeiro wrote: A couple of days ago I set up my printer on my FreeBSD server and set it up so I could print from my FreeBSD client. This all works very well, printing from botht the server and the FBSD client. However, I also have samba set up for file serving with my dads XP box. I have been trying for quite some time now to set samba up to enable me to print from the XP client. My situation at the moment is that the XP client can detect the printer in explorer, I can set up a printer to print to it without any errors, however when I go to print a test page, nothing happens. No errors, no printout. I started the smbd and nmbd demons with debugger set to 10 to see if I could find something out Firstly , this is the relevent part of my printcap Canoni850|bjc800;r=600x600;q=photo;c=full;p=a4;m=auto:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/Canoni850:\ :lf=/var/spool/lpd/Canoni850/log:\ :af=/var/spool/lpd/Canoni850/acct:\ :mx#0:\ :sh: I can print from FBSD using lpr -P Canoni850 filename here is the relvant section from smb.conf [global[ load printers = yes use client driver = yes show add printer wizard [printers] comment = Canon i850 path = /var/spool/lpd/samba browseable = yes printable = yes public = yes File sharing on with this smb.conf works without any problems my /var/spool/lpd directory contains the directories = Canoni850 lp samba all with r w x permisions and the sticky bit if I have path = /var/spool/lpd/Canoni850 snip And still nothing comes out of my printer , and nothing is present in my lpq on the server. Does anyone now what is going on in my log? sorry about the long post Thanks David ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] You have to remember that samba print shares need to accept raw Windows print information. It should go in unfiltered. I did a google search and found these links (search params were printcap samba raw): www.freebsd.cz/doc/en_US.ISO8859-1/ books/corp-net-guide/x905.html dbforums.com/t854189.html HTH ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: samba printing stopped after upgrade to 2.2.6
JR == Jens Rehsack [EMAIL PROTECTED] writes: JR It's most a good thing sending your patch directly to David JR Chapman (maintainer). He's very fast commiting bug fixes :-) Did that, too. ;-) To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: samba printing stopped after upgrade to 2.2.6
JR == Jens Rehsack [EMAIL PROTECTED] writes: Ah. The port Makefile probably needs to be tweaked a bit then. It looks like samba will use cups if it can find it. Try this: JR Your patch isn't required. But instead adding a line JR 'WITHOUT_CUPS=yes' into /etc/make.conf adding a line JR 'SAMBA_OPTIONS=\WITHOUT_CUPS\' is recommented. Have a look into JR ports/samba/scripts/configure.samba for other possible options. Yes, it is necessary, if you have the CUPS libraries sitting on your machine. The default for the configure program is auto-detect CUPS. In this case, we explicity want to disable it, so we need to pass the --disable-cups flag to configure to tell it not to use the libs even if they exist. JR Thanks for the hint with the CUPS behaviour. It should be checked ... Yes. I filed a bug report in Jitterbug. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: samba printing stopped after upgrade to 2.2.6
In the last episode (Oct 28), Vivek Khera said: I upgraded Samba from 2.2.5_3 to 2.2.6 and now printing from Win2k has stopped working. Downgrading back to 2.2.5_3 lets printing work again. Accessing the disk shares works just fine, still. Server is running FreeBSD 4.7-STABLE. When I start Samba 2.2.6, it reports this: [2002/10/24 14:22:57, 0] smbd/server.c:main(707) smbd version 2.2.6 started. Copyright Andrew Tridgell and the Samba Team 1992-2002 [2002/10/24 14:22:57, 0] printing/print_cups.c:cups_printer_fn(110) Unable to connect to CUPS server localhost - Connection refused but I have not enabled CUPS in samba at all. Does anyone know what I need to do to migrate successfully from samba 2.2.5 to 2.2.6? Here's my config: When you did the install, you probably just skipped that options dialog that came up, right? All the options on that page are select to enable, except CUPS which is select to _disable. Rebuild samba, and select the Without CUPS line. Quite annoying. I work around it by adding WITHOUT_CUPS=yes in /etc/make.conf, and setting BATCH=yes in net/samba/Makefile. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: samba printing stopped after upgrade to 2.2.6
In the last episode (Oct 28), Vivek Khera said: DN == Dan Nelson [EMAIL PROTECTED] writes: DN When you did the install, you probably just skipped that options dialog DN that came up, right? All the options on that page are select to DN enable, except CUPS which is select to _disable. Rebuild samba, and DN select the Without CUPS line. Quite annoying. I work around it by DN adding WITHOUT_CUPS=yes in /etc/make.conf, and setting BATCH=yes in DN net/samba/Makefile. CUPS is linked in both 2.2.5 and 2.2.6, but in 2.2.6 it seems to want to actually *use* it even though I don't configure it. Also, if I select the Disable CUPS flag, all it accomplishes is to not register the dependency. CUPS is still linked for some reason. Ah. The port Makefile probably needs to be tweaked a bit then. It looks like samba will use cups if it can find it. Try this: diff -u -r1.104 Makefile --- Makefile17 Oct 2002 13:49:31 - 1.104 +++ Makefile28 Oct 2002 17:26:04 - @@ -123,6 +125,8 @@ LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base CONFIGURE_ENV+=CPPFLAGS=-I${LOCALBASE}/include \ LDFLAGS=-L${LOCALBASE}/lib +.else +CONFIGURE_ARGS+= --without-cups .endif .if defined(KRB5_HOME) exists(${KRB5_HOME}) Does your smbd have cups linked (as reported by ldd)? No, since I don't have the cups port installed, so samba couldn't use it. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: samba printing stopped after upgrade to 2.2.6
At 12:03 PM -0500 10/28/02, Vivek Khera wrote: DN == Dan Nelson [EMAIL PROTECTED] writes: but I have not enabled CUPS in samba at all. Does anyone know what I need to do to migrate successfully from samba 2.2.5 to 2.2.6? Here's my config: DN When you did the install, you probably just skipped that options dialog DN that came up, right? All the options on that page are select to DN enable, except CUPS which is select to _disable. Rebuild samba, and DN select the Without CUPS line. Quite annoying. I work around it by DN adding WITHOUT_CUPS=yes in /etc/make.conf, and setting BATCH=yes in DN net/samba/Makefile. CUPS is linked in both 2.2.5 and 2.2.6, but in 2.2.6 it seems to want to actually *use* it even though I don't configure it. Also, if I select the Disable CUPS flag, all it accomplishes is to not register the dependency. CUPS is still linked for some reason. Does your smbd have cups linked (as reported by ldd)? Be a little careful here. It sounds like you: 1) installed samba-with-cups a) which by definition would install CUPS, if you did not already have it installed. 2) backed off to previous version of samba a) which backs out the version of *samba* that was installed, but probably does not back out versions of any other ports which were installed while installing a new samba. 3) installed samba-without-cups a) ...but CUPS is probably still installed. b) if so, the configure scripts for samba will notice that CUPS is on the machine, and will probably use it. This would be the correct behavior, IMO, because if you *do* have CUPS installed then samba *should* use it. Some of that is just guessing on my part, but it sounds pretty plausible. I would suggest that you see if CUPS is installed. Also check to see if it is a recent install. If so, then /usr/local/sbin/pkg_deinstall cups and then try the samba-without-cups install once again. -- Garance Alistair Drosehn= [EMAIL PROTECTED] Senior Systems Programmer or [EMAIL PROTECTED] Rensselaer Polytechnic Instituteor [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: samba printing stopped after upgrade to 2.2.6
GAD == Garance A Drosihn Garance writes: GAD Some of that is just guessing on my part, but it sounds pretty GAD plausible. I would suggest that you see if CUPS is installed. GAD Also check to see if it is a recent install. If so, then GAD /usr/local/sbin/pkg_deinstall cups GAD and then try the samba-without-cups install once again. Yeah... it seems that the Without CUPS option to Samba doesn't do the right thing if cups-base is installed (ie, for KDE). Also, it seems that if Samba is built with CUPS, it doesn't honor the printing=bsd setting and tries to use CUPS anyway. I just built with cups_base removed and printing seems to work again. Thanks for the tip. Luckily the machine running samba doesn't have/need KDE on it. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: samba printing stopped after upgrade to 2.2.6
DN == Dan Nelson [EMAIL PROTECTED] writes: DN Ah. The port Makefile probably needs to be tweaked a bit then. It DN looks like samba will use cups if it can find it. Try this: Thanks for the patch. I ended up just deleting cups_base since it was not needed for any other port on my system. Looks like a Samba bug if it ignores bsd style printing if CUPS is linked... To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message