Network printer setup for Lexmark

Network printer setup for Lexmark

Post by C. Everett Southwic » Mon, 03 Jan 2000 04:00:00



I've read several messages which refer to using FTP within the printer
interface script to make these printers work. I can ftp directly to the
printer (setup in /etc/hosts file) and send a file, and the printer
prints it. I need to know how I go about making the necessary changes to
my interface script to make this work. I've tried a couple things but
with no success.

I'm running OpenServer 5.0.5
Lexmark Optra S 1625 N (100B/t ethernet)

Thanks

Everett Southwick

 
 
 

Network printer setup for Lexmark

Post by Jeff Lieberman » Mon, 03 Jan 2000 04:00:00


On Sun, 02 Jan 2000 10:45:20 -0500, "C. Everett Southwick"


>I've read several messages which refer to using FTP within the printer
>interface script to make these printers work. I can ftp directly to the
>printer (setup in /etc/hosts file) and send a file, and the printer
>prints it. I need to know how I go about making the necessary changes to
>my interface script to make this work. I've tried a couple things but
>with no success.

>I'm running OpenServer 5.0.5
>Lexmark Optra S 1625 N (100B/t ethernet)

Contratulations.  You've just volunteering to do some testing for me.

1.  Use  "scoadmin printer" to install an ordinary printer with an output
device of /dev/null.

2.  Add your printer to /etc/hosts

3.  Add a file called  "/etc/printers" that looks like this:

--
Jeff Liebermann  150 Felker St #D  Santa Cruz CA 95060
(831)421-6491 pgr (831)426-1240 fax (831)336-2558 home
http://www.cruzio.com/~jeffl   WB6SSY


 
 
 

Network printer setup for Lexmark

Post by Jeff Lieberman » Mon, 03 Jan 2000 04:00:00


On Sun, 02 Jan 2000 10:45:20 -0500, "C. Everett Southwick"


>I've read several messages which refer to using FTP within the printer
>interface script to make these printers work. I can ftp directly to the
>printer (setup in /etc/hosts file) and send a file, and the printer
>prints it. I need to know how I go about making the necessary changes to
>my interface script to make this work. I've tried a couple things but
>with no success.

>I'm running OpenServer 5.0.5
>Lexmark Optra S 1625 N (100B/t ethernet)

Contratulations.  You've just volunteering to do some testing for me.

1.  Use  "scoadmin printer" to install an ordinary printer with an output
device of /dev/null.  In the following example, the printer name is
"milan22".

2.  Add your printer host_name to /etc/hosts
        milan22 192.168.0.22

3.  Add a file called  "/etc/printers" that looks like this:
        milan22: milan22: 2000
in for form:
        printer_name: host_name: port_number
The ":" are necessary.
Try port 515 for your Lexmark.  Check the docs and see if it support any
other port numbers.  HP is 9100 -> 9102.  Milan is 2000 -> 2002.

4.  Overscribble the spooler script in:
        /usr/spool/lp/admins/lp/interfaces/milan
with the following script.  The \033E is HP PCL for reset and may need to
be changed for Lexmark.  If a reset doesn't work, try just a form feed.

============= cut here =============    
PATH="/bin:/usr/bin:/usr/lib:/u/bin"
export PATH

printer=`basename $0`
request=$1
name=$2
title=$3
copies=$4
options=$5
shift; shift; shift; shift; shift

# Look for HOST and Port address
PRTSETUP=`grep "^$printer:" /etc/printers`
if [ $? = 0 ]
then
PRTHOST=`echo $PRTSETUP|awk -F: '{ print $2 }'`
PRTPORT=`echo $PRTSETUP|awk -F: '{ print $3 }'`
else
 exit 1
fi

(
files="$*"
i=1
copies=1
while [ $i -le $copies ]
do
        for file in $files
        do
           cat $file | /usr/lib/lponlcr
           echo "\033E\c"  # may need change for Lexmark
        done
        i=`expr $i + 1`
done
)|netcat -h $PRTHOST -p $PRTPORT
============= cut here =============    

5.  Download the binary or compile the source to netcat:
        http://www.cruzio.com/~jeffl/sco/lp/
and install the executeable somewhere on the $PATH.

6.  Try printing normally.  The above mess is what I use.  My thanks to
Gary Quiring for working out the details and to Kevin Smith for the netcat
program.

7.  You can probably replace the netcat in the last line of the script with
ftp and tweak the name and port parameter passing to work with ftp instead
of netcat.  I haven't tried it (yet).

--
Jeff Liebermann  150 Felker St #D  Santa Cruz CA 95060
(831)421-6491 pgr (831)426-1240 fax (831)336-2558 home
http://www.cruzio.com/~jeffl   WB6SSY

 
 
 

Network printer setup for Lexmark

Post by C. Everett Southwic » Tue, 04 Jan 2000 04:00:00


I follow, but the netcat binary is core dumping on my machine. I am using
Netscape and I think it is getting mangled in the transfer, however file still
reports it as an executable binary. What should sum produce to verify it is OK?
Do you have an FTP connection/path so I may get it that way?

> On Sun, 02 Jan 2000 10:45:20 -0500, "C. Everett Southwick"

> >I've read several messages which refer to using FTP within the printer
> >interface script to make these printers work. I can ftp directly to the
> >printer (setup in /etc/hosts file) and send a file, and the printer
> >prints it. I need to know how I go about making the necessary changes to
> >my interface script to make this work. I've tried a couple things but
> >with no success.

> >I'm running OpenServer 5.0.5
> >Lexmark Optra S 1625 N (100B/t ethernet)

> Contratulations.  You've just volunteering to do some testing for me.

> 1.  Use  "scoadmin printer" to install an ordinary printer with an output
> device of /dev/null.  In the following example, the printer name is
> "milan22".

> 2.  Add your printer host_name to /etc/hosts
>         milan22 192.168.0.22

> 3.  Add a file called  "/etc/printers" that looks like this:
>         milan22: milan22: 2000
> in for form:
>         printer_name: host_name: port_number
> The ":" are necessary.
> Try port 515 for your Lexmark.  Check the docs and see if it support any
> other port numbers.  HP is 9100 -> 9102.  Milan is 2000 -> 2002.

> 4.  Overscribble the spooler script in:
>         /usr/spool/lp/admins/lp/interfaces/milan
> with the following script.  The \033E is HP PCL for reset and may need to
> be changed for Lexmark.  If a reset doesn't work, try just a form feed.

> ============= cut here =============
> PATH="/bin:/usr/bin:/usr/lib:/u/bin"
> export PATH

> printer=`basename $0`
> request=$1
> name=$2
> title=$3
> copies=$4
> options=$5
> shift; shift; shift; shift; shift

> # Look for HOST and Port address
> PRTSETUP=`grep "^$printer:" /etc/printers`
> if [ $? = 0 ]
> then
> PRTHOST=`echo $PRTSETUP|awk -F: '{ print $2 }'`
> PRTPORT=`echo $PRTSETUP|awk -F: '{ print $3 }'`
> else
>  exit 1
> fi

> (
> files="$*"
> i=1
> copies=1
> while [ $i -le $copies ]
> do
>         for file in $files
>         do
>            cat $file | /usr/lib/lponlcr
>            echo "\033E\c"  # may need change for Lexmark
>         done
>         i=`expr $i + 1`
> done
> )|netcat -h $PRTHOST -p $PRTPORT
> ============= cut here =============

> 5.  Download the binary or compile the source to netcat:
>         http://www.cruzio.com/~jeffl/sco/lp/
> and install the executeable somewhere on the $PATH.

> 6.  Try printing normally.  The above mess is what I use.  My thanks to
> Gary Quiring for working out the details and to Kevin Smith for the netcat
> program.

> 7.  You can probably replace the netcat in the last line of the script with
> ftp and tweak the name and port parameter passing to work with ftp instead
> of netcat.  I haven't tried it (yet).

> --
> Jeff Liebermann  150 Felker St #D  Santa Cruz CA 95060
> (831)421-6491 pgr (831)426-1240 fax (831)336-2558 home
> http://www.cruzio.com/~jeffl   WB6SSY


 
 
 

Network printer setup for Lexmark

Post by Jeff Lieberman » Wed, 05 Jan 2000 04:00:00


On Mon, 03 Jan 2000 15:08:46 -0500, "C. Everett Southwick"


>I follow, but the netcat binary is core dumping on my machine. I am using
>Netscape and I think it is getting mangled in the transfer, however file still
>reports it as an executable binary. What should sum produce to verify it is OK?
>Do you have an FTP connection/path so I may get it that way?

Nope.  If you're using Netscrape, step on the shift key when clicking on
the file to download.  It will ask you where to dump it.  Using HTTP to
transfer the file guarantees that it's a binary, not ascii transfer.

However, I screwed up.  Both binaries (netcat.coff and netcat.elf) are COFF
binaries.  One is stripped, the other is not.  I just tested both on my
3.2v5.0.5 machine and they both work just fine.  I'll post an ELF binary as
soon I can figure out why my GCC can't find stdio (Duh...).

Also, see:
        http://www.premiervet.com/tom/netcat.html
for some more on netcat printing.

--
Jeff Liebermann  150 Felker St #D  Santa Cruz CA 95060
(831)421-6491 pgr (831)426-1240 fax (831)336-2558 home
http://www.cruzio.com/~jeffl   WB6SSY

 
 
 

1. How to setup a queue for a network Lexmark printer on AIX

Dear all,
    I am quite new to AIX. Could anyone help?
    I just have a network Lexmark Optra S2455 printer which is expected
to handle by a queue on AIX 4.0 machine. I have already installed the
neccessary driver on AIX. Then, I tried to add a queue to print to the
lexmark, but it's doesn't work that easy.  It seems like there are
something else that I have to do. Could you pls suggest me what to do?

--
-------------------------
Chatchawan Dejitthirat

System Analyst

ECE-LRC, UT-Austin
-------------------------

2. struct super_block cleanup - ext3

3. Printer setup (Lexmark 1250S)

4. PPP setup

5. printer setup fuer LEXMARK 7000

6. Linux on Windows CE (Philips Nino)

7. Lexmark WinWriter 150c Printer setup

8. Unreal Tournament Linux Version

9. Lexmark printer setup help

10. lexmark network printer

11. Configuring lexmark network printers on Solaris...

12. Network card and Lexmark 7000 printer

13. Lexmark 410n Networked Laser printer