From owner-freebsd-questions Thu Sep 5 23:34:19 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA28924 for questions-outgoing; Thu, 5 Sep 1996 23:34:19 -0700 (PDT) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id XAA28907 for ; Thu, 5 Sep 1996 23:34:12 -0700 (PDT) Received: (from nadav@localhost) by gatekeeper.barcode.co.il (8.6.12/8.6.12) id JAA28035; Fri, 6 Sep 1996 09:32:22 +0200 Date: Fri, 6 Sep 1996 09:32:22 +0200 (IST) From: Nadav Eiron To: "Randall D. DuCharme" cc: questions@freebsd.org Subject: Re: samba printing In-Reply-To: <199609060401.XAA09435@atlantis.nconnect.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Thu, 5 Sep 1996, Randall D. DuCharme wrote: > Greetings, > I have a small network at my store with an NT server, > a Samba server running on FBSD 2.1.5-R, a 2.1.5-R workstation, > and several Win95 clients. I'm wondering how I go about printing > to an NT print queue from the Samba server or FBSD workstation. > I can see and attatch to the printer using smbclient \\\\servername\\ > sharename -P, and can send a job to the queue using printmode, and > print, but can't seem to figure out how to get to it using lpr. > > Any Ideas?? > > Thanks! > Randy > I have a similar setup here, and I don't use samba! I say: use TCP/IP and not NetBIOS if you can have it that way. NT server will let you serve printers as if it were running lpd. It will even serve remote printers that it connects to over NetBIOS (like printers connected to Win95 workstations who can't manage those tricks). Look in the NT Networking Manual (I think). There is a chapter on TCP/IP printing with instructions on how to export an NT printer to a UNIX host. On the FreeBSD machine, I simply followed the instructions in the Handbook for setting up a remote lpd printer. Here is my printcap entry: qms|QMS|qms420|QMS420|QMS 420 via NT:\ :sh:lp=:sd=/var/spool/lpd/qms:rm=darcy.barcode.co.il:\ :rp=QMS420: And lpq -Pqms will give: Windows NT 3.5 LPD Server Printer QMS420 Owner Status Jobname Job-Id Size Pages Priority ---------------------------------------------------------------------------- It takes some time to answer. Don't hit ^C too soon... I'm a bit far away from my NT server, so I can't give you the exact configuration there, but it's pretty much RTFM there. This printer I gave you the setup for is actually connected to a Win95 station to which the NT server (darcy.barcode.co.il) connects. Works like a charm Nadav