LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-03-2004, 09:21 PM   #1
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 721

Rep: Reputation: 63
Post Unable to print over network to Slackware 10 Server using Samba v3.0.5


Hello, everybody.

I've recently been trying to set up a file and print server on a 500MHz/256RAM Intel computer running Slackware 10. I've managed to get the file sharing set up basically how I want it, but printing has been a real hassle.

I am able to print just fine directly from the Slackware 10 server, but not over the network. The printer is a HP Deskjet 990cxi. I've been using the postscript drivers I found on linuxprinting.org. Here are some details:

At first it gave me an "access denied" error whenever I opened the printer spool on the Windows XP client, but I've managed to get rid of that without TOO much trouble. Now, I'm able to send jobs to the server without receiving any errors of any kind, but absolutely nothing happens after I do so. No printing, no pop-up box telling me it worked/didn't work--nothing (as far as I can tell).

Here are the IP addresses for the computers on my network:

Slackware 10 server: 192.168.1.254
Windows XP client: 192.168.1.250
Mandrake 10 client: 192.168.1.252
Windows 2000 Professional client: 192.168.1.7

The same anomaly occurs whenever I try to print over the network, regardless of which computer I'm using (but the server can print just fine on its own).

Here is my smb.conf file:

# Samba config file created using SWAT
# from 192.168.1.253 (192.168.1.253)
# Date: 2004/08/03 18:25:41

# Global parameters
[global]
workgroup = SLACKGROUP
server string = Samba Server
security = SHARE
map to guest = Bad User
log file = /var/log/samba.%m
max log size = 50
dns proxy = No
printer admin = @adm
use client driver = Yes

[homes]
comment = Home Directories
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
read only = No
guest ok = Yes
printable = Yes
browseable = No
public = yes
create mask = 0664
security mask = 0664
directory mask = 2775
directory security mask = 2775
print command = lpr -cups -P %p -o raw %s -r # Using client-side printer drivers


[daneshome]
comment = Dane's Home Directory
path = /home/dane
guest only = Yes

[HPDeskJet990cxi]
comment = Color Printer
path = /var/spool/samba
read only = No
guest ok = Yes
hosts allow = 192.168.1.150
printable = Yes
printer name = HPDeskJet990cxi
oplocks = No
share modes = No

<end of file>

Here are the last "few" lines of my /var/log/cups/error_log file:

I [03/Aug/2004:18:01:26 -0700] Full reload is required.
I [03/Aug/2004:18:01:26 -0700] LoadPPDs: Read "/etc/cups/ppds.dat", 15 PPDs...
I [03/Aug/2004:18:01:26 -0700] LoadPPDs: No new or changed PPDs...
I [03/Aug/2004:18:01:26 -0700] Full reload complete.
I [03/Aug/2004:18:01:29 -0700] Listening to 0:631
I [03/Aug/2004:18:01:29 -0700] Loaded configuration file "/etc/cups/cupsd.conf"
I [03/Aug/2004:18:01:29 -0700] Configured for up to 100 clients.
I [03/Aug/2004:18:01:29 -0700] Allowing up to 100 client connections per host.
I [03/Aug/2004:18:01:29 -0700] Full reload is required.
I [03/Aug/2004:18:01:29 -0700] LoadPPDs: Read "/etc/cups/ppds.dat", 15 PPDs...
I [03/Aug/2004:18:01:29 -0700] LoadPPDs: No new or changed PPDs...
I [03/Aug/2004:18:01:29 -0700] Full reload complete.
E [03/Aug/2004:18:02:13 -0700] print_job: Unsupported format 'application/octet-stream'!
I [03/Aug/2004:18:02:13 -0700] Hint: Do you have the raw file printing rules enabled?
E [03/Aug/2004:18:03:29 -0700] print_job: Unsupported format 'application/octet-stream'!
I [03/Aug/2004:18:03:29 -0700] Hint: Do you have the raw file printing rules enabled?
I [03/Aug/2004:18:03:59 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=724)
I [03/Aug/2004:18:05:44 -0700] Started "/usr/lib/cups/cgi-bin/classes.cgi" (pid=740)
I [03/Aug/2004:18:06:09 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=743)
I [03/Aug/2004:18:06:13 -0700] Started "/usr/lib/cups/cgi-bin/jobs.cgi" (pid=745)
I [03/Aug/2004:18:06:32 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=749)
E [03/Aug/2004:18:06:36 -0700] print_job: Unsupported format 'application/octet-stream'!
I [03/Aug/2004:18:06:36 -0700] Hint: Do you have the raw file printing rules enabled?
E [03/Aug/2004:18:16:29 -0700] print_job: Unsupported format 'application/octet-stream'!
I [03/Aug/2004:18:16:29 -0700] Hint: Do you have the raw file printing rules enabled?
E [03/Aug/2004:18:18:19 -0700] print_job: Unsupported format 'application/octet-stream'!
I [03/Aug/2004:18:18:19 -0700] Hint: Do you have the raw file printing rules enabled?
E [03/Aug/2004:18:19:04 -0700] print_job: Unsupported format 'application/octet-stream'!
I [03/Aug/2004:18:19:04 -0700] Hint: Do you have the raw file printing rules enabled?
E [03/Aug/2004:18:19:04 -0700] print_job: Unsupported format 'application/octet-stream'!
I [03/Aug/2004:18:19:04 -0700] Hint: Do you have the raw file printing rules enabled?
E [03/Aug/2004:18:19:35 -0700] print_job: Unsupported format 'application/octet-stream'!
I [03/Aug/2004:18:19:35 -0700] Hint: Do you have the raw file printing rules enabled?
E [03/Aug/2004:18:20:58 -0700] print_job: Unsupported format 'application/octet-stream'!
I [03/Aug/2004:18:20:58 -0700] Hint: Do you have the raw file printing rules enabled?
E [03/Aug/2004:18:25:47 -0700] print_job: Unsupported format 'application/octet-stream'!
I [03/Aug/2004:18:25:47 -0700] Hint: Do you have the raw file printing rules enabled?
E [03/Aug/2004:18:30:13 -0700] print_job: Unsupported format 'application/octet-stream'!
I [03/Aug/2004:18:30:13 -0700] Hint: Do you have the raw file printing rules enabled?
I [03/Aug/2004:18:32:35 -0700] Added remote printer "HPDeskjet"...
E [03/Aug/2004:18:36:03 -0700] print_job: Unsupported format 'application/octet-stream'!
I [03/Aug/2004:18:36:03 -0700] Hint: Do you have the raw file printing rules enabled?
E [03/Aug/2004:18:39:21 -0700] get_printer_attrs: resource name '/HPDeskjet990cxi' no good!
E [03/Aug/2004:18:39:40 -0700] get_printer_attrs: resource name '/HPDeskjet990cxi' no good!
E [03/Aug/2004:18:41:00 -0700] print_job: Unsupported format 'application/octet-stream'!
I [03/Aug/2004:18:41:00 -0700] Hint: Do you have the raw file printing rules enabled?
E [03/Aug/2004:18:58:02 -0700] get_printer_attrs: resource name '/HPDeskjet990cxi' no good!
I [03/Aug/2004:19:06:55 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=1173)
I [03/Aug/2004:19:08:29 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=1174)

<end of file>


Here is a portion of my /var/log/cups/access_log file:

192.168.1.253 - - [03/Aug/2004:19:06:55 -0700] "GET /printers/HPDeskJet990cxi HTTP/1.1" 200 3566
192.168.1.253 - - [03/Aug/2004:19:07:01 -0700] "GET /admin/?op=config-printer&printer_name=HPDeskJet990cxi HTTP/1.1" 403 0
192.168.1.253 - - [03/Aug/2004:19:08:29 -0700] "GET /printers/HPDeskJet990cxi HTTP/1.1" 200 0
localhost - - [03/Aug/2004:19:08:29 -0700] "POST / HTTP/1.1" 200 138
192.168.1.253 - - [03/Aug/2004:19:08:30 -0700] "GET /cups.css HTTP/1.1" 304 0
localhost - - [03/Aug/2004:19:08:30 -0700] "POST / HTTP/1.1" 200 869
192.168.1.253 - - [03/Aug/2004:19:08:30 -0700] "GET /images/navbar.gif HTTP/1.1" 304 0
192.168.1.253 - - [03/Aug/2004:19:08:30 -0700] "GET /images/left.gif HTTP/1.1" 304 0
localhost - - [03/Aug/2004:19:08:30 -0700] "POST / HTTP/1.1" 200 431
192.168.1.253 - - [03/Aug/2004:19:08:30 -0700] "GET /images/right.gif HTTP/1.1" 304 0
192.168.1.253 - - [03/Aug/2004:19:08:29 -0700] "GET /printers/HPDeskJet990cxi HTTP/1.1" 200 3566
192.168.1.253 - - [03/Aug/2004:19:08:30 -0700] "GET /images/printer-idle.gif HTTP/1.1" 304 0
192.168.1.253 - - [03/Aug/2004:19:08:30 -0700] "GET /images/print-test-page.gif HTTP/1.1" 304 0
192.168.1.253 - - [03/Aug/2004:19:08:30 -0700] "GET /images/stop-printer.gif HTTP/1.1" 304 0
192.168.1.253 - - [03/Aug/2004:19:08:30 -0700] "GET /images/reject-jobs.gif HTTP/1.1" 304 0
192.168.1.253 - - [03/Aug/2004:19:08:30 -0700] "GET /images/modify-printer.gif HTTP/1.1" 304 0
192.168.1.253 - - [03/Aug/2004:19:08:30 -0700] "GET /images/config-printer.gif HTTP/1.1" 304 0
192.168.1.253 - - [03/Aug/2004:19:08:30 -0700] "GET /images/delete-printer.gif HTTP/1.1" 304 0
192.168.1.253 - - [03/Aug/2004:19:08:30 -0700] "GET /images/set-as-default.gif HTTP/1.1" 304 0
192.168.1.253 - - [03/Aug/2004:19:08:30 -0700] "GET /images/add-printer.gif HTTP/1.1" 304 0
192.168.1.253 - - [03/Aug/2004:19:08:30 -0700] "GET /images/show-completed.gif HTTP/1.1" 304 0
localhost - - [03/Aug/2004:19:14:44 -0700] "POST / HTTP/1.1" 200 279
localhost - - [03/Aug/2004:19:14:44 -0700] "POST / HTTP/1.1" 200 200
localhost - - [03/Aug/2004:19:14:45 -0700] "POST /printers/HPDeskJet990cxi HTTP/1.1" 200 76859

<end of file>

My samba logs are essentially empty (except for logs of the deamons being started and stopped occasionally).

I've read about 30 threads (and tried their suggestions) looking for an answer and I still haven't found any solutions. Please help me to solve this problem. Thanks very much.


Have a good one.
--Dane
 
Old 08-03-2004, 10:24 PM   #2
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi Dane,
I suggest you to divide and conquer. You said the samba logs are nearly empty and you have much noise in the cups log. So disable the printer with "/usr/sbin/disable HPDeskjet990cxi". Cups will be queuing the jobs without print it. If the jobs are entering in the queue, samba is doing its service. If not you must set a level of debug in smb.conf to see what happens. Otherwise, you have a cups configuration problem.
I would guess you have a cups problem.
PS. for restarting the printer "/usr/sbin/enable HPDeskjet990cxi"
to see the printing status "/usr/bin/lpstat -t"
 
Old 02-02-2005, 10:06 PM   #3
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 721

Original Poster
Rep: Reputation: 63
Really old thread, but still having the problem

OK, this thread is probably far past its expiration date, but since I'm still having the problem, I'll ask once again if anybody knows what to do about it. (And I should have more time to work on the problem this time around.)

In response to the last post, after disabling the printer, I find that it's not queuing print jobs. The odd thing, though, is that I've hooked-up a HPLaserJet5P, and I am able to print just fine over the network. Weird.

If anybody has an idea as to how I can fix this, I would love to hear it.

Thanks

--Dane
 
Old 02-03-2005, 12:48 PM   #4
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi DaneM,
Looking again to your smb.conf, I noticed the "hosts allow = 192.168.1.150". Your network does not have this ip number.

Good luck and come back soon!

Osvaldo.
 
Old 02-03-2005, 07:35 PM   #5
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 721

Original Poster
Rep: Reputation: 63
Hi, osvaldomarquez, and thanks for posting.

After reading a good deal of documentation that I hadn't found the first time around, I followed the following steps:

1) uncommented "application/octet-stream application/vnd.cups-raw 0 -" in /etc/cups/mime.convs
2) uncommented "application/octet-stream" in /etc/cups/mime.types
3) removed the smb.conf entry for the HPDeskJet990cxi, as apparently cups will figure it out if you just have one general printer entry.

Now it works! The only problem is, I have no idea why those things fixed it! Does anybody happen to know what that stuff in /etc/cups/mime.* is all about? Were those changes really necessary or just a precaution? Have I opened up vulnerabilities that I don't need? Here is the printers entry in my smb.conf (recently edited):

Code:
[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   guest only = yes
   public = yes
   guest ok = yes
   printable = yes
Thanks for your help!

--Dane
 
Old 02-03-2005, 11:10 PM   #6
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi Dane,
I'm glad it works by now! Better later than never! If you disable the printer and your report doesn't queue, it is samba which refuses it. When you commented out the printer entry, you removed a lot of restrictions previously imposed.
Reviewing your logs again, cups were complaining about the raw format. This is the most primitive format, which means, any byte received from application must be sent to the printer. Cups tries to figure out what kind of filter it must use to print, like post script. For any reason beyond my comprehension, cups defaults does not set configurations for raw format. But it must complain at the printing time, after the job is on the queue. Windows stations use its proper drivers to print any report and the print server must respect it, sending it in raw mode to the printer.

Cheers,

Osvaldo.
 
Old 02-04-2005, 01:10 AM   #7
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 721

Original Poster
Rep: Reputation: 63
Aaaaah...that makes sense.

Thanks!

--Dane
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
lp:unable to print file:server-error-service-unavailable mitchloft Fedora 3 03-29-2005 12:26 PM
Unable to print to Samba printer from WinXP TSloth Linux - Networking 3 02-06-2005 05:13 PM
Unable to coneect to Network print server (CNet 430) chhorn Linux - Newbie 1 11-11-2004 07:01 AM
unable to print through Samba beowulf405 Linux - Newbie 4 07-03-2004 07:45 PM
Setting up a Samba network Print Server sancho5 Linux - General 1 02-01-2002 03:34 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration