typxxi
Posts: 44
Joined: Sat Mar 05, 2016 6:11 pm
Location: GERMANY

How to get and install an HP M276nw driver?

Sun Mar 20, 2016 11:43 am

I have this MFP laser from HP and can't find a way to install this device.
I found some informations about an hp repository where the HP M276nw should be part of but I did not find the right ppd driver file and a step by step solution.

Thx for any further help and descriptions about this CUPs adventure.
WOLF

fruitoftheloom
Posts: 21037
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: How to get and install an HP M276nw driver?

Sun Mar 20, 2016 12:06 pm

typxxi wrote:I have this MFP laser from HP and can't find a way to install this device.
I found some informations about an hp repository where the HP M276nw should be part of but I did not find the right ppd driver file and a step by step solution.

Thx for any further help and descriptions about this CUPs adventure.
If it is actually a HP LaserJet Pro 200 Color MFP m276nw

http://hplipopensource.com/hplip-web/mo ... 276nw.html

Supported by HPLIP 3.12.9, therefore Raspbian Jessie and:

Code: Select all

sudo apt-get update
sudo apt-get install hplip cups
You need to be a member of lpadmin group

Code: Select all

sudo usermod -a -G lpadmin pi
http://www.penguintutor.com/linux/printing-cups
Retired disgracefully.....
This at present is my daily "computer" https://www.asus.com/us/Chrome-Devices/Chromebit-CS10/

typxxi
Posts: 44
Joined: Sat Mar 05, 2016 6:11 pm
Location: GERMANY

Re: How to get and install an HP M276nw driver?

Sun Mar 20, 2016 7:00 pm

Hey,

unfortunately even after a reboot I am not able to install a printer.

If I open the website (http://192.168.xxx.xxx:631/) I see V 1.7.5 and if I try to add a printer I get a connection refused error from http://192.168.xxx.xxx:631/admin.

Any ideas?
Thx

P.S.: It's a connection problem: 127.0.0.1:631 works
WOLF

User avatar
DougieLawson
Posts: 36515
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: How to get and install an HP M276nw driver?

Sun Mar 20, 2016 7:11 pm

http://www.penguintutor.com/linux/printing-cups
Change the config to allow connections from anywhere in the 192.168.xx.xx/24 subnet.
Try httpS://192.168.3.14:631 (changed to your hidden address) and login with your pi userid (as long as pi is in the lpadmin group)
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

typxxi
Posts: 44
Joined: Sat Mar 05, 2016 6:11 pm
Location: GERMANY

Re: How to get and install an HP M276nw driver?

Sun Mar 20, 2016 8:20 pm

OK, here a few comments:

On the raspi I am able to open the cups admin page via 127.0.0.1:631 and to add a printer.

If I am trying to select the modell the ephiphany Browser is running under heavy load.

The first problem is that there are 8 or 10 drivers with the exact same description - no difference.
The second problem: I do not get an add button to add the selected printer modell.

Even after a minute there is a still growing list of HP Printers where I can select the right one but there is still no button for adding this printer.

If I start TOP in the terminal session I see the browser running at 103% ... but nothing happens for minutes inside the browser window where the progress bar stays still.

stop, after 5 or 6 minutes while typing here the site was completly loaded and now there is the add button.
WOLF

User avatar
DougieLawson
Posts: 36515
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: How to get and install an HP M276nw driver?

Sun Mar 20, 2016 8:53 pm

Change this stuff in /etc/cups/cupsd.conf

Code: Select all

Listen 0.0.0.0:631 # change me
...
<Location />
  Order allow,deny
  Allow @LOCAL # change me
</Location>
...
<Location /admin>
  Order allow,deny
  Allow @LOCAL # change me
</Location>
...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM # leave me alone
  Order allow,deny
</Location>
restart cupsd and you'll be able to access it from ANY machine in your local subnet. It's a bunch easier doing it from Firefox or Chromium on Windows. If you can't do that install Chromium 48 on your RPi (because that's less likely to crash than Epiphany).
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

typxxi
Posts: 44
Joined: Sat Mar 05, 2016 6:11 pm
Location: GERMANY

Re: How to get and install an HP M276nw driver?

Sun Mar 27, 2016 10:43 am

Thanks Dougie, but unfortunatelly I have more questions than answers :roll:

I don't know if something went wrong, but when I tried this sudo nano /etc/cups/cupsd.conf I found only one "listen".
That syntay looked very different to your "Listen 0.0.0.0:631 # change me" and therefore I am asking

# Allow remote access
Port 631
Listen /var/run/cups/cups.sock


Shall I change "Listen /var/run/cups/cups.sock" into "Listen 0.0.0.0:631" or the IP of my Win 10 Laptop?
I am not sure if 0.0.0.0 is something like a mask.

What else do I have to do at the "change me" lines?

<Location />
Order allow,deny
Allow @LOCAL # change me (into what? my laptop IP adress or just delete @LOCAL)
</Location>
...
<Location /admin>
Order allow,deny
Allow @LOCAL # change me (into what? my laptop IP adress or just delete @LOCAL)
</Location>
...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM # leave me alone (what do I have to do here?)
Order allow,deny

Sorry, but I am very unfamiliar with that stuff and I do not want to make a mistake and restore the SD again and again.
WOLF

User avatar
DougieLawson
Posts: 36515
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: How to get and install an HP M276nw driver?

Sun Mar 27, 2016 5:05 pm

Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

typxxi
Posts: 44
Joined: Sat Mar 05, 2016 6:11 pm
Location: GERMANY

Re: How to get and install an HP M276nw driver?

Sun Mar 27, 2016 7:28 pm

Hey,

that works fine. The web page with the selection of HP Pinter is now - on my W 10 Laptop - instantly (fast) available and no page forward waitings I had on my raspi epiphany browser.
Great job, well done.

If any other might follow: to restart cups try this sudo /etc/init.d/cups restart

Meanwhile I got chromium running on my newest raspi 3 B where it amazing fast(er) than on the 2 B.

Thx a lot for all of your support. :D
WOLF

typxxi
Posts: 44
Joined: Sat Mar 05, 2016 6:11 pm
Location: GERMANY

Re: How to get and install an HP M276nw driver?

Sun Mar 27, 2016 8:02 pm

I checked this with the initial conf file I got from the installer and at first sight I was confused and it looked like that all CHANGE ME lines were already adapted, but I was wrong.
DougieLawson wrote:Change this stuff in /etc/cups/cupsd.conf

Code: Select all

Listen 0.0.0.0:631 # change me
...
<Location />
  Order allow,deny
  Allow @LOCAL # change me
</Location>
...
<Location /admin>
  Order allow,deny
  Allow @LOCAL # change me
</Location>
...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM # leave me alone
  Order allow,deny
</Location>
I only had to change better add these 2 lines

Code: Select all

Listen 0.0.0.0:631 # ADD ME
...
<Location /admin>
  Order allow,deny
  Allow @LOCAL # ADD ME
</Location>
Restart cupsd: sudo /etc/init.d/cups restart

But thanks again for your quick and efficient support.
WOLF

Return to “Beginners”