From owner-freebsd-questions@FreeBSD.ORG Sun Oct 14 15:08:55 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CF0C16A421 for ; Sun, 14 Oct 2007 15:08:55 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 3C87713C45A for ; Sun, 14 Oct 2007 15:08:55 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.1/8.14.1) with ESMTP id l9EF8sM9036017; Sun, 14 Oct 2007 09:08:54 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.1/8.14.1/Submit) with ESMTP id l9EF8s9D036014; Sun, 14 Oct 2007 09:08:54 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sun, 14 Oct 2007 09:08:54 -0600 (MDT) From: Warren Block To: perryh@pluto.rain.com Message-ID: <20071014085536.B35972@wonkity.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (wonkity.com [127.0.0.1]); Sun, 14 Oct 2007 09:08:54 -0600 (MDT) Cc: questions@freebsd.org Subject: Re: How to set up a network-attached printer X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Oct 2007 15:08:55 -0000 perryh@pluto.rain.com wrote: > Where would I find a specific method for setting up a Samsung ML-2571N > network-attached PostScript printer in FreeBSD 6.1? I'm hoping for > something less generic than what I've found in the handbook. Less generic? I think the Handbook printing section is complicated by too much detail, or maybe too much of the wrong kind. Anyway, it's usually three steps: Set up DNS for the printer: # for example, in /etc/hosts... 192.168.1.250 netlaser Create print queue dir: mkdir -p /var/spool/lpd/netlaser chmod 770 /var/spool/lpd/netlaser Make /etc/printcap entry with rm= and rp= : netlaser:\ :lp=:\ :sh:\ :mx#0:\ :rm=netlaser:\ :rp=raw:\ :sd=/var/spool/lpd/netlaser:\ :lf=/var/log/lpd-errs: Print to it with lpr -Pnetlaser file-to-print.ps For extra points, add another printcap entry for lp: that will print plain text. /usr/ports/print/enscript* is nice for that, or lots of people use /usr/ports/print/apsfilter so they can send about anything to the printer and let it do the conversion. -Warren Block * Rapid City, South Dakota USA