Debian 6.0 X86_64位上面配置 HP_LaserJet_P2015 打印机共享

本公司有一台,HP_LaserJet_P2015 打印机,每次谁要打印,谁就去把打印机都抱来接自己电脑上面,很是不方便,于是在公司内部服务器 debian 6.0 X86_64位上面,配置了打印机共享,其安装方式也比较简单,话不多说,看过程:

aptitude install cups cups-client cups-bsd foomatic-filters hpijs  hplip  samba lsb

安装p2015的驱动:

下载wget http://openprinting.org/download/printdriver/debian/dists/lsb3.2/contrib/binary-amd64/openprinting-gutenprint_5.2.7-1lsb3.2_amd64.deb

然后 :

dpkg -i openprinting-gutenprint_5.2.7-1lsb3.2_amd64.deb

编辑配置文件:

/etc/samba/smb.conf

 
[global]
security=share
printcap name=cups
load printers=yes
printing=cups
 
[Printers]
comment=All Printers
path=/var/samba/printers
browseable=yes
guest ok=yes
writable=yes
printable=yes
public=yes
 
编辑配置文件
/etc/cups/cupsd.conf
#将
#Listen localhost:631
#修改成
Listen 0.0.0.0:631
二 共享权限
#将
#<Location />
# Order allow,deny
# Allow localhost
#</Location>
#修改成
<Location />
Order deny,allow
Allow From 192.168.1.*
</Location>
 
 
重启cups和samba
/etc/init.d/samba restart
/etc/init.d/cups restart

接下来浏览器访问 http://ip:631/admin

输入 root 和 root密码

点击 add Printer

然后按照提示一次配置下去,就ok了

最后在winxp里面设置:

添加打印机,然后选择网络打印机....,连接到internet、家庭或者输入url为:

http://192.168.1.5:631/printers/HP_LaserJet_P2015_Series 最后安装好驱动,打印即可完工。

你可能感兴趣的:(Debian,职场,休闲,打印机,hp2015)