Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Oct 2008 14:20:00 -0700
From:      Jeremy Chadwick <koitsu@FreeBSD.org>
To:        ajphanks@comcast.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Printing to a Lanier LD160c does not work
Message-ID:  <20081016212000.GA3960@icarus.home.lan>
In-Reply-To: <101620082036.391.48F7A5DA0009DFCD0000018722120207849C05020E089F060E@comcast.net>
References:  <101620082036.391.48F7A5DA0009DFCD0000018722120207849C05020E089F060E@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 16, 2008 at 08:36:42PM +0000, ajphanks@comcast.net wrote:
> I am trying to setup a Lanier LD160c (admincolor) that has a network interface.  I am new to FreeBSD and tried to follow the handbook.  I am able to print to a HP 5SI (corp-admin) with no problems.  There are no errors in the lpd-errs and the file is drained from the queue, but the printer does not print anything.  And this is a working printer to Windows. 
> lpr -P admincolor testfile.txt 
> 
> printcap: 
> corp-admin|hp|laserjet|Hewlett Packard LaserJet 5Si:\ 
>         :lp=\ 
>         :sd=/var/spool/output/corp-admin:rm=corp-admin:\ 
>         :lf=/var/log/lpd-errs:\ 
>         :if=/usr/local/libexec/crlfilter:sh:tr=\f:mx#0: 
> 
> admincolor|hp|laserjet|LANIER LD160c RPCS:\ 
>         :lp=\ 
>         :sd=/var/spool/output/admincolor:rm=admincolor:\ 
>         :lf=/var/log/lpd-errs: 

If this printer is hooked up on the network (e.g. via Ethernet), I
believe you need to set the lp variable to the hostname or IP address of
the printer, e.g.:

admincolor|hp|laserjet|LANIER LD160c RPCS:\ 
	:lp=192.168.1.100\
	:sd=/var/spool/output/admincolor:rm=admincolor:\
	:lf=/var/log/lpd-errs:

I think this also makes the assumption that the printer knows how to
speak the LPR protocol.  If it listens on a custom port, you can use
portnumber@ipaddress instead.  See the printcap(5) man page, I guess.

P.S. -- I've never done this, it's just something I remember from
old days.  :-)

-- 
| Jeremy Chadwick                                jdc at parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081016212000.GA3960>