|
Home > Archive > Unix administration > January 2004 > /etc/printcap what is the :rp= field used for ?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
/etc/printcap what is the :rp= field used for ?
|
|
| nhbfluci@rrzn-user.uni-hannover.de 2004-01-23, 5:07 pm |
| Hi,
I would like to use a printer under linux.
I know only the ip address of the printer,
but i have the impression that I need
an additional information,
something like printer queue name , that
should appear in the
:rp=
of the printcap file.
May I use the printer without knowing this information ?
If not, why is the ip address not enough ?
Thanks
Luciano
| |
| nhbfluci@rrzn-user.uni-hannover.de 2004-01-23, 5:07 pm |
| Hi,
life is not so easy :-(,
in the sense that I don't have (easy)
access to the printer's manual and I work in a (partial) windows
environment.
So the question now is:
How do I figure out a correct setup for the printcap file,
:rp=
and so on, given that :
1) the printer is shared by some windows machine which have
the official drivers, and as a Linux user I am "on my own"
2) the manuals are somewhere else
Thanks
Luciano
p.s.
To be honest, as a Linux user I have lots
of support from the newsgroup, so I am not completely
"on my own"
On Fri, 31 Oct 2003, Chuck Dillon wrote:
quote:
> nhbfluci@rrzn-user.uni-hannover.de wrote:
>
> No. The lp system expects an lp system on the other end. So it needs
> to know the host (ip address) and the printcap entry to spool to.
>
> Look at the printer's manual for tcp/ip or lp support. Printers
> pretend they have a printcap and document what functionality each entry
> corresponds to. For example, HP printers typically (or at least they
> used to) have a "raw" entry and a "ps" entry. Raw meaning PCL and PS
> meaning they expect PostScript.
>
> -- ced
>
>
> --
> Chuck Dillon
> Senior Software Engineer
> NimbleGen Systems Inc.
>
>
| |
| Chuck Dillon 2004-01-23, 5:07 pm |
| nhbfluci@rrzn-user.uni-hannover.de wrote:
quote:
> Hi,
>
>
> life is not so easy :-(,
> in the sense that I don't have (easy)
> access to the printer's manual and I work in a (partial) windows
> environment.
You can install LPD (TCP/IP Print Services) support on a Winders
machine and add a printer device that can receive lp/lpr requests from
you Linux box and direct them to a Winders printer device.
Search for "lpd" in MSDN.
For follow-ups on how to configure lpd under Winders post to a Winders
centric group.
-- ced
quote:
>
> So the question now is:
>
> How do I figure out a correct setup for the printcap file,
> :rp=
> and so on, given that :
> 1) the printer is shared by some windows machine which have
> the official drivers, and as a Linux user I am "on my own"
> 2) the manuals are somewhere else
>
>
>
> Thanks
> Luciano
>
> p.s.
> To be honest, as a Linux user I have lots
> of support from the newsgroup, so I am not completely
> "on my own"
>
> On Fri, 31 Oct 2003, Chuck Dillon wrote:
>
>
>
>
--
Chuck Dillon
Senior Software Engineer
NimbleGen Systems Inc.
| |
| Hans-Werner Hilse 2004-01-23, 5:07 pm |
| Hello,
On 31.10.03 at 16:12 (+0100) nhbfluci@rrzn-user.uni-hannover.de wrote:
quote:
> in the sense that I don't have (easy)
> access to the printer's manual and I work in a (partial) windows
> environment.
You can see the (physical) printer, i guess? then it wont be that hard to
somewhere find its producer and name, eh? And if you enter this in google,
i would suggest adding "manual" or even "manual download", you're gonna
see what?
You didnt post its name here, either. Maybe you can get a little more
response by doing so.
If you can talk to the printer using LP, it will generally allow to share
with windows users. The solution described in another answer can be a
fallback, if you have a running windows machine that already has access to
the printer and you're able to install a LPD server on it. Doing this is
mandatory, if your printer isn't a network printer but just a shared
printer installed on a single windows server or even windows client.
But generally you don't need to install this LPD server for the task
you've described when it is a network printer. It manages its sharing on
its own then.
You could also try to use "raw", "raw0", "lp0", "lp", "queue", "queue0" in
no particular order. Just guesses. My printer listens to "lp0" for
postscript A4 upright, for example.
Maybe the printer in question even has an informational web frontend
accessible to you?
Hans-Werner
| |
| Warren Block 2004-01-23, 5:07 pm |
| nhbfluci@rrzn-user.uni-hannover.de <nhbfluci@rrzn-user.uni-hannover.de> wrote:
quote:
> So the question now is:
>
> How do I figure out a correct setup for the printcap file,
>:rp=
> and so on, given that :
> 1) the printer is shared by some windows machine which have
> the official drivers, and as a Linux user I am "on my own"
> 2) the manuals are somewhere else
(Please trim your responses and don't top post.)
1. You may not be able to talk to this printer with lpr/lpd at all;
although W2K/XP can run lpd servers, they usually don't. Check out
samba and smbclient.
2. If the printer is directly attached to the network and not through
some horrible Windows sharing, and it's got an HP JetDirect print
server, use rp=raw. Other brands of print servers sometimes ignore the
queue name entirely, or ignore it if it isn't one they are expecting.
You may also be able to telnet to the printer's IP address and look for
queue names in the print server itself.
--
Warren Block * Rapid City, South Dakota * USA
| |
| Hubert Feyrer 2004-01-23, 5:07 pm |
| nhbfluci@rrzn-user.uni-hannover.de wrote:quote:
> I know only the ip address of the printer,
> but i have the impression that I need
> an additional information,
> something like printer queue name , that
> should appear in the
> :rp=
> of the printcap file.
>
> May I use the printer without knowing this information ?
> If not, why is the ip address not enough ?
If that's some ethernet-equipped HP or so, try
:lp=9100@host:
instead. Use either the hostname or IP address for "host".
Known to work in NetBSD, dunno what software you have on Linux.
- Hubert
--
___ _ _ _ _ * Harddisk Image Cloning *
/ __| | || | | | www.feyrer.de/g4u/
| (_ |_ _| |_| |
\___| |_| \___/ v1.12 out now, including partition support!
| |
| phn@icke-reklam.ipsec.nu 2004-01-23, 5:07 pm |
| nhbfluci@rrzn-user.uni-hannover.de wrote:quote:
> Hi,
quote:
> I would like to use a printer under linux.
> I know only the ip address of the printer,
> but i have the impression that I need
> an additional information,
> something like printer queue name , that
> should appear in the
> :rp=
> of the printcap file.
quote:
> May I use the printer without knowing this information ?
> If not, why is the ip address not enough ?
quote:
> Thanks
> Luciano
'rp=' is the name of the printer(queue) on the remote system.
Some lpr-capable ystsems ( lasterprinters) will accept any name here,
if they dont you will have to guess.
Start with "print", "lp", "lpr"
--
Peter Håkanson
IPSec Sverige ( At Gothenburg Riverside )
Sorry about my e-mail address, but i'm trying to keep spam out,
remove "icke-reklam" if you feel for mailing me. Thanx.
| |
| Villy Kruse 2004-01-23, 5:07 pm |
| On 1 Nov 2003 18:43:26 GMT,
Hubert Feyrer <hubertf@gmx.de> wrote:
quote:
>nhbfluci@rrzn-user.uni-hannover.de wrote:
>
>If that's some ethernet-equipped HP or so, try
>
> :lp=9100@host:
>
>instead. Use either the hostname or IP address for "host".
>Known to work in NetBSD, dunno what software you have on Linux.
>
Some of them have LPRng which uses a different syntax.
:lp=host%9100:
LPRng interprets :lp=abc@def: as being the same as :rp=abc:rm=def
Older linux destributions (RH6 and earlier) have a broken version of
the BSD lpr program without support for lp=port@host syntax.
Villy
|
|
|
|
|