SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a headless LAN server running Slackware64 14.1. I've disabled IPv6 using "ipv6.disable=1" in the kernel boot options.
I'm currently trying to setup a printer (Sharp AR-M256) using CUPS. Here's my cupsd.conf file:
Code:
# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn
# Administrator user group...
SystemGroup sys root
# Only listen for connections from the local machine.
Port 631
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseAddress @LOCAL
BrowseOrder allow,deny
BrowseAllow 192.168.2.*
BrowseLocalProtocols CUPS
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Web interface setting...
WebInterface Yes
# Restrict access to the server...
<Location />
Order allow,deny
Allow From 127.0.0.1
Allow From 192.168.2.*
</Location>
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow From 127.0.0.1
Allow From 192.168.2.*
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow From 127.0.0.1
Allow From 192.168.2.*
</Location>
...
I tried to send a test page to the printer and got the following error message in the CUPS web interface:
"Failed to connect to system bus"
A peek in /var/log/cups/error.log shows me this:
Code:
E [14/Sep/2014:19:42:17 +0200] Unable to open listen socket for address [v1.::1]:631 - Address family not supported by protocol.
E [14/Sep/2014:19:43:49 +0200] Unable to open listen socket for address [v1.::]:631 - Address family not supported by protocol.
E [14/Sep/2014:19:46:22 +0200] Unable to open listen socket for address [v1.::]:631 - Address family not supported by protocol.
E [14/Sep/2014:19:47:16 +0200] [cups-deviced] PID 4035 (snmp) stopped with status 1!
E [14/Sep/2014:19:48:24 +0200] [Job 1] Failed to connect to system bus
E [14/Sep/2014:19:53:41 +0200] [Job 1] Stopping unresponsive job!
I googled about the problem, but found nothing conclusive besides reactivating IPv6.
Did you try to explicitly specify `Listen 127.0.0.1:631` (or whatever address you want to bind it to) instead of `Port 631`? I just did and it looks like that "Address family not supported by protocol" error is gone. But I don't have any printers, neither do I know how to work with CUPS, so I can't test if it actually helps.
It is strange that CUPS tries to bind itself to IPv6 address even if kernel doesn't have IPv6 support. It's even more strange that this doesn't happen on some installations.
# Configuration for getaddrinfo(3).
#
# So far only configuration for the destination address sorting is needed.
# RFC 3484 governs the sorting. But the RFC also says that system
# administrators should be able to overwrite the defaults. This can be
# achieved here.
#
# All lines have an initial identifier specifying the option followed by
# up to two values. Information specified in this file replaces the
# default information. Complete absence of data of one kind causes the
# appropriate default information to be used. The supported commands include:
#
# For sites which prefer IPv4 connections change the last line to
#
precedence ::ffff:0:0/96 100
Or this (unresolved):
Avahi reports IPv6/IPv4 and "dnssd" CUPS backend only tries IPv6, no IPv4 fallback https://www.cups.org/str.php?L4305
Last edited by EYo; 09-17-2014 at 07:48 AM.
Reason: Link to CUPS bug #4305
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.