个人工具

UbuntuHelp:HpAllInOne

来自Ubuntu中文

Oneleaf讨论 | 贡献2007年5月13日 (日) 11:39的版本 (New page: {{From|https://help.ubuntu.com/community/HpAllInOne}} {{Languages|php5}} == Preamble == This page describes setting up printing and scanning for HP All-In-One printers. These are suppo...)

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索


Preamble

This page describes setting up printing and scanning for HP All-In-One printers. These are supported by the HP-funded hplip project at http://hpinkjet.sourceforge.net/. All modern printers in the Officejet, PSC, and Photo``Smart lines including the new Photo``Smart C series (released Fall 06) are supported. Hplip is included in Edgy Eft - no other software is needed. The older 'hpoj' package is obsolete and is only used to support parallel connections and for CUPS and SMB shared printers.

Setup

1. Delete any entries for this printer in System->Administration->Printers.
2. Ensure the printer is turned on and plugged in.  In the case of a wireless network printer, run the Wireless Setup Wizard from the printer Setup menu.
1. First try running the HP Setup Wizard hp-setup from the console.  This will open a QT window and walk you through the setup for all types of printer connection.  Scanning should also work when this is done.
1. If that is not working, you can do it the Gnome way:
Add a printer in the Gnome Printers window.  In the Add a Printer Wizard, do one of the following:
   a. For a USB printer, choose an entry under 'Use a detected printer' or choose the selected entry under 'Use another printer' below (some here say choose the later or print jobs will hang).
   a. For a network printer, select 'Network Printer/HP Jet``Direct' under 'Printer Type' then enter the printer IP address in the 'Host' field.  You can get the address from the printer's Setup menu.
Scanning will just work.  You don't have to do anything. See Network Scanner below however for setting up an HP scanner on the network.

Above added by AndrewMalcolmson - earlier wiki contents follow below - January 14 2007

Networked Scanner

If your all-in-one printer is on a network and you use the Gnome Printers window to add the printer as an HP Jet-Direct printer, then you will not be able to scan. To solve this problem, you must first determine the URI of the printer by executing inside a terminal window:
hp-makeuri IP-ADDRESS
</code>
where IP-ADDRESS should be replaced with the IP address of your printer.  This will show the CUPS (printing) and SANE (scanning) URI's for your printer.

Next, there are two approaches to accessing the networked scanner:

 1. You can temporarily access the scanner by supplying the SANE URI to xsane every time you execute it: <pre>
xsane SANE-URI
</code> where SANE-URI is the SANE URI returned by hp-makeuri.
 2. The scanner will be permanently accessible if CUPS is configured to use the 'hp' backend to access the printer instead of the 'socket' backend (i.e., the Jet Direct backend).  This can be done by editing printers.conf: <pre>
gksudo gedit /etc/cups/printers.conf </code> and replacing the 'socket' DeviceURI with the 'hp' URI returned by hp-makeuri.  Restart cups after making this change: <pre>
sudo /etc/init.d/cupsys restart </code>  The scanner should now be permanently accessible and you can use the HPLIP Toolbox to examine that status of your printer.  The downside of this solution is that the Gnome Printers window should no longer be used to modify this printer as it is likely to get confused and overwrite your DeviceURI with something that HPLIP cannot understand.  One possible solution to this problem is to add the same printer twice: once as a Jet Direct printer and again using the 'hp' backend.  The Jet Direct version can be used for printing and printer configuration, while the 'hp' version can be used for scanning and checking ink levels with the HPLIP Toolbox.


== Older Notes ==

=== Supported Models ===

These instructions are known to work with the following HP PSC printers:

** 1100 / 1200 Series all-in-one printer. This little compact printer do function too.
** 1210
** 1315
** 1410v
** 1610 (install firmware update from HP if you own this!)
** 2115 (Use the 2110 ppd)
** 2510
** Photosmart 2575 (Ethernet and USB)
** 2710 (I suspect that all 2600/2700s Photosmarts and 7300/7400s OfficeJets will work as well)
** 3055
** 4200 Officejet series (Worked with 4215 all in one fax anyway with instructions below) 

These instructions will also work for other HP all-in-one printers, and are known to work with the following models:

** OfficeJet G55 (both print- and scanner-modules works like a charm)

(Please update the list if your printer is not in any of the above lists and these instructions work for you.)

There have been issues in the past with getting both printing and scanning to work at the same time. The setup resulting from these instructions supports both printing and scanning.

At the bottom i have added how to do this with hplip. -Shiven

=== Scanning ===

  1. Install  the '''hpoj''' package using synaptic (System->Administration->Synaptic Package Manager).
  2. Setup the hpoj service by running <pre>
    sudo /etc/init.d/hpoj setup
</code>
  Press enter at all prompts. It should detect the printer.

  3. Start the hpoj service by running <pre>
    sudo /etc/init.d/hpoj start
</code>

  4. Scanning will now work. Test in xsane (Applications->Graphics->Xsane...).

=== Printing ===

  1. Restart the cups system to see the new hpoj service by running <pre>
sudo /etc/init.d/cupsys restart 
</code>
  2. In System->Administration->Printers double-click "New Printer"
  3. Select "Use another printer by specifying a port:"
**** '''Do not select''' "Detected printers" or your print jobs will hang.
  4. In the drop-down select the entry beginning with "PTAL".
  5. Hit Forward, select your model or the closest to it, and press Apply.
  6. Printing should now work. Test by right-clicking the newly created printer icon, choose Properties, then click Print a Test Page. 



From filipude Tue May 24 14:58:54 +0100 2005
From: filipude
Date: Tue, 24 May 2005 14:58:54 +0100
Subject: Small correction and one more printer functions.
Message-ID: <20050524145854+0100@https://www.ubuntulinux.org>

Through turning on and of this "1100 / 1200 Series all-in-one printer" 3 times the printer was recognised. And so this little compact printer do functions too. Regards Phillip Bøgh


=== Kubuntu ===

Using ptal under Hoary, the printer will not be autodetected.  When you are adding the printer in the Control Center (Peripherals, Printers, Add Printer), select ptal and manually add the URL.

You can find the url for your printer by running ptal-hp at the commandline.  It will look something like "mlc:usb:PSC_2100_Series".  Add a ptal: prefix to this line and enter it into the Add Printer dialog.  In this case, you would set the URL for your printer to "ptal:mlc:usb:PSC_2100_Series".  Then hit Continue to select your printer and continue with the setup.

=== Setting up printers to use hplip. ===

Known to work with: hppsc 1210. i don't have another printer, but this works well for me.

Preamble: So you want your printer to scan and print? but you also want the tools from HP to go with it! This is fairly simple, just takes a bit of configuration.

Step 1: run synaptic (system > admin > synaptic). Put in your password, and search for 'hplip'.

Install all three packages, then move to step two.

Step 2: once the tools are installed, you will need to restart your printer, and also run /etc/init.d/cupsys restart, to update your cups interface. this is CRUCIAL!

Step 3: Go and download the appropriate module for your printer (gimp-print doesn't have the correct modules for PSC model printers, so goto http://www.linuxprinting.org/printer_list.cgi and get the driver for your printer (about 20kb)).
Copy this driver into the folder of your choice (i chose /usr/share/hplip/data, remember the folder because you're going to need it in the next step).

Step 4: run system -> administration -> printers, input your password, and install a new printer. Do NOT use the detected printers, use the location that appears when you select "Use another printer by specifying a port". Click next, goto HP at the top (if it isn't already selected), then goto Install Driver. Select the ppd file from your location, so in my case /usr/share/hplip/data/hp_psc_1210.ppd, and then follow the prompts until it finishes.

Step 5: add hpaio to the end of /etc/sane.d/dll.conf. This is so the sane backend can work with hplip.

Step 6: test page baybee! if it works, run xsane and give the scanner a run and you're good to go!

Known problems: I haven't found anything. The hp-toolbox (system -> preferances -> hp toolbox) seems acurate, and... well, everything just works. what else could you want? <sup>-</sup>

Above does not work for networked printers. I got my hp laserjet 1200 to be seen by hplip as follows:

Grab the ppd file as detailed above.

Run hp-makeuri IPADDRESS where IPADDRESS is your printers local ip address (mine is 192.168.0.150). Save the result

Mine was: hp:/net/HP_LaserJet_1200?ip=192.168.0.150

Install kprinter. The gnome printool does not allow installation of hp:// addresses at present (correct me if I'm wrong please)

sudo kprinter

click on install wand and follow wizard

Click on "other printer type"

Insert uri produced by hp-makeuri command

Click "other" at driver step and select the ppd file.

Click to finish and REBOOT machine (a cupsys restart was not enough for me).

On restart hplip should pick up networked printer as well as your local ones.


----
CategoryHardware CategoryDocumentation CategoryCleanup CategoryHardware

[[category:UbuntuHelp]]