免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1497 | 回复: 1
打印 上一主题 下一主题

[桌面系统] 请教打印机设定问题。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-12-25 15:34 |只看该作者 |倒序浏览
我用feroda,打印机是lexmark z11,不知道为什么用打印管理器选择此型号配置好后,打印机却根本没有动静,大家知道怎么办好吗?

论坛徽章:
0
2 [报告]
发表于 2003-12-25 15:38 |只看该作者

请教打印机设定问题。

我找到一个相关文章,可是看不明百,请帮帮我。谢谢了
文章如下:

Installation

After you have downloaded the tarball with the sourcecode, you have to extract its contents into a directory of your choice by typing

tar -xzf cZ11.tar.gz

Then you have to compile the code to get the binary for your system. This is done simply by typing

make

If you are root (you should be root while installing new software in most cases anyway) you can now copy the binary and the prologue to their destinations, which are /usr/bin/cZ11 and /etc/LexmarkZ11/prolog.prn by typing

make install

On SuSE 6.4, you should now type

make suse64

to install the printer correctly on lp0, using the standard name of "lp". Please note that this overwrites all other entries in /etc/printcap, so you will only want to do this if you have not configured any other printers yet.

SuSE 6.4 users should now be able to print. All others have to do some more work, which is hopefully covered in the following paragraphs.
You should now modify your apsfilter, as this driver is designed to work with the BSD printing system. There might exist other possibilities, but please do not ask me about them. A good basic apsfilter can be found in SuSE Linux 6.4, but I guess that other distibutors use quite similar files.

Warning! Before you change the apsfilter, backup the original file!

You have to modify two sections of the apsfilter in order to make the new driver work with it. These sections might differ slightly in your filter! All modifications are in bold letters. Your apsfilter is linked to several places, probably at least to "/usr/lib/apsfilter/bin/apsfilter".

...
...
...
case $PRINTER in
        PS_*dpi)
            r="${PRINTER#PS_}" ; r="${r%dpi}" ; setres $r
            [ `echo $r|grep -cE '^([0-9]+|[0-9]+x[0-9]+)$'` -eq 0 ] && setres 300
            [ -n "$DPI" ] && setres $DPI
            ;;
        PS_*)                        setres 300        ;;
        cdj*|*desk*|djet*)        setres 300 -r     ;;
        dnj*c)                        setres 300 -r     ;;
        hpdj)                        setres 300 -r     ;;
        ljet4l)                        setres 300        ;;
        ljet4)                        setres 600        ;;
        lj4dith)                setres 600        ;;
        laserjet|ljet[23]*)        setres 300        ;;
        paintjet|pj*)                setres 300        ;;
        necp6)                        setres 360        ;;
        bj10e|bj200|bjc[68]00)        setres 360 -r     ;;
        stcolor|st800)                setres 360 -r     ;;
        eps9*)                        setres 240x216 -r ;;
        epson)                        setres 360x180 -r ;;
        epsonc)                        setres 360x180 -r ;;
        *\.upp)                        setres 300 -r     ;;
        ppa1000|ppa[87]20)        setres 600 -r     ;;
        cZ11)                  setres 600 -r     ;;
        *)                        setres 300 -r     ;;
esac
...
...
...
case $PRINTER in
        *\.upp)        # PRINTER = option file (e.g. unified printer driver)
                # Note: A resolution in the option file overwrites
                #       the given resolution. This is a `must be'.
                HAVE_GS="$HAVE_GS ${GS_RESOL} @${PRINTER}"
                ;;
        ppa1000|ppa[87]20)
                # PRINTER = pbmraw gs device + post filter pbm2ppa
                #
                HAVE_GS="$HAVE_GS -sDEVICE=pbmraw ${GS_RESOL}"
                #
                findfilter pbm2ppa PBMTOPPA
                OUTPIPE="$HAVE_PBMTOPPA -v ${PRINTER#ppa}|$PRINT_RAW"
                #
                ;;
        lex*)        # PRINTER = pbmraw gs device + post filter pbm2l7k
                #
                HAVE_GS="$HAVE_GS -sDEVICE=pbmraw ${GS_RESOL}"
                #
                findfilter pbm2l7k PBMTOLEX
                case $PRINTER in
                        *7000)        OUTPIPE="$HAVE_PBMTOLEX -m 0 |$PRINT_RAW" ;;
                        *5700)        OUTPIPE="$HAVE_PBMTOLEX -m 1 |$PRINT_RAW" ;;
                        *)        OUTPIPE="$HAVE_PBMTOLEX      |$PRINT_RAW" ;;
                esac
                ;;
        cZ11)
                # PRINTER = bitcmyk gs device + post filter cZ11
                HAVE_GS="$HAVE_GS -sDEVICE=bitcmyk ${GS_RESOL}"
                #
                findfilter cZ11 CMYKTOZ11
                OUTPIPE="$HAVE_CMYKTOZ11|$PRINT_RAW"
                ;;
        *)        # PRINTER = ghostscript device
                 HAVE_GS="$HAVE_GS -sDEVICE=${PRINTER} ${GS_RESOL}"
                ;;
esac
...
...
...

It is probably a good idea to copy the modifications directly from this document to your apsfilter. You should test the apsfilter by simply executing it and looking for any error messages. You should get some error messages when trying this anyway, but a syntax error indicates that is is your fault. You can monitor the correct execution later by watching the list of active processes after launching a print job.

The -dDITHERPPI parameter of GhostScript controls the graininess of the output. If you want your own Andy Warhol graphic, you might want to set this to 10 . The GhostScript standard setting is 60, which looks really grainy. You should experiment with this parameter to find the best setting.

Finally, you have to create your printer's queues. This can be done more or less easily using /usr/lib/apsfilter/bin/SETUP. You should configure a

"cZ11 a4 color 600" at (in most cases) "/dev/lp0".

Now it should be done. Try to print now, curse and try again .
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP