Tiny Core Extensions > TCE Q&A Forum

Almost there with CUPS

(1/2) > >>

pgcudahy:
Hey guys, after a few hours of set-up I'm agonizingly close to having my tinycore box set up as a network print server. I followed the instructions for setting up cups1311 and the followed this posthttp://forum.tinycorelinux.net/index.php?topic=3559.0 (http://forum.tinycorelinux.net/index.php?topic=3559.0) to set up printer sharing. I can print from the tinycore box, but when I send a print job from my mac it just sits in the job que and does nothing with the state of "stopped". I can even pull up the cups admin webpage from my mac and print off a test page from there, but any jobs sent from my mac just linger in the que. Any ideas on how to troubleshoot this?

My cupsd.conf



--- Code: ---LogLevel info
SystemGroup root
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
  # Allow shared printing and remote administration...
  Order allow,deny
  Allow @LOCAL
</Location>
<Location /admin>
  # Allow remote administration...
  Order allow,deny
  Allow @LOCAL
</Location>
<Location /admin/conf>
  AuthType None
  Require user @SYSTEM
  # Allow remote access to the configuration files...
  Order allow,deny
  Allow @LOCAL
</Location>
<Policy default>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

--- End code ---

aus9:
hi

I cheated and the wiki uses cups1311 to save doing some root things.

I also do not have any other computers but suggest you look, as they are your current packages, to see if you can add a networked computer, while my wiki added a local printer.

Forgive me if you already understood this.

2) I have no way of testing, but you may be better off, removing cups1311 and going for "normal" cups and add a networked printer?

pgcudahy:
Thanks aus9, maybe it would be easier to try with the regular cups rather that try and mess with the rootless version. However, I don't think that authorization is the issue. I figured out how to get better debug messages from cups and it seems like the interesting part of the log is

--- Code: ---I [06/Aug/2010:21:43:04 +0000] [Job 8] Started filter /usr/local/lib/cups/filter/pdftops (PID 9310)
I [06/Aug/2010:21:43:04 +0000] [Job 8] Started filter /usr/local/lib/cups/filter/pstoraster (PID 9311)
I [06/Aug/2010:21:43:04 +0000] [Job 8] Started filter /usr/local/lib/cups/filter/rastertogutenprint.5.2 (PID 9312)
I [06/Aug/2010:21:43:04 +0000] [Job 8] Started backend /usr/local/lib/cups/backend/usb (PID 9313)
D [06/Aug/2010:21:43:04 +0000] Discarding unused job-state-changed event...
D [06/Aug/2010:21:43:04 +0000] cupsdProcessIPPRequest: 12 status_code=0 (successful-ok)
D [06/Aug/2010:21:43:04 +0000] Discarding unused printer-state-changed event...
D [06/Aug/2010:21:43:04 +0000] cupsdReadClient: 12 POST /printers/hp_LaserJet_2420_USB_1 HTTP/1.1
D [06/Aug/2010:21:43:04 +0000] cupsdAuthorize: No authentication data provided.
D [06/Aug/2010:21:43:04 +0000] Get-Job-Attributes ipp://192.168.2.11:631/printers/hp_LaserJet_2420_USB_1
D [06/Aug/2010:21:43:04 +0000] cupsdProcessIPPRequest: 12 status_code=0 (successful-ok)
D [06/Aug/2010:21:43:04 +0000] [Job 8] Printer using device file "/dev/usblp0"...
D [06/Aug/2010:21:43:04 +0000] [Job 8] backendRunLoop(print_fd=0, device_fd=5, use_bc=1, side_cb=0x80498dd)
D [06/Aug/2010:21:43:04 +0000] Discarding unused printer-state-changed event...
D [06/Aug/2010:21:43:04 +0000] [Job 8] Running /usr/local/bin/gs -dQUIET -dDEBUG -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOMEDIAATTRS -sDEVICE=cups -sstdout=%stderr -sOUTPUTFILE=%stdout -c -
D [06/Aug/2010:21:43:04 +0000] cupsdReadClient: 12 POST /printers/hp_LaserJet_2420_USB_1 HTTP/1.1
D [06/Aug/2010:21:43:04 +0000] cupsdAuthorize: No authentication data provided.
D [06/Aug/2010:21:43:04 +0000] Get-Printer-Attributes ipp://192.168.2.11:631/printers/hp_LaserJet_2420_USB_1
D [06/Aug/2010:21:43:04 +0000] cupsdProcessIPPRequest: 12 status_code=0 (successful-ok)
D [06/Aug/2010:21:43:04 +0000] [Job 8] Started filter pdftops (PID 9315)
D [06/Aug/2010:21:43:04 +0000] [Job 8] START 0 1394576 109214 1421640 132248 true 472 3 <0>
E [06/Aug/2010:21:43:04 +0000] [Job 8] Unable to execute pdftops program: No such file or directory
D [06/Aug/2010:21:43:04 +0000] Discarding unused printer-state-changed event...
D [06/Aug/2010:21:43:04 +0000] Discarding unused job-progress event...
D [06/Aug/2010:21:43:04 +0000] [Job 8] Started filter pstops (PID 9316)
D [06/Aug/2010:21:43:04 +0000] [Job 8] PID 9315 (pdftops) stopped with status 1!
D [06/Aug/2010:21:43:04 +0000] [Job 8] END PROCS 10 1414672 124699 1421640 133616 true 584 3 <0>
E [06/Aug/2010:21:43:04 +0000] [Job 8] Empty print file!
D [06/Aug/2010:21:43:04 +0000] Discarding unused printer-state-changed event...
D [06/Aug/2010:21:43:04 +0000] Discarding unused job-progress event...
D [06/Aug/2010:21:43:04 +0000] [Job 8] PID 9316 (pstops) stopped with status 1!
E [06/Aug/2010:21:43:04 +0000] PID 9310 (/usr/local/lib/cups/filter/pdftops) stopped with status 1!
--- End code ---

I checked and pdftops is there in /usr/local/lib/cups/filter (as a symlink to /tmp/tcloop/cups1311/usr/local/lib/cups/filter/pdftops) yet cups sends off an error that "Unable to execute pdftops program: No such file or directory" Any thoughts?

tinypoodle:
you could

--- Code: ---/usr/local/lib/cups/filter/pdftops yourtestfile.pdf

--- End code ---
and see what happens...  ;)

I'd rather interprete output as pdftops sending off error of not finding file or dir (possibly pdf input file)

pgcudahy:
Good thought. You're right, running pdftops on a test file results in it happily crunching away on it. Maybe the issue is in the next few lines when pstops complains about an empty print file. Cause when I think about it, the mac should be sending a postscript file, not a pdf.

Navigation

[0] Message Index

[#] Next page

Go to full version