Advertisement
frankcox

HP1215- FooHp driver

Mar 26th, 2011
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.85 KB | None | 0 0
  1. TOPICS
  2. ------
  3. * INSTALLATION
  4. * GHOSTSCRIPT BUGS
  5. * FEDORA NOTES
  6. * UBUNTU NOTES
  7. * DEBIAN NOTES
  8. * OPENSUSE 1x.x NOTES
  9. * ACER ASPIRE ONE NOTES
  10. * ASUS EEE PC NOTES
  11. * MAC OS X NOTES
  12. * FREEBSD NOTES
  13. * OPENBSD NOTES
  14. * OPENSOLARIS, SOLARIS EXPRESS DEVELOPER EDITION 9/07, Solaris 11+ NOTES
  15. * MINOLTA-QMS 2200/2300 DL NOTES
  16. * CUPS USB NOTES
  17. * HP LASERJET 1000/1005/1018/1020, P1005/P1006/P1007/P1008/P1505 NOTES
  18. * PSUTILS AND 2/4-UP CAPABILITY
  19. * CUSTOM PAGE SIZE
  20. * SET DEFAULT MEDIA WITH CUPS
  21. * MANUAL DUPLEX
  22. * UPDATE
  23. * UNINSTALLING
  24. * BUG REPORTS
  25. * DEVELOPER AND DEBUGGING TIPS
  26. * CUSTOM ICC/ICM COLOR PRINTER PROFILE (BUY)
  27. * CUSTOM ICC/ICM COLOR PRINTER PROFILE (ARGYLL)
  28.  
  29. INSTALLATION
  30. ------------
  31. Unpack:
  32. $ wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
  33. $ tar zxf foo2zjs.tar.gz
  34. $ cd foo2zjs
  35.  
  36. (Optional) Uninstall:
  37. $ su OR $ sudo make uninstall
  38. # make uninstall
  39.  
  40. Compile:
  41. $ make
  42.  
  43. Get extra files from the web, such as .ICM profiles (for color correction)
  44. and firmware. Select the model number for your printer:
  45. $ ./getweb 1025 # Get HP LaserJet Pro CP1025nw .ICM files
  46. $ ./getweb 1215 # Get HP Color LaserJet CP1215 .ICM files
  47. $ ./getweb 1500 # Get HP Color LaserJet 1500 .ICM files
  48. $ ./getweb 1600 # Get HP Color LaserJet 1600 .ICM files
  49. $ ./getweb 2600n # Get HP Color LaserJet 2600n .ICM files
  50.  
  51. $ ./getweb 1600w # Get Konica Minolta magicolor 1600W .ICM files
  52. $ ./getweb 1680 # Get Konica Minolta magicolor 1680MF .ICM files
  53. $ ./getweb 1690 # Get Konica Minolta magicolor 1690MF .ICM files
  54. $ ./getweb 2480 # Get Konica Minolta magicolor 2480 MF .ICM files
  55. $ ./getweb 2490 # Get Konica Minolta magicolor 2490 MF .ICM files
  56. $ ./getweb 2530 # Get Konica Minolta magicolor 2530 DL .ICM files
  57. $ ./getweb 4690 # Get Konica Minolta magicolor 4690MF .ICM files
  58. $ ./getweb 110 # Get Oki C110 .ICM files
  59. $ ./getweb 6115 # Get Xerox Phaser 6115MFP .ICM files
  60. $ ./getweb 6121 # Get Xerox Phaser 6121MFP.ICM files
  61.  
  62. $ ./getweb cpwl # Get Minolta Color PageWorks/Pro L .ICM files
  63. $ ./getweb 2200 # Get Minolta/QMS magicolor 2200 DL .ICM files
  64. $ ./getweb 2300 # Get Minolta/QMS magicolor 2300 DL .ICM files
  65. $ ./getweb 2430 # Get Konica Minolta magicolor 2430 DL .ICM files
  66.  
  67. $ ./getweb 300 # Get Samsung CLP-300 .ICM files
  68. $ ./getweb 315 # Get Samsung CLP-315 .ICM files
  69. $ ./getweb 600 # Get Samsung CLP-600 .ICM files
  70. $ ./getweb 610 # Get Samsung CLP-610 .ICM files
  71. $ ./getweb 2160 # Get Samsung CLX-2160 .ICM files
  72. $ ./getweb 3160 # Get Samsung CLX-3160 .ICM files
  73. $ ./getweb 6110 # Get Xerox Phaser 6110 and 6110MFP .ICM files
  74.  
  75. $ ./getweb 500 # Get Lexmark C500 .ICM files
  76.  
  77. $ ./getweb c310 # Get Oki C310dn .ICM files
  78. $ ./getweb 3200 # Get Oki C3200 .ICM files
  79. $ ./getweb 3300 # Get Oki C3300 .ICM files
  80. $ ./getweb 3400 # Get Oki C3400 .ICM files
  81. $ ./getweb 3530 # Get Oki C3530 MFP .ICM files
  82. $ ./getweb 5100 # Get Oki C5100 .ICM files
  83. $ ./getweb 5200 # Get Oki C5200 .ICM files
  84. $ ./getweb 5500 # Get Oki C5500 .ICM files
  85. $ ./getweb 5600 # Get Oki C5600 .ICM files
  86. $ ./getweb 5800 # Get Oki C5800 .ICM files
  87.  
  88. $ ./getweb 160 # Get Olivetti d-Color P160W .ICM files
  89.  
  90. $ ./getweb 1000 # Get HP LaserJet 1000 firmware file
  91. $ ./getweb 1005 # Get HP LaserJet 1005 firmware file
  92. $ ./getweb 1018 # Get HP LaserJet 1018 firmware file
  93. $ ./getweb 1020 # Get HP LaserJet 1020 firmware file
  94.  
  95. $ ./getweb P1005 # Get HP LaserJet P1005 firmware file
  96. $ ./getweb P1006 # Get HP LaserJet P1006 firmware file
  97. $ ./getweb P1007 # Get HP LaserJet P1007 firmware file
  98. $ ./getweb P1008 # Get HP LaserJet P1008 firmware file
  99. $ ./getweb P1505 # Get HP LaserJet P1505 firmware file
  100.  
  101. Install driver, foomatic XML files, PPD files, and extra files:
  102. $ su OR $ sudo make install
  103. # make install
  104.  
  105. (Optional) Install hotplug (for HP LJ 1000/1005/1018/1020/P100[5678]/P1505):
  106. $ su OR $ sudo make install-hotplug
  107. # make install-hotplug
  108.  
  109. Unplug and re-plug the USB printer
  110.  
  111. If you use CUPS to manage your printers, you must restart cupsd:
  112. # make cups OR $ sudo make cups
  113.  
  114. Test operation of programs. Skip this if you don't have the exact same
  115. version of Ghostscript that I have, ghostscript 8.60 (2007-08-01), because
  116. it will not pass since different versions of Ghostscript generate different
  117. raster images:
  118. # make test
  119.  
  120. Create printers (Fedora 6/7/8/9/10/11/12/13 and Ubuntu 7.10/8.x/9.x/10.x):
  121. # system-config-printer
  122.  
  123. Create printers (Redhat 7.2/7.3/8.0/9.0, Fedora Core 1-5):
  124. # printconf-gui
  125.  
  126. Create printers (Mandrake/Manrivia)
  127. # printerdrake
  128.  
  129. Create printers (openSUSE 10.x/11.x)
  130. # yast2 printer
  131.  
  132. Create printers (Ubuntu 5.10/6.06/6.10/7.04)
  133. $ sudo gnome-cups-manager
  134. $ sudo make cups # Ubuntu has a bug in gnome-cups-manager
  135.  
  136. NOTE: to edit a queue hit "Properties" (click right mouse button).
  137.  
  138. Create printers (Debian)
  139. Connect with a web browser to:
  140. http://localhost:631
  141. And configure printer (HP example shown) to:
  142. HP LaserJet 2600n, Foomatic + foo2zjs (en)
  143. Then edit "Manage Printers->Configure Printer" to suit you,
  144. such as "Page Size" or "Color Mode".
  145.  
  146. Create printers (Solaris 11+)
  147. # printmgr
  148.  
  149. Create at least one queue for monochrome, and another queue
  150. for color printing. Create the queues, then edit them and
  151. set the "device options" as desired.
  152.  
  153. For a networked Minolta/QMS 2300 DL, I used a "Queue Type"
  154. of "Unix Printer (LPD)", and set the "Server" to the IP address
  155. of the printer, and the "Queue" to "lp".
  156.  
  157. For a networked HP Color Laserjet 2600n, I used a "Queue Type"
  158. of "Networked JetDirect", and set the "Printer" to the IP address
  159. of the printer, and the "Port" to "9100".
  160.  
  161. GHOSTSCRIPT BUGS
  162. ----------------
  163. * ghostscript 8.64 is broken w.r.t. color. Don't use!
  164.  
  165. * ghostscript 9.00 is broken w.r.t. fonts in landscape mode.
  166.  
  167. * Well Tempered Screening (WTS) works with ghostscript 8.54 thru 8.70+.
  168. So if you want BEST COLORS, you'll have to install gs 8.54 or better
  169. if you don't have it.
  170.  
  171. $ gs --version
  172. 8.15.2
  173.  
  174. $ wget "http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs871/ghostscript-8.71.tar.gz"
  175. $ tar zxf ghostscript-8.71.tar.gz
  176. $ cd ghostscript-8.71
  177. $ ./autogen.sh
  178. $ make
  179. $ su OR $ sudo cp bin/gs /usr/bin/gs.foo
  180. # cp bin/gs /usr/bin/gs.foo
  181.  
  182. (Optional)
  183. # make install OR $ sudo make install
  184.  
  185. $ gs.foo --version
  186. 8.71
  187.  
  188. * Halftoning Bug:
  189. "The problems with WTS are primarily that it seems to fall down
  190. on the halftone generation for some angles when the lpi is high for
  191. the current resolution." - Ray Johnston <ray.johnston@artifex.com>
  192.  
  193. So choose Standard, Accurate Screens, or reduce the resolution to
  194. 600x600.
  195.  
  196. * Ghostscript before 8.55 has a problem with ICM files and 64-bit gcc.
  197. It causes a segfault with km2430_2.icm. So don't select that one.
  198.  
  199. FEDORA NOTES
  200. ------------
  201. Install tix, foomatic\* FIRST:
  202. # yum install tix foomatic\*
  203.  
  204. If you are using a USB printer AND Fedora 12+, do this:
  205.  
  206. # grep udev-configure-printer /var/log/messages
  207. /var/log/messages:Jan 23 07:32:54 dual udev-configure-printer: \
  208. invalid or missing IEEE 1284 Device ID
  209.  
  210. # yum remove system-config-printer-udev
  211.  
  212. # shutdown -r now
  213.  
  214. Power off then on the printer.
  215.  
  216. Ref:
  217. http://bugzilla.redhat.com/show_bug.cgi?id=558162
  218.  
  219. UBUNTU NOTES
  220. ------------
  221. Install build-essential, tix, foomatic-filters, groff FIRST:
  222. $ sudo apt-get install build-essential tix foomatic-filters groff dc
  223.  
  224. $ wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
  225. $ tar zxf foo2zjs.tar.gz
  226. $ cd foo2zjs
  227. $ sudo make uninstall
  228. $ make
  229. $ ./getweb 1020
  230. OR other printer
  231. $ sudo make install install-hotplug cups
  232.  
  233. For 7.10 and later users:
  234. $ sudo system-config-printer
  235.  
  236. For 5.10/6.06/6.10/7.04 users:
  237. $ sudo gnome-cups-manager
  238. [configure ColorMode = Color if a color printer]
  239. $ sudo make cups
  240.  
  241. Ubuntu has a bug in gnome-cups-manager with Color, so you must
  242. restart cups. No other distro has this bug.
  243.  
  244. If that doesn't work, then fire up:
  245. $ firefox http://localhost:631
  246.  
  247. And click on:
  248. Printers -> Set Printer Options -> Color Mode -> Color
  249. Then click on:
  250. Set Printer Options
  251.  
  252. DEBIAN NOTES
  253. ------------
  254. Install build-essential, tix, foomatic-filters, groff, cupsys, dc FIRST:
  255. $ su
  256. # apt-get install build-essential tix foomatic-filters groff cupsys dc
  257.  
  258. $ wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
  259. $ tar zxf foo2zjs.tar.gz
  260. $ cd foo2zjs
  261. $ make
  262. $ ./getweb 1020
  263. OR other printer
  264. $ su
  265. # make install install-hotplug cups
  266.  
  267. $ firefox http://localhost:631
  268.  
  269. OPENSUSE 1x.x NOTES
  270. -------------------
  271. Do this:
  272.  
  273. # zypper install make gcc
  274.  
  275. # zypper service-add \
  276. http://download.opensuse.org/repositories/Printing/openSUSE_11.3/ \
  277. Printing
  278. # zypper up -r Printing -t package
  279.  
  280. Then install using the above instructions.
  281.  
  282. ACER ASPIRE ONE NOTES
  283. ---------------------
  284.  
  285. Ref: http://the.taoofmac.com/media/Acer/Aspire\ One/AA1notes.htm
  286.  
  287. It is a version of Fedora.
  288.  
  289. Get a shell by typing Alt+F2 then Return.
  290.  
  291. $ su
  292. # yum install make gcc
  293. <ctrl-d>
  294.  
  295. $ wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
  296. $ tar zxf foo2zjs.tar.gz
  297. $ cd foo2zjs
  298. $ make
  299. $ ./getweb 1020
  300. OR other printer, e.g. 2600n
  301. $ su
  302. # make install install-hotplug cups
  303.  
  304.  
  305. ASUS EEE PC NOTES
  306. -----------------
  307.  
  308. It is a version of Xandros. First:
  309.  
  310. Get a shell by typing ctrl-alt-T
  311. $ sudo su -
  312. # vi or kwrite /etc/apt/sources.list
  313. add the following line:
  314. deb ftp://ftp.us.debian.org/debian stable main contrib non-free
  315. # apt-get -f install
  316. # apt-get install wget
  317. # apt-get install build-essential
  318. <ctrl-d>
  319.  
  320. $ wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
  321. $ tar zxf foo2zjs.tar.gz
  322. $ cd foo2zjs
  323. $ make
  324. $ ./getweb 1020
  325. OR other printer, e.g. 2600n
  326. $ sudo make install install-hotplug cups
  327.  
  328. Then use the "Add Printer" GUI.
  329.  
  330. MAC OS X NOTES
  331. ---------------
  332. Please read the detailed installation instructions by Clint Morgan
  333. and Rick Richardson in the file INSTALL.osx.
  334.  
  335. FREEBSD NOTES
  336. -------------
  337. You need the following packages before you start the "make":
  338. # pkg_add -r wget
  339. # pkg_add -r gmake
  340. # pkg_add -r ghostscript-gnu
  341. # pkg_add -r cups
  342. # pkg_add -r foomatic-filters
  343. # pkg_add -r unzip
  344.  
  345. Use "gmake" instead of "make". E.G. gmake; ./getweb XXX; gmake install
  346.  
  347. USB NOTES FOR FREEBSD 8.0 AND GREATER
  348. -------------------------------------
  349. $ gmake
  350. $ ./getweb 1020
  351. OR other printer, e.g. 2600n
  352. # gmake install install-hotplug
  353. # ./freebsd-install
  354.  
  355. Use:
  356. usb:/dev/ulpt0 Device with reset #0
  357. usb:/dev/unlpt0 Device without reset #0
  358. usb:/dev/ulpt1 Device with reset #1
  359. usb:/dev/unlpt1 Device without reset #1
  360. for the URI.
  361.  
  362. More information:
  363. http://menhennitt.com.au/wordpress/2009/09/27/printing-to-an-hp-laserjet-1020-from-freebsd-8-using-cups-and-foo2zjs
  364. http://farid.hajji.name/blog/2010/02/02/printing-woes-on-freebsd-8-with-cups/
  365.  
  366. USB NOTES FOR FREEBSD 7.x AND LESSER
  367. ------------------------------------
  368. - Build the kernel without the ulpt driver.
  369. e.g.
  370. # vi /usr/src/sys/i386/conf/GENERIC
  371. comment out 'device ulpt'
  372. # cd /usr/src/
  373. # make buildkernel KERNCONF=GENERIC
  374. # make installkernel KERNCONF=GENERIC
  375. reboot
  376.  
  377. - Do one of these lines each time the HP printer is powered up:
  378. # cat /usr/share/foo2zjs/firmware/sihp1018.dl > /dev/ugen0.1
  379. # cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/ugen0.1
  380. # cat /usr/share/foo2xqx/firmware/sihpP1005.dl > /dev/ugen0.1
  381. # cat /usr/share/foo2xqx/firmware/sihpP1006.dl > /dev/ugen0.1
  382. # cat /usr/share/foo2xqx/firmware/sihpP1505.dl > /dev/ugen0.1
  383.  
  384. More information:
  385. http://www.webmiscreants.com/index.php?page=howto_P1006
  386.  
  387. OPENBSD NOTES
  388. -------------
  389. You need the following packages before you start the "make":
  390. # pkg_add wget
  391. # pkg_add gmake
  392. # pkg_add -i ghostscript
  393. # pkg_add cups
  394. # pkg_add unzip
  395.  
  396. Use "gmake" instead of "make". E.G. gmake; ./getweb XXX; gmake install
  397.  
  398. USB NOTES FOR OPENBSD
  399. - Build the kernel without the ulpt driver.
  400. e.g.
  401. # vi /usr/src/sys/i386/conf/GENERIC
  402. comment out 'device ulpt'
  403. # cd /usr/src/
  404. # make buildkernel KERNCONF=GENERIC
  405. # make installkernel KERNCONF=GENERIC
  406. reboot
  407.  
  408. - Do one of these lines each time the printer is powered up:
  409. # cat /usr/share/foo2zjs/firmware/sihp1018.dl > /dev/ugen0.1
  410. # cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/ugen0.1
  411. # cat /usr/share/foo2xqx/firmware/sihpP1005.dl > /dev/ugen0.1
  412. # cat /usr/share/foo2xqx/firmware/sihpP1006.dl > /dev/ugen0.1
  413. # cat /usr/share/foo2xqx/firmware/sihpP1505.dl > /dev/ugen0.1
  414.  
  415. OPENSOLARIS, SOLARIS EXPRESS DEVELOPER EDITION 9/07, Solaris 11+ NOTES
  416. ----------------------------------------------------------------------
  417. Use "bash" for your shell. Only network printers are supported.
  418.  
  419. $ export PATH=$PATH:/sbin:/usr/sbin:/usr/sfw/bin:/opt/sfw/bin
  420.  
  421. Do this:
  422.  
  423. [ Load CD Solaris_Software_Companion]
  424. $ cd /media/S10_807_SOFTWARE_COMPANION/Solaris_Software_Companion/Solaris_i386/Packages
  425. $ su root -c "/usr/bin/bash"
  426. # pkgadd -d `pwd` SFWgroff
  427. # pkgadd -d `pwd` SFWgawk
  428.  
  429. OR
  430. Browse to:
  431. http://pkg.opensolaris.org/release/en/index.shtml
  432. and Search or Browse Packages and download:
  433.  
  434. SUNWscp
  435. SUNWgawk
  436. SUNWgroff
  437.  
  438. Then:
  439.  
  440. $ wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
  441. $ tar zxf foo2zjs.tar.gz
  442. $ cd foo2zjs
  443.  
  444. $ gmake
  445. $ ./getweb 2530
  446. OR other printer
  447.  
  448. $ su root -c "/usr/bin/bash"
  449. # gmake install
  450. # printmgr
  451.  
  452. To see a screen to the GUI:
  453. http://foo2lava.rkkda.com/solaris/
  454.  
  455. NOTE: you cannot see the printer options (Paper Source, Paper Type,
  456. Paper Media, Color Mode, ICM, etc.). There is NO GUI to do it!!!
  457. Sorry.
  458.  
  459. MINOLTA-QMS 2200/2300 DL NOTES
  460. ------------------------------
  461. Use the network interface if you can. These printers understand Unix
  462. LPD printer server protocol. So when setting up the printer queue,
  463. you can select "UNIX Printer (lpd queue)", set the lpd queue name to
  464. "lp" (arbitrary), and set the "Server" to the IP address of the
  465. printer.
  466.  
  467. These printers also understand several other printer server protocols,
  468. such as JetDirect and IPP, but I have not tried them. In any case,
  469. I'm not aware of any advantages of using them over LPD.
  470.  
  471. The USB interface on this printer will work if your printer is at
  472. firmware revision 2.55 or later. Mine was not, but I was able to
  473. get this firmware from the Konica Minolta Europe web site. The USA
  474. site doesn't have it. Upgrading the firmware on your printer can
  475. be dangerous and might turn your printer into a paperweight, so I do
  476. not recommend it unless you need USB and are a computer expert. To
  477. get the v2.55 firmware upgrade, try:
  478. ./getweb 2300dl_fw
  479.  
  480. CUPS USB NOTES
  481. --------------
  482. If you are using the USB port, then the URI should be:
  483. usb:/dev/usb/lp0
  484. usb:/dev/usb/lp1
  485. OR
  486. usb://Samsung/CLP-310%20Series
  487. usb://Samsung/CLP-310%20Series
  488. usb://HP/Color%20LaserJet%20CP1215
  489. usb://HP/Color%20LaserJet%202600n
  490. usb://HP/LaserJet%201000
  491. usb://HP/LaserJet%201005
  492. usb://HP/LaserJet%201018
  493. usb://HP/LaserJet%201020
  494. usb://HP/LaserJet%20P1005
  495. usb://HP/LaserJet%20P1006
  496. usb://HP/LaserJet%20P1007
  497. usb://HP/LaserJet%20P1008
  498. usb://HP/LaserJet%20P1505
  499. usb://HP/LaserJet%20Professional%20P1102w
  500.  
  501. Don't use hp://<whatever> because that is for hplip (a closed source,
  502. proprietary driver).
  503.  
  504.  
  505. HP LASERJET 1000/1005/1018/1020, P1005/P1006/P1007/P1008/P1505 NOTES
  506. --------------------------------------------------------------------
  507. These printers need their firmware downloaded to them every time they
  508. are powered up.
  509.  
  510. On Linux with USB connected printer:
  511. If you are running Linux and the printer is connected via USB, you
  512. can arrange for the firmware to be automatically downloaded to the
  513. printer by performing one more installation step:
  514.  
  515. # make install-hotplug
  516.  
  517. Power off then on the printer. Light should flash orange for
  518. ~5 seconds as the firmware is getting downloaded.
  519.  
  520. On another OS or with a parallel port connected printer:
  521.  
  522. You must send a firmware file to the printer each time you power it
  523. up. If you downloaded the extra files for the HP above, a typical
  524. command line to load the firmware would be ONE of these:
  525.  
  526. # cat /usr/share/foo2zjs/firmware/sihp1000.dl > /dev/usb/lp0
  527. # cat /usr/share/foo2zjs/firmware/sihp1005.dl > /dev/usb/lp0
  528. # cat /usr/share/foo2zjs/firmware/sihp1018.dl > /dev/usb/lp0
  529. # cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/usb/lp0
  530. # cat /usr/share/foo2xqx/firmware/sihpP1005.dl > /dev/usb/lp0
  531. # cat /usr/share/foo2xqx/firmware/sihpP1006.dl > /dev/usb/lp0
  532. # cat /usr/share/foo2xqx/firmware/sihpP1505.dl > /dev/usb/lp0
  533.  
  534. Light should flash orange for ~5 seconds as the firmware is
  535. getting downloaded.
  536.  
  537. On Mac OS X:
  538.  
  539. You must send a firmware file to the printer each time you power it
  540. up. If you downloaded the extra files for the HP above, a typical
  541. command line to load the firmware would be:
  542.  
  543. $ lp -oraw /usr/share/foo2zjs/firmware/sihp1018.dl
  544. $ lp -oraw /usr/share/foo2zjs/firmware/sihp1020.dl
  545. $ lp -oraw /usr/share/foo2xqx/firmware/sihpP1005.dl
  546. $ lp -oraw /usr/share/foo2xqx/firmware/sihpP1006.dl
  547. $ lp -oraw /usr/share/foo2xqx/firmware/sihpP1505.dl
  548.  
  549. -OR-
  550.  
  551. Add a line to /etc/rc.local and reboot:
  552.  
  553. killall osx-hplj-hotplug; \
  554. osx-hplj-hotplug >/tmp/osx-hplj-hotplug 2>&1 &
  555.  
  556. -OR-
  557.  
  558. Issue a "make install-hotplug" command:
  559.  
  560. $ sudo make install-hotplug
  561.  
  562. Light should flash orange for ~5 seconds as the firmware is
  563. getting downloaded.
  564.  
  565. Firmware Not Downloaded:
  566. # usb_printerid /dev/usb/lp0
  567. GET_DEVICE_ID string:
  568. MFG:Hewlett-Packard;MDL:HP LaserJet 1020;CMD:ACL;CLS: PRINTER;\
  569. DES:HP LaserJet 1020;
  570.  
  571. Firmware Downloaded:
  572. # usb_printerid /dev/usb/lp0
  573. GET_DEVICE_ID string:
  574. MFG:Hewlett-Packard;MDL:HP LaserJet 1020;CMD:ACL;CLS: PRINTER;\
  575. DES:HP LaserJet 1020;FWVER:20050309;
  576.  
  577. NOTE: The original HP files are named '*.img'. Sometimes HP supplies
  578. these files ready-to-download to the printer, sometimes they are raw
  579. ARM executables and need to have a special header added to them before
  580. they can be downloaded. The "make install" step will use the supplied
  581. "arm2hpdl" program to automatically detect which kind of file they are
  582. and convert them (if needed) to the downloadable '*.dl' format.
  583.  
  584. These printers do not have a "button" when you run out of paper.
  585. But, there is a GNOME gui in:
  586.  
  587. Applications -> System Tools -> HPLJ 10xx Replaced Paper
  588.  
  589. It requires tcl, tk, and tix. Fedora 5 and later:
  590. # yum install tcl tk tix
  591.  
  592. or, you can simulate this by reloading the paper and doing:
  593.  
  594. $ usb_printerid /dev/usb/lp0
  595.  
  596. or, you can open the print cartridge door and then close it.
  597.  
  598. PSUTILS AND 2/4-UP CAPABILITY
  599. -----------------------------
  600. If you would like to use the 2-up/4-up capability, then you need to
  601. get and install Angus Duggan's excellent psutils package. You can
  602. find the source code for psutils here:
  603.  
  604. http://knackered.knackered.org/angus/psutils/index.html
  605.  
  606. Or an RPM here:
  607.  
  608. http://rpmfind.net/linux/rpm2html/search.php?query=psutils
  609.  
  610. CUSTOM PAGE SIZE
  611. ----------------
  612.  
  613. Append "PageSize=Custom.MMMxNNNin" to the lpr command. E.G.
  614.  
  615. $ lpr -P hp2600 -o media=letter -o PageSize=Custom.4x6in ~/testpage.ps
  616. $ lpr -P hp2600 -o media=letter -o PageSize=Custom.10x15cm ~/testpage.ps
  617. $ lpr -P hp1020 -o media=letter -o PageSize=Custom.4x6in ~/testpage.ps
  618.  
  619. Or, use a GUI that allows the custom size parameters, e.g.
  620. "evince" - PostScript and PDF File Viewer.
  621.  
  622. SET DEFAULT MEDIA WITH CUPS
  623. ---------------------------
  624. $ sudo
  625. # lpoptions -o media=A4
  626. -OR-
  627. # lpoptions -o media=Letter
  628.  
  629. MANUAL DUPLEX
  630. -------------
  631.  
  632. See:
  633. https://sourceforge.net/projects/g-manual-duplex/
  634.  
  635. Install:
  636. $ make
  637. $ su
  638. # make install -OR- $ sudo make install
  639.  
  640. Then using the GUI:
  641. 1) System -> Gnome Manual Duplex
  642. -OR-
  643. 2) Add to Panel -> Gnome Manual Duplex applet -> Add
  644. ...Do it at least once, then...
  645. Print -> GnomeManualDuplex (Virtual Printer) -> Print
  646. Works with *.ps and *.pdf files.
  647.  
  648. - Print odd pages
  649. - Wait for confimation message
  650. - Insert in the same orientation into the printer
  651. - Print reverse even pages
  652.  
  653. Howto (video):
  654. http://www.youtube.com/watch?v=c4Ghomz6RQI
  655.  
  656. -OR-
  657. $ psmandup [options] file.ps
  658.  
  659. Ref:
  660. Fedora: # yum install a2ps
  661. Ubuntu: $ sudo apt-get install a2ps
  662.  
  663. -OR-
  664. Print -> Page Setup -> Only print -> Odd Sheets
  665.  
  666. then:
  667.  
  668. Print -> Page Setup -> Only print -> Even Sheets
  669.  
  670. -OR-
  671. Print -> Job -> Odd Pages
  672.  
  673. then:
  674.  
  675. Print -> Job -> Even Pages
  676.  
  677. Ref:
  678. http://bugzilla.gnome.org/show_bug.cgi?id=520598
  679.  
  680. UPDATE
  681. ------
  682. Here are handy lines you can click on to get the latest version:
  683.  
  684. http://foo2zjs.rkkda.com/
  685. wget http://foo2zjs.rkkda.com/foo2zjs.tar.gz
  686.  
  687. My advice: update early and often!!!!
  688.  
  689. UNINSTALLING
  690. ------------
  691. This will uninstall everything from your system.
  692.  
  693. $ su
  694. # make uninstall
  695.  
  696. BUG REPORTS
  697. -----------
  698. PLEASE use the forums at:
  699. http://foo2zjs.rkkda.com/forum/index.php
  700.  
  701. I do not read or reply to HTML email or messages sent under an alias.
  702. I failed out of french class, so don't even think about sending
  703. me email in anything but English.
  704.  
  705. Rick Richardson
  706.  
  707. DEVELOPER AND DEBUGGING TIPS
  708. ----------------------------
  709. If you want to work on this program, I recommend creating a "raw"
  710. printer queue directed at the printer, with no protocol conversions.
  711. OR, simple copy the file to /dev/usb/lp0 (USB) or nc (netcat) the
  712. file (network).
  713.  
  714. Then, you can use the "foo2zjs-wrapper" program to convert Postscript
  715. test programs to ZjS format, and inspect them with "zjsdecode" before
  716. deciding whether to print them or not. For example:
  717.  
  718. foo2zjs-wrapper testpage.ps > testpage.zm
  719. foo2zjs-wrapper -c testpage.ps > testpage.zc
  720.  
  721. zjsdecode < testpage.zm
  722. zjsdecode < testpage.zc
  723.  
  724. lpr -Praw testpage.zm
  725. OR
  726. cp testpage.zm /dev/usb/lp0
  727. OR
  728. nc 192.168.1.NNN 9100 < testpage.zm
  729.  
  730. Same thing for the other drivers, e.g. ...
  731.  
  732. foo2hiperc-wrapper testpage.ps > testpage.hc
  733. hipercdecode < testpage.hc
  734. nc 192.168.1.NNN 9100 < testpage.hc
  735.  
  736. If the printer is an HP LaserJet 10xx or P1xxx and needs to have the
  737. firmware downloaded, this will tell you (P1006):
  738. Before:
  739. usb_printerid /dev/usb/lp0
  740. MFG:Hewlett-Packard;MDL:HP LaserJet P1006;CMD:ACL;CLS:PRINTER;\
  741. DES:HP LaserJet P1006;
  742.  
  743. After:
  744. usb_printerid /dev/usb/lp0
  745. MFG:Hewlett-Packard;MDL:HP LaserJet P1006;CMD:ACL;CLS:PRINTER;\
  746. DES:HP LaserJet P1006;FWVER:20080415;
  747.  
  748. CUSTOM ICC/ICM COLOR PRINTER PROFILE (BUY)
  749. ------------------------------------------
  750.  
  751. I need:
  752. Samsung CLP-315 default resolution
  753. Samsung CLP-600 default resolution
  754. Samsung CLP-610 default resolution
  755. Samsung CLP-620 default resolution
  756. HP Color LaserJet 1500 default resolution
  757. HP Color LaserJet CP1215 default resolution, 1-bit and 2-bit
  758. HP Color LaserJet 2600n 2-bit, default resolution
  759.  
  760. 0) Pick a vendor, e.g.
  761. google: "Custom Printer Profiles"
  762.  
  763. MadManChan's Custom Printer Profiles
  764. http://people.csail.mit.edu/ericchan/photos/profiles.html
  765. Cost: 20 dollars
  766.  
  767. PC35 PhotoLab Custom Printer Profiling Services
  768. http://printerprofiles.homestead.com/
  769. Cost: 30 dollars
  770.  
  771. Cathy's Profiles
  772. http://www.cathysprofiles.com/
  773. Cost: 35 dollars
  774.  
  775. "Custom ICC ICM colour printer profile RGB or CMYK"
  776. Seller: personalised101
  777. http://stores.ebay.ie/The-Graphics-Depot
  778. Cost: 10 pounds
  779.  
  780. "We Create a Custom ICC Profile for Your Printer-"
  781. Seller: fotojimbo
  782. http://search.ebay.com/_W0QQsassZfotojimbo
  783. Cost: 10 dollars
  784.  
  785. "Custom Color ICC Profile Printer Epson HP Canon 3800"
  786. Seller: Booksmart Studio
  787. http://stores.shop.ebay.com/Booksmart-Studio
  788. Cost: 25 dollars
  789.  
  790. 1) Convert the vendor sheet(s) from *.tif to page*.ps (OPTIONAL)
  791.  
  792. $ gimp
  793.  
  794. OR
  795.  
  796. Preferred, using ImageMagick's "convert"
  797. $ convert Color\ Patch\ RGB\ \(Page\ 1\).tif page1.ps
  798. $ convert Color\ Patch\ RGB\ \(Page\ 2\).tif page2.ps
  799.  
  800. OR
  801.  
  802. From *.jpg to *.ps
  803. $ convert a300DPI_i1-RGB-1.5.jpg -rotate 90 -density 300x300 \
  804. -quality 100 page1.ps
  805.  
  806. 2) Print the Postscript vendor sheet(s) with NO color correction:
  807.  
  808. $ foo2hp2600-wrapper -c -C10 -Gnone.icm page1.ps > test1.prn
  809.  
  810. $ nc 192.168.1.xxxxxxx 9100 < test1.prn
  811. OR
  812. $ cp test1.prn /dev/usb/lp0
  813.  
  814. repeat for page2.ps (if necessary).
  815.  
  816. 3) Send them to the vendor by POSTAL MAIL
  817.  
  818. 4) Get back *.icc/*.icm profile by EMAIL or WEB
  819.  
  820. 5) Put it in /usr/share/foo2hp/icm/testing.icm
  821.  
  822. 6) Print a test picture:
  823.  
  824. $ foo2hp2600-wrapper -c -C10 -Gtesting.icm \
  825. picture.ps > picture.prn
  826.  
  827. $ nc 192.168.1.xxxxxxx 9100 < picture.prn
  828. OR
  829. $ cp picture.prn /dev/usb/lp0
  830.  
  831. 7) If it is OK, send "testing.icm" to rick.richardson@comcast.net
  832. for inclusion in foo2zjs.
  833.  
  834. Other printers: use foo2qpdl-wrapper and /usr/share/foo2qpdl/icm/
  835. Other printers: use foo2lava-wrapper and /usr/share/foo2lava/icm/
  836.  
  837. CUSTOM ICC/ICM COLOR PRINTER PROFILE (ARGYLL)
  838. ---------------------------------------------
  839. Reference:
  840. firefox http://www.xritephoto.com/html/colormunkisplash.htm
  841. firefox http://www.argyllcms.com/
  842. man printer-profile
  843.  
  844. DON'T DO THIS ON A 32-BIT (i386) PROCESSOR!
  845. Ghostscript (8.63) has problems. Weird color profile data.
  846.  
  847. ONLY DO THIS ON A 64-BIT (x86_64)PROCESSOR.
  848. But, you can use the color profile on i386 and x86_64.
  849.  
  850. YOU HAVE BEEN WARNED!!!
  851.  
  852. Execute:
  853. $ man printer-profile
  854. $ printer-profile manuf model [rgb|cmyk] [patches] [ink-limit]
  855.  
  856. If it is OK, send "testing.icm" to rick.richardson@comcast.net
  857. for inclusion in foo2zjs.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement