LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 01-12-2019, 01:27 PM   #1
LinuxCrawler
LQ Newbie
 
Registered: Jan 2019
Posts: 3

Rep: Reputation: Disabled
Printer connection via USB to Raspberry Pi3


Greetings All, Welcome to a new year
Attempting to connect an HP LaserJet 2055dn to my Raspberry Pi3
using the printer's USB port. Have installed the CUPS software.
The problem is that it is not recognized when using the web
interface Administration Tab on the panel. It keeps asking for my username and password which i type in as "pi" and "raspberry."
After two attempts, it stops asking and its me and my monitor
having a staring contest. However, i did come across something at
the CUPS.org web site on the FAQ page which says:

"If you have setup your computer to not require a password or
have a blank or empty password, (which is what i did),
then CUPS web interface will Not Work for you.
CUPS requires a login name and password to allow you to
make changes through the web interface."

So, the question is, how do i go back and set up a password now?

Secondly; i discovered at the LinuxQuestions.org site that there
is a way to connect the printer using the command line
in the terminal. However, a device URI is required.
So...how do i find out what the device-uri for the
printer is? Visited the HP web site but no help there.

Have owned my printer over a month now but still am not able to
to use it. Frustrating. Any ideas folks?

Thank you for your reading time. David in Carolina
 
Old 01-12-2019, 07:54 PM   #2
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,476

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
According to openprinting.org the preferred driver is hplip (proprietary drivers for many HP printers). HPLIP software is available for Raspberry Pi platform apparently...
https://www.raspberrypi.org/forums/v...c.php?p=310791
https://www.ramoonus.nl/2017/05/21/i...-raspberry-pi/

Alternatively, the Laserjet P2005dn model apparently supports "Postscript level 3 and duplex out of the box", so you could just configure CUPS to communicate with it as a postscript printer.

Quote:
So, the question is, how do i go back and set up a password now?
Use the passwd command to change the password of the user concerned
Code:
passwd
Note that normally CUPS is configured to allow only administrator access, but that can be changed to suit by editing the 'SystemGroup' entry in /etc/cups-files.conf, or making the user a member of the group defined there. For example, I have
Code:
# cat cups-files.conf|grep Sys
SystemGroup root
This "how to" may also be useful to you...
https://www.howtogeek.com/169679/how...inux-computer/

Quote:
Secondly; i discovered at the LinuxQuestions.org site that there
is a way to connect the printer using the command line
in the terminal. However, a device URI is required.
So...how do i find out what the device-uri for the
printer is?
It can be done, but you also need to specify the driver. Not necessarily easy if you're a new user. The generic CUPS 'usb://' backend will be ok for the open-source postscript driver, but note if using the HPLIP driver be aware that it uses it's own 'hp' backend...
https://developers.hp.com/hp-linux-i..._docs/overview

If HPLIP is installed, you could run the backend manually like this to get information about the attached printer...
Code:
sudo /usr/lib/cups/backend/hp
Likewise, the CUPS usb backend can also be run manually and will usually enumerate an attached USB printer including the URI...
Code:
/usr/lib/cups/backend/usb

Last edited by ferrari; 01-12-2019 at 07:55 PM.
 
1 members found this post helpful.
Old 01-13-2019, 01:25 PM   #3
LinuxCrawler
LQ Newbie
 
Registered: Jan 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
Greetings ferrari,
Like WOW even! What a high quality response. And from a Senior Member too.
(by that i mean that you are a long time member, not your age)
And from down under yet! I've heard that New Zealand is a great place for
out backing and trail work, with lots of opportunity to step into sheep dip.
Its on my list of places i plan to visit.
Actually, i was a little hesitant to post anything at this site because
it meant displaying my ignorance to the whole world, something that is hard
for me to do. Now i see that waving a flag that says,"i could use a little
help here" may not be such a bad idea after all. I noticed that you are using
the openSUSEleap distribution. Perhaps you could tell me why you prefer it.
I'm familiar with DSL and Puppy Linux, which i've tried, without success, to
load onto my Lenovo ThinkCentre desktop, due to the "Secure Boot' activated
on the motherboard and an obstinate Windows 10 OS. That's what drove me to
purchase the Rasberry Pi3. Now i finally have a Linux machine.

Well, i can see that its going to be a busy Sunday here as you gave me a lot
of links to click on. And that's great. I'm willing to do the homework, as
long as i know that i'm at least using the right book. I have a lot of printing
to do as my writing projects have been backing up do to this printer issue.
Also ,i was wondering if there is a classic book or manual you might recommend
to me that gives a body a basic overall view of what the Linux Operating System
is all about, like its fundamental structure and purpose. I need a solid framework
on which to pin all these fragments of information i'm picking up on the web
from blogs and technical newsletters. A lot of it is still Greek to me, although
i'm pretty good in Latin.

OK then, ferrari, time to get to work, so i can begin filling up those reams of
paper i have lying next to my printer.
Thank you so much for providing me with so much quality information!
Hope all goes well for you this year.
Best Regards,. . . . David in Carolina
 
Old 01-13-2019, 02:55 PM   #4
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,476

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
Thank you for the kind words. I'm happy to help and add value where I can, even if it's just to help clarify things a little. Don't be afraid of asking for help - I've found these forums are great for sharing technical advice. Linux is a complex, boundless subject - learning never stops, and it keeps evolving anyway (new hardware, peoples creativity etc).

I cut my teeth on Red Hat Linux (~2003), just before the Fedora Project was started. I played with the early Fedora Core releases, but after experiencing a few dependency issues I decided to give SUSE Linux a go (which I found to be more polished with respect to the KDE desktop environment and configuration tools it provided). This later became openSUSE, and I've stayed with it ever since. I think it is good to stick with a primary distro and become as proficient as one can be, using a familiar OS environment. The online community is great and I'm also a global moderator at openSUSE Forums.

BTW, I have also recently set up a Raspberry Pi to provide a basic NAS (samba and NFS server) and DLNA server, primarily driven by the need to back up important information I had on a laptop, and consolidate our collection of family photos living on various devices.
 
  


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
Elementary OS on Raspberry Pi3 (arm processors) ?? Marv_Mark elementary OS 3 12-14-2016 07:04 PM
[SOLVED] Headless raspberry pi3 and audio output spacelander Linux - Newbie 2 08-19-2016 05:16 AM
GPIO output Raspberry pi3 andi968 Programming 2 04-13-2016 02:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 11:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration