linux下无法共享打印机的问题_VMware, Unix及操作系统讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  VMware, Unix及操作系统讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 3262 | 回复: 0   主题: linux下无法共享打印机的问题        下一篇 
    本主题由 Administrator 于 2014-9-9 23:11:43 移动
xiaoyan.han
注册用户
等级:列兵
经验:90
发帖:0
精华:0
注册:2013-11-29
状态:离线
发送短消息息给xiaoyan.han 加好友    发送短消息息给xiaoyan.han 发消息
发表于: IP:您无权察看 2014-9-9 14:33:12 | [全部帖] [楼主帖] 楼主

    本人安装的是红帽子9.0,想做一个打印共享服务器,还有传真服务器,是拨号上网的,内网共享使用打印机和传真,还有空间(现在是ntfs,已经实现挂载并共享了.)

    打印机是 hp1020的激光打印机,hp官方不提供支持linux的驱动,但是从网络的极少数文章看到,是可以解决这个问题的.

HP LaserJet 1020
BW laser printer, max. 600x600 dpi, works Mostly
Recommended driver: foo2zjs (Home page, view PPD, download PPD)
Generic instructions for: CUPS, LPD, LPRng, PPR, PDQ, no spooler
Add a similar printer
Edited Notes
This printer is supported by the foo2zjs free software printer driver.
The printer is faster than the LaserJet 1000 and has a USB connection. It has only 2 MB of RAM and 32 kB of ROM.
The firmware of the printer must be uploaded after turning it on. You can use a hotplug/udev script which comes with foo2zjs, or do it manually: "cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/usb/lp0".
User Notes
This printer should go to "partially supported",some firmwares doesn't work and you can't
print more that 20 pages ....
drivers/usb/class/usblp.c: usblp0: failed reading printer status
drivers/usb/class/usblp.c: usblp0: failed reading printer status
drivers/usb/class/usblp.c: usblp0: failed reading printer status
This printer has serious problem working with udev+hal,mostly supported is missleading.
This is not a printer that works always and you cannot have fancy driver options,
this printer is simply partially supported.This actually mean that if you have to
buy something DO NOT buy this printer.
---------------------------
On Ubuntu Breezy
Installed fine using the latest foo2zjs driver, as outlined in the INSTALL
file. As others have experienced below, the printer had to be
restarted after every job.
I fixed this by changing /etc/hotplug/usb/hplj1020 as follows:
#
# Set $DEV to, e.g. /dev/usb/lp0, to force the device you want
# Else, leave it null to automatically detect the device
#
DEV=/dev/usb/lp0
#DEV= ""
i.e. comment out the DEV="" line, as the auto-detect script later on
messes things up, so ensure the location of the printer is forced.
I hope that helps - this has been bugging me for months, and the solution
was so simple!
On Ubuntu Dapper
Works fine and no 20 pages limit just follow this steps
first uninstall the included foo2zjs
http://foo2zjs.rkkda.com/
ubuntu has a problemaic ppd, when you choose your ppd on gnome-cups-manager (printer intaller)
please try all of them, the latest used is the recomended, when you choose the correct one you
will notice you can choose 1200X600 dpi and 600x600
could some one make a package with firmwares and everithing?
if you share the printer via samba you have to follow the steps too, but
is not nesesary the make install-hotplug
you can make a package with checkinstall and then restart cups
but the package will be problematic with foomatic-db
---------------
On SuSE 10.0:
I have similar problems with printing more than 3 pages from OpenOffice.
The printer just spews out a blank page instead.
Strangely, the same occurs when I print on the network. The printer is
attached to an aged Win98 machine. However, I can print as many pages as
I want from that Win box.
Seems like some buffer problem with printing on SuSE or maybe PPD bug?
I wonder...
----------------
Suse 10.0 works for me most of the time. But no way would I buy it again.
HowTo: http://www.swerdna.net.au/linhowtohplaser1020.html
Swerdna
---------------
On SuSE 9.3 the hotplug script is not working properly. That's because there
are several character devices (no links) which are connected with the same
printer (e.g. /dev/usblp0 and /dev/usb/lp0). By default the script is
searching for devices which need a firmware. For each of those devices the
firmware is download and so the firmware is downloaded twice on the same
printer. This results in a error.
So make sure you specify one particular device within the script (eg
DEV=/dev/usb/lp0).
Additionally you have to add a break at the beginning (e.g. sleep 15). That's
because it tooks some time until the device is accessible after pluging it in.
When configuring the printer with CUPS check whether you specified the correct
paper size (e.g. A4 instead of letter). Otherwise the printout will be
unreadable.
My experience with Mandriva 2005LE, in French: http://louisgagnon.com/hplj1020.html
----------
I bought a new HP1020 LaserJet in March 2006 and did the installation based on
http://foo2zjs.rkkda.com/ and
http://www.linuxprinting.org/show_printer.cgi?recnum=HP-LaserJet_1020.
In addition to all hints described there I found that the following additional
changes were required to make my printer performing reliable and reproducible:
1. Newer firmware download:
The firmware file sihp1020 that is included in the current tarball from
http://foo2zjs.rkkda.com/ has a date of FWVER:20041129 (I guess that means
November 29, 2004).
With this version my printer is not able to respond to a printer status request
which leads to a fail of most printing requests via cups.
As a solution I took the firmware file sihp1020 from the tarball that is
provided on http://support.ideainformatica.com/hplj1020/ (FWVER:20050318).
2. Add a second sleep time in the hotplug script (May be Suse 9.3 only)
The firmware download is performed somewhere in the middle of execution of the
hotplug / udev mechanism as controlled by the foo2zjs scripts. Then the Laserjet
printer obviously works on
SuSE 10.1
=========
The HP LJ 1020 works fine with suse 10.1. Yast detects the printer but I had to
create a new printer
- add (directly connected printer)
- USB printer
- then when presented with a list starting with //HP/laserJet 1020 click 'Other'
- add /dev/usb/lp0 (Assuming your printer is using this device - it can be set
in the hotplug script/etc/hotplug/usb/hplj1000
- continue and select the printer type etc etc
All should be well. I couldn't get it to work with device //HP/laserJet1020 but
the above workaround will get you printing.
FedoraCore3(or later)/CentOS4(RHEL4?):
======================================
You need to use foo2zjs as mentioned above, however the
firmware that foo2zjs current provides is old and has
problems printing more than a few pages, and also with
certain complex pages. The site mentioned above (
support.ideainformatica.com) no longer seems to offer
the firmware, so what I did was to "borrow" it from
windows:
1) Using a Windows system, download the driver from
www.hp.com.
2) Install the driver.
3) In "C:/Program Files/Hewlett-Packard/LaserJet
1020-1022 Drivers/", copy the file hp1020.img.
Now get into Linux as root, and do the following:
1. wget http://foo2zjs.rkkda.com/foo2zjs.tar.gz
2. tar xzvf foo2zjs.tar.gz
3. cd foo2zjs
4. make
5. (copy the hp1020.img into this folder as sihp1020.img)
6. make install
7. make install-hotplug
Switch off-and-on the printer, you should see something like this
in your /var/log/messages:
kernel: usb 1-1: new high speed USB device using ehci_hcd and address 9
kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 9 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
/etc/hotplug/usb/hplj1020: loading HP LaserJet 1020 firmware /usr/share/foo2zjs/firmware/sihp1020.dl to /dev/usb/lp0 ...
/etc/hotplug/usb/hplj1020: ... download successful.
Then set up your printer queue by running system-config-printer-gui:
1. click New, and Forward.
2. Enter a name and description.
3. Queue-type: Locally Connected, /dev/usb/lp0
4. Choose HP LaserJet 1020
5. Finish, and print a test page!
/dotsha
SuSE 10.1 (2.6.16.13-4-default kernel)
======================================
Installed foo2zjs as above. After this, hacked the file
/sbin/foo2zjs-loadfw with the following horrible hacks.
Calling usb_printerid seems to flush some buffers
and make it work:
# AT THE HEAD OF /sbin/foo2zjs-loadfw, this text:
#! /bin/bash
sleep 7 # wait a bit for the thing to warm up
usb_printerid /dev/usb/lp0 ; usleep 50000
####
#### original /sbin/foo2zjs-loadfw goes here
####
# AT THE END OF /sbin/foo2zjs-loadfw, this text:
sleep 7
usb_printerid /dev/usb/lp0 ; usleep 50000
usb_printerid /dev/usb/lp0 ; usleep 50000
usb_printerid /dev/usb/lp0 ; usleep 50000
usb_printerid /dev/usb/lp0 ; usleep 50000
usb_printerid /dev/usb/lp0 ; usleep 50000
usb_printerid /dev/usb/lp0 ; usleep 50000
/usr/bin/enable laserjet1020
#### end
After hacking /sbin/foo2zjs-loadfw, set the printer up using
YaST autodetect, which makes an entry in cups.conf like this:
DeviceURI usb://HP/LaserJet%201020
Slackware >10.2
======================================
This printer works almost perfectly expect for the 20 pages limit noted above.
Since I didn't try yet the latest driver provided by nice people at http://foo2zjs.rkkda.com/,
I don't know if they fixed this annoying problem.
Anyway, just untarball the file, type make, wait, then type make install.
With make hotplug, on slackware 11, it worked out of the box without manual modifing any files.
Anyway, I spend a lot of a time configuring it with previous releases: foo2jzs' people must have been
fixed something. So get the latest release ! :)
But, I don't know if I'd buy this printer again...
It's a very good printer, but hp doesn't offer any support at all on linux.


 老鸟帮忙大概翻译一下,或者找个1020的机子测试一下*.ppd是linux下要用的驱动吗???为什么下载下来是xxx.ppd.txt的文件??????

*PPD-Adobe: "4.3"
*% For information on using this, and to obtain the required backend
*% script, consult http://www.linuxprinting.org/
*% This file is published under the GNU General Public License
*% PPD-O-MATIC (3.0.0 or newer) generated this PPD file. It is for use with
*% all programs and environments which use PPD files for dealing with
*% printer capability information. The printer must be configured with the
*% "foomatic-rip" backend filter script of Foomatic 3.0.0 or newer. This
*% file and "foomatic-rip" work together to support PPD-controlled printer
*% driver option access with arbitrary free software printer drivers and
*% printing spoolers.
*% To save this file on your disk, wait until the download has completed
*% (the animation of the browser logo must stop) and then use the
*% "Save as..." command in the "File" menu of your browser or in the
*% pop-up manu when you click on this document with the right mouse button.
*% DO NOT cut and paste this file into an editor with your mouse. This can
*% introduce additional line breaks which lead to unexpected results.
*% You may save this file as 'HP-LaserJet_1020-foo2zjs.ppd'
*FormatVersion: "4.3"
*FileVersion: "1.1"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PCFileName: "FOO2ZJS.PPD"
*Manufacturer: "HP"
*Product: "(HP LaserJet 1020)"
*cupsVersion: 1.0
*cupsManualCopies: True
*cupsModelNumber: 2
*cupsFilter: "application/vnd.cups-postscript 0 foomatic-rip"
*%pprRIP: foomatic-rip other
*ModelName: "HP LaserJet 1020"
*ShortNickName: "HP LaserJet 1020 foo2zjs"
*NickName: "HP LaserJet 1020 Foomatic/foo2zjs (recommended)"
*PSVersion: "(3010.000) 550"
*PSVersion: "(3010.000) 651"
*PSVersion: "(3010.000) 652"
*PSVersion: "(3010.000) 653"
*PSVersion: "(3010.000) 704"
*PSVersion: "(3010.000) 705"
*PSVersion: "(3010.000) 800"
*LanguageLevel: "3"
*ColorDevice: False
*DefaultColorSpace: Gray
*FileSystem: False
*Throughput: "1"
*LandscapeOrientation: Plus90
*TTRasterizer: Type42
*1284DeviceID: "MFG:Hewlett-Packard;MDL:HP LaserJet 1020;CMD:ACL;DES:HP LaserJet 1020;"
*FoomaticIDs: HP-LaserJet_1020 foo2zjs
*FoomaticRIPCommandLine: "foo2zjs-wrapper %A"
*OpenGroup: General/General
*OpenUI *Quality/Printing Quality: PickOne
*FoomaticRIPOption Quality: enum CmdLine A
*OrderDependency: 110 AnySetup *Quality
*DefaultQuality: normal
*Quality draft/Draft: "%% FoomaticRIPOptionSetting: Quality=draft"
*FoomaticRIPOptionSetting Quality=draft: " -t "
*Quality normal/Normal: "%% FoomaticRIPOptionSetting: Quality=normal"
*FoomaticRIPOptionSetting Quality=normal: " "
*CloseUI: *Quality
*FoomaticRIPOption PrinterType: enum CmdLine A 110
*FoomaticRIPOptionSetting PrinterType=BWz1: "-P -z1 -L0 "
*FoomaticRIPOption ColorMode: enum CmdLine A 120
*FoomaticRIPOptionSetting ColorMode=Monochrome: " "
*OpenUI *Resolution/Resolution: PickOne
*FoomaticRIPOption Resolution: enum CmdLine A
*OrderDependency: 130 AnySetup *Resolution
*DefaultResolution: 1200x600dpi
*Resolution 600x600dpi/600x600 dpi: "%% FoomaticRIPOptionSetting: Resolution=600x600dpi"
*FoomaticRIPOptionSetting Resolution=600x600dpi: "-r600x600 "
*Resolution 1200x600dpi/1200x600 dpi: "%% FoomaticRIPOptionSetting: Resolution=1200x600dpi"
*FoomaticRIPOptionSetting Resolution=1200x600dpi: "-r1200x600 "
*CloseUI: *Resolution
*OpenUI *PageSize/Page Size: PickOne
*FoomaticRIPOption PageSize: enum CmdLine A
*OrderDependency: 135 AnySetup *PageSize
*DefaultPageSize: Letter
*PageSize Letter/Letter: "%% FoomaticRIPOptionSetting: PageSize=Letter"
*FoomaticRIPOptionSetting PageSize=Letter: "-p1 "
*PageSize A4/A4: "%% FoomaticRIPOptionSetting: PageSize=A4"
*FoomaticRIPOptionSetting PageSize=A4: "-p9 "
*PageSize A5/A5: "%% FoomaticRIPOptionSetting: PageSize=A5"
*FoomaticRIPOptionSetting PageSize=A5: "-p11 "
*PageSize B5/B5: "%% FoomaticRIPOptionSetting: PageSize=B5"
*FoomaticRIPOptionSetting PageSize=B5: "-p13 "
*PageSize Env10/Env #10: "%% FoomaticRIPOptionSetting: PageSize=Env10"
*FoomaticRIPOptionSetting PageSize=Env10: "-p20 "
*PageSize EnvB5/Env B5: "%% FoomaticRIPOptionSetting: PageSize=EnvB5"
*FoomaticRIPOptionSetting PageSize=EnvB5: "-p34 "
*PageSize EnvC5/Env C5: "%% FoomaticRIPOptionSetting: PageSize=EnvC5"
*FoomaticRIPOptionSetting PageSize=EnvC5: "-p28 "
*PageSize EnvDL/Env DL: "%% FoomaticRIPOptionSetting: PageSize=EnvDL"
*FoomaticRIPOptionSetting PageSize=EnvDL: "-p27 "
*PageSize EnvMonarch/Env Monarch: "%% FoomaticRIPOptionSetting: PageSize=EnvMonarch"
*FoomaticRIPOptionSetting PageSize=EnvMonarch: "-p37 "
*PageSize Executive/Executive: "%% FoomaticRIPOptionSetting: PageSize=Executive"
*FoomaticRIPOptionSetting PageSize=Executive: "-p7 "
*PageSize Legal/Legal: "%% FoomaticRIPOptionSetting: PageSize=Legal"
*FoomaticRIPOptionSetting PageSize=Legal: "-p5 "
*CloseUI: *PageSize
*OpenUI *PageRegion: PickOne
*OrderDependency: 135 AnySetup *PageRegion
*DefaultPageRegion: Letter
*PageRegion Letter/Letter: "%% FoomaticRIPOptionSetting: PageSize=Letter"
*PageRegion A4/A4: "%% FoomaticRIPOptionSetting: PageSize=A4"
*PageRegion A5/A5: "%% FoomaticRIPOptionSetting: PageSize=A5"
*PageRegion B5/B5: "%% FoomaticRIPOptionSetting: PageSize=B5"
*PageRegion Env10/Env #10: "%% FoomaticRIPOptionSetting: PageSize=Env10"
*PageRegion EnvB5/Env B5: "%% FoomaticRIPOptionSetting: PageSize=EnvB5"
*PageRegion EnvC5/Env C5: "%% FoomaticRIPOptionSetting: PageSize=EnvC5"
*PageRegion EnvDL/Env DL: "%% FoomaticRIPOptionSetting: PageSize=EnvDL"
*PageRegion EnvMonarch/Env Monarch: "%% FoomaticRIPOptionSetting: PageSize=EnvMonarch"
*PageRegion Executive/Executive: "%% FoomaticRIPOptionSetting: PageSize=Executive"
*PageRegion Legal/Legal: "%% FoomaticRIPOptionSetting: PageSize=Legal"
*CloseUI: *PageRegion
*DefaultImageableArea: Letter
*ImageableArea Letter/Letter: "11.34 11.34 600.66 780.66"
*ImageableArea A4/A4: "11.34 11.34 583.66 830.66"
*ImageableArea A5/A5: "11.34 11.34 408.66 583.66"
*ImageableArea B5/B5: "11.34 11.34 486.66 696.66"
*ImageableArea Env10/Env #10: "11.34 11.34 285.66 672.66"
*ImageableArea EnvB5/Env B5: "11.34 11.34 486.66 696.66"
*ImageableArea EnvC5/Env C5: "11.34 11.34 447.66 637.66"
*ImageableArea EnvDL/Env DL: "11.34 11.34 299.66 611.66"
*ImageableArea EnvMonarch/Env Monarch: "11.34 11.34 267.66 528.66"
*ImageableArea Executive/Executive: "11.34 11.34 510.66 744.66"
*ImageableArea Legal/Legal: "11.34 11.34 600.66 996.66"
*DefaultPaperDimension: Letter
*PaperDimension Letter/Letter: "612 792"
*PaperDimension A4/A4: "595 842"
*PaperDimension A5/A5: "420 595"
*PaperDimension B5/B5: "498 708"
*PaperDimension Env10/Env #10: "297 684"
*PaperDimension EnvB5/Env B5: "498 708"
*PaperDimension EnvC5/Env C5: "459 649"
*PaperDimension EnvDL/Env DL: "311 623"
*PaperDimension EnvMonarch/Env Monarch: "279 540"
*PaperDimension Executive/Executive: "522 756"
*PaperDimension Legal/Legal: "612 1008"
*OpenUI *InputSlot/Media Source: PickOne
*FoomaticRIPOption InputSlot: enum CmdLine A
*OrderDependency: 150 AnySetup *InputSlot
*DefaultInputSlot: Auto
*InputSlot Upper/Upper or Only One InputSlot: "%% FoomaticRIPOptionSetting: InputSlot=Upper"
*FoomaticRIPOptionSetting InputSlot=Upper: "-s1 "
*InputSlot Middle/Middle Tray: "%% FoomaticRIPOptionSetting: InputSlot=Middle"
*FoomaticRIPOptionSetting InputSlot=Middle: "-s3 "
*InputSlot Lower/Lower Tray: "%% FoomaticRIPOptionSetting: InputSlot=Lower"
*FoomaticRIPOptionSetting InputSlot=Lower: "-s2 "
*InputSlot Auto/Auto Source: "%% FoomaticRIPOptionSetting: InputSlot=Auto"
*FoomaticRIPOptionSetting InputSlot=Auto: "-s7 "
*InputSlot Envelope/Envelope: "%% FoomaticRIPOptionSetting: InputSlot=Envelope"
*FoomaticRIPOptionSetting InputSlot=Envelope: "-s5 "
*InputSlot Manual/Manual Feed: "%% FoomaticRIPOptionSetting: InputSlot=Manual"
*FoomaticRIPOptionSetting InputSlot=Manual: "-s4 "
*CloseUI: *InputSlot
*OpenUI *MediaType/Media Type: PickOne
*FoomaticRIPOption MediaType: enum CmdLine A
*OrderDependency: 150 AnySetup *MediaType
*DefaultMediaType: Standard
*MediaType Envelope/Envelope: "%% FoomaticRIPOptionSetting: MediaType=Envelope"
*FoomaticRIPOptionSetting MediaType=Envelope: "-m257 "
*MediaType Labels/Labels: "%% FoomaticRIPOptionSetting: MediaType=Labels"
*FoomaticRIPOptionSetting MediaType=Labels: "-m263 "
*MediaType Letterhead/Letterhead: "%% FoomaticRIPOptionSetting: MediaType=Letterhead"
*FoomaticRIPOptionSetting MediaType=Letterhead: "-m259 "
*MediaType Postcard/Postcard: "%% FoomaticRIPOptionSetting: MediaType=Postcard"
*FoomaticRIPOptionSetting MediaType=Postcard: "-m262 "
*MediaType Standard/Standard Paper: "%% FoomaticRIPOptionSetting: MediaType=Standard"
*FoomaticRIPOptionSetting MediaType=Standard: "-m1 "
*MediaType ThickStock/Thick Stock: "%% FoomaticRIPOptionSetting: MediaType=ThickStock"
*FoomaticRIPOptionSetting MediaType=ThickStock: "-m261 "
*MediaType Transparency/Transparency: "%% FoomaticRIPOptionSetting: MediaType=Transparency"
*FoomaticRIPOptionSetting MediaType=Transparency: "-m2 "
*CloseUI: *MediaType
*OpenUI *Copies/Copies: PickOne
*FoomaticRIPOption Copies: int CmdLine A
*FoomaticRIPOptionPrototype Copies: "-n%s "
*FoomaticRIPOptionRange Copies: 1 100
*OrderDependency: 220 AnySetup *Copies
*DefaultCopies: 1
*FoomaticRIPDefaultCopies: 1
*Copies 1/1: "%% FoomaticRIPOptionSetting: Copies=1"
*Copies 2/2: "%% FoomaticRIPOptionSetting: Copies=2"
*Copies 3/3: "%% FoomaticRIPOptionSetting: Copies=3"
*Copies 4/4: "%% FoomaticRIPOptionSetting: Copies=4"
*Copies 5/5: "%% FoomaticRIPOptionSetting: Copies=5"
*Copies 6/6: "%% FoomaticRIPOptionSetting: Copies=6"
*Copies 7/7: "%% FoomaticRIPOptionSetting: Copies=7"
*Copies 8/8: "%% FoomaticRIPOptionSetting: Copies=8"
*Copies 9/9: "%% FoomaticRIPOptionSetting: Copies=9"
*Copies 10/10: "%% FoomaticRIPOptionSetting: Copies=10"
*Copies 11/11: "%% FoomaticRIPOptionSetting: Copies=11"
*Copies 12/12: "%% FoomaticRIPOptionSetting: Copies=12"
*Copies 13/13: "%% FoomaticRIPOptionSetting: Copies=13"
*Copies 14/14: "%% FoomaticRIPOptionSetting: Copies=14"
*Copies 15/15: "%% FoomaticRIPOptionSetting: Copies=15"
*Copies 16/16: "%% FoomaticRIPOptionSetting: Copies=16"
*Copies 17/17: "%% FoomaticRIPOptionSetting: Copies=17"
*Copies 18/18: "%% FoomaticRIPOptionSetting: Copies=18"
*Copies 19/19: "%% FoomaticRIPOptionSetting: Copies=19"
*Copies 20/20: "%% FoomaticRIPOptionSetting: Copies=20"
*Copies 21/21: "%% FoomaticRIPOptionSetting: Copies=21"
*Copies 22/22: "%% FoomaticRIPOptionSetting: Copies=22"
*Copies 23/23: "%% FoomaticRIPOptionSetting: Copies=23"
*Copies 24/24: "%% FoomaticRIPOptionSetting: Copies=24"
*Copies 25/25: "%% FoomaticRIPOptionSetting: Copies=25"
*Copies 26/26: "%% FoomaticRIPOptionSetting: Copies=26"
*Copies 27/27: "%% FoomaticRIPOptionSetting: Copies=27"
*Copies 28/28: "%% FoomaticRIPOptionSetting: Copies=28"
*Copies 29/29: "%% FoomaticRIPOptionSetting: Copies=29"
*Copies 30/30: "%% FoomaticRIPOptionSetting: Copies=30"
*Copies 31/31: "%% FoomaticRIPOptionSetting: Copies=31"
*Copies 32/32: "%% FoomaticRIPOptionSetting: Copies=32"
*Copies 33/33: "%% FoomaticRIPOptionSetting: Copies=33"
*Copies 34/34: "%% FoomaticRIPOptionSetting: Copies=34"
*Copies 35/35: "%% FoomaticRIPOptionSetting: Copies=35"
*Copies 36/36: "%% FoomaticRIPOptionSetting: Copies=36"
*Copies 37/37: "%% FoomaticRIPOptionSetting: Copies=37"
*Copies 38/38: "%% FoomaticRIPOptionSetting: Copies=38"
*Copies 39/39: "%% FoomaticRIPOptionSetting: Copies=39"
*Copies 40/40: "%% FoomaticRIPOptionSetting: Copies=40"
*Copies 41/41: "%% FoomaticRIPOptionSetting: Copies=41"
*Copies 42/42: "%% FoomaticRIPOptionSetting: Copies=42"
*Copies 43/43: "%% FoomaticRIPOptionSetting: Copies=43"
*Copies 44/44: "%% FoomaticRIPOptionSetting: Copies=44"
*Copies 45/45: "%% FoomaticRIPOptionSetting: Copies=45"
*Copies 46/46: "%% FoomaticRIPOptionSetting: Copies=46"
*Copies 47/47: "%% FoomaticRIPOptionSetting: Copies=47"
*Copies 48/48: "%% FoomaticRIPOptionSetting: Copies=48"
*Copies 49/49: "%% FoomaticRIPOptionSetting: Copies=49"
*Copies 50/50: "%% FoomaticRIPOptionSetting: Copies=50"
*Copies 51/51: "%% FoomaticRIPOptionSetting: Copies=51"
*Copies 52/52: "%% FoomaticRIPOptionSetting: Copies=52"
*Copies 53/53: "%% FoomaticRIPOptionSetting: Copies=53"
*Copies 54/54: "%% FoomaticRIPOptionSetting: Copies=54"
*Copies 55/55: "%% FoomaticRIPOptionSetting: Copies=55"
*Copies 56/56: "%% FoomaticRIPOptionSetting: Copies=56"
*Copies 57/57: "%% FoomaticRIPOptionSetting: Copies=57"
*Copies 58/58: "%% FoomaticRIPOptionSetting: Copies=58"
*Copies 59/59: "%% FoomaticRIPOptionSetting: Copies=59"
*Copies 60/60: "%% FoomaticRIPOptionSetting: Copies=60"
*Copies 61/61: "%% FoomaticRIPOptionSetting: Copies=61"
*Copies 62/62: "%% FoomaticRIPOptionSetting: Copies=62"
*Copies 63/63: "%% FoomaticRIPOptionSetting: Copies=63"
*Copies 64/64: "%% FoomaticRIPOptionSetting: Copies=64"
*Copies 65/65: "%% FoomaticRIPOptionSetting: Copies=65"
*Copies 66/66: "%% FoomaticRIPOptionSetting: Copies=66"
*Copies 67/67: "%% FoomaticRIPOptionSetting: Copies=67"
*Copies 68/68: "%% FoomaticRIPOptionSetting: Copies=68"
*Copies 69/69: "%% FoomaticRIPOptionSetting: Copies=69"
*Copies 70/70: "%% FoomaticRIPOptionSetting: Copies=70"
*Copies 71/71: "%% FoomaticRIPOptionSetting: Copies=71"
*Copies 72/72: "%% FoomaticRIPOptionSetting: Copies=72"
*Copies 73/73: "%% FoomaticRIPOptionSetting: Copies=73"
*Copies 74/74: "%% FoomaticRIPOptionSetting: Copies=74"
*Copies 75/75: "%% FoomaticRIPOptionSetting: Copies=75"
*Copies 76/76: "%% FoomaticRIPOptionSetting: Copies=76"
*Copies 77/77: "%% FoomaticRIPOptionSetting: Copies=77"
*Copies 78/78: "%% FoomaticRIPOptionSetting: Copies=78"
*Copies 79/79: "%% FoomaticRIPOptionSetting: Copies=79"
*Copies 80/80: "%% FoomaticRIPOptionSetting: Copies=80"
*Copies 81/81: "%% FoomaticRIPOptionSetting: Copies=81"
*Copies 82/82: "%% FoomaticRIPOptionSetting: Copies=82"
*Copies 83/83: "%% FoomaticRIPOptionSetting: Copies=83"
*Copies 84/84: "%% FoomaticRIPOptionSetting: Copies=84"
*Copies 85/85: "%% FoomaticRIPOptionSetting: Copies=85"
*Copies 86/86: "%% FoomaticRIPOptionSetting: Copies=86"
*Copies 87/87: "%% FoomaticRIPOptionSetting: Copies=87"
*Copies 88/88: "%% FoomaticRIPOptionSetting: Copies=88"
*Copies 89/89: "%% FoomaticRIPOptionSetting: Copies=89"
*Copies 90/90: "%% FoomaticRIPOptionSetting: Copies=90"
*Copies 91/91: "%% FoomaticRIPOptionSetting: Copies=91"
*Copies 92/92: "%% FoomaticRIPOptionSetting: Copies=92"
*Copies 93/93: "%% FoomaticRIPOptionSetting: Copies=93"
*Copies 94/94: "%% FoomaticRIPOptionSetting: Copies=94"
*Copies 95/95: "%% FoomaticRIPOptionSetting: Copies=95"
*Copies 96/96: "%% FoomaticRIPOptionSetting: Copies=96"
*Copies 97/97: "%% FoomaticRIPOptionSetting: Copies=97"
*Copies 98/98: "%% FoomaticRIPOptionSetting: Copies=98"
*Copies 99/99: "%% FoomaticRIPOptionSetting: Copies=99"
*Copies 100/100: "%% FoomaticRIPOptionSetting: Copies=100"
*CloseUI: *Copies
*CloseGroup: General
*OpenGroup: Miscellaneous/Miscellaneous
*OpenUI *Nup/N-up Printing: PickOne
*FoomaticRIPOption Nup: enum CmdLine A
*OrderDependency: 200 AnySetup *Nup
*DefaultNup: 1up
*Nup 1up/1-up: "%% FoomaticRIPOptionSetting: Nup=1up"
*FoomaticRIPOptionSetting Nup=1up: " "
*Nup 2up/2-up: "%% FoomaticRIPOptionSetting: Nup=2up"
*FoomaticRIPOptionSetting Nup=2up: "-2 "
*Nup 4up/4-up: "%% FoomaticRIPOptionSetting: Nup=4up"
*FoomaticRIPOptionSetting Nup=4up: "-4 "
*CloseUI: *Nup
*OpenUI *NupOrient/N-up Orientation: PickOne
*FoomaticRIPOption NupOrient: enum CmdLine A
*OrderDependency: 200 AnySetup *NupOrient
*DefaultNupOrient: port
*NupOrient land/Landscape: "%% FoomaticRIPOptionSetting: NupOrient=land"
*FoomaticRIPOptionSetting NupOrient=land: "-ol "
*NupOrient port/Portrait: "%% FoomaticRIPOptionSetting: NupOrient=port"
*FoomaticRIPOptionSetting NupOrient=port: " "
*NupOrient sea/Seascape: "%% FoomaticRIPOptionSetting: NupOrient=sea"
*FoomaticRIPOptionSetting NupOrient=sea: "-os "
*CloseUI: *NupOrient
*CloseGroup: Miscellaneous
*% Generic boilerplate PPD stuff as standard PostScript fonts and so on
*DefaultFont: Courier
*Font AvantGarde-Book: Standard "(001.006S)" Standard ROM
*Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM
*Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM
*Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM
*Font Bookman-Demi: Standard "(001.004S)" Standard ROM
*Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM
*Font Bookman-Light: Standard "(001.004S)" Standard ROM
*Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM
*Font Courier: Standard "(002.004S)" Standard ROM
*Font Courier-Bold: Standard "(002.004S)" Standard ROM
*Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM
*Font Courier-Oblique: Standard "(002.004S)" Standard ROM
*Font Helvetica: Standard "(001.006S)" Standard ROM
*Font Helvetica-Bold: Standard "(001.007S)" Standard ROM
*Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM
*Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM
*Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM
*Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM
*Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM
*Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM
*Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM
*Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM
*Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM
*Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM
*Font Palatino-Bold: Standard "(001.005S)" Standard ROM
*Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM
*Font Palatino-Italic: Standard "(001.005S)" Standard ROM
*Font Palatino-Roman: Standard "(001.005S)" Standard ROM
*Font Symbol: Special "(001.007S)" Special ROM
*Font Times-Bold: Standard "(001.007S)" Standard ROM
*Font Times-BoldItalic: Standard "(001.009S)" Standard ROM
*Font Times-Italic: Standard "(001.007S)" Standard ROM
*Font Times-Roman: Standard "(001.007S)" Standard ROM
*Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
*Font ZapfDingbats: Special "(001.004S)" Standard ROM


 ppd文件内容就是这样的.

foo2zjs
This is a driver developed for the Minolta magicolor 2300 DL network color laser printer.
It is possible that this driver will also work for the HP LaserJet 1000, 1005, 1018, 1020 and other Zenographics-based printers, but the author cannot test this.
I (Till) have tested on the LaserJet 1022 and there the driver works very well. It is faster and more reliable then the HPIJS driver for the PCL 5e mode of this model.
Web page: http://foo2zjs.rkkda.com/
Execution style: Filter
Printing system interfaces
PPD-O-Matic
Automagic PPD file generator for
CUPS (documentation),
PPR (documentation),
LPD/LPRng/GNUlpr (documentation),
PDQ (documentation),
Spooler-less printing (documentation),
PPD aware applications/clients (documentation),
Important for Windows clients: The CUPS PostScript driver for Windows has a bug which makes it choking on PPD files which contain GUI texts longer than 39 characters. Therefore it is recommended to use Adobe's PostScript driver. If you still want to use the CUPS driver, please mark "GUI texts limited to 39 characters" to get an appropriate PPD file.


 这个是使用方法:全是英文,我看起来头疼,不过还要感谢楼上提供这个网址.

Execution of the driver "foo2zjs" on the HP LaserJet 1020
This describes how the driver "foo2zjs" is used with the HP LaserJet 1020. It shows the command line which is used when setting up this printer/driver combo with Foomatic. The command line expects PostScript as standard input and produces a data format understood by the printer as standard output. This description contains all options available for the driver and also some driver-independent extra-options (as PJL options), you don't need to supply all of them to be able to print.
Command Line
foo2zjs-wrapper <Quality> <PrinterType> <ColorMode> -r<Resolution> -p<PageSize> -s<InputSlot> -m<MediaType> -n<Copies> <Nup> <NupOrient>
Options
Quality
A required enumerated choice argument.
Printing Quality
Prototype: <Quality>
Default: normal
draft: Draft (<Quality> is '-t ')
normal: Normal (<Quality> is left blank)
PrinterType
A required enumerated choice argument.
Printer Type
Prototype: <PrinterType>
Default: BWz1
BWz1: Black-and-white printer (<PrinterType> is '-P -z1 -L0')
ColorMode
A required enumerated choice argument.
Color Mode
Prototype: <ColorMode>
Default: Monochrome
Monochrome: Monochrome (<ColorMode> is left blank)
Resolution
A required enumerated choice argument.
Resolution
Prototype: -r<Resolution>
Default: 1200x600dpi
600x600dpi: 600x600 dpi (<Resolution> is '600x600')
1200x600dpi: 1200x600 dpi (<Resolution> is '1200x600')
PageSize
A required enumerated choice argument.
Page Size
Prototype: -p<PageSize>
Default: Letter
Letter: Letter (<PageSize> is '1')
A4: A4 (<PageSize> is '9')
A5: A5 (<PageSize> is '11')
B5: B5 (<PageSize> is '13')
Env10: Env #10 (<PageSize> is '20')
EnvB5: Env B5 (<PageSize> is '34')
EnvC5: Env C5 (<PageSize> is '28')
EnvDL: Env DL (<PageSize> is '27')
EnvMonarch: Env Monarch (<PageSize> is '37')
Executive: Executive (<PageSize> is '7')
Legal: Legal (<PageSize> is '5')
InputSlot
A required enumerated choice argument.
Media Source
Prototype: -s<InputSlot>
Default: Auto
Upper: Upper or Only One InputSlot (<InputSlot> is '1')
Middle: Middle Tray (<InputSlot> is '3')
Lower: Lower Tray (<InputSlot> is '2')
Auto: Auto Source (<InputSlot> is '7')
Envelope: Envelope (<InputSlot> is '5')
Manual: Manual Feed (<InputSlot> is '4')
MediaType
A required enumerated choice argument.
Media Type
Prototype: -m<MediaType>
Default: Standard
Envelope: Envelope (<MediaType> is '257')
Labels: Labels (<MediaType> is '263')
Letterhead: Letterhead (<MediaType> is '259')
Postcard: Postcard (<MediaType> is '262')
Standard: Standard Paper (<MediaType> is '1')
ThickStock: Thick Stock (<MediaType> is '261')
Transparency: Transparency (<MediaType> is '2')
Copies
A required int argument.
Copies
Prototype: -n<Copies>
Default: 1
Range: 1 <= <Copies> <= 100
Nup
A required enumerated choice argument.
N-up Printing
Prototype: <Nup>
Default: 1up
1up: 1-up (<Nup> is left blank)
2up: 2-up (<Nup> is '-2')
4up: 4-up (<Nup> is '-4')
NupOrient
A required enumerated choice argument.
N-up Orientation
Prototype: <NupOrient>
Default: port
land: Landscape (<NupOrient> is '-ol')
port: Portrait (<NupOrient> is left blank)
sea: Seascape (<NupOrient> is '-os')


 我实验了很多次,在rh9下,hp1020就是不支持,而且,现在也不知道那个ppd的文件应该怎么使用,linux下打印机的驱动都在什么地方记录,我找不到,而且,在安装打印机的时候,系统并没有提示从其它地方安装驱动程序.

该贴由system转至本版2014-9-9 23:11:43




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论