Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Nov 2000 11:18:36 +0400
From:      "Rino Mardo" <helixfish@gmx.net>
To:        "Tim McMillen" <timcm@umich.edu>
Cc:        <freebsd-questions@freebsd.org>
Subject:   Re: Help with printcap file
Message-ID:  <005c01c043d4$2989ac30$0204010a@atg.altayer.com>
References:  <Pine.SOL.4.10.10011010130310.24821-100000@gorf.gpcc.itd.umich.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
1.  static ip - you would have to telnet to your printer and you need it's
manual.  look for how to give it a static ip address.  make sure that your
masks are all the same.  for example, if you're using 192.168.1.100 now the
masks is 255.255.255.0 for your printer and your fbsd box.

2.  hosts file - use an editor and add the name in /etc/hosts with this
format:

xx.xx.xx.xx    NPI77C117

with xx's being replaced with the static ip address of your printer (i.e.
192.168.1.100)

3.  queue name - you have to consult your printer's manual for the queue
name.  once found, you use that in your /etc/printcap file where the
variable rp= is.




-> who watches the watchmen?

Key fingerprint - E619 726E 3815 7A48 EAC7  E49F DF93 4E33 B069 0883



----- Original Message -----
From: "Tim McMillen" <timcm@umich.edu>
To: "Rino Mardo" <helixfish@gmx.net>
Cc: <freebsd-questions@freebsd.org>
Sent: Wednesday, November 01, 2000 10:37 AM
Subject: Re: Help with printcap file


>
>
> On Wed, 1 Nov 2000, Rino Mardo wrote:
>
> > It would be wise to have the printer on static ip.  Why?  Because either
you
>
> I know I want static but I don't know how.
>
> > **always** enter the printer's ipaddress in the /etc/hosts file (if you
want
> > to use the name like NPI77C117) or /etc/printcap (by ip address).
> >
> > So, is NPI77C117 in your hosts file?
>
> Huh?  I didn't see anything about this in the handbook.  What
> syntax do I use to add it?
>
> > What is the queue that your printer is using?  You need that too.
>
> queue? I don't know, how would I find out?  What would I do with
> it once I did?
> Thanks for the quick reply.
> Tim
>
> >
> > -> who watches the watchmen?
> >
> > Key fingerprint - E619 726E 3815 7A48 EAC7  E49F DF93 4E33 B069 0883
> > ----- Original Message -----
> > From: "Tim McMillen" <timcm@umich.edu>
> > To: <freebsd-questions@freebsd.org>
> > Sent: Wednesday, November 01, 2000 10:12 AM
> > Subject: Help with printcap file
> >
> >
> > >
> > > Hello,
> > >
> > > I'm trying to set up printing from my FreeBSD 4.1.1 Release box.
> > > I'm getting very confused with the instructions in the handbook
(Section
> > > 9.4.3.1)  Here's my setup:  I have two Macintosh computers and my
FreeBSD
> > > box and an HP Laserjet 2100M (with the jetdirect NIC which does
> > > understand lpd) all connected by a hub to a lynksys router.  I have a
> > > static IP and all the computers and the printer are configured using
DHCP
> > > (only because I don't understand IP addressing enough to do other
wise.)
> > > Currently the local address of the printer is 192.168.1.100.  By
> > > telneting to it I find:
> > > HP JetDirect
> > > Please type "?" for HELP, or "/" for current settings
> > > > /
> > >    ===JetDirect Telnet Configuration===
> > >         Firmware Rev.   : G.07.20
> > >         MAC Address     : 00:10:83:77:c1:17
> > >         Config By       : DHCP
> > >
> > >         IP Address      : 192.168.1.100
> > >         Subnet Mask     : 255.255.255.0
> > >         Default Gateway : 192.168.1.1
> > >         Syslog Server   : Not Specified
> > >         Idle Timeout    : 90 Seconds
> > >         Set Cmnty Name  : Not Specified
> > >         Host Name       : NPI77C117
> > >
> > > And here's what I tried in the printcap file:
> > > hplj2100:|text|hewlett packard laserjet 2100m:\
> > >
:lp=:rm=NPI77C117:rp=hplj2100:sd=/var/spool/output/lpd/hplj2100:
> > >
> > > I know that's not right since:
> > > %lp -d hplj2100 ./foo
> > > (no output from printer, but I do see lights on the hub blink)
> > >
> > > but is it in the spool?    Files do appear in the spool directory
> > > %lpq
> > > lpq: printer not found
> > > %lpq hplj2100
> > > lpq: printer not found
> > > %lpq text
> > > lpq: printer not found
> > >
> > > Any help would be greatly appreciated.  I tried reading the termcap
and
> > > printcap man pages but they were confusing too.  I bet this is really
> > > simple once you understand it but I'm pretty confused by the
instructions
> > > because they mostly seem to apply to a printer attached to host
computer.
> > > Thanks in advance,
> > > Tim
> > >
> > >
> > >
> > > 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
>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?005c01c043d4$2989ac30$0204010a>