From owner-freebsd-questions@FreeBSD.ORG Wed Mar 2 02:09:34 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9C1B16A4CE for ; Wed, 2 Mar 2005 02:09:34 +0000 (GMT) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 719E443D2F for ; Wed, 2 Mar 2005 02:09:34 +0000 (GMT) (envelope-from e.schuele@computer.org) Received: from [192.168.214.218] (c-24-1-210-118.client.comcast.net[24.1.210.118]) by comcast.net (sccrmhc12) with ESMTP id <2005030202093301200rvbbve>; Wed, 2 Mar 2005 02:09:33 +0000 Message-ID: <42252082.8020505@computer.org> Date: Tue, 01 Mar 2005 20:10:10 -0600 From: Eric Schuele User-Agent: Mozilla Thunderbird 1.0 (X11/20050127) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pietro Cerutti References: <4224F4EA.5030003@computer.org> In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit cc: FreeBSD Subject: Re: Printing to a Windows X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 02:09:35 -0000 Pietro Cerutti wrote: > On Tue, 01 Mar 2005 17:04:10 -0600, Eric Schuele wrote: > >>Here's a howto that helped me: >> http://www.lanside.net/article.php?story=20031007161002250 > > > Thank you, the problem now is half-solved! > > Now I'm having CUPS well running, and I finished configuring my > printer with the web interface. > > It's an HP LaserJet 4L, its URI is lpd://x.x.x.x:515/HPLaserJ > when try to print a test page, the answer is: > "Remote host did not accept data file (32)" > > >>tail -f /var/log/cups/error_log > > ..... > E [02/Mar/2005:00:55:54 +0000] [Job 17] Unable to send trailing nul to > printer: Broken pipe > E [02/Mar/2005:00:55:54 +0000] [Job 17] Remote host did not accept > data file (32) > ....... > > I googeled but didn't find any solution to this. > > Thank you in advance! > > I'm certainly no expert, and in fact had to take a few swings before it started working... I remember having to try a handful of URIs. Finally settled on "lpd://hostname/queue". I defined the hostname in my /etc/hosts file and I DID NOT specify the port (515) as you have. So my URI in CUPS administration looks like: lpd://WinMachine/WinPrintQueue With and /etc/hosts containing: x.x.x.x WinMachine And the print queue on the shared printer is WinPrintQueue. Another thing... Do you have a firewall on the Windows machine? If so you will need to allow traffic on port TCP 515. Probably not the solution but worth looking at. -- Regards, Eric