From: Claudia Neumann <dr.claudia.neumann@gmx.de>
To: DOSemu Mailingliste <linux-msdos@vger.kernel.org>
Cc: Samuel Falvo <falvosa@yahoo.com>
Subject: Re: Printing from dosemu via CUPS
Date: Fri, 15 Aug 2003 14:27:20 +0200 [thread overview]
Message-ID: <200308151427.20126.dr.claudia.neumann@gmx.de> (raw)
In-Reply-To: <20030814000511.53757.qmail@web10708.mail.yahoo.com>
[-- Attachment #1: Type: text/plain, Size: 2243 bytes --]
Hi Samuel,
Am Donnerstag, 14. August 2003 02:05 schrieb Samuel Falvo:
> I have NDO configured with a Postscript-compatible printer using LPT1, and
> a Postscript-compatible printer to File. When I print to a file, it asks
> me for the filename, and once that happens, it emits the Postscript file.
> Running that file through CUPS manually using Linux' "lp" command works
> great. It has issues with fonts though... :(
> But when I try to use the printer directly with LPT1, it fails utterly and
> outright. I'm pretty confident that it's a xdosemu configuration problem on
> my
> part, but I've not seen any documentation on this either in Google's
> database,the GEOS newsgroups, *OR* in the dosemu FAQ or other available
> documentation.
I solved the problem with CUPS:
in CUPS you habe to install (http://localhost:631/admin) a printer with driver
"raw". Name the printer "lp". This driver must be the default printer and the
first in the row. You will get a file /etc/printcap.cups. Copy this file to
/etc/printcap.
In DOSemu you wright:
$_printer = "lp"
$_printer_timeout = (1) # the higher the number, the longer you will wait for
the output.
If this doesn't work, your CUPS print filter cames in the way. Here the advice
of Grigory Batalov:
-----------------------------------------------------------------
Von: Grigory Batalov <grisxa@mail.ru>
An: linux-msdos@vger.kernel.org
On Wed, 4 Jun 2003 12:00:38 -0300
"Francisco Gomez" <fgomez@cqr.com.ar> wrote:
> I have a problem when I try to print in a matrix dot printer.
> I am working with Mandrake 9.0 and a MS Cobol application running on the
> dosemu.
> If I send to print letters o numbers I have no problem, but if I send
> special simbols, like control characters (End of Page, bold font) the
> printer doesn't work.
> Could you help me with this? Is it possible to send anything I want directly
> to the LPT1 port without pass through the linux, like a dir > lpt1 in DOS?
Hi!
It seems that print filter corrupts your output.
Try attached patch for global.conf (it adds '-l' option
to print command) and run dosemu like this:
dosemu -F global.conf
----------------------------------------------------------------------------
Regards
Claudia
[-- Attachment #2: global.conf.diff --]
[-- Type: text/x-diff, Size: 376 bytes --]
--- global.conf.orig 2003-01-15 12:37:15 +0300
+++ global.conf 2003-06-04 21:51:36 +0400
@@ -612,7 +612,7 @@
vnet $_vnet
if (strlen($_printer))
foreach $xxx ($LIST_DELIM, $_printer)
- $xxx = "'-P", $xxx, " %s'";
+ $xxx = "'-l -P", $xxx, " %s'";
printer { options $$xxx command "lpr" timeout $_printer_timeout }
done
endif
prev parent reply other threads:[~2003-08-15 12:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-13 20:57 Bug in DOSemu-FreeDOS-bin? Claudia Neumann
2003-08-14 0:05 ` Printing from dosemu via CUPS Samuel Falvo
2003-08-15 12:27 ` Claudia Neumann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200308151427.20126.dr.claudia.neumann@gmx.de \
--to=dr.claudia.neumann@gmx.de \
--cc=falvosa@yahoo.com \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox