... The only thing that gave me a 9 hour work (and sometimes I've felt quite disapointed and hopeless) was the cups setup.
So let me outline how I could get my HP Laser Jet 4 to work, maybe this will help some not-so-linux-talented ppl like me to make it as fast and painless as possible.
At first: read the Gentoo Printing Guide first. Do exactly as it tells You. Study the parts about kernel settings (paralell port /or usb/ compatibility have to be compiled in, at least as a module).
If the "official" steps don't work... try it my way
1. unmerge cups, gimp-print-cups and ghostscript.
Code: Select all
# emerge unmerge gimp-print-cups
# emerge unmerge cups
# emerge unmerge ghostscript
[A lot of posts suggested this in the forums.]
Code: Select all
# emerge /usr/portage/net-print/cups/cups-1.1.14-r4.ebuild
# emerge /usr/portage/net-print/gimp-print-cups/gimp-print-cups-4.2.0-r1.ebuild
# emerge ghostscript
Code: Select all
# /etc/init.d/cupsd startYou should see a web-based cups administration interface.
[If prompted for name&password, enter root/root-password]
5. Click on "printers", than on "Add printer".
6. Enter anything for name, location and description (like "My Printer", "local", "HP Laser Jet", but it does not matter).
7. You will be promted for the "device": select parallel port [or if You have an USB printer, select USB - see the Gentoo Printing Guide about this].
8. Select the maker of your printer.
9. On the next page, select the model.
10. Click OK, and You have a new printer, that can (and maybe should) be customized in the Printers >> Configure printer menu.
11. Print a test page. If it works, You're ok, enjoy printing
12. If You could not find the driver for Your printer in step 8/9, than visit the LinuxPrinting.org's printer database, and try to find your printer by selecting the manufacturer and model name.
13. Click on "Show". This will give You details about the printer's driver.
14. Click on a driver (for HP LJ 4 You'll have several, just click on the recommended). This will take You to the PPD-O-MATIC page.
15. Select Your printer from ppd-o-matic's list, and click on "Generate PPD file".
16. You'll get a nice driver file right in your browser. Near the top of this file, You'll see a line like this:
*% You may save this file as 'Brother-HL-10h-ljet4.ppd'
17. Save it with the suggested name.
18. Su to root, and copy this file to /usr/share/cups/model.
19. Restart the cups server with the command
Code: Select all
# /etc/init.d/cupsd restartThat's it, You customize the printer, and it's ready to go.
I hope.......




