Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
06-27-2014, 07:22 PM
|
#1
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
|
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.
|
|
|
06-27-2014, 07:50 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,580
|
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/
|
|
|
06-28-2014, 05:42 AM
|
#3
|
Senior Member
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 3,099
|
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.
|
|
|
06-28-2014, 06:08 AM
|
#4
|
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
|
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).
|
|
|
06-28-2014, 12:13 PM
|
#5
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
Original Poster
|
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.
|
|
|
06-28-2014, 05:50 PM
|
#6
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,172
Rep:
|
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.
|
|
|
06-28-2014, 07:09 PM
|
#7
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
Original Poster
|
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.
|
|
|
06-28-2014, 11:12 PM
|
#8
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,172
Rep:
|
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.
|
|
|
06-29-2014, 03:27 AM
|
#9
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
|
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.
|
|
|
06-29-2014, 05:00 AM
|
#10
|
Senior Member
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,639
|
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.
|
|
|
06-29-2014, 12:09 PM
|
#11
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
Original Poster
|
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.
|
|
|
06-29-2014, 12:29 PM
|
#12
|
Senior Member
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,639
|
static IP, sorry.
|
|
|
06-29-2014, 01:00 PM
|
#13
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
|
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.
|
|
|
06-29-2014, 05:48 PM
|
#14
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
Original Poster
|
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.
|
|
|
06-29-2014, 08:14 PM
|
#15
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
|
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.
|
|
|
All times are GMT -5. The time now is 07:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|