[Kde-nonlinux] FreeBSD lpd printing in KDE
Andrew Y Ng
ayn at AndrewNg.com
Thu Apr 10 16:14:13 CEST 2003
Hi Gary,
I use CUPS from ports and I can print from KDE just fine. I think in the
printer cfg in control center, u can select CUPS and it'll know how to query
printers and print. I like CUPS a lot as it make it very easy to print over
the network with computers also running CUPS when browsing/printer-sharing is
enabled.
/ayn
On 0, Gary Schenk <gwschenk at socal.rr.com> wrote:
> This FreeBSD newbie has even learned how to print! I'm using lpd to print and
> it works fine from the console. I'm using an old Epson with the hpif filter
> from the FreeBSD handbook, using uniprint as the device.
>
> However, it does not work in KDE. I've read the KDE printing handbook, but
> have not found much there.
>
> It seems to be an input filter problem. My /etc/printcap file calls on hpif,
> which does print UNIX files to the Epson just fine, yet the results I get in
> KDE seem to indicate that the input filter is not working. Does KDE use
> /etc/printcap? Have I missed something in setting up printing for KDE?
> Basically all I've done is click "print" in the application, choose lpd, and
> ok.
>
> Here is my input filter file:
>
> #!/bin/sh
>
> # Treat LF as CR+LF
>
> printf "\033&k2g" || exit 2
>
> # Now read first two characters of the file to determine if PostScript or not
> # and apply the appropiate massaging
>
> IFS="" read -r first_line
> first_two_chars=`expr "$first_line" : '\(..\)'`
>
> if [ "$first_two_chars" = "%!" ]; then
>
> exec 3>&1 1>&2
> /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=uniprint \
> -sOutputFile=/dev/fd/3 - && exit 0
>
> #
> /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=uniprint \
> -sOutputFile=- - && exit 0
>
> else
> echo "$first_line" && cat && printf "\033&10H" &&
> exit 0
> fi
>
> exit 2
>
> Thanks.
> Gary Schenk
>
> _______________________________________________
> kde-nonlinux mailing list
> kde-nonlinux at mail.kde.org
> http://mail.kde.org/mailman/listinfo/kde-nonlinux
--
andrew y ng <ayn at andrewng.com> http://andrewng.com
independent computer consultants http://aynassociates.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-nonlinux/attachments/20030410/50d72a51/attachment.bin
More information about the kde-nonlinux
mailing list