* Printing from dosemu
@ 2004-08-19 21:49 Mark Knecht
[not found] ` <412605C0.70404@nf.sympatico.ca>
0 siblings, 1 reply; 3+ messages in thread
From: Mark Knecht @ 2004-08-19 21:49 UTC (permalink / raw)
To: linux-msdos
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
^ permalink raw reply [flat|nested] 3+ messages in thread[parent not found: <412605C0.70404@nf.sympatico.ca>]
* Re: Printing from dosemu [not found] ` <412605C0.70404@nf.sympatico.ca> @ 2004-08-25 20:20 ` Mark Knecht 2004-08-26 12:28 ` Anderson Pereira Ataides 0 siblings, 1 reply; 3+ messages in thread From: Mark Knecht @ 2004-08-25 20:20 UTC (permalink / raw) To: linux-msdos Kevin Noseworthy - Specialty Software wrote: > 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) > > 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Printing from dosemu 2004-08-25 20:20 ` Mark Knecht @ 2004-08-26 12:28 ` Anderson Pereira Ataides 0 siblings, 0 replies; 3+ messages in thread From: Anderson Pereira Ataides @ 2004-08-26 12:28 UTC (permalink / raw) To: linux-msdos 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: > Kevin Noseworthy - Specialty Software wrote: > > 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) > > > > 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 > - > To unsubscribe from this list: send the line "unsubscribe linux-msdos" in > the body of a message to majordomo@vger.kernel.org > 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-08-26 12:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-19 21:49 Printing from dosemu Mark Knecht
[not found] ` <412605C0.70404@nf.sympatico.ca>
2004-08-25 20:20 ` Mark Knecht
2004-08-26 12:28 ` Anderson Pereira Ataides
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox