Difference between revisions of "Talk:CUPS"

From ArchWiki
Jump to: navigation, search
(Print button greyed-out in GNOME print dialogs: new section)
m (cups + systemd)
(6 intermediate revisions by 5 users not shown)
Line 3: Line 3:
 
The whole Kernel modules section is confusing. Is it mandatory? What exactly should we do?
 
The whole Kernel modules section is confusing. Is it mandatory? What exactly should we do?
  
==<s>Other guy</s>==
+
== Print button greyed-out in GNOME print dialogs ==
  
So, im a begginer on Linux.
+
As suggested by the Arch wiki, I used the
 +
# HostNameLookups Double
 +
option. However, that resulted in following error message:
 +
IP lookup failed - connection from localhost closed!
  
By reading this page i couldnt learn how to use CUPS or to print a document in linux.
+
and I wasn't able to add printers via the CUPS web interface (internal server error)
  
And its not the fist time i try reading this page.
+
It seems there is an outstanding bug with respect to the HostNameLookups:
 +
http://www.cups.org/str.php?L4070+Qversion:%20-feature
  
There is no place saying "the job is done", so i need to keep reading everything, i dont know which parts of the text concerns me and which dont.
+
Removing the HostNameLookups double form the cups config file resolved my issue. Not sure why this used to solve instead of create problems.
  
 +
== Device node permissions ==
  
 +
I got a problem after update of hplip / cups and foomatic. My printer not working anymore.
  
I mean ok, i must install a lot of things, its done, oh and i have to put "cupsd" on the DAEMONS array in the file /etc/rc.conf
+
So I first check possible problems and read section Device node permissions. It's recommended to verify that permissions are 660. It was my case so I am looking to find another solution.
  
(note that this file (rc.conf) is not cited, which could make even harder for people less experienced than me)
+
After a long time and read I was back to this section. I read also section below Device node permission troubleshooting. As my conf was with well permission I don't really read all carefully. It was the 3rd/4th time before I see the note about 666 permissions. I tried this and it's solved my problem.
  
After install all that,...
+
So I think it would be great to make also a note on Device node permissions about 666. Because my conf look allright as writing in wiki, but in fact not.
Then what?
+
  
Thigs are working now? i can go to my open-office click on print and my printer will be there? what was this all about?
+
== How to get the damned IP. ==
  
And other thing: I dont want to know about "web interface", im with my printer right next to me!, i just want to use it on linux.
+
"Then add your cups server IP or hostname into /etc/cups/client.conf." ... begs the question how you get the freaking IP or hostname.[[User:Jasper1984|Jasper1984]] ([[User talk:Jasper1984|talk]]) 17:30, 6 October 2012 (UTC)
  
Web Interface tutorial should be separated from the tutorial for normal usb printers, this way it is really confusing.
+
:Run something like {{ic|ip addr}} on the server. [[User:Lonaowna|Lonaowna]] ([[User talk:Lonaowna|talk]]) 17:46, 6 October 2012 (UTC)
  
Well, i will try to read other manuals,
+
== cups + systemd ==
 +
Need more info for chapter "Installed Printers Do Not Appear in Print Dialogs After Installing/Upgrading to Systemd".
 +
Existing suggestions from article (change socket path, etc) does not help.
 +
<pre>
 +
$ cat /etc/systemd/system/sockets.target.wants/cups.socket | grep Listen
 +
ListenStream=/var/run/cups/cups.sock
  
Sorry for my bad english, and for being irritated =P.
+
$ systemdctl status cups
 +
cups.service - CUPS Printing Service
 +
  Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled)
 +
  Active: active (running) since Wed, 24 Oct 2012 11:54:21 +0400; 20min ago
 +
Main PID: 15040 (cupsd)
 +
  CGroup: name=systemd:/system/cups.service
 +
  └ 15040 /usr/sbin/cupsd -f
  
:Arch Linux is ''not'' targeted to Linux beginners (and we don't try to hide it at all): Archers never get "irritated" for not managing to make something work at the first attempt, instead they are willing to investigate their issues, trying to understand how it all works "under the hood". If you're not (yet) like this, or you need a ''readily'' working system for e.g. working purposes, I warmly suggest you first gain some experience with a friendlier distribution :) -- [[User:Kynikos|Kynikos]] 09:40, 28 April 2012 (UTC)
+
Oct 24 11:54:21 localhost systemd[1]: Starting CUPS Printing Service...
 +
Oct 24 11:54:21 localhost systemd[1]: Started CUPS Printing Service.
 +
Oct 24 11:54:21 localhost cupsd[15040]: Unknown directive DefaultAuthType on line 9.
 +
Oct 24 12:02:42 localhost systemd[1]: Started CUPS Printing Service.
  
::I said i was sorry =P. Thank you for the revision! The new text is really good! -- [[User:Frox|Frox]] 00:32, 19 Jun 2012 (UTC)
+
$ file /var/run/cups/cups.sock
 +
/var/run/cups/cups.sock: ERROR: cannot open `/var/run/cups/cups.sock' (No such file or directory)file /var/run/cups/cups.sock
 +
</pre>
  
:::So you are the same person as [[User:Garcia]], who started this discussion on 27 April?
+
If cups started via ''rc.d start cupsd'', everything working ok.
:::In that case note that the page hasn't changed much since then: [https://wiki.archlinux.org/index.php?title=CUPS&diff=210250&oldid=199231]. This means that probably it's you who learned more stuff about CUPS and after messing around with it you've understood how to make it work, just like a real Archer! Glad to read you appreciate the article now :D Thanks to all those users who have contributed to writing it so far.
+
:::-- [[User:Kynikos|Kynikos]] ([[User talk:Kynikos|talk]]) 09:27, 20 June 2012 (UTC)
+
 
+
== Print button greyed-out in GNOME print dialogs ==
+
 
+
As suggested by the Arch wiki, I used the
+
# HostNameLookups Double
+
option. However, that resulted in following error message:
+
IP lookup failed - connection from localhost closed!
+
 
+
and I wasn't able to add printers via the CUPS web interface (internal server error)
+
 
+
It seems there is an outstanding bug with respect to the HostNameLookups:
+
http://www.cups.org/str.php?L4070+Qversion:%20-feature
+
 
+
Removing the HostNameLookups double form the cups config file resolved my issue. Not sure why this used to solve instead of create problems.
+

Revision as of 08:17, 24 October 2012

Kernel modules

The whole Kernel modules section is confusing. Is it mandatory? What exactly should we do?

Print button greyed-out in GNOME print dialogs

As suggested by the Arch wiki, I used the

  1. HostNameLookups Double

option. However, that resulted in following error message: IP lookup failed - connection from localhost closed!

and I wasn't able to add printers via the CUPS web interface (internal server error)

It seems there is an outstanding bug with respect to the HostNameLookups: http://www.cups.org/str.php?L4070+Qversion:%20-feature

Removing the HostNameLookups double form the cups config file resolved my issue. Not sure why this used to solve instead of create problems.

Device node permissions

I got a problem after update of hplip / cups and foomatic. My printer not working anymore.

So I first check possible problems and read section Device node permissions. It's recommended to verify that permissions are 660. It was my case so I am looking to find another solution.

After a long time and read I was back to this section. I read also section below Device node permission troubleshooting. As my conf was with well permission I don't really read all carefully. It was the 3rd/4th time before I see the note about 666 permissions. I tried this and it's solved my problem.

So I think it would be great to make also a note on Device node permissions about 666. Because my conf look allright as writing in wiki, but in fact not.

How to get the damned IP.

"Then add your cups server IP or hostname into /etc/cups/client.conf." ... begs the question how you get the freaking IP or hostname.Jasper1984 (talk) 17:30, 6 October 2012 (UTC)

Run something like ip addr on the server. Lonaowna (talk) 17:46, 6 October 2012 (UTC)

cups + systemd

Need more info for chapter "Installed Printers Do Not Appear in Print Dialogs After Installing/Upgrading to Systemd". Existing suggestions from article (change socket path, etc) does not help.

$ cat /etc/systemd/system/sockets.target.wants/cups.socket | grep Listen
ListenStream=/var/run/cups/cups.sock

$ systemdctl status cups
cups.service - CUPS Printing Service
	  Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled)
	  Active: active (running) since Wed, 24 Oct 2012 11:54:21 +0400; 20min ago
	Main PID: 15040 (cupsd)
	  CGroup: name=systemd:/system/cups.service
		  └ 15040 /usr/sbin/cupsd -f

Oct 24 11:54:21 localhost systemd[1]: Starting CUPS Printing Service...
Oct 24 11:54:21 localhost systemd[1]: Started CUPS Printing Service.
Oct 24 11:54:21 localhost cupsd[15040]: Unknown directive DefaultAuthType on line 9.
Oct 24 12:02:42 localhost systemd[1]: Started CUPS Printing Service.

$ file /var/run/cups/cups.sock
/var/run/cups/cups.sock: ERROR: cannot open `/var/run/cups/cups.sock' (No such file or directory)file /var/run/cups/cups.sock

If cups started via rc.d start cupsd, everything working ok.