On Tuesday 16 November 2004 09:25 am, Johannes Meixner wrote:
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.
I'm sure you are quite right.... and in that case, there is no need to define a 'dos' printer. Just make the print command: $_printer_command = "lp -o raw"