network printer

Hello,
Is there a way to configure a printer wich is directly connected to the
network (without beeing connected to another qnx box) ?

Thanks for your answers.

Hi Sebastien,

Here is a technote on how to get this going from the command line
if you are not using Photon. If you are using Photon, there are
docs here that will explain how to setup the printer in Photon:

http://www.qnx.com/developer/docs/qnx_4.25_docs/photon114/run_inst/printing.html



Technote:

TCP/IP Stand alone printer


Hp Laser Jet 4

1/ Install the TCP/IP runtime for QNX.

2/ Install the printer network card according to the HP docs.

3/ Configure the printer IP by following the instructions provided with
the printer.

4/ Once TCP/IP has been installed/configured (TCP/IP User’s Guide) and
the printer has been configured with an IP, you can verify that you
have a connection between the computer and printer by either pinging
the printer or telneting over to the printer.

ex. ping 11.0.0.11 or telnet 11.0.0.11

5/ You will now add the printer IP to the hosts file, /etc/hosts

ex. 11.0.0.11 PRINTER

6/ Now you will have to create a printcap file, /etc/printcap. You
can use the following as a template.

netprint:
:rm=PRINTER:lp=/ps:mx#0:


Where:
netprint - is the name of the printer used by lpr
PRINTER - is the IP address of the printer.
/ps - is the queue to be printed to.

7/ Now run the lpd daemon

ex. lpd &

For more info on lpd consult your TCP/IP User’s Guide.

8/ If lpd fails, make sure you have a /usr/spool/output/lpd directory.

9/ You should now be able to print with the following command line.

ex. lpr -P netprint blah

For more info on lpr consult your TCP/IP User’s Guide.

10/ There may be some formatting issues to address. For a HP Laser
Jet 4 you can use “textto -c blah” to correct formatting before
printing.

For more info on textto consult your QNX OS Utilities - N to Z


Regards,

Erick


Sebastien Cantos <scantos@technodiva.com> wrote:

Hello,
Is there a way to configure a printer wich is directly connected to the
network (without beeing connected to another qnx box) ?

Thanks for your answers.

Ok thanks :slight_smile:

“Hardware Support Account” <hw@qnx.com> a écrit dans le message de news:
b1m9ro$7ma$1@nntp.qnx.com

Hi Sebastien,

Here is a technote on how to get this going from the command line
if you are not using Photon. If you are using Photon, there are
docs here that will explain how to setup the printer in Photon:


http://www.qnx.com/developer/docs/qnx_4.25_docs/photon114/run_inst/printing> .

html

Technote:

TCP/IP Stand alone printer


Hp Laser Jet 4

1/ Install the TCP/IP runtime for QNX.

2/ Install the printer network card according to the HP docs.

3/ Configure the printer IP by following the instructions provided
with
the printer.

4/ Once TCP/IP has been installed/configured (TCP/IP User’s Guide)
and
the printer has been configured with an IP, you can verify that
you
have a connection between the computer and printer by either
pinging
the printer or telneting over to the printer.

ex. ping 11.0.0.11 or telnet 11.0.0.11

5/ You will now add the printer IP to the hosts file, /etc/hosts

ex. 11.0.0.11 PRINTER

6/ Now you will have to create a printcap file, /etc/printcap. You
can use the following as a template.

netprint:
:rm=PRINTER:lp=/ps:mx#0:


Where:
netprint - is the name of the printer used by lpr
PRINTER - is the IP address of the printer.
/ps - is the queue to be printed to.

7/ Now run the lpd daemon

ex. lpd &

For more info on lpd consult your TCP/IP User’s Guide.

8/ If lpd fails, make sure you have a /usr/spool/output/lpd
directory.

9/ You should now be able to print with the following command line.

ex. lpr -P netprint blah

For more info on lpr consult your TCP/IP User’s Guide.

10/ There may be some formatting issues to address. For a HP Laser
Jet 4 you can use “textto -c blah” to correct formatting before
printing.

For more info on textto consult your QNX OS Utilities - N to Z


Regards,

Erick


Sebastien Cantos <> scantos@technodiva.com> > wrote:
Hello,
Is there a way to configure a printer wich is directly connected to the
network (without beeing connected to another qnx box) ?

Thanks for your answers.