Re: FreeBSD6 or samba, printing blank end page
On Sat, Apr 08, 2006, Dave wrote: >Hello, > I've got a Freebsd6 print server that has two printers attached to it, >both hp models one a deskjet the other a laserjet. Both are exhibiting the >same behavior, whenever i print something from a windows box, xp in this >case, the windows boxes use windows printer drivers and samba3 for this, >the document i want is printed and removed from the unix print queue no >problem. The issue, minor though annoying, is at the end of every document >the printer ejects the last page as it should, but then i get one blank >page spat out of the printers. I am unsure how to debug this, if it's >samba, or freebsd or the unix script i am using for unix to talk to the >printer. Any help appreciated. My config is below. Typically this is caused by printer output that's padded with blank lines to fill the page size which causes an automatic page feed from the printer. The printer interface then sends a form feed character to eject the last page which is blank. My solution for this, which goes back over 20 years to Tandy Xenix systems, it to use a printer interface script/filter that (a) strips all trailing blank lines from the output, and (b) sends an appropriate printer sequence to eject the last page. The printer sequence for many dot-matrix printers is FF (octal 013, hex 0xb). The sequence for HP laser printers is E which is really a reset command, but it will print a page if there's anything it the printer's buffer. Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX:(206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 ``It wasn't raining when Noah built the ark.'' ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
FreeBSD6 or samba, printing blank end page
Hello, I've got a Freebsd6 print server that has two printers attached to it, both hp models one a deskjet the other a laserjet. Both are exhibiting the same behavior, whenever i print something from a windows box, xp in this case, the windows boxes use windows printer drivers and samba3 for this, the document i want is printed and removed from the unix print queue no problem. The issue, minor though annoying, is at the end of every document the printer ejects the last page as it should, but then i get one blank page spat out of the printers. I am unsure how to debug this, if it's samba, or freebsd or the unix script i am using for unix to talk to the printer. Any help appreciated. My config is below. Thanks. Dave. /etc/printcap(only one printer displayed for brevity) deskjet|lp|hp|Hulett Packard Deskjet 5550 printer:\ :sh:sd=/var/spool/deskjet5550:lp=/dev/lpt0:\ :if=/usr/local/libexec/ifhp:lf=/var/log/lpd-errs:\ :tf=/usr/local/libexec/pstf: deskjet-r|lp1|hp-raw|Hulett Packard Deskjet 5550 printer-raw:\ :sh:sd=/var/spool/deskjet5550-raw:lp=/dev/lpt0:\ :lf=/var/log/lpd-errs: /usr/local/libexec/ifhp(comments removed for brevity) #!/bin/sh PATH=/bin:/usr/bin export PATH # Send a reset, then Treat LF as CR+LF: printf "\033E\033&k2G" || exit 2 # Read first line of the file to determine type of input read first_line case "${first_line}" in \%\!*) # # PostScript input, so use ghostscript and hpijs # /usr/local/bin/gs -q -dNOPAUSE -dSAFER -r600x600 \ -sDEVICE=ijs -sIjsServer=/usr/local/bin/hpijs -dIjsUseOutputFD \ -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="DESKJET 5550" \ -sIjsParams="Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2" \ -sOutputFile=- - && exit 0 ;; *) # # Plain text or HP/PCL, so just print it directly. # Print a form feed at the end to eject the last page. # echo $first_line && cat && printf "\033&l0H\033E" && exit 0 ;; esac # Should not be reached exit 2 /usr/local/etc/smb.conf(abbreviated) [global] load printers = no printcap name = /etc/printcap printing = bsd show add printer wizard = yes printer admin = @ntadmin, root use client driver = no [printers] comment = All Printers path = /var/spool/samba browseable = no # Set public = yes to allow user 'guest account' to print guest ok = no writable = no printable = yes default devmode = yes [deskjet-r] comment = HP Deskjet 5550 Network Printer path = /var/spool/samba browsable = yes printable = yes writable = no guest ok = no default devmode = yes [print$] comment = printer driver download area path = /usr/local/etc/samba/drivers browsable = yes guest ok = no read only = yes write list = @ntadmin, root ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Cups samba printing very slow!
At last I have been able to set up cups under kde 3.4 to print from my laptop with freebsd 5.4 to an epson stylus color 640 printer connected to another pc seen by cups in the laptop both as an ipp printer under freebsd 5.4 (seen from the laptop as the cups server) AND - more frequently - as an smb printer under windows XP. The network connection from the laptop on which run both samba and cupsd and the pc is made by means of a wireless 11Mb card and an access point. While printing to the windows XP pc through samba by means of lpr -Psmbepson file is pretty fast and immediate, printing from an application like kword, konqueror which format the text takes at least 1.5-2 minutes to start, against few seconds with a direct parallel port connection and about a bearable 30-45 secs with an ipp printer connection to the freebsd box. Are those differences acceptable ot there's something to be improved? in case of a no, what should I check? Vittorio ___ 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 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
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
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
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
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 c
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
-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
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 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
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]"
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]"
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 > > > > > 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 > > > > ___
Samba Printing
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 I get the following in log.smbd [2003/08/11 22:23:08, 7] param/loadparm.c:lp_servicenumber(3612) lp_servicenumber: couldn't find Canoni850 [2003/08/11 22:23:08, 3] param/loadparm.c:lp_add_printer(2062) adding printer service Canoni850 and then I read that your not meant to set the path to that that unix printing uses and saw an example where it sets it to samba with the path as it is in my current smb.conf I get the following in log.smbd when I go to print from XP [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option SO_KEEPALIVE = 8 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option SO_REUSEADDR = 4 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option SO_BROADCAST = 0 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option TCP_NODELAY = 4 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option IPTOS_LOWDELAY = 0 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option IPTOS_THROUGHPUT = 0 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option SO_REUSEPORT = 512 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option SO_SNDBUF = 8760 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option SO_RCVBUF = 8760 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option SO_SNDLOWAT = 2048 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option SO_RCVLOWAT = 1 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option SO_SNDTIMEO = 0 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option SO_RCVTIMEO = 0 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option SO_KEEPALIVE = 8 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option SO_REUSEADDR = 4 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option SO_BROADCAST = 0 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option TCP_NODELAY = 4 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option IPTOS_LOWDELAY = 0 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option IPTOS_THROUGHPUT = 0 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option SO_REUSEPORT = 512 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option SO_SNDBUF = 8192 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option SO_RCVBUF = 8192 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option SO_SNDLOWAT = 2048 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option SO_RCVLOWAT = 1 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option SO_SNDTIMEO = 0 [2003/08/11 23:23:01, 5] lib/util_sock.c:print_socket_options(111) socket option SO_RCVTIMEO = 0 [2003/08/11 23:23:01, 10] printing/nt_printing.c:update_c_setprinter(368) update_c_setprinter: c_setprinter = 0 [2003/08/11 23:23:01, 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: Mon Au [2003/08/11 23:23:01, 3] smbd/oplock.c:init_oplocks(1214)
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 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
Vivek Khera wrote: > > > "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. It's most a good thing sending your patch directly to David Chapman (maintainer). He's very fast commiting bug fixes :-) > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: <[EMAIL PROTECTED]> Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ 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
Dan Nelson wrote: > > 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)? Your patch isn't required. But instead adding a line 'WITHOUT_CUPS=yes' into /etc/make.conf adding a line 'SAMBA_OPTIONS=\"WITHOUT_CUPS\"' is recommented. Have a look into ports/samba/scripts/configure.samba for other possible options. Thanks for the hint with the CUPS behaviour. It should be checked ... Jens > 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 -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: <[EMAIL PROTECTED]> Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ 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
Re: samba printing stopped after upgrade to 2.2.6
> "GAD" == Garance A Drosihn 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
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
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
> "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)? Thanks for the help, though. 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
samba printing stopped after upgrade to 2.2.6
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: [global] security = user hosts deny = ALL hosts allow = localhost, onceler.kcilink.com, raj.kcilink.com preserve case = yes short preserve case = yes map archive = no socket options = SO_KEEPALIVE locking = yes deadtime = 15 workgroup = KCI server string = Yertle Samba Server guest account = nobody default service = reference domain master = yes local master = yes preferred master = yes os level = 65 wins support = yes time server = True printing = bsd load printers = yes print command = lpr -v -r -P%p %s [homes] comment = Home Directory writable = yes browseable = no public = no ; create mode = 0644 create mask = 0755 [printers] comment = HP LJ4 PostScript Printer browseable = no printable = yes public = no writable = no path = /var/tmp create mode = 0600 ; the default, if invalid accesses [reference] comment = KCI: Samba LAN manager path = /tmp public = yes To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message