Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ah. I thought the info from lpstat etc were from your machine. If it's from the server, then the device path is incorrect.
On your server, there should be a /dev/usb/lp0 file. This file is created by the usblp module. Verify that usblp is loaded (turn on the printer first):
Once the module is loaded and the lp0 file is present, redo the steps from Post #12 but this time, use /dev/usb/lp0 instead of net:192.168.1.5 as the device path.
If the usb module is not loaded, try this:
Power off the printer
Remove the usb cable from the printer
Delete the printer from CUPS
Plug in the usb cable and power on the printer
Allow CUPS to auto-discover and configure the printer. The URI will be incorrect but this is necessary to have the usblp module loaded.
Verify that the usblp module is loaded and that /dev/usb/lp0 exists. If they are not, then we have some other issues.
After this, the connection is ccp://localhost:59687
Still couldn't print the test page from CUPS web admin page. The error message is this:
Paused - "ccp send_data error, exit"
If I go to Printers -> Canon_LBP6000, the status showed:
pending since
[date and time]
"Can't connect to CCPD: Connection refused"
Last edited by MilkTea; 12-21-2013 at 12:16 AM.
Reason: typo
"Can't connect to CCPD: Connection refused" - Could this be a permissions issue?
I added myself to the deny list. From the CUPS web admin page, I was still able to print. However, when I tried to print from the CUPS UI, I got a not authorized message.
Can you try to print the test page from the CUPS UI? On Gnome, it is System -> Administration -> Printing. On XFCE4 it's on System -> Printing. It may vary depending on your D.E.
Also, if your have SELinux or AppArmor enabled on the server, you may want to check on their configuration. I used AppArmor when I was ob Squeeze, but have not enabled any of these (as yet) since I switched to Wheezy.
Check your /etc/cups/cupsd.conf file for allowed or denied users.
Try the 32-bit driver instead of the 64-bit version and see if that helps.
I will try printing remotely from the web admin page and see what happens.
I tried it again and it still worked. I did everything from the shell, no GUI whatsoever so no CUPS UI.
I dropped to a root shell un-installed, re-installed and setup the printer. I then installed lynx and accessed the CUPS web admin page and printed a test page. No problems.
You can try to print directly from the server that way. Try this while directly on the server, no ssh or anything.
Install the lynx package:
Code:
apt-get install lynx
Launch the CUPS web admin page:
Code:
lynx localhost:631
You can use the arrow keys to navigate the links and enter to follow the link. As usual navigate to Printers -> Queues -> Canon_LBP6000 -> Maintenance. Press Enter to open the Option, select Test Page and Enter to select. Navigate to Go and enter to send the print job. Does it print, or do you still get the error?
I may certainly be wrong, but I still think it's a permissions issue from the ssh session.
@towheedm, I want to thank you for your diligent effort even though the problem remains.
I installed Lynx and tried Lynx localhost:631. I then navigated to Printers, select "Print test page", then "Go". The Job page showed that the job was completed, but the printer didn't do anything.
Ah...progress. So now we know the "Connection Refused" error is actually a permissions problem.
If you do lpstat -a, it should show two Canon printers, one with a URI of usb://...., which is the auto-detected printer and the other with a URI of ccp://localhost:59687, which is the one you manually setup. Do you the two printers?
Code:
lpstat -a
Canon_LBP6000 accepting requests since Sun 22 Dec 2013 12:25:03 AM AST
LBP6000-LBP6018 accepting requests since Sun 22 Dec 2013 12:44:30 AM AST
The second printer appeared even after I did everything from the CLI.
If I delete the second printer, it gets uto-detected again. If I disable it and try to print, the job shows as completed but nothing prints.
EDIT:
If I print from the auto-detected printer, the job shows as completed but nothing prints. The next time I print from the manually setup printer, only then is the job from the auto-detected printer printed.
I can never get rid of the second printer. It always get auto-detected again.
Does this printer have a URI of ccp://.... or usb://.....? Is it listed under the ccpdadmin command?
You can also try to have the web interface find new printers and see if it helps any. If it find any, do not edit it, just let CUPS add it to the queue.
EDIT:
Oh yeah....I just remembered, without the auto-detected printer, I did not have a /dev/usb/lp0 file, which is necessary to send data to printer.
I've attached a screen shot that is the result of "ccpdadmin status"
Also, when I "ls /dev/usb" lp0 is the only item in it.
I started out by having CUPS find the printer. But like I said before, it used "usb://Canon/LBP6000/LBP6018", which if I understand you right, CUPS should use ccp not usb.
But like I said before, it used "usb://Canon/LBP6000/LBP6018", which if I understand you right, CUPS should use ccp not usb.
Yes, and that's what you want. Now after it auto-detects that printer, so not touch it, leave it as is, even with usb://....
Now what you want to do is to manually add a printer.
So this should be the equivalent of what I did from the CUPS UI.
From the Administration tab:
Click on Add Printer
On the Add Printer page, select CAPT Printer and Continue
On the next page, enter ccp://localhost:59687 into the Connection box and click Continue
On the next page fill in the fields as you see fit and click continue
On the next page select Canon from the Make combo box and click continue
On the next page, scroll down the Model combo box and select the first Canon LBP6000/6018 CAPT US printer
Click on Add Printer
On the Set Default Options page select you options anf click on Set Default Options
After a few seconds the printer will be added and you should be taken to the printer queue page.
Click on the Printers tab. On this page, you should now see two printers, the auto-detected one and the newly added one.
Shutdown the ccp deamon and delete the existing printer from the ccpd setup file using the ccpdadmin command.
Using the ccpdadmin command, add the newly created printer. Remember to use the exact same name and device path of /dev/usb/lp0
Restart the ccp deamon.
Try a test print.
NOTE: While I added the printer completely using the CUPS web admin page last night and did successfully print a test page, today when I actually needed to print for the reason I bought the printer, I got your 'Connection Refused' error. The only way I could get rid of it was to delete the printer and add it again.
I will try to duplicate it again tonight if I get some time.
Clicking the "Add Printer" under the Admin tab didn't do anything. Nothing happened. I had to use Find New Printer to find lbp6000. However, CUPSC didn't let me change the Connection if I add the printer this way.
I tried it with lynx. When I followed the Add Printer link, it asked for authentication. This requires root access, so use root for the username and provide root's password.
Remember you are doing it directly on the server, not from an ssh session.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.