Chinaunix

标题: 在FreeBSD中安装HP1010打印机 [打印本页]

作者: 大板砖    时间: 2009-03-26 19:32
标题: 在FreeBSD中安装HP1010打印机
1、安装PostScript-gnu软件
2、其它/usr/ports/print下的软件
3、配置/etc/printcap的内容如下:
lp|HP:\
    :sh:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:\
    :lp=/dev/ulpt0:\
    :if=/usr/local/libexec/ifhp:\
然后到/usr/share/examples/printing/下,复制ifhp到/usr/local/libexec下,并执行如下命令:
chmod 555 ifhp使普通用户具有访问打印过滤器的权利
4、启动打印服务lpd
命令行输入lpd或者再/etc/rc.conf中lpd_enable="YES"
之后即可开始打印。
命令举例:
1lpr -Plp /root/ps.txt 打印/root/ps.txt文件。
2lpq -Plp 查看打印机lp的打印队列。
3lprm 1# 删除打印队列1号任务。
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/8326/showart_1880813.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2