Date: Tue, 12 Aug 2003 23:42:43 +1000 From: David Lodeiro <dlodeiro@inspired.net.au> To: K Anderson <freebsduser@comcast.net> Cc: freebsd-questions@freebsd.org Subject: Re: Samba Printing Message-ID: <200308122342.43140.dlodeiro@inspired.net.au> In-Reply-To: <3F3809A9.8050602@comcast.net> References: <200308112348.18383.dlodeiro@inspired.net.au> <3F3809A9.8050602@comcast.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org" > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308122342.43140.dlodeiro>