S.u.S.E. Support Data Base

Title: Dosemu: Printing on lpr

---

Mainpage ---- Searchform ---- History ---- Versions ---- Categories ---- Contents ---- Deutsch ---

Dosemu: Printing on lpr

Applicable to
S.u.S.E. version: 4.4
Dosemu version: 0.64.1

Question:

How can one use the Linux printer system in dosemu?

Answer:

Some configurations are required in /etc/dosemu.conf:
#******************* PRINTERS ********************************************
#
# QuickStart:
#    Printer is emulated by piping printer data to a file or via a unix
#    command such as "lpr".  Don't bother fiddling with this configuration
#    until you've got DOSEMU up and running already.
#
#    NOTE: Printers are assigned to LPT1:, LPT2:, and LPT3: on a one for
#    one basis with each line below.  The first printer line is assigned
#    to LPT1:, second to LPT2:, and third to LPT3:.  If you do not specify
#    a base port, the emulator will setup the bios to report 0x378, 0x278,
#    and 0x3bc for LPT1:, LPT2:, and LPT3: respectively.
#
#    To use standard unix lpr command for printing use this line:
#
#printer { options "%s"  command "lpr"  timeout 20 }
Lets assume you have installed three printers under Linux which you have entered in /etc/princap: lp, raw and ascii (as installed by the apsfilter) You should have the following lines in dosemu.conf:
printer { options "%s"  command "lpr -Plp "  timeout 20 }
printer { options "%s"  command "lpr -Praw "  timeout 20 }
printer { options "%s"  command "lpr -Pascii "  timeout 20 }
then these printers are known under DOS: