个人工具

“UbuntuHelp:HpAllInOne”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第60行: 第60行:
 
At the bottom i have added how to do this with hplip. -Shiven
 
At the bottom i have added how to do this with hplip. -Shiven
 
=== Scanning ===
 
=== Scanning ===
<ol><li>Install  the '''hpoj''' package using synaptic (System->Administration->Synaptic Package Manager).
+
(Removed hpoj notes). As the documentation for hpoj states, it has been replaced by the hplip package.
</li><li>Setup the hpoj service by running <pre><nowiki>
+
Try running [[UbuntuHelp:XSane|XSane]] to scan (from Applications->Graphics).
    sudo /etc/init.d/hpoj setup
+
</nowiki></pre></li></ol>
+
 
+
Press enter at all prompts. It should detect the printer.
+
<ol><li>Start the hpoj service by running <pre><nowiki>
+
    sudo /etc/init.d/hpoj start
+
</nowiki></pre>
+
</li><li>Scanning will now work. Test in xsane (Applications->Graphics->Xsane...).</li></ol>
+
 
+
 
=== Printing ===
 
=== Printing ===
 
<ol><li>Restart the cups system to see the new hpoj service by running <pre><nowiki>
 
<ol><li>Restart the cups system to see the new hpoj service by running <pre><nowiki>
第117行: 第108行:
 
On restart hplip should pick up networked printer as well as your local ones.
 
On restart hplip should pick up networked printer as well as your local ones.
 
----
 
----
[[category:CategoryHardware]] [[category:CategoryDocumentation]] [[category:CategoryCleanup]] [[category:CategoryHardware]] [[category:CategoryHardware]]
+
[[category:CategoryCleanup]] [[category:CategoryHardware]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2008年12月16日 (二) 18:53的版本

Preamble

Printing and scanning with HP All-In-One printers is supported by the hplip project . Almost all HP printers, even new ones, are supported. The hplip package is included in Ubuntu and Debian and 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.
  3. Run the HP Setup Wizard from the console. This will walk you through the setup for USB, network and parallel connections.
 sudo hp-setup

Scanning and other features such as memory card image transfer should now work. In the console, enter 'hp-' and Tab to see a list of the included utilities such as the Toolbox for device maintenance and checking ink levels. This wiki page has screenshots of hp-setup.

Troubleshooting

Run:

sudo hp-check -r

This will summarize any installation errors. Post support questions at the project Launchpad page. Following are steps that may have been needed in earlier versions of HPlip. AndrewMalcolmson - May 2008

Networked Scanner

Note: the following is not necessary if you run hp-setup as above.

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

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:
    xsane SANE-URI
    
    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:
    gksudo gedit /etc/cups/printers.conf 
    and replacing the 'socket' DeviceURI with the 'hp' URI returned by hp-makeuri. Restart cups after making this change:
    sudo /etc/init.d/cupsys restart 
    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.

Hardware

HP Deskjet F4180 works very well with Ubuntu.

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 Network-scanner: On Feisty use Cups-Uri; on Gusty wizard install printer and scanner with "next, next, finish"! :D
  • 4200 Officejet series (Worked with 4215 all in one fax anyway with instructions below)
  • Color LaserJet 2600n (Color doesn't work well)

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)
  • Photosmart C4440 (print worked instantly on Hardy Heron, just plug and go, Scanner works with instructions below)

(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

(Removed hpoj notes). As the documentation for hpoj states, it has been replaced by the hplip package. Try running XSane to scan (from Applications->Graphics).

Printing

  1. Restart the cups system to see the new hpoj service by running
    sudo /etc/init.d/cupsys restart 
    
  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.
  1. In the drop-down select the entry beginning with "PTAL".
  2. Hit Forward, select your model or the closest to it, and press Apply.
  3. 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? - 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.