From owner-freebsd-questions Wed Dec 12 17:24:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by hub.freebsd.org (Postfix) with ESMTP id BE62637B405 for ; Wed, 12 Dec 2001 17:24:27 -0800 (PST) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by cactus.fi.uba.ar (8.11.6/8.11.6) with ESMTP id fBD1Nn620940; Wed, 12 Dec 2001 22:23:49 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Wed, 12 Dec 2001 22:23:49 -0300 (ART) From: Fernando Gleiser To: Mark Alli Cc: Subject: Re: samba In-Reply-To: <000701c18332$a3268a60$1abc6bcf@marknew> Message-ID: <20011212221736.J20180-100000@cactus.fi.uba.ar> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 12 Dec 2001, Mark Alli wrote: > I have a network running FreeBSD,Linux and Windows. My problem is I have a > shared printer attached to a Windows NT 4.0 machine and I want to print to > it from FreeBSD and Linux machines. I have already set up the printcap file > and created a directory for the new printer ie P4, and restarted lpd, the > "lock" and "status" files were created, and when I do a teslprn everything > is fine. My problem is, when I try to print I get the error "job could not > be printed". What am I doing wrong. It is hard to tell without more detailed info. Is the NT printer shared? where are you using samba to access the shared printer? Are the username/ password correct? Is samba properly configured? I am using a modified version of smbprint (look at /usr/local/share/examples/samba/printing/) which uses magicfilter and then feeds the output of the filter to smbclient. What you need to do if adapt smbprint to your needs and then configure it as the input filter of your printer (if= field in the printcap). Hope this helps Fer > > Example of the command I am using: lpr -P P4 myfile > > > Mark Alli > Disc Software > Manager of Operations and Software Development > 2150 Dunwin Dr. Unit #1 > Mississauga ON > L5L-1C7 > (905) 820-0896 ext220 > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message