Difference between revisions of "Talk:CUPS"

From ArchWiki
Jump to: navigation, search
m (clarification)
m (cups + systemd)
(21 intermediate revisions by 14 users not shown)
Line 1: Line 1:
smb backend is included in cups so you may not installing samba to print to a windows shared printer
+
==Kernel modules==
  
----
+
The whole Kernel modules section is confusing. Is it mandatory? What exactly should we do?
  
<s>'''Performing Utility Functions on Epson Printers''' should be moved to appendix, as it's not related to troubleshooting.<br></s>
+
== Print button greyed-out in GNOME print dialogs ==
--[[User:Gog|Gog]] 06:57, 18 October 2009 (EDT)
+
  
----
+
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!
  
'''''This article needs to be cleaned up. Conversational style must be removed, i.e.: I,me,you,let's, etc..please avoid informal langauage in wiki articles. Thanks.''''' --[[User:Misfit138|Misfit138]] 14:10, 21 October 2009 (EDT)
+
and I wasn't able to add printers via the CUPS web interface (internal server error)
  
:I don't want the article to be trashed; it just helped me set up two network printers. I'll try to work on it, though it will be a couple of weeks before I can start. I'm pretty new to Arch (which might not be a bad thing) but have read a number of the ArchWiki articles and have an idea of the style requirements.--[[User:Pawcatuck|Pawcatuck]] 20:31, 25 October 2009 (EDT)
+
It seems there is an outstanding bug with respect to the HostNameLookups:
 +
http://www.cups.org/str.php?L4070+Qversion:%20-feature
  
::The article is not queued for deletion. It just needs a change of tone. [[User:Pacmanz|Pacmanz]] 12:38, 1 November 2009 (EST)
+
Removing the HostNameLookups double form the cups config file resolved my issue. Not sure why this used to solve instead of create problems.
  
:Great inforation in this article. It covers a lot and has helped me set up a simple Epson Stylus C64 printer on a network using the raw Jetdirect protocol. I spent quite some days lookin for answers and this is where I found them.--[[User:Daxwarf|Daxwarf]]
+
== Device node permissions ==
  
:Almost done; the heading cases aren't consistent. Since it has a troubleshooting section, it makes sense to use "This casing", but I thought I'd wait for everybody's opinion before doing that.  
+
I got a problem after update of hplip / cups and foomatic. My printer not working anymore.
  
I left "you", removed "we,I,lets,my". In my opinion, Howto centric wikis are ok with "you", although I don't disagree with changing this. [[User:Manolo|manolo]] 16:47, 8 November 2009 (EST)
+
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.[[User:Jasper1984|Jasper1984]] ([[User talk:Jasper1984|talk]]) 17:30, 6 October 2012 (UTC)
 +
 
 +
:Run something like {{ic|ip addr}} on the server. [[User:Lonaowna|Lonaowna]] ([[User talk: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.
 +
<pre>
 +
$ 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
 +
</pre>
 +
 
 +
If cups started via ''rc.d start cupsd'', everything working ok.

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.