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号任务。
阅读(1457) | 评论(0) | 转发(0) |