Mailinglist Archive: opensuse (3964 mails)
| < Previous | Next > |
Re: [SLE] DOSemu Printing
- From: Johannes Meixner <jsmeix@xxxxxxx>
- Date: Tue, 16 Nov 2004 15:25:53 +0100 (CET)
- Message-id: <Pine.LNX.4.58.0411161512240.16404@xxxxxxxxxxxxx>
Hello,
On Nov 16 08:30 Bruce Marshall wrote (shortened):
> 3) Go into /etc/cups and down at the bottom of:
> mime.types
> mime.convs
...
> application/octet-stream application/vnd.cups-raw 0 -
> and uncomment them.
.
.
.
> 5) Edit /etc/dosemu/dosemu.conf under 'printer settings'
>
> $_printer = "dos"
> $_printer_command = "lp -d dos -o raw"
If you explicitely specify "-o raw" in the print command then there
is no need to avtivate the fallback to application/octet-stream
in mime.types and mime.convs.
For example test it with:
head -n 2 /dev/urandom >/tmp/urandom
lp -d <queue> /tmp/urandom
results "client-error-document-format-not-supported" but
lp -d <queue> -o raw /tmp/urandom
works in any case.
If you activate the fallback to application/octet-stream
in mime.types and mime.convs then any kind of unknown data format
will be printed in raw mode.
Therefore you can print by accident for example /boot/vmlinuz
or any proprietary DOS or Windows file (e.g. doc) and because
it is printed in raw mode the printer will print tons of sheets
with meaningless characters.
To be safe you should not automatically fall back to raw mode
but prefer to request raw mode explicitely by "-o raw" only when
you know that it makes sense.
Regards,
Johannes Meixner
--
SUSE LINUX Products GmbH, Maxfeldstrasse 5 Mail: jsmeix@xxxxxxx
90409 Nuernberg, Germany WWW: http://www.suse.de/
| < Previous | Next > |