Re: print, gs and svgalib.
>
> I'm using magicfilter to print, which in turns uses gs-aladdin, which uses
> svgalib.
> The problem is svgalib keeps writing things like 'Using VGA driver' or
> other messages. Those get back to lpr and end up printed at the beginning
> of whatever it was I wanted to print.
>
> Is there a way to silence svgalib so as not to have this gibberish on
> everything I want to print ?
If I remember correctly, when gs is run as non-root, it doesn't
print that svgalib message.
> (At the moment, I'm using cat file.ps |
> filter > /dev/lp1, which is somewhat more annoying than lpr file.ps).
When you do "lpr file.ps", what difference is there with
"cat fil.ps|filter>/dev/lp1"? The only difference I can see, is that
your lpr is setup to start "filter" as root. That shouldn't be done
(gs can be used to read/write arbitrary[1] files on your system, so
if lpr starts gs as root, any user on your system can erase /etc/passwd).
[1] This is assuming "filter" doesn't give the "-safe" (or whatever
it was) option to gs. If it does use that option, then it's more difficult
to overwrite /etc/passwd, but I'm sure there are bugs (buffer overruns,
whatever) in gs, and with enough determination, you'll still be able
to zap system security.
--
joost witteveen, joostje@debian.org
#!/usr/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
#what's this? see http://www.dcs.ex.ac.uk/~aba/rsa/
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: