Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO *easy*: HP Laserjet/Deskjet + others with CUPS
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
hugelmopf
n00b
n00b


Joined: 02 May 2004
Posts: 28
Location: Dresden (Germany)

PostPosted: Fri Jun 25, 2004 8:49 pm    Post subject: HOWTO *easy*: HP Laserjet/Deskjet + others with CUPS Reply with quote

I know, there is already a Printing-Howto, as well as the Gentoo Printing Guide. But since these seem very complicated compared to what I needed to get a HP Laserjet 5L working, here is a short Howto for this printer type (and probably, but not tested for a few others, see below).

1. Enable needed Kernel-Options (look at http://www.gentoo.org/doc/en/printing-howto.xml Gentoo Printing Guide - (2) Kernel Modules)

2. Emerge the CUPS, start the CUPS daemon:
Code:
# emerge cups
# /etc/init.d/cupsd start


3. Configure Cups via its comfortable Interface at (run in Konqueror or your favorite browser):
Code:
http://localhost:631/admin

- Login with root + root-password
- Add Printer
- Name: Choose Name
Location: for example /dev/lp0 for parallel port printers (I guess /dev/usb/lp0 for USB-printers)
Description: Your description
- Device: Choose your device ("Parallel Port #1" in my case)
- Choose your manufacturer (HP)
- Choose your printer type (HP Laserjet Series CUPS v1.1)

4. Add cups to your default runlevel
Code:
rc-update add cupsd default


(5. For KDE-Users: Choose CUPS as printing system in the Control Center - Devices - Printers)

Hope, this easy version of printer installation for some common printers works for you as good as it did for me.
Hugelmopf

PS: These printers seem to also work with this installation guide:
Code:

HP
   Color Laserjet Series PCL6
   Deskjet Series
   Laserjet Series
   Laserjet Series PCL6
   New Deskjet Series
Epson
   Stylus Color
   Stylus Photo
   New Stylus Color
   New Stylus Photo
Okidata
   9 PIN series
   24 PIN series
Dymo
   Label printer
Back to top
View user's profile Send private message
blaksaga
Guru
Guru


Joined: 19 May 2003
Posts: 461
Location: Omaha, NE, USA

PostPosted: Sat Jul 03, 2004 8:44 pm    Post subject: Reply with quote

I am trying to get my roommates HP DJ 3650 working. I tried the above method and was unsuccessful.

Instead, I emerged hpijs and created a PPD file:

Code:

localhost kernel # grep HP-DeskJet_3650 /usr/share/foomatic/db/source/driver/*
/usr/share/foomatic/db/source/driver/hpijs.xml:   <id>printer/HP-DeskJet_3650</id>
localhost kernel # foomatic-configure -s cups -p HP-DeskJet_3650 -c file:/dev/usb/lp0 -n HPDeskjet3650 -d hpijs
Use of uninitialized value in string eq at /usr/lib/perl5/vendor_perl/5.8.3/Foomatic/DB.pm line 2160.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/vendor_perl/5.8.3/Foomatic/DB.pm line 3389.


Despite the errors it still creates the PPD and my printer shows up in http://127.0.0.1:631/. The problem is when I try to print a test page, I get "Printer not connected; will retry in 30 seconds..."

dmesg
Code:

usb 2-2: new full speed USB device using address 4
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x7204


So the kernel sees the printer, but I cannot get it to work.

I have also tried downloading the PPD from linuxprinting.org to no avail.

Does anybody have any suggestions or will I have to boot into windows to print out my resume? :cry:
_________________
[ blaksaga.com ]
Back to top
View user's profile Send private message
ZothOmmog
Apprentice
Apprentice


Joined: 05 May 2003
Posts: 216
Location: Nashville, TN

PostPosted: Sun Jul 04, 2004 11:40 am    Post subject: Reply with quote

I tried 3 different .ppd files that were supposed to work with my LaserJet 5L, but only one of them actually worked. Hit up www.linuxprinting.org & grab some others from them to test out.
_________________
-It's gonna take a lot of fireworks to clean this place up.
Back to top
View user's profile Send private message
hugelmopf
n00b
n00b


Joined: 02 May 2004
Posts: 28
Location: Dresden (Germany)

PostPosted: Sun Jul 04, 2004 3:03 pm    Post subject: Reply with quote

One question from me: How do the .ppd-files relate to the configuration I have described above? Do some ppd-files already come with CUPS and configuring it via the Web-Interface just chooses these? If so, will these give best results for the particular printer?
Back to top
View user's profile Send private message
leni07
n00b
n00b


Joined: 02 Jul 2004
Posts: 22

PostPosted: Sun Jul 04, 2004 3:20 pm    Post subject: Reply with quote

I have a configuration problem i think. I emerged cups and gimp-print (that is what linux printing said would be best driver for my model Epson CX 5200) I use kde wizzie to add printer. Its a usb printer. I compiled usb printer support into my kernel when i compiled it. Now my location should be /dev/usb/lp0 or somethign right, well i can go all the way through the wizzard with no problems. But when i try to print a test page nothign happens. I looked in /dev/usb/ and there was nothing there, do i need to make a symlink or what my printer was connected and powered on so i dont think that is an issue. Does anyone have any idea what the problem might be, because the wizard works fine, it localtes my driver for me anc everythjing i dunno what si wrong.
_________________
"Computers are like air conditioners, they don't work when you open windows"
~Unknown~
Back to top
View user's profile Send private message
leni07
n00b
n00b


Joined: 02 Jul 2004
Posts: 22

PostPosted: Sun Jul 04, 2004 4:09 pm    Post subject: Reply with quote

here is my dmesg taht corresponds to usb stuff...as you will see the drivers seem to be there but it did not detect my printer...

Quote:
ehci_hcd 0000:00:02.2: nVidia Corporation nForce2 USB Controller
PCI: Setting latency timer of device 0000:00:02.2 to 64
ehci_hcd 0000:00:02.2: irq 20, pci mem f885e000
ehci_hcd 0000:00:02.2: new USB bus registered, assigned bus number 1
PCI: cache line size of 64 is not supported by device 0000:00:02.2
ehci_hcd 0000:00:02.2: USB 2.0 enabled, EHCI 1.00, driver 2004-May-10
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 6 ports detected
USB Universal Host Controller Interface driver v2.2
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver


but i repeat when i plug my printer in there are no /dev/usb/usblp0 or /dev/usblp0 or anything like that i dont knwo what to do. Why wont my system recognize my usb devices GRRRRRRR

Oh yeah and i check the KDE Info Center uner USB and it found my USB controller and nothing else. I am not sure if devices are supposed to show up there but i just thought i would add that
_________________
"Computers are like air conditioners, they don't work when you open windows"
~Unknown~
Back to top
View user's profile Send private message
leni07
n00b
n00b


Joined: 02 Jul 2004
Posts: 22

PostPosted: Mon Jul 05, 2004 10:17 pm    Post subject: Reply with quote

ok well i solved the problem...it was rather dumb actually, i didnt enable all of the usb drivers in the kernel only that ehci one, once i enabled the other one it worked fine :)
_________________
"Computers are like air conditioners, they don't work when you open windows"
~Unknown~
Back to top
View user's profile Send private message
pharaoh
Apprentice
Apprentice


Joined: 20 Nov 2003
Posts: 211
Location: Pennsylvania

PostPosted: Thu Sep 02, 2004 10:44 pm    Post subject: Reply with quote

Blacksaga - you rule!

I bought a Canon i560 yesterday (yeah I know, but it had a $30 rebate). Spent 6 hours following the one forum thread about getting it running but had ZERO results. Took it back today, grabbed an HP 3650, read this thread, and I can print!! WHOOHOOO!!!

And now for a nap :D
_________________
Intel Core i7 860 Processor 2.80 GHz 8 MB LGA1156
Gigabyte GA-P55-USB3 rev2.0
EVGA GeForce GTX 960 02G-P4-2966-KR 2GB
8GB DDR3 1600 CL8
Back to top
View user's profile Send private message
palsyboy
Apprentice
Apprentice


Joined: 08 Jun 2004
Posts: 262
Location: USA

PostPosted: Fri Oct 15, 2004 7:18 am    Post subject: Reply with quote

hugelmopf, your post saved my life! Thanks! :D
Back to top
View user's profile Send private message
dkure
n00b
n00b


Joined: 20 Apr 2004
Posts: 51
Location: Sydney, Australia

PostPosted: Fri Oct 15, 2004 2:55 pm    Post subject: Reply with quote

Seeing that this thread is getting a few hints, I was wondering if anyone here has a working HP LaserJet 1000.

Over in this thread https://forums.gentoo.org/viewtopic.php?p=1636202 walrus_55 wrote a howto, but I have some questions on them, any help would be appreciated.

EDIT: I meant HP LaserJet 1010.


Last edited by dkure on Sun Oct 17, 2004 4:36 am; edited 1 time in total
Back to top
View user's profile Send private message
palsyboy
Apprentice
Apprentice


Joined: 08 Jun 2004
Posts: 262
Location: USA

PostPosted: Fri Oct 15, 2004 6:05 pm    Post subject: Reply with quote

I believe the LaserJet 1000 and LaserJet 1010 may be quite dissimilar models requiring different drivers. Here's what LinuxPrinting.org has to say about them:

http://www.linuxprinting.org/show_printer.cgi?recnum=HP-LaserJet_1000
http://www.linuxprinting.org/show_printer.cgi?recnum=HP-LaserJet_1010
Back to top
View user's profile Send private message
dkure
n00b
n00b


Joined: 20 Apr 2004
Posts: 51
Location: Sydney, Australia

PostPosted: Sun Oct 17, 2004 4:38 am    Post subject: Reply with quote

Are sorry about that one, I do own a HP LaserJet 1010, not a laserJet 1000, sorry about that one. Its still the same question though, Anyone other then walrus_55 had any luck with the HP LaserJet 1010?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum