Date: Mon, 11 Aug 2003 23:48:18 +1000 From: David Lodeiro <dlodeiro@inspired.net.au> To: freebsd-questions@freebsd.org Subject: Samba Printing Message-ID: <200308112348.18383.dlodeiro@inspired.net.au>
next in thread | raw e-mail | index | archive | help
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) open_oplock_ipc: opening loopback UDP socket. [2003/08/11 23:23:01, 3] lib/util_sock.c:open_socket_in(813) bind succeeded on port 0 [2003/08/11 23:23:01, 3] smbd/oplock.c:init_oplocks(1245) open_oplock ipc: pid = 5972, global_oplock_port = 49676 [2003/08/11 23:23:01, 4] lib/time.c:get_serverzone(114) Serverzone is -36000 [2003/08/11 23:23:01, 10] lib/util_sock.c:read_smb_length_return_keepalive(559) got smb length of 68 [2003/08/11 23:23:01, 10] lib/access.c:check_access(304) check_access: allow = , deny = [2003/08/11 23:23:01, 6] smbd/process.c:process_smb(845) got message type 0x81 of len 0x44 [2003/08/11 23:23:01, 3] smbd/process.c:process_smb(846) Transaction 0 of length 72 [2003/08/11 23:23:01, 2] smbd/reply.c:reply_special(92) netbios connect: name1=DAVESSERVER name2=JOSE [2003/08/11 23:23:01, 2] smbd/reply.c:reply_special(111) netbios connect: local=davesserver remote=jose 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308112348.18383.dlodeiro>