LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Mandrake Samba printing problems from Windows (https://www.linuxquestions.org/questions/mandriva-30/mandrake-samba-printing-problems-from-windows-204758/)

rknoesel 07-13-2004 11:44 PM

Mandrake Samba printing problems from Windows
 
I'm a Mandrake Linux Newbie and am having no luck setting up a printer to be shared by my windows machines.

I am using Mandrake 9.2 as a gateway to share my dsl connection. I have used the cups web interface to set up my parallel printer (HP Deskjet) in raw format, and have used webmin to tell samba to use cups for printing. My samba file shares work fine, so I don't think this is a firewall/security issue. I have the correct drivers installed on my windows box (HP Deskjet 820Cse).

I can connect to the printer share from windows, but when I try to print a test page, I get the following in /var/log/messages


Jul 13 21:27:43 localhost smbd[24161]: [2004/07/13 21:27:43, 0] printing/print_cups.c:cups_queue_get(889)
Jul 13 21:27:43 localhost smbd[24161]: Unable to get jobs for ipp://localhost/printers/pdf-printer - client-error-not-found
Jul 13 21:27:45 localhost smbd[24161]: [2004/07/13 21:27:45, 0] printing/print_cups.c:cups_job_submit(756)
Jul 13 21:27:45 localhost smbd[24161]: Unable to print file to pdf-printer - client-error-not-found


I would greatly appreciate any help/advice I can get, thanks in advance!!!



Relevant lines from /etc/cups/cupsd.conf:

<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.1.*
</Location>

ServerName 192.168.1.1
BrowseAddress 192.168.1.255
BrowseOrder Deny,Allow
BrowseDeny All
BrowseAllow 192.168.1.*


Relevant lines from /etc/cups/mime.convs:

application/octet-stream application/vnd.cups-raw 0 -



Relevant lines from /etc/cups/mime.types:

application/octet-stream



And finally, relevant lines from /etc/samba/smb.conf :

[global]
dns proxy = no
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
netbios name = Server
load printers = yes
printing = cups
map to guest = bad user
workgroup = HOUSE
printer admin = @adm
server string = Samba Server %v
max log size = 50
log file = /var/log/samba/log.%m
printcap name = cups
os level = 20
security = user
encrypt passwords = yes

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
writable = no
printable = yes
create mode = 0700
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.

[print$]
path = /var/lib/samba/printers
browseable = yes
read only = yes
write list = @adm root
guest ok = yes

[pdf-generator]
path = /var/tmp
guest ok = No
printable = Yes
comment = PDF Generator (only valid users)
#print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP doc_name &
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I &

[pdf-screen]
copy = pdf-generator
comment = PDF Generator - Screen quality (only valid users)
print command=/usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "" %S &

[pdf-printer]
copy = pdf-generator
comment = PDF Generator - Print quality (only valid users)
print command=/usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "" %S &

[pdf-prepress]
copy = pdf-generator
comment = PDF Generator - PrePress quality (only valid users)
print command=/usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "" %S &

rknoesel 07-16-2004 02:03 PM

bump... any help would be greatly appreciated :)

Dr. Ephemeron 07-16-2004 07:20 PM

What version of Windows? Are you using Windows printer drivers or HP drivers?


All times are GMT -5. The time now is 06:03 AM.