[Ilugc] Printing in DOSEMU via telnet

  • From: rsubr@xxxxxxxxxxxxxxxxxxxxxxxx (Raja Subramanian)
  • Date: Wed, 11 Dec 2002 22:20:35 +1100

Hi,

krishna kumar wrote:

We`re running Dosemu 1.0.1-2, and I`m having trouble with printing
with a specific tailor-made application that we have here.  I`m
trying to get it so that I can have a remote office connect to the
system and print to their local printer.  Printing from that
application doesn`t work unless a printer is directly attached to
the computer. Is there any way around this, or any options or
something that I could use..  I`ve been looking for information,
and I hope that someone can help me here.  Thanks, kk.

The dosemu-HOWTO (included in the dosemu package describes) how to do
this.

Instead of redirecting LPT? to a device file like /dev/lp0, you can
redirect LPT? to an external program such as lpr/lp. The unix printing
system can then be setup for remote printing.

First, ensure that you can print to the remote printer using the unix
printing tools.

Once this is done, you need to change the relevent sections of your
dosemu.conf so that it looks something like this -

$_printer = "lp"    # list of (/etc/printcap) printer names to appear as
                    # LPT1, LPT2, LPT3 (not all are needed, empty for none)
$_printer_timeout = (20)# idle time in seconds before spooling out

$_ports = ""        # list of portnumbers such as "0x1ce 0x1cf 0x238"
                    # or "0x1ce range 0x280,0x29f 310"
                    # or "range 0x1a0,(0x1a0+15)"

In this example, the printer named "lp" is mapped to LPT1. You can also
assign different printers to the LPT1, LPT2 and LPT3 ports at the same
time.

- Raja

PS: Please post to this list in plain text (don't use html).

Other related posts: