WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: cups-pdf in line-command abort with "Connection refused"  (Read 4229 times)

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
cups-pdf in line-command abort with "Connection refused"
« on: January 24, 2011, 04:47:42 PM »
hello,
I would like to print a pdf with a command line in TCL 3.4.1.
I installed cups and cups-pdf.
According the TCE explanation in the app browser, I tried to connect to http://localhost:631 in opera/firefox for making printer setups -> nothing get open "unable to connect".
Acc cups org site, a command like "lp -d cups-pdf myfile.txt" should create a pdf file (and put it into /home/tc/cups-pdf according the tce explanation in the app browser). But the file is not created and the error "Connection refused" appear.
When I open leafpad, the printer cups-pdf is not there
I will further google for finding a solution for a pdf command line printing.

Has somebody an idea what happens here? and how to solve it?
« Last Edit: January 29, 2011, 01:02:18 PM by floppy »
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: cups-pdf in line-command abort with "Connection refused"
« Reply #1 on: February 08, 2011, 10:58:30 PM »
the cups-pdf extension looks to have been made with cups1311 in mind:

1. cups-pdf.conf in /etc/cups
2. /usr/local/lib/cups/backend/cups-pdf owned by tc:staff

Maybe we should have a cups-pdf1311 and I could submit a cups-pdf for the cups (1.4.x) extension?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: cups-pdf in line-command abort with "Connection refused"
« Reply #2 on: February 08, 2011, 11:52:11 PM »
Hi floppy
The "unable to connect". message means cups is not running. Type
"sudo /usr/local/etc/init.d/cups start" then try the browser again.

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: cups-pdf in line-command abort with "Connection refused"
« Reply #3 on: February 12, 2011, 05:22:20 PM »
"/usr/local/etc/init.d/cups start" in bootlocal.sh works: the htp://localhost:631 is found: this is the cups browser.
Now, an username and password are asked when i want to add a printer in the cups browser interface.
Which user? which password? (I am trying to work according the cups-pdf infofile in the appbrowser).
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: cups-pdf in line-command abort with "Connection refused"
« Reply #4 on: February 12, 2011, 05:29:30 PM »
the cups-pdf extension looks to have been made with cups1311 in mind:

1. cups-pdf.conf in /etc/cups
2. /usr/local/lib/cups/backend/cups-pdf owned by tc:staff

Maybe we should have a cups-pdf1311 and I could submit a cups-pdf for the cups (1.4.x) extension?
I see that I mixed up everything: I installed cups-pdf and cups-pdf1311. Now I clean the mess and see what happens (I will install cups1311 and cups-pdf1311).
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: cups-pdf in line-command abort with "Connection refused"
« Reply #5 on: March 06, 2011, 12:26:40 PM »
Hi floppy
The "unable to connect". message means cups is not running. Type
"sudo /usr/local/etc/init.d/cups start" then try the browser again.

Thanks. It runs now (I putted this command into the bootlocal.sh; and installed the cups-pdf and cups.. not the 1311 versions).
But I have still no idea how to include the CUPS_PDF printer in the CUPS-Browser..
I must probably google a bit on it.
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: cups-pdf in line-command abort with "Connection refused"
« Reply #6 on: March 06, 2011, 12:39:46 PM »
Thanks. It runs now (I putted this command into the bootlocal.sh; and installed the cups-pdf and cups.. not the 1311 versions).
But I have still no idea how to include the CUPS_PDF printer in the CUPS-Browser..

Did you have a look at the cups-pdf info file?