8.08.2008

如何使用Linux做打印服务器

Head: I don't want to write in Chinese, just because i am too lazy to choose the correct words.
I can't use Wubi input methods, so I am sorry. But maybe I will write in Chinese later. For I found that the solutions about linux in Chinese are difficult to find sometimes. so I will write my
experiences.

使用Windows做打印服务器,应该不是很困难,因为只要打印机共享,如果Linux需要使用的话,直接用smb连接就行了。

前一阵子用F8做了一次打印服务器,昨天换系统了,呵呵,搞了一个320G的硬盘。所以顺便换了一下系统。ubuntu8.04还是比较顺手的,目前来说,闲话少叙。

正题:如何让Linux做打印服务器

手头工具: 网络,Brother DCP-7010 ,PC(Ubuntu)

Step1:
DCP-7010使用Usb连接到我电脑上。
应该可以看到下面信息:
sudo cat /etc/cups/printers.conf
# Printer configuration file for CUPS v1.3.7
# Written by cupsd on 2008-08-08 10:27

Info DCP7010
DeviceURI usb://Brother/DCP-7010
State Idle
StateTime 1218162217
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job


if u can't find the above info just check the drivers
useful links:
http://solutions.brother.com/linux/sol/printer/linux/lpr_drivers.html

Step2
配置 /etc/cups/cupsd.conf

需要修改的
原: Listen localhost:631
改为:Listen *:631
这样才能监听网络嘛

剩下就是权限设定了,我设定如下:
DefaultAuthType None

Order allow ,deny
Allow from 192.168.90.*


# Restrict access to the admin pages...

Order allow,deny
Allow from 192.168.90.*


# Restrict access to configuration files...

AuthType Default
# Require user @SYSTEM
Order allow,deny
Allow from 192.168.90.*


Step3
/etc/init.d/cupsys restart
奇怪了,Ubuntu下没有service命令?

window可以通过http://myip/printers/dcp7010 连接使用了。

主要注意两点,一是监听,二是打印机名

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home