LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 07-12-2020, 08:45 AM   #1
Luckylin
Member
 
Registered: May 2020
Location: Brasil
Distribution: Slackware; Debian
Posts: 30

Rep: Reputation: Disabled
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.
Attached Thumbnails
Click image for larger version

Name:	trouble cups.jpg
Views:	54
Size:	158.3 KB
ID:	33638  

Last edited by Luckylin; 07-12-2020 at 08:48 AM.
 
Old 07-12-2020, 09:22 AM   #2
camorri
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

Rep: Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937
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.
 
Old 07-12-2020, 09:39 AM   #3
Luckylin
Member
 
Registered: May 2020
Location: Brasil
Distribution: Slackware; Debian
Posts: 30

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
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.
 
Old 07-12-2020, 09:47 AM   #4
Luckylin
Member
 
Registered: May 2020
Location: Brasil
Distribution: Slackware; Debian
Posts: 30

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
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
Attached Thumbnails
Click image for larger version

Name:	cups ok.png
Views:	18
Size:	211.6 KB
ID:	33639  
 
Old 07-12-2020, 10:02 AM   #5
camorri
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

Rep: Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937
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.
 
Old 07-12-2020, 11:15 AM   #6
Luckylin
Member
 
Registered: May 2020
Location: Brasil
Distribution: Slackware; Debian
Posts: 30

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
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.
 
Old 07-12-2020, 11:17 AM   #7
Luckylin
Member
 
Registered: May 2020
Location: Brasil
Distribution: Slackware; Debian
Posts: 30

Original Poster
Rep: Reputation: Disabled
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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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 &copy; 2007-2019 Apple Inc. All rights reserved.</div>
</body>
</html>
# Show troubleshooting information in error_log.
LogLevel debug
MaxLogSize 0
Attached Thumbnails
Click image for larger version

Name:	cups.jpg
Views:	19
Size:	136.7 KB
ID:	33640  

Last edited by Luckylin; 07-12-2020 at 11:21 AM. Reason: Into the "cups.cinf"
 
Old 07-12-2020, 12:17 PM   #8
Luckylin
Member
 
Registered: May 2020
Location: Brasil
Distribution: Slackware; Debian
Posts: 30

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
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.
 
Old 07-12-2020, 12:17 PM   #9
camorri
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

Rep: Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937
Quote:
There is no "cups.conf" in the directory.
Its cupsd.conf not cups.conf.
 
Old 07-12-2020, 02:05 PM   #10
Luckylin
Member
 
Registered: May 2020
Location: Brasil
Distribution: Slackware; Debian
Posts: 30

Original Poster
Rep: Reputation: Disabled
Problem solved

Quote:
Originally Posted by camorri View Post
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/
Attached Thumbnails
Click image for larger version

Name:	solucionado.jpg
Views:	38
Size:	237.3 KB
ID:	33641  

Last edited by Luckylin; 07-12-2020 at 02:05 PM. Reason: name
 
Old 07-12-2020, 02:27 PM   #11
camorri
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

Rep: Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937
Glad you got it fixed.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] cups on current - can't print to cups printer on 14.1 camorri Slackware 14 06-13-2016 03:19 PM
Unable to print from Okular to cups 2.0.2/cups-filters 1.0 on Slack-Current tux_dude Slackware 3 07-02-2015 12:08 PM
CUPS and Canon MP190 printer. Print quality and printer sharing... SFGAirborne Linux - Hardware 1 12-14-2010 05:55 AM
CUPS problem - connecting to local printer as well as CUPS server bobm2011 Linux - Newbie 4 01-11-2010 07:28 AM
cups to cups printing through network on usb printer checkmate3001 Linux - Server 2 02-16-2009 12:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:58 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