LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-20-2013, 09:13 AM   #16
martinyeh
LQ Newbie
 
Registered: Apr 2008
Location: USA
Distribution: Debian Etch & Gentoo
Posts: 14

Rep: Reputation: 0

yeah, I did. I did everything on the server. I haven't touched my local machine yet. I thought I need to be able to print from the server first.
 
Old 12-20-2013, 09:34 AM   #17
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Stretch
Posts: 612

Original Poster
Rep: Reputation: 125Reputation: 125
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):
Code:
lsmod | grep "usblp"
should return something like:
Code:
usblp                  17115  0 
usbcore               104555  4 ehci_hcd,uhci_hcd,usblp
And:
Code:
ls -l /dev/usb
should return
Code:
crw-rw---T 1 root lp 180, 0 Dec 20 11:22 lp0
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:
  1. Power off the printer
  2. Remove the usb cable from the printer
  3. Delete the printer from CUPS
  4. Plug in the usb cable and power on the printer
  5. 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.

Post back the results and we'll go from there.

Last edited by towheedm; 12-20-2013 at 09:35 AM.
 
Old 12-21-2013, 12:14 AM   #18
MilkTea
Member
 
Registered: Nov 2013
Location: PA, USA
Distribution: Debian Squeeze
Posts: 30

Rep: Reputation: Disabled
I verified that the usb module was loaded and I did see /dev/usb/lp0

Changing the device_path from net:192.168.1.5 to /dev/usb/lp0 didn't help.

I read your steps about "if usb module is not presented..." and thought I need to let CUPS find the print first. So I remove the drive:
Code:
ccpdadmin -x Canon_LBP6000
lpadmin -x Canon_LBP6000
dpkg -p cndrvcups-capt
dpkg -p cndrvcups-common
Go the CUPS web admin, select Find New Printer, select Canon, select LBP6000 (UK) driver. I have 4 drivers listed:
Code:
Canon LBP6000/LBP6018 CAPT (UK)
Canon LBP6000/LBP6018 CAPT (UK)
Canon LBP6000/LBP6018 CAPT (US)
Canon LBP6000/LBP6018 CAPT (US)
I selected the first one and added the printer. At this point, the connection is to usb://Canon/LBP6000/LBP6018

When this was done, I then did the following:
Code:
dpkg -i cndrvcups-common_2.60-1_amd64.deb
dpkg -i cndrvcups-capt_2.60-1_amd64.deb
/etc/init.d/cups restart
/usr/sbin/lpadmin -p Canon_LBP6000 -m CNCUPSLBP6018CAPTK.ppd -v ccp://localhost:59687 -E
/usr/sbin/ccpdadmin -p Canon_LBP6000 -o /dev/usb/lp0
/etc/init.d/ccpd star
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
 
Old 12-21-2013, 10:57 AM   #19
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Stretch
Posts: 612

Original Poster
Rep: Reputation: 125Reputation: 125
"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.

Last edited by towheedm; 12-21-2013 at 11:10 AM.
 
Old 12-21-2013, 08:26 PM   #20
MilkTea
Member
 
Registered: Nov 2013
Location: PA, USA
Distribution: Debian Squeeze
Posts: 30

Rep: Reputation: Disabled
There is no x window installed on the server, so I don't have CUPS UI.

I don't have SELinux nor AppArmor. I've never heard of them.

I think the cupsd.conf should be okay. I had a samsung ML-1710 printer and had no problem printing.

I uninstalled the driver and tried 32-bit driver but it won't let me: package architecture (i386) does not match system (amd64)
 
Old 12-21-2013, 10:41 PM   #21
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Stretch
Posts: 612

Original Poster
Rep: Reputation: 125Reputation: 125
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.
 
Old 12-21-2013, 10:50 PM   #22
MilkTea
Member
 
Registered: Nov 2013
Location: PA, USA
Distribution: Debian Squeeze
Posts: 30

Rep: Reputation: Disabled
@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.
 
Old 12-21-2013, 11:16 PM   #23
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Stretch
Posts: 612

Original Poster
Rep: Reputation: 125Reputation: 125
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.

Last edited by towheedm; 12-21-2013 at 11:20 PM.
 
Old 12-21-2013, 11:21 PM   #24
MilkTea
Member
 
Registered: Nov 2013
Location: PA, USA
Distribution: Debian Squeeze
Posts: 30

Rep: Reputation: Disabled
There is only one.

Code:
lpstat -a
Canon_LBP6000 accepting requests since Sat 21 Dec 2013 11:46:41 PM EST
I believe this is the one that I added manually.
 
Old 12-21-2013, 11:41 PM   #25
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Stretch
Posts: 612

Original Poster
Rep: Reputation: 125Reputation: 125
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.

Last edited by towheedm; 12-21-2013 at 11:44 PM.
 
Old 12-22-2013, 07:43 PM   #26
MilkTea
Member
 
Registered: Nov 2013
Location: PA, USA
Distribution: Debian Squeeze
Posts: 30

Rep: Reputation: Disabled
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.
Attached Thumbnails
Click image for larger version

Name:	CcpdadminStatus.jpg
Views:	176
Size:	48.9 KB
ID:	14301  
 
Old 12-22-2013, 08:45 PM   #27
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Stretch
Posts: 612

Original Poster
Rep: Reputation: 125Reputation: 125
Quote:
Originally Posted by MilkTea View Post
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:
  1. Click on Add Printer
  2. On the Add Printer page, select CAPT Printer and Continue
  3. On the next page, enter ccp://localhost:59687 into the Connection box and click Continue
  4. On the next page fill in the fields as you see fit and click continue
  5. On the next page select Canon from the Make combo box and click continue
  6. On the next page, scroll down the Model combo box and select the first Canon LBP6000/6018 CAPT US printer
  7. Click on Add Printer
  8. On the Set Default Options page select you options anf click on Set Default Options
  9. After a few seconds the printer will be added and you should be taken to the printer queue page.
  10. Click on the Printers tab. On this page, you should now see two printers, the auto-detected one and the newly added one.
  11. Shutdown the ccp deamon and delete the existing printer from the ccpd setup file using the ccpdadmin command.
  12. Using the ccpdadmin command, add the newly created printer. Remember to use the exact same name and device path of /dev/usb/lp0
  13. Restart the ccp deamon.
  14. 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.

Last edited by towheedm; 12-22-2013 at 08:53 PM.
 
Old 12-22-2013, 11:12 PM   #28
MilkTea
Member
 
Registered: Nov 2013
Location: PA, USA
Distribution: Debian Squeeze
Posts: 30

Rep: Reputation: Disabled
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.
 
Old 12-23-2013, 07:29 AM   #29
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Stretch
Posts: 612

Original Poster
Rep: Reputation: 125Reputation: 125
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.
 
Old 12-23-2013, 10:43 PM   #30
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Stretch
Posts: 612

Original Poster
Rep: Reputation: 125Reputation: 125
If you're still not able to add printers from the CUPS interface, I found several all over the web with others experiencing similar problems.

Use the search terms cups add printer forbidden.

Here one from the Debian Forum: http://forums.debian.net/viewtopic.php?f=30&t=68705
 
  


Reply

Tags
canon, laserjet, lbp6000, printer


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
Ubuntu 12.04 LTS installed, Asus laptop, Canon printer & Canon scanner not working. EatonWF Linux - Newbie 2 07-12-2012 10:44 AM
how to install canon printer in linux rajputdharmpremi Linux - Newbie 3 08-26-2011 03:16 PM
Canon printer and Linux drivers den_. Linux - Hardware 7 04-04-2010 10:00 AM
What canon printer for linux ? Christophe_35 Linux - Hardware 6 10-20-2005 05:37 PM
How to use Canon MPC190 printer under Linux??? wiggywag Linux - Hardware 9 12-21-2004 08:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:35 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration