LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-21-2009, 06:13 AM   #1
rdozijn_2
Member
 
Registered: Feb 2009
Distribution: debian
Posts: 39

Rep: Reputation: 0
printing in debian with cups


hello forum,

I use debian lenny (kernel 2.6.26-2-686)

I am a bit confused when it comes to printing. If I issue the command 'lpstat -p -d' I get a list of available printers. When I look at the list that cups knows at http://localhost:631/ it is a completely different set.

I print with the lp command, which is part of the cups-client package. The printer I can use are the ones that lpstat lists, but I cannot find this list in a config file.

Have I installed two conflicting packages? What must I do to add a printer?
Right now I use the cups web interface, but the added printers only appear in the web interface and in /etc/cups/printers.conf. Both lp and lpstat know nothing of the new printer......

any hint welcome!

Ruud
 
Old 09-21-2009, 08:23 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Do the printers appear in CUPS at http://localhost:631?

http://dev.linuxfoundation.org/~till...orial/tut.html
 
Old 09-22-2009, 02:02 AM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
You could try using the 'ipp' protocol in the cups web config.
 
Old 09-22-2009, 02:47 AM   #4
rdozijn_2
Member
 
Registered: Feb 2009
Distribution: debian
Posts: 39

Original Poster
Rep: Reputation: 0
thank you both for your reply.

Using the web interface http://localhost:631/, I had added exactly two printers using the ipp protocol. These two printers are the only two that appear in the CUPS printer list and are the only printers that appear in /etc/cups/printers.conf.

The lp command doesn't know these two printers and the lpstat command listst 4 other printers. These 4 printers I can use with lp, but I cannot find a config file where they are defined nor can I remember how I added them. They don't appear in /etc/printcap. Applications like iceweasel and oowriter show me the same printers when I issue a print command.

It seems I have installed two printing systems, but I do not know enough of printing to know where to start.....

Ruud

Last edited by rdozijn_2; 09-23-2009 at 04:35 AM.
 
Old 09-23-2009, 06:17 AM   #5
rdozijn_2
Member
 
Registered: Feb 2009
Distribution: debian
Posts: 39

Original Poster
Rep: Reputation: 0
Maybe this is relevant info:
I found this in the acces.log from cups:

localhost - root [23/Sep/2009:11:46:28 +0200] "GET /printers/ HTTP/1.1" 200 0 - -
localhost - - [23/Sep/2009:11:46:28 +0200] "POST / HTTP/1.1" 200 135 CUPS-Get-Default client-error-not-found
localhost - - [23/Sep/2009:11:46:28 +0200] "POST / HTTP/1.1" 200 549 CUPS-Get-Printers successful-ok
localhost - root [23/Sep/2009:11:46:28 +0200] "GET /printers/ HTTP/1.1" 200 8754 - -
localhost - root [23/Sep/2009:11:47:07 +0200] "GET /admin HTTP/1.1" 200 0 - -
localhost - - [23/Sep/2009:11:47:07 +0200] "POST / HTTP/1.1" 200 104 Get-Subscriptions client-error-not-found
localhost - root [23/Sep/2009:11:47:07 +0200] "GET /admin HTTP/1.1" 200 5974 - -
localhost - root [23/Sep/2009:11:47:09 +0200] "GET /admin?op=add-printer HTTP/1.1" 200 0 - -
localhost - root [23/Sep/2009:11:47:09 +0200] "GET /admin?op=add-printer HTTP/1.1" 200 4112 - -
localhost - root [23/Sep/2009:11:47:24 +0200] "POST /admin HTTP/1.1" 200 89 - -
localhost - - [23/Sep/2009:11:47:26 +0200] "POST / HTTP/1.1" 200 411 CUPS-Get-Printers successful-ok
localhost - - [23/Sep/2009:11:47:26 +0200] "POST / HTTP/1.1" 200 411 CUPS-Get-Classes successful-ok
localhost - - [23/Sep/2009:11:47:26 +0200] "POST / HTTP/1.1" 200 72 CUPS-Get-Default client-error-not-found
localhost - - [23/Sep/2009:11:47:26 +0200] "POST / HTTP/1.1" 200 409 CUPS-Get-Printers successful-ok
localhost - - [23/Sep/2009:11:47:26 +0200] "POST / HTTP/1.1" 200 177 CUPS-Get-Printers successful-ok

Probably the errors are part of the problem and explain why lp doesn't see the printers that are added in the web interface? Still I don't understand where the printers that lp is aware of are coming from....

Ruud
 
Old 09-23-2009, 08:54 AM   #6
rdozijn_2
Member
 
Registered: Feb 2009
Distribution: debian
Posts: 39

Original Poster
Rep: Reputation: 0
OK, found it.
The printers that lp found where the ones that were defined on the server as deffined in /etc/cups/client.conf. I changed the client to my local machine et voila: the lists were the same.
The lists of printers on the client were not available via localhost:631/printers, but via http:my.server.nl:631/printers.
Spent some time on it, but will never forget the answer to this question

Ruud
 
  


Reply



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
Can't pause/resume printing (cups+Debian) lgs Linux - Desktop 0 12-22-2008 09:01 PM
Slow printing from CUPS on Debian to Brother Multifunction Device jimbo1954 Linux - Hardware 2 03-18-2008 08:26 AM
Debian 3.1.r1, cups, canon s100-USB, can not adjust printing SuSE 1983. Linux - Newbie 1 02-19-2006 01:59 PM
debian & cups printing h3xis Linux - Software 8 08-24-2005 12:27 PM
Debian printing with cups snablen Linux - Hardware 0 07-20-2004 09:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:40 AM.

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