Skip to contentSkip to conversation

Printing from dosemu

DISCUSSION Mark Knecht 2 participants 3 messages Aug 19, 2004 – Aug 26, 2004 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,
I hope I'm in the right place to try a few questions. I'm running a
Gentoo box with dosemu installed. dosemu itself seems fine for running the old text-based program I need to run, but I'm perplexed at how to get dosemu to print to my Linux printer.

1) In /etc/dosemu.conf I've enabled the line:

$_printer_command = "lpr"

2) From Linux I can print (through CUPS) to the network printer:

Gentoo2 root # lpr /etc/dosemu.conf
Gentoo2 root # lpq
HP is ready and printing

Rank    Owner   Job     File(s)                         Total Size
active  root    221     dosemu.conf                     16384 bytes

Gentoo2 root # lpq
HP is ready
no entries
Gentoo2 root #

3) From within dosemu I cannot seem to find the right command to get to lpr:

C:\>copy autoexec.bat prn:
autoexec.bat => prn

C:\>lpr: unable to print file: client-error-not-found

C:\>copy autoexec.bat lpr:
Invalid parameter. - 'lpr:'

I've seen others that had this error on the web but I cannot find an answer to any of their queries. Hopefully I will do better here.

thanks in advance,
Mark

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 6 lines · Kevin Noseworthy - Specialty Software

In dosemu.conf set
$_printer = "lp1 lp2 ..."
where lp1, etc. are the names of your Linux printers
$_printer _command = "lpr" As per the notes with CUPS you may have to use "lpr -l"
you may also wish to adjust the $_printer_timeout = (5)

Quoted 6 lines

From within DOS the first printer port is either prn: or lpt1:, the
second and third are lpt2: and lpt3:
Issuing a dir>lpt2: should produce a print job on the Linux printer lp2.

Hope this solves your problem!

Kevin and Claudia,

Thanks for your responses.

I've tried setting things up as suggested above, but it's not
working for me yet.

1) Contents of my modified /etc/dosemu.conf

$_printer = "lp1"

(also tried lpt1)

$_printer_command = "lpr -l"

(also tried lpr and just lp)

$_printer_timeout = (5)

2) From within Linux (as root) I can print as such:

Gentoo2 etc # lp dosemu.conf
request id is HP-224 (1 file(s))

Gentoo2 etc # lpr dosemu.conf

Both methods produce identical GOOD output.

Gentoo2 etc # lpr -l dosemu.conf

produces BAD output.

3) Most attempts in dosemu however produce no response and no printed file, or the following error message:

C:\>dir>lpt1:

C:\>lpr: unable to print file: client-error-not-found

I've tried a bunch of modifications to the suggested 3 lines in /etc/dosemu.conf but so far no lock. Can you see what I'm doing wrong?

thanks,
Mark

#3 lore raw

Mark,

The message you are receiving (lpr: unable to print file:
client-error-not-found) is a cups message, not dosemu.

Probably it is not a dosemu problem, but cups, configuration. Look the configuration files: /etc/cups/mime.types and uncomment following line:

application/octet-stream

Also in /etc/cups/mime.convs, uncomment the line

application/octet-stream application/vnd.cups-raw 0

I had a similar problem here and uncommenting these lines worked fine for me. I did not have to change the $_printer_command option.

Hope this can help you.

[]s
Anderson Pereira Ataides

Em Qua 25 Ago 2004 17:20, você escreveu:

Quoted 56 lines
Quoted 7 lines · Kevin Noseworthy - Specialty Software

In dosemu.conf set
$_printer = "lp1 lp2 ..."
where lp1, etc. are the names of your Linux printers
$_printer _command = "lpr" As per the notes with CUPS you
may have to use "lpr -l"
you may also wish to adjust the $_printer_timeout = (5)

Quoted 5 lines

From within DOS the first printer port is either prn: or lpt1:, the
second and third are lpt2: and lpt3:
Issuing a dir>lpt2: should produce a print job on the Linux printer lp2.>

Hope this solves your problem!

Kevin and Claudia,

Thanks for your responses.

I've tried setting things up as suggested above, but it's not
working for me yet.

1) Contents of my modified /etc/dosemu.conf

$_printer = "lp1"

(also tried lpt1)

$_printer_command = "lpr -l"

(also tried lpr and just lp)

$_printer_timeout = (5)

2) From within Linux (as root) I can print as such:

Gentoo2 etc # lp dosemu.conf
request id is HP-224 (1 file(s))

Gentoo2 etc # lpr dosemu.conf

Both methods produce identical GOOD output.

Gentoo2 etc # lpr -l dosemu.conf

produces BAD output.

3) Most attempts in dosemu however produce no response and no printed file, or the following error message:

C:\>dir>lpt1:

C:\>lpr: unable to print file: client-error-not-found

I've tried a bunch of modifications to the suggested 3 lines in /etc/dosemu.conf but so far no lock. Can you see what I'm doing wrong?

Quoted 6 lines

thanks,
Mark
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html