You are not logged in.

#1 2012-08-28 15:50:36

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

I can't see printers. Cups client

I have two machines, two with archlinux.

The server:
* has cups with Samsung ML2510 printer added.
* I can see <server ip>:631 from client
* I can print directly in web interface
* The server has this configuration file: http://pastebin.com/ChpVzaKw
* and printers: http://pastebin.com/L19UdnVC

The client:
* I have ServerName <the ip of the server> in /etc/cups/client.conf

The problem is that I can't see the printers in the client. For example in firefox, when I choose "Print", there is no printers avaliable.

What can I do?

I read https://wiki.archlinux.org/index.php/CU … er_sharing and search many docs in google but I can't find a hint.

Thanks in advance,
Xan.


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

Offline

#2 2012-08-28 16:35:18

Zancarius
Member
From: NM, USA
Registered: 2012-05-06
Posts: 207

Re: I can't see printers. Cups client

CUPS 1.6 changed the behavior of printer sharing and essentially moved its print advertising out to DNSSD. If you don't have Avahi installed on the server, install it and enabled the avahi-daemon and avahi-dnsconfd (initscripts) or avahi and avahi-daemon (systemd). You may need to configure Avahi in order for it to work. Be aware that this may not resolve your issue; there have been a few threads recently related to CUPS 1.6 and the changes made to it with regards to network printer discovery, and some of them may have other solutions or suggestions.


He who has no .plan has small finger.
~Confucius on UNIX.

Offline

#3 2012-08-30 13:10:01

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

Re: I can't see printers. Cups client

Zancarius wrote:

CUPS 1.6 changed the behavior of printer sharing and essentially moved its print advertising out to DNSSD. If you don't have Avahi installed on the server, install it and enabled the avahi-daemon and avahi-dnsconfd (initscripts) or avahi and avahi-daemon (systemd). You may need to configure Avahi in order for it to work. Be aware that this may not resolve your issue; there have been a few threads recently related to CUPS 1.6 and the changes made to it with regards to network printer discovery, and some of them may have other solutions or suggestions.

Thank you, Zancarius, and sorry for the delay.

I installed avahi and I put avahi and avahi-dnsconfd in rc.conf:

    DAEMONS=(syslog-ng ufw network crond dropbear dbus avahi-daemon avahi-dnsconfd cupsd)

and it works:

 ps aux | grep avahi
avahi      517  0.0  0.1   3424  1648 ?        S    15:05   0:00 avahi-daemon: running [negre.local]
avahi      518  0.0  0.0   3280   404 ?        S    15:05   0:00 avahi-daemon: chroot helper
root       549  0.0  0.0   2328   580 ?        S    15:05   0:00 /usr/sbin/avahi-dnsconfd -D
root       625  0.0  0.0   4388   880 pts/0    S+   15:09   0:00 grep avahi

In this stage, the client does not discover yet the printers.

How can I configure the avahi?
What are the additional steps I have to do for discover printers?

Thanks in advance,
Xan.

PS: Can you suggest me some threads about cups discovering?


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

Offline

#4 2012-08-30 18:22:33

ConnorBehan
Trusted User (TU)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: I can't see printers. Cups client

Although I do not use network printers, I also had a problem where client applications didn't list my printer. I solved it by deleting /etc/cups/client.conf and /var/run/cups/cups.sock.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#5 2012-08-30 18:42:03

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

Re: I can't see printers. Cups client

ConnorBehan wrote:

Although I do not use network printers, I also had a problem where client applications didn't list my printer. I solved it by deleting /etc/cups/client.conf and /var/run/cups/cups.sock.

I tried and these have no efect on me, but thanks for answeing...

Regards,
Xan.


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

Offline

#6 2012-08-31 14:28:56

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

Re: I can't see printers. Cups client

Any other hint? I'm dry of ideas ;-)
I consider to downgrade to cups 1.5 that has not this problem

Xan.

Last edited by xanb (2012-08-31 14:29:37)


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

Offline

#7 2012-09-01 14:03:52

slot
Member
Registered: 2008-09-08
Posts: 63

Re: I can't see printers. Cups client

I have downgraded until something shows up

Offline

#8 2012-09-01 19:37:56

cgar
Member
Registered: 2012-08-26
Posts: 10

Re: I can't see printers. Cups client

When you deleted /etc/cups/client.conf, did you install cups on the client and add the printer in the client interface; localhost:631?

Offline

#9 2012-09-02 11:36:56

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

Re: I can't see printers. Cups client

cgar wrote:

When you deleted /etc/cups/client.conf, did you install cups on the client and add the printer in the client interface; localhost:631?

No. I have only installed cups (1.6) in the server and libcups (1.6) in the client. I don't want to install cups server in the client. I just want to use printer connected in the server.

I suspect, but I don't have proofs, that the problem is avahi communication between server and client. I summarize:

* I have cups installed in the server
* I have plugged my printer in the server and it works (it prints a test page)
* I see <server ip>:631 from the client
* I open port 5959 for avahi communication with client and server

So I deduce cups works properly.

The cups error.log is this:

I [02/Sep/2012:12:50:22 +0200] Remote access is enabled.
D [02/Sep/2012:12:50:22 +0200] Added auto ServerAlias negre
I [02/Sep/2012:12:50:23 +0200] Loaded configuration file "/etc/cups/cupsd.conf"
D [02/Sep/2012:12:50:23 +0200] Repairing ownership of "/var/run/cups"
D [02/Sep/2012:12:50:23 +0200] Creating missing directory "/var/run/cups/certs"
D [02/Sep/2012:12:50:23 +0200] Repairing ownership of "/var/run/cups/certs"
D [02/Sep/2012:12:50:23 +0200] Repairing access permissions of "/var/run/cups/certs"
I [02/Sep/2012:12:50:23 +0200] Using default TempDir of /var/spool/cups/tmp...
I [02/Sep/2012:12:50:23 +0200] Configured for up to 100 clients.
I [02/Sep/2012:12:50:23 +0200] Allowing up to 100 client connections per host.
I [02/Sep/2012:12:50:23 +0200] Using policy "default" as the default.
I [02/Sep/2012:12:50:23 +0200] Full reload is required.
I [02/Sep/2012:12:50:23 +0200] Loaded MIME database from "/usr/share/cups/mime" and "/etc/cups": 38 types, 54 filters...
D [02/Sep/2012:12:50:24 +0200] Loading printer Samsung_ML-2510_Series...
D [02/Sep/2012:12:50:24 +0200] load_ppd: Loading /var/cache/cups/Samsung_ML-2510_Series.data...
D [02/Sep/2012:12:50:24 +0200] cupsdRegisterPrinter(p=0xb8d896d8(Samsung_ML-2510_Series))
I [02/Sep/2012:12:50:24 +0200] Loading job cache file "/var/cache/cups/job.cache"...
D [02/Sep/2012:12:50:24 +0200] [Job 7] Loading from cache...
I [02/Sep/2012:12:50:24 +0200] Full reload complete.
D [02/Sep/2012:12:50:24 +0200] cupsdCleanFiles(path="/var/spool/cups/tmp", pattern="(null)")
I [02/Sep/2012:12:50:24 +0200] Cleaning out old files in "/var/spool/cups/tmp"...
D [02/Sep/2012:12:50:24 +0200] cupsdCleanFiles(path="/var/cache/cups", pattern="*.ipp")
I [02/Sep/2012:12:50:24 +0200] Cleaning out old files in "/var/cache/cups"...
D [02/Sep/2012:12:50:24 +0200] systemd_checkin: Matched existing listener /var/run/cups/cups.sock with fd 3...
D [02/Sep/2012:12:50:24 +0200] systemd_checkin: Matched existing listener [v1.::] with fd 4...
E [02/Sep/2012:12:50:24 +0200] systemd_checkin: Socket not of the right type
D [02/Sep/2012:12:50:24 +0200] Calling FindDeviceById(cups-Samsung_ML-2510_Series)
D [02/Sep/2012:12:50:24 +0200] FindDeviceById failed: org.freedesktop.ColorManager.Failed:device id 'cups-Samsung_ML-2510_Series' does not exists
D [02/Sep/2012:12:50:24 +0200] Using profile ID "Samsung_ML-2510_Series-Gray..".
D [02/Sep/2012:12:50:24 +0200] Calling CreateProfile(Samsung_ML-2510_Series-Gray..,temp)
D [02/Sep/2012:12:50:25 +0200] Created profile "/org/freedesktop/ColorManager/profiles/Samsung_ML_2510_Series_Gray__".
I [02/Sep/2012:12:50:25 +0200] Registering ICC color profiles for "Samsung_ML-2510_Series".
D [02/Sep/2012:12:50:25 +0200] Calling CreateDevice(cups-Samsung_ML-2510_Series,temp)
D [02/Sep/2012:12:50:25 +0200] Created device "/org/freedesktop/ColorManager/devices/cups_Samsung_ML_2510_Series".
D [02/Sep/2012:12:50:25 +0200] Calling /org/freedesktop/ColorManager/devices/cups_Samsung_ML_2510_Series:AddProfile(/org/freedesktop/ColorManager/profiles/Samsung_ML_2510_Series_Gray__) [soft]
W [02/Sep/2012:12:50:25 +0200] AddProfile failed: org.freedesktop.DBus.Error.UnknownMethod:No existeix la interfície «org.freedesktop.ColorManager» en l'objecte al camí /org/freedesktop/ColorManager/devices/cups_Samsung_ML_2510_Series
I [02/Sep/2012:12:50:25 +0200] Listening to 0.0.0.0:631 on fd 12...
I [02/Sep/2012:12:50:25 +0200] Listening to [v1.::]:631 on fd 4...
I [02/Sep/2012:12:50:25 +0200] Listening to /var/run/cups/cups.sock:631 on fd 3...
I [02/Sep/2012:12:50:25 +0200] Resuming new connection processing...
D [02/Sep/2012:12:50:25 +0200] cupsdRegisterPrinter(p=0xb8d896d8(Samsung_ML-2510_Series))
D [02/Sep/2012:12:50:25 +0200] Registering "Samsung ML-2510 Series @ negre" with DNS-SD type "_printer._tcp".
D [02/Sep/2012:12:50:25 +0200] Registering "Samsung ML-2510 Series @ negre" with DNS-SD type "_ipps._tcp".
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" printer-type=0x3056
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" printer-state=3
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" Copies=T
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" Duplex=T
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" TLS=1.2
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" UUID=67c3e368-cc5f-3f04-568e-36cb20dd9c5b
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" product=(GNU Ghostscript)
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" priority=0
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" note=servidor negre
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" adminurl=https://negre.local:631/printers/Samsung_ML-2510_Series
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" ty=Samsung ML-2550, SpliX V. 2.0.0
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" rp=printers/Samsung_ML-2510_Series
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" qtotal=1
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" txtvers=1
D [02/Sep/2012:12:50:25 +0200] Registering "Samsung ML-2510 Series @ negre" with DNS-SD type "_ipp._tcp".
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" printer-type=0x3056
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" printer-state=3
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" Copies=T
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" Duplex=T
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" TLS=1.2
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" UUID=67c3e368-cc5f-3f04-568e-36cb20dd9c5b
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" product=(GNU Ghostscript)
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" priority=0
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" note=servidor negre
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" adminurl=https://negre.local:631/printers/Samsung_ML-2510_Series
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" ty=Samsung ML-2550, SpliX V. 2.0.0
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" rp=printers/Samsung_ML-2510_Series
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" qtotal=1
D [02/Sep/2012:12:50:25 +0200] DNS_SD "Samsung ML-2510 Series @ negre" txtvers=1
D [02/Sep/2012:12:50:25 +0200] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [02/Sep/2012:12:50:25 +0200] Discarding unused server-started event...
D [02/Sep/2012:12:50:26 +0200] Report: clients=0
D [02/Sep/2012:12:50:26 +0200] Report: jobs=1
D [02/Sep/2012:12:50:26 +0200] Report: jobs-active=0
D [02/Sep/2012:12:50:26 +0200] Report: printers=1
D [02/Sep/2012:12:50:26 +0200] Report: stringpool-string-count=14967
D [02/Sep/2012:12:50:26 +0200] Report: stringpool-alloc-bytes=9592
D [02/Sep/2012:12:50:26 +0200] Report: stringpool-total-bytes=264888
D [02/Sep/2012:12:50:27 +0200] [Client 18] Accepted from localhost (Domain)
D [02/Sep/2012:12:50:27 +0200] [Client 18] POST / HTTP/1.1
D [02/Sep/2012:12:50:27 +0200] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [02/Sep/2012:12:50:27 +0200] [Client 18] No authentication data provided.
D [02/Sep/2012:12:50:27 +0200] [Client 18] 2.0 CUPS-Get-Devices 1
D [02/Sep/2012:12:50:27 +0200] CUPS-Get-Devices
D [02/Sep/2012:12:50:27 +0200] cupsdIsAuthorized: username=""
D [02/Sep/2012:12:50:27 +0200] Returning HTTP No autoritzat for CUPS-Get-Devices (no URI) from localhost
D [02/Sep/2012:12:50:28 +0200] [Client 18] WWW-Authenticate: Basic realm="CUPS", trc="y"
D [02/Sep/2012:12:50:28 +0200] [Client 18] HTTP_WAITING Closing on EOF
D [02/Sep/2012:12:50:28 +0200] [Client 18] Closing connection.
D [02/Sep/2012:12:50:28 +0200] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [02/Sep/2012:12:50:28 +0200] [Client 18] Accepted from localhost (Domain)
D [02/Sep/2012:12:50:28 +0200] [Client 18] HTTP_WAITING Closing on EOF
D [02/Sep/2012:12:50:28 +0200] [Client 18] Closing connection.
D [02/Sep/2012:12:50:28 +0200] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [02/Sep/2012:12:50:28 +0200] [Client 18] Accepted from localhost (Domain)
D [02/Sep/2012:12:50:28 +0200] [Client 18] POST / HTTP/1.1
D [02/Sep/2012:12:50:28 +0200] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [02/Sep/2012:12:50:28 +0200] [Client 18] Authorized as root using PeerCred
D [02/Sep/2012:12:50:28 +0200] [Client 18] 2.0 CUPS-Get-Devices 1
D [02/Sep/2012:12:50:28 +0200] CUPS-Get-Devices
D [02/Sep/2012:12:50:28 +0200] cupsdIsAuthorized: username="root"
D [02/Sep/2012:12:50:28 +0200] [CGI] argv[0] = "/usr/lib/cups/daemon/cups-deviced"
D [02/Sep/2012:12:50:28 +0200] [CGI] argv[1] = "1"
D [02/Sep/2012:12:50:28 +0200] [CGI] argv[2] = "0"
D [02/Sep/2012:12:50:28 +0200] [CGI] argv[3] = "15"
D [02/Sep/2012:12:50:28 +0200] [CGI] argv[4] = "2"
D [02/Sep/2012:12:50:28 +0200] [CGI] argv[5] = "requested-attributes=all include-schemes='dnssd'"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[1] = "CUPS_DATADIR=/usr/share/cups"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[2] = "CUPS_DOCROOT=/usr/share/cups/doc"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/lib/cups"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[6] = "CUPS_SERVERROOT=/etc/cups"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[7] = "CUPS_STATEDIR=/var/run/cups"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[10] = "SERVER_ADMIN=root@negre"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[11] = "SOFTWARE=CUPS/1.6.1"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[13] = "USER=root"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[14] = "CUPS_MAX_MESSAGE=2047"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[15] = "CUPS_SERVER=/var/run/cups/cups.sock"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[16] = "CUPS_ENCRYPTION=IfRequested"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[17] = "IPP_PORT=631"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[18] = "AUTH_TYPE=PeerCred"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[19] = "LANG=ca_ES.UTF8"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[20] = "REDIRECT_STATUS=1"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[21] = "GATEWAY_INTERFACE=CGI/1.1"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[22] = "SERVER_NAME=localhost"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[23] = "SERVER_PORT=631"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[24] = "REMOTE_ADDR=localhost"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[25] = "REMOTE_HOST=localhost"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[26] = "SCRIPT_NAME=/"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[27] = "SCRIPT_FILENAME=/usr/share/cups/doc/"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[28] = "REMOTE_USER=root"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[29] = "SERVER_PROTOCOL=HTTP/1.1"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[30] = "HTTP_USER_AGENT=CUPS/1.6.1"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[31] = "REQUEST_METHOD=POST"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[32] = "CONTENT_LENGTH=144"
D [02/Sep/2012:12:50:28 +0200] [CGI] envp[33] = "CONTENT_TYPE=application/ipp"
D [02/Sep/2012:12:50:28 +0200] [CGI] Started /usr/lib/cups/daemon/cups-deviced (PID 272)
I [02/Sep/2012:12:50:28 +0200] [Client 18] Started "/usr/lib/cups/daemon/cups-deviced" (pid=272)
D [02/Sep/2012:12:50:28 +0200] [Client 18] file=19
D [02/Sep/2012:12:50:28 +0200] [cups-deviced] Started backend /usr/lib/cups/backend/dnssd (PID 273)
D [02/Sep/2012:12:50:28 +0200] [CGI] sent=0, count=0
D [02/Sep/2012:12:50:28 +0200] [cups-deviced] PID 273 (dnssd) exited with no errors.
D [02/Sep/2012:12:50:28 +0200] PID 272 (/usr/lib/cups/daemon/cups-deviced) exited with no errors.
D [02/Sep/2012:12:50:28 +0200] Script header: Content-Type: application/ipp
D [02/Sep/2012:12:50:28 +0200] Script header: 
D [02/Sep/2012:12:50:28 +0200] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [02/Sep/2012:12:50:31 +0200] [Client 18] POST / HTTP/1.1
D [02/Sep/2012:12:50:31 +0200] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [02/Sep/2012:12:50:31 +0200] [Client 18] Authorized as root using PeerCred
D [02/Sep/2012:12:50:31 +0200] [Client 18] 2.0 CUPS-Get-Devices 2
D [02/Sep/2012:12:50:31 +0200] CUPS-Get-Devices
D [02/Sep/2012:12:50:31 +0200] cupsdIsAuthorized: username="root"
D [02/Sep/2012:12:50:31 +0200] [CGI] argv[0] = "/usr/lib/cups/daemon/cups-deviced"
D [02/Sep/2012:12:50:31 +0200] [CGI] argv[1] = "2"
D [02/Sep/2012:12:50:31 +0200] [CGI] argv[2] = "0"
D [02/Sep/2012:12:50:31 +0200] [CGI] argv[3] = "15"
D [02/Sep/2012:12:50:31 +0200] [CGI] argv[4] = "2"
D [02/Sep/2012:12:50:31 +0200] [CGI] argv[5] = "requested-attributes=all include-schemes='dnssd'"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[1] = "CUPS_DATADIR=/usr/share/cups"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[2] = "CUPS_DOCROOT=/usr/share/cups/doc"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/lib/cups"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[6] = "CUPS_SERVERROOT=/etc/cups"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[7] = "CUPS_STATEDIR=/var/run/cups"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[10] = "SERVER_ADMIN=root@negre"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[11] = "SOFTWARE=CUPS/1.6.1"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[13] = "USER=root"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[14] = "CUPS_MAX_MESSAGE=2047"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[15] = "CUPS_SERVER=/var/run/cups/cups.sock"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[16] = "CUPS_ENCRYPTION=IfRequested"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[17] = "IPP_PORT=631"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[18] = "AUTH_TYPE=PeerCred"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[19] = "LANG=ca_ES.UTF8"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[20] = "REDIRECT_STATUS=1"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[21] = "GATEWAY_INTERFACE=CGI/1.1"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[22] = "SERVER_NAME=localhost"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[23] = "SERVER_PORT=631"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[24] = "REMOTE_ADDR=localhost"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[25] = "REMOTE_HOST=localhost"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[26] = "SCRIPT_NAME=/"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[27] = "SCRIPT_FILENAME=/usr/share/cups/doc/"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[28] = "REMOTE_USER=root"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[29] = "SERVER_PROTOCOL=HTTP/1.1"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[30] = "HTTP_USER_AGENT=CUPS/1.6.1"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[31] = "REQUEST_METHOD=POST"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[32] = "CONTENT_LENGTH=144"
D [02/Sep/2012:12:50:31 +0200] [CGI] envp[33] = "CONTENT_TYPE=application/ipp"
D [02/Sep/2012:12:50:31 +0200] [CGI] Started /usr/lib/cups/daemon/cups-deviced (PID 275)
I [02/Sep/2012:12:50:31 +0200] [Client 18] Started "/usr/lib/cups/daemon/cups-deviced" (pid=275)
D [02/Sep/2012:12:50:31 +0200] [Client 18] file=19
D [02/Sep/2012:12:50:31 +0200] [cups-deviced] Started backend /usr/lib/cups/backend/dnssd (PID 276)
D [02/Sep/2012:12:50:32 +0200] [CGI] sent=0, count=0
D [02/Sep/2012:12:50:32 +0200] [cups-deviced] PID 276 (dnssd) exited with no errors.
D [02/Sep/2012:12:50:32 +0200] PID 275 (/usr/lib/cups/daemon/cups-deviced) exited with no errors.
D [02/Sep/2012:12:50:32 +0200] Script header: Content-Type: application/ipp
D [02/Sep/2012:12:50:32 +0200] Script header: 
D [02/Sep/2012:12:50:32 +0200] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [02/Sep/2012:12:55:33 +0200] Closing client 18 after 300 seconds of inactivity...
D [02/Sep/2012:12:55:33 +0200] [Client 18] Closing connection.
D [02/Sep/2012:12:55:33 +0200] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [02/Sep/2012:12:55:33 +0200] Report: clients=0
D [02/Sep/2012:12:55:33 +0200] Report: jobs=1
D [02/Sep/2012:12:55:33 +0200] Report: jobs-active=0
D [02/Sep/2012:12:55:33 +0200] Report: printers=1
D [02/Sep/2012:12:55:33 +0200] Report: stringpool-string-count=14967
D [02/Sep/2012:12:55:33 +0200] Report: stringpool-alloc-bytes=9592
D [02/Sep/2012:12:55:33 +0200] Report: stringpool-total-bytes=264888
[xan@negre ~]$ 

(my server hostname is "negre" and my client hostname is "gerret")

My cups.conf is:

# cat /etc/cups/cupsd.conf
#
# "$Id: cupsd.conf.in 9407 2010-12-09 21:24:51Z mike $"
#
# Sample configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
# complete description of this file.
#

# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel debug

# Administrator user group...
SystemGroup sys root


# Only listen for connections from the local machine.
Listen 631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseLocalProtocols dnssd

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Web interface setting...
WebInterface Yes

# Restrict access to the server...
<Location />
  Order allow,deny
  Allow @LOCAL
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
  Allow @LOCAL
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job/subscription privacy...
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default

  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
  </Limit>

  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

# Set the authenticated printer/job policies...
<Policy authenticated>
  # Job/subscription privacy...
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default

  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Default
    Order deny,allow
  </Limit>

  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

#
# End of "$Id: cupsd.conf.in 9407 2010-12-09 21:24:51Z mike $".
#
[root@negre xane]# 

The avahi-daemon.conf in the server is:

[xan@negre ~]$ cat /etc/avahi/avahi-daemon.conf
# This file is part of avahi.
#
# avahi is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# avahi is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with avahi; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.

# See avahi-daemon.conf(5) for more information on this configuration
# file!

[server]
host-name=negre
domain-name=local
browse-domains=local
use-ipv4=yes
use-ipv6=no
allow-interfaces=eth0
#deny-interfaces=eth1
#check-response-ttl=no
#use-iff-running=no
enable-dbus=yes
#disallow-other-stacks=no
#allow-point-to-point=no
#cache-entries-max=4096
#clients-max=4096
#objects-per-client-max=1024
#entries-per-entry-group-max=32
ratelimit-interval-usec=1000000
ratelimit-burst=1000

[wide-area]
enable-wide-area=yes

[publish]
#disable-publishing=no
#disable-user-service-publishing=no
#add-service-cookie=no
#publish-addresses=yes
#publish-hinfo=yes
publish-workstation=yes
publish-domain=yes
#publish-dns-servers=192.168.50.1, 192.168.50.2
#publish-resolv-conf-dns-servers=yes
#publish-aaaa-on-ipv4=yes
#publish-a-on-ipv6=no

[reflector]
#enable-reflector=no
#reflect-ipv=no

[rlimits]
#rlimit-as=
rlimit-core=0
rlimit-data=4194304
rlimit-fsize=0
rlimit-nofile=768
rlimit-stack=4194304
rlimit-nproc=3

and the avahi-daemon.conf in the client is:

xan@gerret:~$ cat /etc/avahi/avahi-daemon.conf
# This file is part of avahi.
#
# avahi is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# avahi is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with avahi; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.

# See avahi-daemon.conf(5) for more information on this configuration
# file!

[server]
host-name=gerret
domain-name=local
browse-domains=local
use-ipv4=yes
use-ipv6=no
allow-interfaces=eth0, wlan0
#deny-interfaces=eth1
#check-response-ttl=no
#use-iff-running=no
enable-dbus=yes
#disallow-other-stacks=no
#allow-point-to-point=no
#cache-entries-max=4096
#clients-max=4096
#objects-per-client-max=1024
#entries-per-entry-group-max=32
ratelimit-interval-usec=1000000
ratelimit-burst=1000

[wide-area]
enable-wide-area=yes

[publish]
#disable-publishing=no
#disable-user-service-publishing=no
#add-service-cookie=no
#publish-addresses=yes
#publish-hinfo=yes
#publish-workstation=yes
#publish-domain=yes
#publish-dns-servers=192.168.50.1, 192.168.50.2
#publish-resolv-conf-dns-servers=yes
#publish-aaaa-on-ipv4=yes
#publish-a-on-ipv6=no

[reflector]
#enable-reflector=no
#reflect-ipv=no

[rlimits]
#rlimit-as=
rlimit-core=0
rlimit-data=4194304
rlimit-fsize=0
rlimit-nofile=768
rlimit-stack=4194304
rlimit-nproc=3

and the client.conf is:

# see 'man client.conf'
#ServerName /var/run/cups/cups.sock #  alternative: ServerName hostname-or-ip-address[:port] of a remote server
ServerName 172.26.0.2
ServerName 172.26.0.3

(the ip of the "negre" is 172.26.0.3 (static). The 172.26.0.2 is debian cups server that works. I want to replace the old debian server with this arch new one, but it's more difficult than I thought)

and finally this is /var/log/errors.log:

Sep  2 12:50:23 negre [    3.601767] systemd-fstab-generator[66]: Failed to create unit file: File exists
Sep  2 12:50:23 negre [    3.602359] systemd[1]: /usr/lib/systemd/system-generators/systemd-fstab-generator exited with exit status 1.

Finally, the avahi-browse -at in the server and the client respectively is:

# avahi-browse -at
+   eth0 IPv4 Samsung ML-2510 Series @ negre                Internet Printer     local
+   eth0 IPv4 Samsung ML-2510 Series @ negre                _ipps._tcp           local
+   eth0 IPv4 Samsung ML-2510 Series @ negre                UNIX Printer         local
+   eth0 IPv4 negre                                         SSH Remote Terminal  local
+   eth0 IPv4 negre                                         SFTP File Transfer   local
+   eth0 IPv4 negre [90:e6:ba:1a:e2:47]                     Workstation          local

and

xan@gerret:~$ avahi-browse -at
+  wlan0 IPv4 gerret                                        SSH Remote Terminal  local
+  wlan0 IPv4 gerret                                        Remote Disk Management local
+  wlan0 IPv4 gerret [1c:4b:d6:2d:67:e2]                    Workstation          local
+  wlan0 IPv4 gerret                                        SFTP File Transfer   local

Any hint?

Thanks apreciated,
Xan.

Any hint?

Last edited by xanb (2012-09-02 11:39:55)


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

Offline

#10 2012-09-02 12:48:45

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 850

Re: I can't see printers. Cups client

xanb wrote:

I have two machines, two with archlinux.

The server:
* has cups with Samsung ML2510 printer added.
* I can see <server ip>:631 from client
* I can print directly in web interface
* The server has this configuration file: http://pastebin.com/ChpVzaKw
* and printers: http://pastebin.com/L19UdnVC

The client:
* I have ServerName <the ip of the server> in /etc/cups/client.conf

The problem is that I can't see the printers in the client. For example in firefox, when I choose "Print", there is no printers avaliable.

What can I do?

I read https://wiki.archlinux.org/index.php/CU … er_sharing and search many docs in google but I can't find a hint.

Thanks in advance,
Xan.

If it is any help here are my notes about printer discovery in cups 1.6 - they are raw as I wrote them so they are not for general use but may be helpful for you:

Getting printer sharing in cups 1.6

Useful initial ref: http://cyberelk.net/tim/2012/02/06/cups … ges-ahead/

1) Open port 5353 in firewall - (mdns)

Useful ref: https://wiki.archlinux.org/index.php/Avahi

2) Install nss-mdns

3) Ensure that avahi-daemon is running on both server and client

On arch need the line amending in /etc/nsswitch.conf as:

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
or better as:
hosts: files mdns4_minimal dns mdns4
to prevent dns slowdown by
(replace the existing line and comment out the original.

Sometimes adding avahi-daemon to /etc/rc.conf can cause it to load too early and fail.
One possible solution is to add it as "/etc/rc.d/avahi-daemon start" in /etc/rc.local.

This latter is done in my laptop and works fine.

4) Can check that remote printer is discoverable by:
avahi-browse --all

5) Now can use localhost:631 and find new printer.

6) Should be able to print - note that the printer definition depends on the printer type - some Epson and many Brother
printers will not need additional raster or ppd files.

7) Note that avahi with nss-mdns needs to be running on both client and server.


Mike C

Offline

#11 2012-09-02 14:32:39

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

Re: I can't see printers. Cups client

mcloaked wrote:
xanb wrote:

I have two machines, two with archlinux.

The server:
* has cups with Samsung ML2510 printer added.
* I can see <server ip>:631 from client
* I can print directly in web interface
* The server has this configuration file: http://pastebin.com/ChpVzaKw
* and printers: http://pastebin.com/L19UdnVC

The client:
* I have ServerName <the ip of the server> in /etc/cups/client.conf

The problem is that I can't see the printers in the client. For example in firefox, when I choose "Print", there is no printers avaliable.

What can I do?

I read https://wiki.archlinux.org/index.php/CU … er_sharing and search many docs in google but I can't find a hint.

Thanks in advance,
Xan.

If it is any help here are my notes about printer discovery in cups 1.6 - they are raw as I wrote them so they are not for general use but may be helpful for you:

Getting printer sharing in cups 1.6

Useful initial ref: http://cyberelk.net/tim/2012/02/06/cups … ges-ahead/

1) Open port 5353 in firewall - (mdns)

Useful ref: https://wiki.archlinux.org/index.php/Avahi

2) Install nss-mdns

3) Ensure that avahi-daemon is running on both server and client

On arch need the line amending in /etc/nsswitch.conf as:

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
or better as:
hosts: files mdns4_minimal dns mdns4
to prevent dns slowdown by
(replace the existing line and comment out the original.

Sometimes adding avahi-daemon to /etc/rc.conf can cause it to load too early and fail.
One possible solution is to add it as "/etc/rc.d/avahi-daemon start" in /etc/rc.local.

This latter is done in my laptop and works fine.

4) Can check that remote printer is discoverable by:
avahi-browse --all

5) Now can use localhost:631 and find new printer.

6) Should be able to print - note that the printer definition depends on the printer type - some Epson and many Brother
printers will not need additional raster or ppd files.

7) Note that avahi with nss-mdns needs to be running on both client and server.

Until step 3 all is OK
The step 4 does not work for me (see above output when I do avahi-browse -at)

By the other hand, I can't do step 6, because I have **not** cups installed in the client (only lipcups).

Step 7 is done (see above).


Thanks for the answer, but painly nothing changes.

Regards and thank you,
Xan.


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

Offline

#12 2012-09-02 15:09:51

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

Re: I can't see printers. Cups client

Perhaps, the arch package of avahi has this bug: https://bugs.launchpad.net/ubuntu/+sour … bug/465916 ?

Can anyone confirm that?

It's seems the most probably cause that it does not work for me.

Thanks,
Xan.


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

Offline

#13 2012-09-02 23:58:50

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,365

Re: I can't see printers. Cups client

In my network, I only have libcups installed on the clients.  I DO NOT run avahi-daemon on the clients.  I DO NOT have nss-mdns installed on the clients.  All of the clients can connect to the server and print without any issues.  All I had to do on the server was to mark the printer as shared.

Offline

#14 2012-09-03 15:29:25

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

Re: I can't see printers. Cups client

skunktrader wrote:

In my network, I only have libcups installed on the clients.  I DO NOT run avahi-daemon on the clients.  I DO NOT have nss-mdns installed on the clients.  All of the clients can connect to the server and print without any issues.  All I had to do on the server was to mark the printer as shared.

Wow! So why it does not work for me?

How can I diagnose things? What are the files (logs and etc) whose I see for finding the problem?

It's great to know the needed packages in the client are minimal. I will delete avahi and mdns in the client and I will write what happens....

Thanks,
Xan.


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

Offline

#15 2012-09-03 15:31:51

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

Re: I can't see printers. Cups client

But libcups depends on avahi?

xan@gerret:~$ pacman -Qi libcups
Nom            : libcups
Versió         : 1.6.1-5
URL            : http://www.cups.org/
Llicències     : GPL
Grups          : Cap
Proporciona    : Cap
Depen de       : gnutls>=2.8.3  libtiff>=4.0.0  libpng>=1.5.7  krb5  avahi
Dep opcionals  : Cap
Requerit per   : ghostscript  gtk2  gtk3  sane
Conflictes amb : Cap
Substitueix    : Cap
Mida instal.   : 865,00 KiB
Empaquetador   : Andreas Radke <andyrtr@archlinux.org>
Arquitectura   : i686
Data de constr.: dt 14 ago 2012 22:30:04 CEST
Data instal.   : dt 14 ago 2012 23:39:33 CEST
Raó instal.    : Instal·lat com a dependència d'una altre paquet
Script instal. : No
Descripció     : The CUPS Printing System - client libraries and headers


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

Offline

#16 2012-09-03 18:11:14

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 850

Re: I can't see printers. Cups client

skunktrader wrote:

In my network, I only have libcups installed on the clients.  I DO NOT run avahi-daemon on the clients.  I DO NOT have nss-mdns installed on the clients.  All of the clients can connect to the server and print without any issues.  All I had to do on the server was to mark the printer as shared.

What version of cups are you running?

In 1.6 the change was made that printers are no longer "discoverable" without the changes I outlined in my post a few days ago - however if you have previously already defined the printer (or set it up manually) then it will still work fine.  If you want automatic discovery then you need to go the avahi route now with cups v1.6


Mike C

Offline

#17 2012-09-03 23:29:45

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,365

Re: I can't see printers. Cups client

I am running 1.6.  I just followed the simple setup guide in the wiki and it just worked.

Offline

#18 2012-09-04 13:50:47

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

Re: I can't see printers. Cups client

If I install the cups server in the client, then I can add the printer in the server. The problem is when I only have libcups.

Strange.


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

Offline

Board footer

Powered by FluxBB