Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: floppy on January 24, 2011, 04:47:42 PM

Title: cups-pdf in line-command abort with "Connection refused"
Post by: floppy 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?
Title: Re: cups-pdf in line-command abort with "Connection refused"
Post by: Juanito 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?
Title: Re: cups-pdf in line-command abort with "Connection refused"
Post by: Rich 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.
Title: Re: cups-pdf in line-command abort with "Connection refused"
Post by: floppy 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).
Title: Re: cups-pdf in line-command abort with "Connection refused"
Post by: floppy 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).
Title: Re: cups-pdf in line-command abort with "Connection refused"
Post by: floppy 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.
Title: Re: cups-pdf in line-command abort with "Connection refused"
Post by: Juanito 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?