Date: Tue, 21 Feb 2006 17:01:25 -0800 From: Graham North <northg@shaw.ca> To: Andreas Rudisch <"cyb."@gmx.net>, questions freebsd <freebsd-questions@freebsd.org> Subject: Re: More questions on Samba Print server Message-ID: <43FBB7E5.80901@shaw.ca> In-Reply-To: <op.s5b6tmqfblu3bc@p4-3200> References: <43FAD023.9060701@shaw.ca> <op.s5bh02a5blu3bc@p4-3200> <43FB52A8.6030301@shaw.ca> <op.s5b6tmqfblu3bc@p4-3200>
next in thread | previous in thread | raw e-mail | index | archive | help
--Boundary_(ID_NbJRzXavvJs51dERP6+XLw) Content-type: text/plain; charset=ISO-8859-15; format=flowed Content-transfer-encoding: 7BIT Hi Andreas and Questions to All: Well, I took some of your advice and my system is now printing - thank you! The BSD setup recommendations are much more complicated than a couple of other Samba references which I have been reading...? I had already installed APSFilter last summer, and had a working configuration so I new the success was lurking about somewhere. Trouble is, I have been labouring under the assumption that I should be able to use the print services WITHOUT logging on as a user first. My previous attempts and this one, still require that I first log onto the network as a user. I have been hoping to set it up to be self-logging at time of use. Is it not possible for the printer to be setup using the nobody acount to essentially be a passwordless entry? Does yours work that way? If not - if any other users out there can share some secrets in this regard...? Finally, the printer share comments do not show up anywhere in Windows. My other shares display their comments, the lp on my server has for the comment field "ljet4l; r=300x300...." Not "laser ljet4l on www_server" as per my share comment below. Any suggestions what might be going on here?? Thanks Andreas, or to anyone else who can step in with answers. Cheers, My new smb.conf as per most of your suggestions: # smb.conf 20060220 - re-write - simplify # # NOTE: Whenever you modify this file you should run the command "testparm" # to check that you have not many any basic syntactic errors. # #======================= Global Settings ===================================== [global] workgroup = DELNORTE encrypt passwords = yes server string = www_server browseable = yes printing = bsd # print command = lpr -s -P %p %s; rm %s hosts allow = 192.168.1.100 192.168.1.101 192.168.1.102 192.168.1.103 wins support = no #============================ Share Definitions ============================== [gn] comment = Soleado WebServer path = /home/gn browseable = yes valid users = gn writeable = yes [wqs] comment = WQS WebServer path = /home/wqs browseable = yes writeable = yes valid users = gn wqs # NOTE: If you have a BSD-style print system there is no need to # specifically define each individual printer [printers] comment = laser ljet4l on www_server path = /var/spool/samba browseable = yes printable = yes guest ok = yes create mode = 700 public = yes # valid users = nobody use client driver = yes Andreas Rudisch wrote: > On Tue, 21 Feb 2006 18:49:28 +0100, Graham North <northg@shaw.ca> wrote: > >> Andreas - thankyou, I will try something like it. >> Are you using CUPS or APSFILTER on your BSD machine? >> Thanks, Graham/ > > > Actually I was just using the handbook to set up my printer: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing.html > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-advanced.html > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-advanced.html#PRINTING-ADVANCED-PS > > > I am using lpd, the standard spooler, and an input filter in printcap > to manage postscript > and the staircase effect, then the printing is done by Ghostscript > (device=pxlmono). You > should be able to do it this way to, if your printer is supported by > Ghostscript, which it > probably is. > > You already got the smb.conf-part. > ---------- > %cat printcap > Kyocera|lp|Kyocera mita FS-1010:\ > :sh:sd=/var/spool/lpd/Kyocera:\ > :lp=/dev/lpt0:\ > :if=/usr/local/libexec/ifkyocera: > ---------- > %cat ifkyocera > #!/bin/sh > # Treat LF as CR+LF (to avoid the "staircase effect" on HP/PCL > # printers): > # > printf "\033&k2G" || exit 2 > > # > # Read first two characters of the file > # > IFS="" read -r first_line > first_two_chars=`expr "$first_line" : '\(..\)'` > > if [ "$first_two_chars" = "%!" ]; then > # > # It is PostScript; use Ghostscript to scan-convert and print it. > # > /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=pxlmono \ > -sOutputFile=- - && exit 0 > else > # > # 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" && > exit 0 > fi > > exit 2 > ---------- > > I hope this will help a bit. > > Andreas > > -- Kindness can be infectious - try it. Graham North Vancouver, BC www.soleado.ca --Boundary_(ID_NbJRzXavvJs51dERP6+XLw) Content-type: text/plain; x-avg=cert; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline Content-description: "AVG certification" No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.12/266 - Release Date: 2/21/2006 --Boundary_(ID_NbJRzXavvJs51dERP6+XLw)--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43FBB7E5.80901>