From owner-freebsd-net@FreeBSD.ORG Mon Jan 26 21:48:04 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4F9C16A5E3 for ; Mon, 26 Jan 2004 21:48:01 -0800 (PST) Received: from mail.oisca.org (mail.oisca.org [164.46.152.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8071944B31 for ; Mon, 26 Jan 2004 21:01:27 -0800 (PST) (envelope-from r_ikeda@oisca.org) Received: from oisca.org (163.47.44.61.ap.yournet.ne.jp [61.44.47.163]) (authenticated)i0R51N027843; Tue, 27 Jan 2004 14:01:23 +0900 Message-ID: <4015F090.5030400@oisca.org> Date: Tue, 27 Jan 2004 14:01:04 +0900 From: "Rommel B. Ikeda" Organization: OISCA-International User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040124 X-Accept-Language: en-us, en, ja MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <40149506.6090602@oisca.org> <200401260431.LAA18910@banyan.cs.ait.ac.th> <4014A13B.2040109@oisca.org> <401539F1.8050106@vineyard.net> In-Reply-To: <401539F1.8050106@vineyard.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: on@cs.ait.ac.th Subject: Re: Setting-Up my PC to a Printer in our LAN - FX DocuColor 1250 CP X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: r_ikeda@oisca.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 05:48:05 -0000 Thank you very much for the replies. > > There are lots of ways you might try. From ports you might consider > cups or LPRng. However, it will in part depend on what the LAN card > supports (HP JetDirect cards are easy). > > This is all really well covered in the handbook under printing. > > Given that the printer on your network has a hostname, and that > hostname is printer.mynet.com, and the network card supports lpd put > the following in your /etc/printcap: > > text:\ > :rm=printer.mynet.com:\ > :rp=text:\ > :sd=/var/spool/output/lpd-text:\ > :lf=/var/log/lpd-errs: > # > lp|PostScript Printer:\ > :rm=printer.mynet.com:\ > :rp=raw:\ > :mx#0: > :vf=/bin/ls:\ > :sd=/var/spool/output/lpd-ps:\ > :lf=/var/log/lpd-errs: > I have included all of these in my /etc/printcap file. I only replaced the rm:printer.mynet.com to rm:192.168.1.15 When I typed http://192.168.1.15 in my Mozilla Browser, I was able to see some details of my Printer and I found out that the Printer has an IP Address to 192.168.1.15 with subnet 255.255.255.0 it also has a Host Name = FX-095574 and found that most of the settings are all dynamically set. > create the spool directories you just mentioned: > > mkdir /var/spool/output/lpd-ps > mkdir /var/spool/output/lpd-text > I did these too. > start the lpd daemon: > > lpd > > And (assuming all is well) put a flag in /etc/rc.conf to make sure > that lpd is started for you at every boot: > > lpd_enable="YES" # Run the line printer daemon. I included this in my /etc/rc.conf too. > Assuming everything is ok, you can print a postscript file by: > > lp filename.ps > > and a text file by: > > lp -d text filename.txt > I did also these to test . Now here is my Problem, I can print...or nothing comes out from the Printer...What do you think am I missing...? Thanks for any reply... Rommel Ikeda