Raspberry Raspberry Pi Installation cups for print server sharing HP P1007 printers

Source: Internet
Author: User
Tags hp laserjet p1006

While many articles mention how Raspberry Raspberry Pi installs cups to implement shared printer services, I have tried to find out for myself that HP P1007 is always unusable, tossing for a long time and finally finding a way to record it.

The default Raspberry Raspberry Pi has already done the basic setup, ip,ssh and the like have been OK.

First to perform the update, I just did not perform the update, resulting in subsequent operation error, download installation will prompt 404 cannot find the file

sudo apt-get update

Update after the installation of the latest hplip, according to foreign claims, after installation should be able to solve the majority of HP printer use problems.

sudo apt-get install Hplip

When installing Hplip, you should have already installed cups in sync, and if not, you can proceed with the following command.

sudo apt-get install Cups

After installing the Hplip, configure the user, add Pi to Lpadmin, if it is another user, remember to change the user name

sudo usermod-a-G lpadmin Pi

Replace the cups configuration file below, first stop the service

sudo service cups stop

Back Up Legacy files

sudo mv/etc/cups/cupsd.conf/etc/cups/cupsd.conf.bak

2015.9.21 update looks like the configuration file could not be downloaded

Download the new profile from the server

cd/etc/cups/
sudo wget http://jxeeno.tk/local–files/blog:raspberry-pi:print-server/cupsd.conf

Change the configuration file section parameters as follows:

# Only Listen-connections from the local machine.#Listen localhost:631#CHANGED to LISTEN to LOCAL LANPort 631 # Restrict access to the server ...<location /> Order allow,deny allow @Local </location> # Restrict access to the admin pages ...<location /admin> Order allow,deny allow @Local </location> # Restrict access to configuration files ...<location /admin/conf> authtype Default Require User @SYSTEM Order allow,deny allow @Local </location> Save, Exit cupsd.conf.

Complete, now it's time to start the service.

sudo service cups start

Next, set up the printer, first connect the printer to the Raspberry Pi, and then enter https://your Raspberry Pi ip:631 into the configuration screen in the browser

Open a website, in the above menu bar found administrator, will prompt you user name and password, enter the Raspberry Pi username and password can

After logging in, click Add Printer in the Printers column

The local printers displayed will have the printer you are connected to, should be with usbxxx and so on, select it to click Continue

In this interface name is the name of the printer and is later used to determine the printer in the URL, so the shorter is better

Tick sharing, other don't change, point continue

The next interface to select the driver, this time remember to choose the recommended driver, if you have PPD, you can upload the print driver

Finally, the setup is complete, copy the URL of the last interface, which is similar to HTTP.//Your Raspberry Pi ip:631/printers/printer name can be used to add shared printers on other computers.

If, if you add a Raspberry Pi shared printer here, but it is still useless, please look down:

In accordance with http://foo2xqx.rkkda.com/'s meaning, it is not recommended to use the system's own FOO2ZJS driver or FOO2XQX driver. You need to compile the corresponding driver according to your own printer. My printer is P1007, should choose to be FOO2XQX driver. The next step is to compile your own, and there are tutorials on the site. Make an advertisement for someone else.

FOO2XQX: A Linux printer driver for XQX Stream protocol
e.g. HP LaserJet P1005, P1006, P1007, P1008, P1505, p1505n, P2014, p2014n, M1005 MFP, M1120 MFP

First download FOO2XQX

wget http://foo2zjs.rkkda.com/foo2zjs.tar.gz

Unzip

$ tar zxf foo2zjs.tar.gz$ CD Foo2zjs

Compiling and installing

Compile:    $ makeget extra files from the web, such as. ICM profiles for color Correction,and firmware.  Select the model number for your printer:    $./getweb P1005     # Get HP LaserJet P1005 firmware file    $./getweb P1 006     # get HP LaserJet P1006 firmware file    $./getweb P1007     # get HP LaserJet P1007 firmware file    $./getwe b P1008     # get HP LaserJet P1008 firmware file    $./getweb P1505     # get HP LaserJet P1505 firmware Fileinstall Driver, foomatic XML files, and extra files:    $ suor$ sudo make install    # make install (Optional) Configure Hotplu G (USB; HP LJ p1005/p1006/p1007/p1008/p1505):    # make Install-hotplug      OR      $ sudo make install-hotplug (Optional) If You use cups, restart the spooler:    # make cupsor$ sudo make CUPS

This time again in the browser input https://your Raspberry Pi ip:631 into the configuration interface, delete the original printer, reconfigure the printer, it should be ready to use.

Raspberry Raspberry Pi Installation cups for print server sharing HP P1007 printers

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.