LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-27-2014, 07:22 PM   #1
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Network printer not discovered by system-config-printer


I am unable to see my network printer with the system-config-printer applet. CUPS and avahi are running. The avahi browser sees the printer. The CUPS web page sees the printer.

When I manually type the static IP address the applet sees the printer.

Same results on 14.0 and 14.1. I tested system-config-printer in two other distros and they find the printer immediately.

Any ideas?

Thanks.
 
Old 06-27-2014, 07:50 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,330
Blog Entries: 28

Rep: Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144
I may be wrong, but I think system-config-[something or other] is a Red Hat thing. Unfortunately, I'm not near my Slackware machine to test the command.

http://cyberelk.net/tim/software/system-config-printer/
 
Old 06-28-2014, 05:42 AM   #3
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,975

Rep: Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552
I always use CUPS to setup, configure my printers. I just tried using system-config-printer as root (and as normal user) and it comes up with a GUI Printer Settings window in KDE with my printer already configured.
 
Old 06-28-2014, 06:08 AM   #4
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Is your printer by any chance an H-P? If so, just run hp-setup (as an ordinary user) and you'll be up and going real quick.

A nice little trick with a fixed-IP address is to add the name and address of the printer to /etc/hosts; e.g.,
Code:
192.168.1.15     InkJet
then everything can "find" it (or them).
 
Old 06-28-2014, 12:13 PM   #5
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Thanks for the responses. I am not looking for alternate solutions or work-arounds. I want to know why system-config-printer in Slackware does not see my network printer while the applet works fine in other distros. In the other distros, the moment I select the Network Printers option the printer appears. Not so in Slackware.
 
Old 06-28-2014, 05:50 PM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,059

Rep: Reputation: Disabled
The file 70_printers.rules in the source package system-config-printer-1.4.3 grabbed from a Debian repository contains following rules:
Code:
# Low-level USB device add trigger
ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", TAG+="systemd", ENV{SYSTEMD_WANTS}="configure-printer@usb-$env{BUSNUM}-$env{DEVNUM}.service"
# Low-level USB device remove trigger
ACTION=="remove", SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:0701*:*", RUN+="udev-configure-printer remove %p"
I am not sure that the first rule can work as-is in Slackware.

Granted, these rules are for USB printers not network printers, but some other stuff in the package could also need an adaptation.

Did you see interesting messages during compilation?

Did you see something interesting in the logs?

Last edited by Didier Spaier; 06-28-2014 at 05:56 PM.
 
Old 06-28-2014, 07:09 PM   #7
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
The file 70_printers.rules in the source package system-config-printer-1.4.3 grabbed from a Debian repository contains following rules:
The rule set is not the same as those in the stock Slackware. As you mentioned, they are for USB printers and not network. Substituting the Debian rules in 14.1 made no difference.

Quote:
Did you see interesting messages during compilation?
No compiling. I am using the package as-is from the stock Slackware (l group).

Quote:
Did you see something interesting in the logs?
Nothing.

Edit: I rebuilt the package with avahi installed, thinking there might be a missing hook, but that made no difference. Still did not see the network printer.

Last edited by Woodsman; 06-28-2014 at 07:49 PM.
 
Old 06-28-2014, 11:12 PM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,059

Rep: Reputation: Disabled
Can you believe that? I didn't realize that network-config-printer is shipped in Slackware

Lesson learned: never post after midnight.

Unfortunately I can't help as I have no network printer.

Last edited by Didier Spaier; 06-29-2014 at 04:00 AM.
 
Old 06-29-2014, 03:27 AM   #9
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Network printers go through CUPS and the network-config-printer utility. The system-config-printer is designed, as Didier pointed out, to target Parallel, USB, SCSI, and Serial ports only.

For those who need it ask... Network printers operate differently than local printers mostly due to the fact a network printer is designed to be a resource rather than an attached device. It attaches as a service resource over an IP and although it uses the same driver stack, it's how it attaches to the system that sees how the utilities used see it.

You should only need to use CUPS' intranet configuration and resource access utilities for a network print device. Webmin works well also.
 
Old 06-29-2014, 05:00 AM   #10
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,215

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
I have tested system-config-printer with hp photosmart c6180 on slack-current, and it work here, my printer, is configured with an IP fix, hplip, is installed,
the cups and snmpd daemon are actived, i have used the search fonction with IP printer on system-config-printer.
 
Old 06-29-2014, 12:09 PM   #11
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
The system-config-printer is designed, as Didier pointed out, to target Parallel, USB, SCSI, and Serial ports only.
The applet finds network printers in other distros.

Quote:
You should only need to use CUPS' intranet configuration and resource access utilities for a network print device. Webmin works well also.
Please read comment #5. I am not interested in work-arounds. I want to know why the applet does not work in Slackware.

Quote:
my printer, is configured with an IP fix, hplip, is installed,
I have hplip installed. What do you mean by 'an IP fix'?

Quote:
the cups and snmpd daemon are actived
I have CUPS running but not snmpd. The latter is not running in the other distros either. Starting the daemon in Slackware made no difference. I don't think snmpd is a requirement. I thought perhaps avahi was needed but enabling avahi in Slackware did not help. As I mentioned in my original post, the avahi browser sees the printer and the CUPS web page sees the printer. In the other distros my printer appears immediately in the applet list. There is something else missing in Slackware or in my setup.
 
Old 06-29-2014, 12:29 PM   #12
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,215

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
static IP, sorry.
 
Old 06-29-2014, 01:00 PM   #13
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Technically you could argue that using system-config-printing is a workaround for CUPS also, but that's not the case.

To better diagnose why it's not detecting Woodsman, you may want to do a dependency trace and go back through all the dependencies and see if secondary dependencies are met properly.

Let start with these as a package trace. Do you have any of the following:

Python-dbus
Python-cups
Python-cupshelpers
Python-smbc
Cups-pk-helper
System-config-printer-udev

Usually some packages in Slackware aren't always built with an optional dependency in the tree for whatever the reason including compatibility, performance, lack of package, etc. You may have to go deeper into the dependency tree and find out what might be missing and then rebuild those packages to add that functionality.

And yes this is a Red Hat package, and from reading up on it, it has a history of issues and some ongoing problems outside that fact. It seems some distributions and people can't get it work properly.
 
Old 06-29-2014, 05:48 PM   #14
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
static IP, sorry.
Ah, ok. I assigned a static IP to my printer too. As I mentioned previously, the applet finds the printer right away when I manually type the IP address. Just not automatically like in the other distros.

Quote:
Let start with these as a package trace. Do you have any of the following:
None of those packages are available by that name in Slackware. Pat seldom breaks packages into small packages like the Debian folks. So the question then becomes whether Pat builds the parent packages with the equivalent configuration options. Specific to this thread, probably not.

Quote:
And yes this is a Red Hat package, and from reading up on it, it has a history of issues and some ongoing problems outside that fact. It seems some distributions and people can't get it work properly.
Not relevant to this thread. I already mentioned the applet works as expected in the other distros.
 
Old 06-29-2014, 08:14 PM   #15
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Then maybe that's the answer... Research the package configurations and then see if the trace back through the dependencies and see if something isn't resolved.

Plus even if you see Debian and others break down packages, you can always see the package content and research exactly what source package it comes from, see if a SlackBuild exists, add it, and rebuild the system-config-printer package against anything else in the dependency list.

If it's worth asking... Which desktop system are you using, as system-config-printer is by nature, a GNOME package.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hp-setup and network printer or hpcups and system-config-printer ToK Linux - Software 3 03-27-2019 09:47 PM
system-config-printer error when configuring the printer for other language(Chinse) amit_pansuria Linux - General 4 08-04-2009 12:34 AM
system-config-printer jmdlcar Slackware 7 09-30-2008 02:29 AM
pycups & system-config-printer jmdlcar Slackware 1 06-10-2008 03:55 AM
system-config-printer config file(s) frenkiel Linux - Software 0 06-06-2006 07:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration