Cups can also connect networked printers here are some examples from the
help files.



Adding Your First Printer from the Command-Line

 

Run the lpadmin command with the -p option to add a printer to CUPS:

 
/usr/sbin/lpadmin -p printer -E -v device -m ppd ENTER

 

For a HP DeskJet printer connected to the parallel port this would look
like:

 
/usr/sbin/lpadmin -p DeskJet -E -v parallel:/dev/lp1 -m deskjet.ppd
ENTER

 

Similarly, a HP LaserJet printer using a JetDirect network interface at
IP address 11.22.33.44 would be added with the command:

 
/usr/sbin/lpadmin -p LaserJet -E -v socket://11.22.33.44 -m laserjet.ppd
ENTER

 

As you can see, deskjet.ppd and laserjet.ppd are the PPD files for the
HP DeskJet and HP LaserJet drivers included with CUPS. You'll find a
complete list of PPD files and the printers they will work with in
Appendix C, "Printer Drivers".

 

For a dot matrix printer connected to the serial port this would might
look like:

 
/usr/sbin/lpadmin -p DotMatrix -E -m epson9.ppd \
    -v serial:/dev/ttyS0?baud=9600+size=8+parity=none+flow=soft ENTER

 

Here you specify the serial port (e.g. S0,S1, d0, d1), baud rate (e.g.
9600, 19200, 38400, 115200, etc.), number of bits, parity, and flow
control. If you do not need flow control, delete the "+flow=soft"
portion. 


Thank you,
 
Marc Aylesworth
Health Specialist Technician
Oneida Indian Nation
223 Genesee Street
Oneida, New York 13421
(315) 829-8909
 
 
 
This electronic transmission is intended only for the use of the
individual
 or entity to which it is addressed and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law.

If the reader of this message is not the intended recipient, you are
hereby 
notified that any dissemination, distribution, or copying of this
communication
 is strictly prohibited.  You are also requested to please notify the
sender 
immediately by e-mail and delete the original message.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kevin
Toppenberg
Sent: Monday, November 15, 2004 1:38 PM
To: [EMAIL PROTECTED]
Subject: RE: [Hardhats-members] Printers... An overview please.

Marc,
 
Thanks for writing.

I will be trying to print from linux to an hp jetdirect print server.  I
think CUPS serves a printer attached to a local box to others on the
network. 
This is backwards from what I need.

In AIX, I have been able to set up the print que's to connect with
jetdirect servers.  I just need to do the same for linux now.

Thanks
Kevin


--- Marc Aylesworth <[EMAIL PROTECTED]>
wrote:

> what Os are you trying to print from? In Linux there is CUPS that will

> allow you to set up printers to print from your system. In AIX there 
> is SMIT that allows you to setup print queues on the AIX box and send 
> them to a jetdirect connected printer.
>  
> Thank you,
>  
> Marc Aylesworth
> Health Specialist Technician
> Oneida Indian Nation
> 223 Genesee Street
> Oneida, New York 13421
> (315) 829-8909
>  
>  
>  
> This electronic transmission is intended only for the use of the 
> individual  or entity to which it is addressed and may contain 
> information that is privileged, confidential or exempt from disclosure

> under applicable law.
> 
> If the reader of this message is not the intended recipient, you are 
> hereby notified that any dissemination, distribution, or copying of 
> this communication  is strictly prohibited.  You are also requested to

> please notify the sender immediately by e-mail and delete the original

> message.
>  
> 
>   _____
> 
> From: [EMAIL PROTECTED]
>
[mailto:[EMAIL PROTECTED]
> On Behalf Of Kevin
> Toppenberg
> Sent: Monday, November 15, 2004 9:19 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [Hardhats-members] Printers... An overview please.
> 
> 
> Fil,
>  
> Thanks for this feedback.  I think I can do what you are saying.
>  
> Now I have to figure out how to be able to lpr to HPJetDirect print 
> servers.....  Gosh, this is begining to be a bit overwhelming.  I'm 
> sure I can do it, but after travelling 25 hrs straight yesterday to 
> get back from our vacation, I'm a bit off my stride :-)
>  
> Thanks
> Kevin
> 
> "Beza, Fil" <[EMAIL PROTECTED]> wrote:
> 
>       In the DEVICE File, put the code in PRE OPEN EXECUTE to change
the IO 
> variable to the unique name.
> 
>   _____
> 
>       From: [EMAIL PROTECTED]
>
[mailto:[EMAIL PROTECTED]
> On Behalf Of Beza,
> Fil
>       Sent: Saturday, November 13, 2004 8:22 AM
>       To: [EMAIL PROTECTED]
>       Subject: RE: [Hardhats-members] Printers... An overview please.
>       
>       
>       Hmmm...  we don't have that problem in VMS because each file
gets a 
> different version number.
>        
>       Take a look at %ZISUTL.  It has an entry point to generate
unique 
> names
>        
>       UNIQUE(ZISNA) ;Build a unque number to add to a device name
>                ;If passed a name put the number before the last dot.
>                N %,%1
>                S %=$H,%=$H_"-"_$J,%=$$CRC32^XLFCRC(%)
>                I '$L($G(ZISNA)) Q %
>                S %1=$L(ZISNA,"."),%="_"_%
>                S:%1=1 %=ZISNA_% S:%1>1
> %=$P(ZISNA,".",1,%1-1)_%_"."_$P(ZISNA,".",%1)
>                Q %
>       
> 
>   _____
> 
>       From: [EMAIL PROTECTED]
>
[mailto:[EMAIL PROTECTED]
> On Behalf Of Kevin
> Toppenberg
>       Sent: Saturday, November 13, 2004 5:55 AM
>       To: [EMAIL PROTECTED]
>       Subject: RE: [Hardhats-members] Printers... An overview please.
>       
>       
>       Thanks for your feedback Fil.
>        
>       It seems to me that one would need to send the printer file to a
file 
> with $J somehow included in it.  Otherwise with dozens of users on the

> system simultaneously, the slave.dat file would be overwritten 
> erroneously.
>        
>       Thanks
>       Kevin
>       
>       "Beza, Fil" <[EMAIL PROTECTED]> wrote:
> 
>               You can create multiple entries in the device file
pointing to the 
> same
>               physical printer. Point each one to a different terminal
type where 
> each
>               terminal type changes pitch etc depending on the PCL
code you send 
> to
>               printer. Each TERMINAL TYPE entry will have a different
OPEN 
> EXECUTE.
>               Take a look at the P-HP... entries in the TERMINAL TYPE
File. A 
> bunch
>               of them are distributed with the FOIA distribution.
>               
>               
>               Here are three HP OPEN EXECUTES I use
>               
>               10 PITCH
>               OPEN EXECUTE: W
>       
>
$C(27),"E",$C(27),"&l0o0S",$C(27),"&s0C",$C(27),"&k10H",$C(27)
>               ,"&l7.4c2e67F",$C(27),"&a05l95M"
>               
>               16 PITCH
>               OPEN EXECUTE: W
>       
>
$C(27),"E",$C(27),"&l0o0S",$C(27),"&s0C",$C(27),"&k10H",$C(27)
>               ,"&l7.4c2e67F",$C(27),"&a05l132M",$C(27),"(s16h" 
>               
>               DUPLEX (DOUBLE SIDED) PRINT
>               OPEN EXECUTE: W
>       
>
$C(27),"E",$C(27),"&l0o1S",$C(27),"&s0C",$C(27),"&k10H",$C(27)
>               ,"&l7.4c2e67F",$C(27),"&a05l95M"
>               
>               
>               -----Original Message-----
>               From: [EMAIL PROTECTED]
>       
>
[mailto:[EMAIL PROTECTED]
> On
> Behalf Of Beza,
>               Fil
>               Sent: Friday, November 12, 2004 12:36 PM
>               To: [EMAIL PROTECTED]
>               Subject: RE: [Hardhats-members] Printers... An
> overview
> please.
>               
>               What Bhaskar said is how we print via TCPIP in
> Cache/VMS. We actually
>               send the output to a file thus we treat the Device
> as a
> file instead of
>               a printer. Then using the CLOSE EXECUTE field in
> the
> Terminal Type file
>               we send a command to VMS to send the file to the
> printer.
>               
>               
>               Try this - courtesy of Chris Richardson:
>               
>               DEVICE FILE:
> 
=== message truncated ===



                
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Hardhats-members mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hardhats-members






-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Hardhats-members mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to