View previous topic :: View next topic |
Author |
Message |
alphatronics Tux's lil' helper
Joined: 16 Apr 2003 Posts: 88 Location: Boston
|
Posted: Sun Apr 27, 2003 2:43 am Post subject: |
|
|
I was able to get my DeskJet 820Cse working using the provided information. Thanks! |
|
Back to top |
|
|
G2k l33t
Joined: 06 Mar 2004 Posts: 672 Location: Rome, Italy
|
Posted: Sat Sep 04, 2004 12:45 am Post subject: |
|
|
I have an HP DeskJet 820Cse as well but I still can't get it to work. I tried going through the whole install process twice to no avail, I can't even print something with commands like cat hello.txt > /dev/lp0 ("Hello World" being in hello.txt)
I have the right PPD-O-Matic file, copied it to that directory that chip_s_ahoy mentioned thus overwriting the old one and still nothing. When I go to localhost:631/admin I see my printer HP Deskjet 820C. I click Manage Available Printers -> Configure Printer and it gives me the following:
Code: |
Error:
server-error-service-unavailable
|
I subsequently did "less /var/log/cups/error_log" to view the errors and I get code like this:
Code: |
D [04/Sep/2004:02:39:45 +0200] AcceptClient() 7 from localhost:631.
D [04/Sep/2004:02:39:45 +0200] AcceptClient() 10 from localhost:631.
D [04/Sep/2004:02:39:45 +0200] ReadClient() 7 GET /images/stop-printer.gif HTTP/1.1
D [04/Sep/2004:02:39:45 +0200] SendError() 7 code=404 (Not Found)
D [04/Sep/2004:02:39:45 +0200] CloseClient() 7
D [04/Sep/2004:02:39:45 +0200] ReadClient() 10 GET /images/reject-jobs.gif HTTP/1.1
D [04/Sep/2004:02:39:45 +0200] SendError() 10 code=404 (Not Found)
D [04/Sep/2004:02:39:45 +0200] CloseClient() 10
D [04/Sep/2004:02:39:45 +0200] AcceptClient() 7 from localhost:631.
D [04/Sep/2004:02:39:45 +0200] AcceptClient() 10 from localhost:631.
D [04/Sep/2004:02:39:45 +0200] ReadClient() 7 GET /images/modify-printer.gif HTTP/1.1
D [04/Sep/2004:02:39:45 +0200] SendError() 7 code=404 (Not Found)
D [04/Sep/2004:02:39:45 +0200] CloseClient() 7
D [04/Sep/2004:02:39:45 +0200] ReadClient() 10 GET /images/config-printer.gif HTTP/1.1
D [04/Sep/2004:02:39:45 +0200] SendError() 10 code=404 (Not Found)
D [04/Sep/2004:02:39:45 +0200] CloseClient() 10
D [04/Sep/2004:02:39:45 +0200] AcceptClient() 7 from localhost:631.
D [04/Sep/2004:02:39:45 +0200] AcceptClient() 10 from localhost:631.
D [04/Sep/2004:02:39:45 +0200] ReadClient() 7 GET /images/delete-printer.gif HTTP/1.1
D [04/Sep/2004:02:39:45 +0200] SendError() 7 code=404 (Not Found)
D [04/Sep/2004:02:39:45 +0200] CloseClient() 7
D [04/Sep/2004:02:39:45 +0200] ReadClient() 10 GET /images/add-printer.gif HTTP/1.1
D [04/Sep/2004:02:39:45 +0200] SendError() 10 code=404 (Not Found)
D [04/Sep/2004:02:39:45 +0200] CloseClient() 10
D [04/Sep/2004:02:40:17 +0200] AcceptClient() 7 from localhost:631.
D [04/Sep/2004:02:40:17 +0200] ReadClient() 7 GET /admin/?op=config-printer&printer_name=HPDeskJet920C HTTP/1.1
D [04/Sep/2004:02:40:17 +0200] CGI /usr/lib/cups/cgi-bin/admin.cgi started - PID = 22401
I [04/Sep/2004:02:40:17 +0200] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=22401)
D [04/Sep/2004:02:40:17 +0200] SendCommand() 7 file=11
D [04/Sep/2004:02:40:17 +0200] AcceptClient() 10 from localhost:631.
D [04/Sep/2004:02:40:17 +0200] AcceptClient() 12 from localhost:631.
D [04/Sep/2004:02:40:17 +0200] ReadClient() 12 POST / HTTP/1.1
D [04/Sep/2004:02:40:17 +0200] ProcessIPPRequest: 12 status_code=0
D [04/Sep/2004:02:40:17 +0200] AcceptClient() 13 from localhost:631.
D [04/Sep/2004:02:40:17 +0200] ReadClient() 13 GET /cups.css HTTP/1.1
D [04/Sep/2004:02:40:17 +0200] SendError() 13 code=404 (Not Found)
D [04/Sep/2004:02:40:17 +0200] CloseClient() 13
D [04/Sep/2004:02:40:17 +0200] AcceptClient() 13 from localhost:631.
D [04/Sep/2004:02:40:17 +0200] ReadClient() 13 GET /images/navbar.gif HTTP/1.1
D [04/Sep/2004:02:40:17 +0200] SendError() 13 code=404 (Not Found)
D [04/Sep/2004:02:40:17 +0200] CloseClient() 13
D [04/Sep/2004:02:40:18 +0200] CloseClient() 12
D [04/Sep/2004:02:40:20 +0200] CloseClient() 10
D [04/Sep/2004:02:41:26 +0200] CloseClient() 7
|
Please, someone help this is getting really frustrating. Something that took me literally less than 10 seconds in Windows XP is taking me more than 10 days.
Thnx |
|
Back to top |
|
|
G2k l33t
Joined: 06 Mar 2004 Posts: 672 Location: Rome, Italy
|
Posted: Sat Sep 04, 2004 10:35 am Post subject: |
|
|
hmm. see all those things it tries to load but can't? like /cups.css or /images/add-printer.gif. Where are those images located? Maybe I don't have a directory or something...maybe the "server-error-service-unavailable" means that the directory with the crucial files is missing or something?
Help PLZ ~_~
thnx |
|
Back to top |
|
|
G2k l33t
Joined: 06 Mar 2004 Posts: 672 Location: Rome, Italy
|
Posted: Sat Sep 04, 2004 9:58 pm Post subject: |
|
|
so..uh....i'm not guna get any help on this one?
It would suck if I had to log into windows just to print essays for school -_- |
|
Back to top |
|
|
G2k l33t
Joined: 06 Mar 2004 Posts: 672 Location: Rome, Italy
|
Posted: Sun Sep 05, 2004 8:16 am Post subject: |
|
|
yey, success! I got the error message off and I printed a test page...but it's not good enough
Leme explain what the problem was before I create more confusion:
I had to edit the file /etc/cups/cupsd.conf and since I'm not the sharpest tool in the shed I had left the name "PrintServer" at that. So I changed as follows:
Code: |
ServerName localhost
ServerAdmin root@localhost
|
Then In the sections <Location /> and <Location /admin> I added
Code: |
Allow From localhost
|
(Notice I added this to BOTH sections. They are two different sections that are basically attached and look as one.)
So I restart CUPS
Code: |
# /etc/init.d/cupsd restart
|
and voila, I have access to that printer management page. I printed a test page and it was a bit sloppy, but I have a feeling the cartriges are a bit messed up and the printer itself is not as it was in it's golden days.
I tried printing with a "cat test.txt > /dev/lp0" with my normal user and got a permission denied. I would like to print with just my normal user so if you guys know how to fix this it would be better.
I then become root and try again, but there's no response from the printer. I looked in my /var/log/cups/error_log and got something like this:
Code: |
I [05/Sep/2004:10:06:04 +0200] Scheduler shutting down normally.
D [05/Sep/2004:10:06:04 +0200] StopListening: closing all listen sockets.
D [05/Sep/2004:10:06:04 +0200] PauseListening: clearing input bits...
D [05/Sep/2004:10:06:05 +0200] AddLocation: added location 'CUPS_INTERNAL_BROWSE_ACL'
I [05/Sep/2004:10:06:05 +0200] Loaded configuration file "/etc/cups/cupsd.conf"
I [05/Sep/2004:10:06:05 +0200] Configured for up to 100 clients.
I [05/Sep/2004:10:06:05 +0200] Allowing up to 100 client connections per host.
I [05/Sep/2004:10:06:05 +0200] Full reload is required.
D [05/Sep/2004:10:06:05 +0200] LoadAllPrinters: Loading printer HPDeskJet920C...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "ipp"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "lpd"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "smb"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "usb:/dev/usblp0"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "usb:/dev/usblp1"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "usb:/dev/usblp2"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "usb:/dev/usblp3"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "usb:/dev/usblp4"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "usb:/dev/usblp5"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "usb:/dev/usblp6"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "usb:/dev/usblp7"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "usb:/dev/usblp8"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "usb:/dev/usblp9"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "usb:/dev/usblp10"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "usb:/dev/usblp11"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "usb:/dev/usblp12"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "usb:/dev/usblp13"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "usb:/dev/usblp14"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "usb:/dev/usblp15"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "http"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "scsi"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "parallel:/dev/lp0"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "serial:/dev/ttyS0?baud=115200"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "serial:/dev/ttyS1?baud=115200"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "serial:/dev/ttyS2?baud=115200"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "serial:/dev/ttyS3?baud=115200"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "serial:/dev/ttyS4?baud=115200"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "serial:/dev/ttyS5?baud=115200"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "serial:/dev/ttyS6?baud=115200"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "serial:/dev/ttyS7?baud=115200"...
D [05/Sep/2004:10:06:05 +0200] LoadDevices: Added device "socket"...
I [05/Sep/2004:10:06:05 +0200] LoadPPDs: Read "/etc/cups/ppds.dat", 307 PPDs...
I [05/Sep/2004:10:06:05 +0200] LoadPPDs: No new or changed PPDs...
D [05/Sep/2004:10:06:05 +0200] LoadAllJobs: Scanning /var/spool/cups...
D [05/Sep/2004:10:06:05 +0200] LoadAllJobs: Loading attributes for job 1...
I [05/Sep/2004:10:06:05 +0200] Full reload complete.
D [05/Sep/2004:10:06:05 +0200] StartListening: NumListeners=1
D [05/Sep/2004:10:06:05 +0200] StartListening: address=00000000 port=631
D [05/Sep/2004:10:06:05 +0200] ResumeListening: setting input bits...
|
This is all that happened with the cups restart.
This is what happens when going to localhost:631/admin:
Code: |
D [05/Sep/2004:10:09:32 +0200] AcceptClient() 5 from localhost:631.
D [05/Sep/2004:10:09:32 +0200] ReadClient() 5 GET /admin HTTP/1.1
D [05/Sep/2004:10:09:32 +0200] CGI /usr/lib/cups/cgi-bin/admin.cgi started - PID = 30178
I [05/Sep/2004:10:09:32 +0200] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=30178)
D [05/Sep/2004:10:09:32 +0200] SendCommand() 5 file=7
D [05/Sep/2004:10:09:32 +0200] ReadClient() 5 GET /cups.css HTTP/1.1
D [05/Sep/2004:10:09:32 +0200] SendError() 5 code=404 (Not Found)
D [05/Sep/2004:10:09:32 +0200] CloseClient() 5
D [05/Sep/2004:10:09:32 +0200] AcceptClient() 5 from localhost:631.
D [05/Sep/2004:10:09:32 +0200] AcceptClient() 7 from localhost:631.
D [05/Sep/2004:10:09:32 +0200] ReadClient() 5 GET /images/navbar.gif HTTP/1.1
D [05/Sep/2004:10:09:32 +0200] SendError() 5 code=404 (Not Found)
D [05/Sep/2004:10:09:32 +0200] CloseClient() 5
D [05/Sep/2004:10:09:32 +0200] ReadClient() 7 GET /images/left.gif HTTP/1.1
D [05/Sep/2004:10:09:32 +0200] SendError() 7 code=404 (Not Found)
D [05/Sep/2004:10:09:32 +0200] CloseClient() 7
D [05/Sep/2004:10:09:32 +0200] AcceptClient() 5 from localhost:631.
D [05/Sep/2004:10:09:32 +0200] AcceptClient() 7 from localhost:631.
D [05/Sep/2004:10:09:32 +0200] ReadClient() 5 GET /images/right.gif HTTP/1.1
D [05/Sep/2004:10:09:32 +0200] SendError() 5 code=404 (Not Found)
D [05/Sep/2004:10:09:32 +0200] CloseClient() 5
D [05/Sep/2004:10:09:32 +0200] ReadClient() 7 GET /images/add-class.gif HTTP/1.1
D [05/Sep/2004:10:09:32 +0200] SendError() 7 code=404 (Not Found)
D [05/Sep/2004:10:09:32 +0200] CloseClient() 7
D [05/Sep/2004:10:09:32 +0200] AcceptClient() 5 from localhost:631.
D [05/Sep/2004:10:09:32 +0200] ReadClient() 5 GET /images/manage-classes.gif HTTP/1.1
D [05/Sep/2004:10:09:32 +0200] SendError() 5 code=404 (Not Found)
D [05/Sep/2004:10:09:32 +0200] CloseClient() 5
D [05/Sep/2004:10:09:32 +0200] AcceptClient() 5 from localhost:631.
D [05/Sep/2004:10:09:32 +0200] AcceptClient() 7 from localhost:631.
D [05/Sep/2004:10:09:32 +0200] ReadClient() 5 GET /images/manage-jobs.gif HTTP/1.1
D [05/Sep/2004:10:09:32 +0200] SendError() 5 code=404 (Not Found)
D [05/Sep/2004:10:09:32 +0200] CloseClient() 5
D [05/Sep/2004:10:09:32 +0200] ReadClient() 7 GET /images/add-printer.gif HTTP/1.1
D [05/Sep/2004:10:09:32 +0200] SendError() 7 code=404 (Not Found)
D [05/Sep/2004:10:09:32 +0200] CloseClient() 7
D [05/Sep/2004:10:09:32 +0200] AcceptClient() 5 from localhost:631.
D [05/Sep/2004:10:09:32 +0200] ReadClient() 5 GET /images/manage-printers.gif HTTP/1.1
D [05/Sep/2004:10:09:32 +0200] SendError() 5 code=404 (Not Found)
D [05/Sep/2004:10:09:32 +0200] CloseClient() 5
|
As you can see it has a hard time locating images and other files. I'm not so sure this is what is not making me print with that cat command though. I gave the cat command and looked at the error log once again:
Code: |
bash-2.05b# cat ~/test.txt > /dev/lp0
bash-2.05b# cat /var/log/cups/error_log
bash-2.05b#
|
The error log returns nothing so I guess it's not communicating.
If someone can make more sense out of this than I can you would do me a great favor...maybe it's some setting in my /etc/cups/cupsd.conf that is giving me problems still? I don't know why this would change anything but just in case, I'm behind a server that runs linux which connects the other three computers in my house. Does this have anything to do with localhost...do I have to write something else instead?
Thanks _________________ Animula vagula blandula,
Hospes comesque corporis,
Quae nunc abibis in loca
Pallidula rigida nudula,
Nec ut soles dabis iocos...
- Imp. Caesar Hadrianus |
|
Back to top |
|
|
|