vi /etc/samba/smb.conf
printcap name = /etc/printcap //224取消前面“;”
printing = cups //227取消前面“;”
[printers] //255行
path = /var/spool/samba
browseable = yes //no改yes
guest ok = yes //no改yes
writable = yes //no改yes
printable = yes
[HP] //复制255行内容到最后,改共享为HP
path = /var/spool/samba
browseable = yes
guest ok = yes
writable = yes
printable = yes