Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
|
 |
07-12-2020, 08:45 AM
|
#1
|
Member
Registered: May 2020
Location: Brasil
Distribution: Slackware; Debian
Posts: 30
Rep: 
|
A problem to add and configure [cups] printer (HP) in Slackware / current.
Good Morning.
I use Slackware (current) I have to update the hplip-plugin so that a HP 1102 laser printer can print. Yesterday, when I was unable to print with it (notice that hplip-plugin was out of date) I tried to reinstall it (my mistake ...). And from there the two printers disappeared (the other 3360 too). I tried to reinstall two but the "add" button is not available to activate (gray). The (cups) localhost: 631 page does not open. Cups (etc / rc.cd / rc.cups) is active (deactivated and activated to see if it resolved), but at startup when the modules are loaded I noticed that the following information: "cups: unable to start scheduler".
I am researching to try to understand and correct this and also accepting some help.

Last edited by Luckylin; 07-12-2020 at 08:48 AM.
|
|
|
07-12-2020, 09:22 AM
|
#2
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,380
|
According to this link https://developers.hp.com/hp-linux-i...nting/gethplip 3.20.6 is the latest version of hplip, and that is what I have installed in current. It was an upgrade on June 16th.
When was the last time you updated your current installation?
Not being able to connect to cups web interface, leads me to think cupsd is not running. A command of 'ps aux | grep cups' will show if it is running or not. If not, check /etc/rc.d/rc.cups is executable. If yes, then try starting it. If you get errors, please post the errors.
I'm not sure just what HP printer you have. Look at the lable and ost the full name. Something like LaserJet Pro 1102 or LaserJet Pro 1102w. Both are listed as supported. If it is something else, ( there are so many printers ) please post the exact name.
|
|
|
07-12-2020, 09:39 AM
|
#3
|
Member
Registered: May 2020
Location: Brasil
Distribution: Slackware; Debian
Posts: 30
Original Poster
Rep: 
|
Quote:
Originally Posted by camorri
According to this link https://developers.hp.com/hp-linux-i...nting/gethplip 3.20.6 is the latest version of hplip, and that is what I have installed in current. It was an upgrade on June 16th.
When was the last time you updated your current installation?
Not being able to connect to cups web interface, leads me to think cupsd is not running. A command of 'ps aux | grep cups' will show if it is running or not. If not, check /etc/rc.d/rc.cups is executable. If yes, then try starting it. If you get errors, please post the errors.
I'm not sure just what HP printer you have. Look at the lable and ost the full name. Something like LaserJet Pro 1102 or LaserJet Pro 1102w. Both are listed as supported. If it is something else, ( there are so many printers ) please post the exact name.
|
So, the last time I updated it was over a month ago (I think this version of the hplip: 3.20.6).
Comand 'ps aux | grep cups": answer... " root 3438 0.0 0.0 6460 2408 pts/0 S+ 11:49 0:00 grep cups"
I have an HP laserjet P 1102 and an HP deskjet 3636.
I can't connect to the web cups interface. And, as the photo I posted shows, the add printer button is no longer working.
I tried "sh /etc/rc.d/rc.cups start" but the answer in the Terminal is "cups: unable to start scheduler".
In "rc.d" cups seem active, but nothing works for me to reinstall the printers, as shown in the photo.
It all started when I tried to update the hplip, because the P1102 laser printer was not printing and was warning that the hplip was out of date. As I didn't remember what I had done more than a month ago to update the hplip, I had the unfortunate idea of reinstalling the HP laser P 1102 by the Print Manager. I checked the USB path and tried to "set" her model "HP laserjet P 1102". Then the two printers disappeared and I can't add them again, for the reason I explained (the "add" button and "localhost 631 unavailable" are not available, in addition to the startup message "cups: unable to start schedule").
I appreciate the attention you are giving me. The good thing about Slackware is that it forces us to research and try to understand / learn. But, I need the printers working (knowing what I did wrong, of course)
Last edited by Luckylin; 07-12-2020 at 09:51 AM.
|
|
|
07-12-2020, 09:47 AM
|
#4
|
Member
Registered: May 2020
Location: Brasil
Distribution: Slackware; Debian
Posts: 30
Original Poster
Rep: 
|
Quote:
Originally Posted by camorri
According to this link https://developers.hp.com/hp-linux-i...nting/gethplip 3.20.6 is the latest version of hplip, and that is what I have installed in current. It was an upgrade on June 16th.
When was the last time you updated your current installation?
Not being able to connect to cups web interface, leads me to think cupsd is not running. A command of 'ps aux | grep cups' will show if it is running or not. If not, check /etc/rc.d/rc.cups is executable. If yes, then try starting it. If you get errors, please post the errors.
I'm not sure just what HP printer you have. Look at the lable and ost the full name. Something like LaserJet Pro 1102 or LaserJet Pro 1102w. Both are listed as supported. If it is something else, ( there are so many printers ) please post the exact name.
|
read above
|
|
|
07-12-2020, 10:02 AM
|
#5
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,380
|
If I remember correctly, local access was taken out of /etc/cups/cups.conf on the last update. You can add it back in, or you can use your systems IP address. To get your IP address, the command 'ip a' will display your ip address.
Have a look at /etc/cups/cupsd.conf. To get localhost to work again, you can edit this section;
Quote:
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow From 192.168.1.*
Allow @LOCAL
</Location>
|
and add the line 'Allow @LOCAL' and restart cups.
|
|
|
07-12-2020, 11:15 AM
|
#6
|
Member
Registered: May 2020
Location: Brasil
Distribution: Slackware; Debian
Posts: 30
Original Poster
Rep: 
|
Quote:
Originally Posted by camorri
If I remember correctly, local access was taken out of /etc/cups/cups.conf on the last update. You can add it back in, or you can use your systems IP address. To get your IP address, the command 'ip a' will display your ip address.
Have a look at /etc/cups/cupsd.conf. To get localhost to work again, you can edit this section;
and add the line 'Allow @LOCAL' and restart cups.
|
Thank you. In / etc / cups I didn't exactly find "cups.conf"
(put an image, of the tree):
-cups-browsed-conf
- cups-conf.new
etc...
There is no "cups.conf" in the directory.
|
|
|
07-12-2020, 11:17 AM
|
#7
|
Member
Registered: May 2020
Location: Brasil
Distribution: Slackware; Debian
Posts: 30
Original Poster
Rep: 
|
The image. Directory cups
}
}
--></SCRIPT>
<title>Administration - CUPS 2.3.3</title>
</head>
<body onload="check_cookies();">
<div class="header">
<ul>
<li><a href="http://www.cups.org/" target="_blank">CUPS.org</a></li>
<li><a href="/">Home</a></li>
<li><a class="active" href="/admin">Administration</a></li>
<li><a href="/classes/">Classes</a></li>
<li><a href="/help/">Help</a></li>
<li><a href="/jobs/">Jobs</a></li>
<li><a href="/printers/">Printers</a></li>
</ul>
</div>
<div class="body">
<div class="row">
<h1>Administration</h1>
<div class="row">
<div class="halves">
<H2 CLASS="title">Printers</H2>
<P>
<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="53cfc14b2b9846a2b08571dc45ea318d"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="add-printer"><INPUT TYPE="SUBMIT" VALUE="Add Printer"></FORM>
<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="53cfc14b2b9846a2b08571dc45ea318d"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="find-new-printers"><INPUT TYPE="SUBMIT" VALUE="Find New Printers"></FORM>
<FORM ACTION="/printers/" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Manage Printers"></FORM>
</P>
<H2 CLASS="title">Classes</H2>
<P>
<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="53cfc14b2b9846a2b08571dc45ea318d"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="add-class"><INPUT TYPE="SUBMIT" VALUE="Add Class"></FORM>
<FORM ACTION="/classes/" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Manage Classes"></FORM>
</P>
<H2 CLASS="title">Jobs</H2>
<P>
<FORM ACTION="/jobs/" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Manage Jobs"></FORM>
</P>
</div>
<div class="halves">
<H2 CLASS="title">Server</H2>
<P>
<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="53cfc14b2b9846a2b08571dc45ea318d"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server"><INPUT TYPE="SUBMIT" VALUE="Edit Configuration File"></FORM>
</P>
<FORM METHOD="POST" ACTION="/admin">
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="53cfc14b2b9846a2b08571dc45ea318d">
<P><B>Server Settings:</B></P>
<P><A
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server">
<INPUT TYPE="CHECKBOX" NAME="SHARE_PRINTERS" ID="SHARE_PRINTERS" ><LABEL FOR="SHARE_PRINTERS"> Share printers connected to this system</LABEL><BR>
<INPUT TYPE="CHECKBOX" NAME="REMOTE_ANY" ID="REMOTE_ANY" ><LABEL FOR="REMOTE_ANY"> Allow printing from the Internet</LABEL><BR>
<INPUT TYPE="CHECKBOX" NAME="REMOTE_ADMIN" ID="REMOTE_ADMIN" ><LABEL FOR="REMOTE_ADMIN"> Allow remote administration</LABEL><BR>
<INPUT TYPE="CHECKBOX" NAME="KERBEROS" ID="KERBEROS" ><LABEL FOR="KERBEROS"> Use Kerberos authentication (<A HREF="/help/kerberos.html?TOPIC=Getting+Started">FAQ</A>)</LABEL><BR>
<INPUT TYPE="CHECKBOX" NAME="USER_CANCEL_ANY" ID="USER_CANCEL_ANY" ><LABEL FOR="USER_CANCEL_ANY"> Allow users to cancel any job (not just their own)</LABEL><BR>
<INPUT TYPE="CHECKBOX" NAME="DEBUG_LOGGING" ID="DEBUG_LOGGING" ><LABEL FOR="DEBUG_LOGGING"> Save debugging information for troubleshooting</LABEL></P>
<P><INPUT TYPE="SUBMIT" NAME="CHANGESETTINGS" VALUE="Change Settings"></P>
</FORM>
</div>
</div>
</div>
</div>
<div class="footer">CUPS and the CUPS logo are trademarks of <a href="http://www.apple.com">Apple Inc.</a> Copyright © 2007-2019 Apple Inc. All rights reserved.</div>
</body>
</html>
# Show troubleshooting information in error_log.
LogLevel debug
MaxLogSize 0
Last edited by Luckylin; 07-12-2020 at 11:21 AM.
Reason: Into the "cups.cinf"
|
|
|
07-12-2020, 12:17 PM
|
#8
|
Member
Registered: May 2020
Location: Brasil
Distribution: Slackware; Debian
Posts: 30
Original Poster
Rep: 
|
Quote:
Originally Posted by camorri
If I remember correctly, local access was taken out of /etc/cups/cups.conf on the last update. You can add it back in, or you can use your systems IP address. To get your IP address, the command 'ip a' will display your ip address.
Have a look at /etc/cups/cupsd.conf. To get localhost to work again, you can edit this section;
and add the line 'Allow @LOCAL' and restart cups.
|
First edited
"cups.conf.new" and restarting "rc.cups", still gives the answer "unabled to start schedule".
Then I edited
"cups.conf.default" and the same occurred
(before editing "cups.conf.default" I went back to the previous "cups.conf.new" state.)
I used it in both attempts, as suggested
# Restrict access to the admin pages ...
<Location / admin>
Order allow, deny
Allow From 192.168.1. *
Allow @LOCAL
</Location>
I must be doing some wrong detail.
Thank you, I will keep trying.
|
|
|
07-12-2020, 12:17 PM
|
#9
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,380
|
Quote:
There is no "cups.conf" in the directory.
|
Its cupsd.conf not cups.conf.
|
|
|
07-12-2020, 02:05 PM
|
#10
|
Member
Registered: May 2020
Location: Brasil
Distribution: Slackware; Debian
Posts: 30
Original Poster
Rep: 
|
Problem solved
Quote:
Originally Posted by camorri
Its cupsd.conf not cups.conf.
|
It's solved!
The update I made ruined "cupsd.conf" (I don't know why).
Following your instructions I reconstructed cupsd.conf using as parameter the same file, " healthy", that is in my notebook (where I also have a current Slackware).
Thank you very much (the solution to a problem like this is already engraved in your soul).
Thank's Camorri \o/
Last edited by Luckylin; 07-12-2020 at 02:05 PM.
Reason: name
|
|
|
07-12-2020, 02:27 PM
|
#11
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,380
|
Glad you got it fixed.
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 08:58 PM.
|
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
|
|