I decided to hook up my HP Officejet Pro 1150C to my linux machine instead of my Win XP, and I was hoping to be able to print to the printer from Win XP still
I installed the HP Officejet driver (hpoj) and printing from linux works fine.
Now I installed Samba 3.0.2a, and my smb.conf file displays
Code:
[global]
workgroup = LINUXGROUP
server string = Samba Server
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
disable spoolss = Yes
printing = cups
[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
guest ok = Yes
printable = Yes
browseable = No
[Printer]
comment = Home Printer
path = /var/spool/samba
read only = No
guest ok = Yes
printable = Yes
browseable = Yes
I used SWAT and edited it a little from the config files i've seen around the net. When I go onto my windows machine, I can successfully add this printer, and windows says that the printer is "Ready", but if I try to print something, nothing happens. There is no error message or anything else.
Previously windows displayed the message "Access denied", but following some websites, I added "disable spoolss = yes" and now it says "Ready", but without any furthur functionality.
The reason for not working I'm thinking is because of some bad config in Samba, but could it also be due to misconfig in CUPS? And how should I go about trying to debug this problem; I tried tcpdump on the linux machine to see if there was any communication between windows and linux when I go to print, and saw a little talking between the machines, but I couldn't interpret it. Any help would be greatly appreciated.