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 04-05-2019, 10:16 PM   #16
Michael Piziak
Member
 
Registered: Feb 2015
Distribution: Ubuntu 14.04 lts
Posts: 254

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by ferrari View Post
The lpinfo output shows that the attached printer is detected by the CUPS hp backend. The lpstat output shows that the printer is disabled, so you need to enable the printer again. You can do that via the CUPS web interface (using your favourite browser), or via the cupsenable command.
What is the website of the CUPS web interface?

What is the cupsenable command? I typed "cupsenable" into terminal and that didn't make the printer work.
 
Old 04-05-2019, 10:18 PM   #17
Michael Piziak
Member
 
Registered: Feb 2015
Distribution: Ubuntu 14.04 lts
Posts: 254

Original Poster
Rep: Reputation: Disabled
post deleted

Last edited by Michael Piziak; 04-05-2019 at 10:26 PM.
 
Old 04-05-2019, 10:25 PM   #18
Michael Piziak
Member
 
Registered: Feb 2015
Distribution: Ubuntu 14.04 lts
Posts: 254

Original Poster
Rep: Reputation: Disabled
michael@michael-HP-EliteDesk-800-G1-SFF:~$ sudo cancel -a
[sudo] password for michael:
michael@michael-HP-EliteDesk-800-G1-SFF:~$ sudo cupsenable HP-LaserJet-Pro-MFP-M127fn
michael@michael-HP-EliteDesk-800-G1-SFF:~$ lpstat -p
printer HP-LaserJet-Pro-MFP-M127fn is idle. enabled since Fri 05 Apr 2019 11:19:45 PM EDT
printer HP-LaserJet-Pro-MFP-M127fn-Fax-2 is idle. enabled since Sat 10 Mar 2018 11:46:35 AM EST
michael@michael-HP-EliteDesk-800-G1-SFF:~$


Still not working.

p.s. What is the website of this cups interface?
 
Old 04-06-2019, 01:34 AM   #19
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,666

Rep: Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640
The CUPS web GUI is accessible from localhost (your local machine). As I posted already (post #14), navigate to 'localhost:631/printers'

then slect the relevant printer entry > Maintenance > Print Test Page
 
Old 04-06-2019, 01:35 AM   #20
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,666

Rep: Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640
If you can't get it working, start over by removing the printer config and reconfigure using 'hp-setup'.
 
Old 04-06-2019, 09:54 PM   #21
Michael Piziak
Member
 
Registered: Feb 2015
Distribution: Ubuntu 14.04 lts
Posts: 254

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
If you can't get it working, start over by removing the printer config and reconfigure using 'hp-setup'.
Couldn't print a test page. I tried deleting the printer at that local page and got this:

Unauthorized
Enter your username and password or the root username and password to access this page. If you are using Kerberos authentication, make sure you have a valid Kerberos ticket.
 
Old 04-06-2019, 09:55 PM   #22
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,666

Rep: Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640
Enter 'root' as username and your root password (for administrator functions).
 
Old 04-06-2019, 10:13 PM   #23
Michael Piziak
Member
 
Registered: Feb 2015
Distribution: Ubuntu 14.04 lts
Posts: 254

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
Enter 'root' as username and your root password (for administrator functions).
Where does it ask for this or have the option to type it in?
 
Old 04-06-2019, 10:24 PM   #24
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,477

Rep: Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657
Ubuntu by default does not enable root nor does root have a password. You need to add your user to the lpadmin group via the usermod command

Usually cups will automatically ask for a username password if you select a function that needs admin privileges.

You should also be able to delete the printer via the print wizard configuration menu

Last edited by michaelk; 04-06-2019 at 10:36 PM.
 
Old 04-06-2019, 10:49 PM   #25
Michael Piziak
Member
 
Registered: Feb 2015
Distribution: Ubuntu 14.04 lts
Posts: 254

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Ubuntu by default does not enable root nor does root have a password. You need to add your user to the lpadmin group via the usermod command

Usually cups will automatically ask for a username password if you select a function that needs admin privileges.

You should also be able to delete the printer via the print wizard configuration menu

What command do I type into terminal to add me as a user via the usermod command ?

Where is this print wizard configuration that you speak of?
 
Old 04-07-2019, 12:17 AM   #26
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,666

Rep: Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640
You really should take the time to learn about administrating the distro that you use. I'm sure that you can Google as well as I can.

Anyway, to remove the existing printer configuration do

Code:
sudo lpadmin -x HP-LaserJet-Pro-MFP-M127fn
Configure again using...
Code:
hp-setup
 
Old 04-07-2019, 12:43 AM   #27
Michael Piziak
Member
 
Registered: Feb 2015
Distribution: Ubuntu 14.04 lts
Posts: 254

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
You really should take the time to learn about administrating the distro that you use. I'm sure that you can Google as well as I can.

Anyway, to remove the existing printer configuration do

Code:
sudo lpadmin -x HP-LaserJet-Pro-MFP-M127fn
Configure again using...
Code:
hp-setup
Seems like my system can't find hp-setup, see below

michael@michael-HP-EliteDesk-800-G1-SFF:~$ sudo lpadmin -x HP-LaserJet-Pro-MFP-M127fn
[sudo] password for michael:
lpadmin: The printer or class does not exist.
michael@michael-HP-EliteDesk-800-G1-SFF:~$ hp-setup

Command 'hp-setup' not found, but can be installed with:

sudo apt install hplip

michael@michael-HP-EliteDesk-800-G1-SFF:~$ sudo apt install hplip
Reading package lists... Done
Building dependency tree
Reading state information... Done
hplip is already the newest version (3.17.10+repack0-5).
The following packages were automatically installed and are no longer required:
fonts-mplus fonts-roboto fonts-roboto-hinted freeglut3 libglade2-0
libglew2.0 libgtkglext1 libllvm6.0 libllvm6.0:i386 liblua5.1-0 libmini18n1
libminizip1 libmupen64plus2 libqt4-opengl libqt5designer5 libqt5help5
libquazip5-1 libretro-core-info libudev1:i386 mupen64plus-audio-all
mupen64plus-audio-sdl mupen64plus-data mupen64plus-input-all
mupen64plus-input-sdl mupen64plus-rsp-all mupen64plus-rsp-hle
mupen64plus-rsp-z64 mupen64plus-ui-console mupen64plus-video-all
mupen64plus-video-arachnoid mupen64plus-video-glide64
mupen64plus-video-glide64mk2 mupen64plus-video-rice mupen64plus-video-z64
python-glade2 python3-dbus.mainloop.pyqt5 python3-pyqt5 python3-sip
retroarch-assets yabause-common
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 148 not upgraded.
michael@michael-HP-EliteDesk-800-G1-SFF:~$ hp-setup

Command 'hp-setup' not found, but can be installed with:

sudo apt install hplip

michael@michael-HP-EliteDesk-800-G1-SFF:~$

Last edited by Michael Piziak; 04-07-2019 at 12:44 AM.
 
Old 04-07-2019, 01:50 AM   #28
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,666

Rep: Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640
Quote:
Seems like my system can't find hp-setup, see below

Code:
michael@michael-HP-EliteDesk-800-G1-SFF:~$ sudo lpadmin -x HP-LaserJet-Pro-MFP-M127fn
[sudo] password for michael:
lpadmin: The printer or class does not exist.
The above implies that the printer configuration has already been removed. You can check that with
Code:
lpstat -t
I have no idea why the hp-setup isn't found. It's supplied as part of the hplip package.

You can check the installed files with
Code:
dpkg -L hplip
 
Old 04-07-2019, 01:53 AM   #29
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,666

Rep: Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640
Try specifying the full path of the command in a terminal window...
Code:
/usr/bin/hp-setup
 
Old 04-07-2019, 08:10 AM   #30
Michael Piziak
Member
 
Registered: Feb 2015
Distribution: Ubuntu 14.04 lts
Posts: 254

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
Try specifying the full path of the command in a terminal window...
Code:
/usr/bin/hp-setup
michael@michael-HP-EliteDesk-800-G1-SFF:~$ /usr/bin/hp-setup
bash: /usr/bin/hp-setup: No such file or directory
michael@michael-HP-EliteDesk-800-G1-SFF:~$
 
  


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] HP LaserJet Professional P1102w stopped working dwhb Linux - Hardware 1 02-11-2019 05:09 PM
[SOLVED] Old HP LaserJet stopped working after 14.2 upgrade, "filter failed", parallel port someone named bert Slackware 11 09-29-2017 04:37 AM
[SOLVED] HP LaserJet Pro MFP m125nw - not printing SerenaVictoria Linux - Hardware 11 07-05-2015 05:49 PM
Printing problem in RH9 with HP LaserJet 1010 ede Linux - Hardware 0 06-16-2004 04:10 AM
USB Printing ... HP LaserJet 1200 FlatZ28 Slackware 11 01-19-2004 08:51 PM

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

All times are GMT -5. The time now is 04:18 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration