You are not logged in.

#1 2012-08-04 15:35:58

City-busz
Package Maintainer (PM)
From: Budapest, Hungary
Registered: 2010-12-27
Posts: 181
Website

[SOLVED] Problems with CUPS 1.6

After I updated to CUPS 1.6, I experienced the following problems:

1. Since CUPS sharing protocol was dropped, I can't see shared printers on my local network even if avahi-daemon started before cupsd. I simply can't figure out how can I share my printer in an auto-discoverable way with avahi. (I can see the printer in avahi-discover, but not in printer dialog.)

2. When I trying to access to the CUPS configuration interface remotely, I get "Bad Request", and unable to access, even if it's enabled.

Could somebody help me?

Last edited by City-busz (2012-08-05 09:54:20)

Offline

#2 2012-08-04 16:02:09

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: [SOLVED] Problems with CUPS 1.6

Offline

#3 2012-08-05 09:53:52

City-busz
Package Maintainer (PM)
From: Budapest, Hungary
Registered: 2010-12-27
Posts: 181
Website

Re: [SOLVED] Problems with CUPS 1.6

The avahi related problems were solved by a patch: https://bugs.archlinux.org/task/31007

Now I configured by clients manually using the dnssd protocol (avahi).

Offline

#4 2012-09-06 10:25:04

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [SOLVED] Problems with CUPS 1.6

City-busz wrote:

The avahi related problems were solved by a patch: https://bugs.archlinux.org/task/31007

Now I configured by clients manually using the dnssd protocol (avahi).

How can do you do that? What commands do you run? If you run nmap, what ports are open in the server?

In my case:

nmap nm85239f.local

Starting Nmap 6.01 ( http://nmap.org ) at 2012-09-06 12:44 CEST
Nmap scan report for nm85239f.local (10.216.147.26)
Host is up (0.75s latency).
rDNS record for 10.216.147.26: centres.educacio.caib.es
Not shown: 992 closed ports
PORT     STATE SERVICE
21/tcp   open  ftp
80/tcp   open  http
515/tcp  open  printer
631/tcp  open  ipp
9100/tcp open  jetdirect
9101/tcp open  jetdirect
9102/tcp open  jetdirect
9103/tcp open  jetdirect

Nmap done: 1 IP address (1 host up) scanned in 1.68 seconds

Thanks in advance,
Xan.

Last edited by xanb (2012-09-06 10:44:49)


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#5 2012-09-06 13:57:22

City-busz
Package Maintainer (PM)
From: Budapest, Hungary
Registered: 2010-12-27
Posts: 181
Website

Re: [SOLVED] Problems with CUPS 1.6

I've used the CUPS admin interface on http://localhost:631/

On the server:
1. Add your printer manually. It should be listed in "Local Printers" section.
2. Enable the "Share printers connected to this system" option.
3. An opened 631/tcp port should be enough.

On the client:
1. Add your printer manually. It should be listed in "Discovered Network Printers" section.

Offline

#6 2012-09-06 14:09:28

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [SOLVED] Problems with CUPS 1.6

City-busz wrote:

I've used the CUPS admin interface on http://localhost:631/

On the server:
1. Add your printer manually. It should be listed in "Local Printers" section.
2. Enable the "Share printers connected to this system" option.
3. An opened 631/tcp port should be enough.

On the client:
1. Add your printer manually. It should be listed in "Discovered Network Printers" section.

Thanks for reply. On the client, what programs do you have installed? Do you have cups or only libcups installed?

Thanks in advance,
Xan.


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#7 2012-09-06 14:18:59

City-busz
Package Maintainer (PM)
From: Budapest, Hungary
Registered: 2010-12-27
Posts: 181
Website

Re: [SOLVED] Problems with CUPS 1.6

Avahi and cups daemons are required to be installed and enabled both on client and on server.

Offline

#8 2012-09-07 14:16:01

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [SOLVED] Problems with CUPS 1.6

City-busz wrote:

Avahi and cups daemons are required to be installed and enabled both on client and on server.

Thanks, but this is not what wiki says. In wiki, we have that only libcups is need. But, thanks. Now I know what fails.


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#9 2012-09-08 16:05:48

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [SOLVED] Problems with CUPS 1.6

Perhaps you could update the wiki for writing that libcups is not enough

Regards,


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#10 2012-09-17 14:57:32

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: [SOLVED] Problems with CUPS 1.6

For clarification:

It's enough to have libcups on the client when you know the static IP or hostname in your network. It's not even needed to run avahi on the server if you have dnssd browsing disabled. All client applications will automatically find the server's printer. There's no need to further add any printer on the client through a webinterface. So the cups daemon pkg is not needed.

If you are unsure about the server IP or hostname or you are looking (brwosing) for unknown printers in your network you will need avahi and the cups daemon running on your client. But this is usally not needed in a linux/linux network setup.

My local setup as an example and it should be a common setup: the server has dnssd browsing enabled and avahi + cupsd running and I have only libcups on all my clients where I add my server IP into the client.conf. That's it. All aaplications show my servers printers available.

Offline

#11 2012-09-18 19:25:01

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [SOLVED] Problems with CUPS 1.6

AndyRTR wrote:

For clarification:

It's enough to have libcups on the client when you know the static IP or hostname in your network. It's not even needed to run avahi on the server if you have dnssd browsing disabled. All client applications will automatically find the server's printer. There's no need to further add any printer on the client through a webinterface. So the cups daemon pkg is not needed.

In my case it does not work. How can I do for detect where is the problem?

Thanks in advance,
Xan.


Owning one OpenRC (artoo way) and other three systemd machines

Offline

Board footer

Powered by FluxBB