Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-20-2005, 10:16 PM
|
#1
|
|
Member
Registered: Jan 2004
Location: Atlanta, GA
Distribution: Slackware 12.2
Posts: 82
Rep:
|
CUPS + DI-704p Router + Print Server
So here's my story: I'm trying to share my printer (hpdeskjet 940c) which is connected to my router's print server (DI-704p) among all my machines (1 XP, 1 XP server, 1 Slackware, 1 debain, 1 Solaris, 1 XP laptop). Of course, D-link has provided print server drivers for Windows machines but Linux/Unix as usual are neglected.
I tried to use CUPS to make my Linux machines take advantage of shared printer. I've set my printer on Linux as following:
/usr/sbin/lpadmin -p printername -E -v socket://192.168.0.1 -m deskjet.ppd
Now, everytime I try to print a page I get the following message from http://localhost:631/
"Network host '192.168.0.1' is busy; will retry in 5/1/5/30 seconds..." but nothing happens. I have tried to set the network interface to:
socket://192.168.0.1:515
As I have witnessed that the printer and LAN machine are exchanging packets through destination port (on the router) of 515 when I ran Ethereal. No luck! I switched the protocol to LDP (ldp://192.168.0.1(:515) but that kept shutting down the printer as soon as a job was submitted. For some reason I get this message, "One byte of data was received" and the printer needs to be restarted. The content of Ethereal shows the LDP protocol keeps failing by issuing incorrect message or something but TCP packet exchange goes ok (Ethereal was run under Windows machine by the way).
So now I don't know what else I can do. Any ideas?
Last edited by oxblood; 07-21-2005 at 07:41 AM.
|
|
|
|
07-21-2005, 03:23 PM
|
#2
|
|
Member
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657
Rep:
|
oxblood
Can't take any credit for this because I found the information on the net
Try this
Queue Type - Networked Unix (LPD), Server - 192.168.0.1, and Queue - lp (that's lower-case L and P).
Pete
|
|
|
|
07-21-2005, 08:10 PM
|
#3
|
|
Member
Registered: Jan 2004
Location: Atlanta, GA
Distribution: Slackware 12.2
Posts: 82
Original Poster
Rep:
|
Hey Pete,
Thanks for your reply. Would you mind posting the link/url you found these information because I can't find a way to set the queue type/server... in CUPS.
Thanks
|
|
|
|
07-22-2005, 02:36 AM
|
#4
|
|
Member
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657
Rep:
|
Hi oxblood
You are using Cups web interface at
http://localhost:631
Just click the URL and it should open cups for you
Add printer, log in as username root + your root password
The rest should be obvious
Will try and find the web page I found the information on but all I did was copy and paste
Pete
|
|
|
|
07-22-2005, 07:11 AM
|
#5
|
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,756
|
I don't know if this will be of much help, but I use CUPS with a Linksys wireless print server and it works well. I've got a step-by-step of how I set it up here
|
|
|
|
07-22-2005, 07:16 AM
|
#6
|
|
Member
Registered: Jan 2004
Location: Atlanta, GA
Distribution: Slackware 12.2
Posts: 82
Original Poster
Rep:
|
Yes, but that's how I created my printer, via CUPS' webinterface. There is NO queue type as far as I know. For adding a printer I do the following:
- Name: something
- location: <empty>
- Description: my printer
- Device: I either choose AppSocket/HP JetDirect or LPD/LPR Host or Printer
- Device URI: Either socket://192.168.0.1(and w/ or w/o :515) or lpd://192.168.0.1
- Make and model as usual (supported ppd is available)
Then the printer is created and I do not see any other configuration relating to queue type or all that, unless I'm missing something!
I should add, I've the following devices available:
$: /usr/sbin/lpinfo -v
network socket
network http
network ipp
network lpd
direct canon:/dev/lp0
direct epson:/dev/lp0
direct parallel:/dev/lp0
direct scsi
serial serial:/dev/ttyS0?baud=115200
serial serial:/dev/ttyS1?baud=115200
serial serial:/dev/ttyS2?baud=115200
serial serial:/dev/ttyS3?baud=115200
serial serial:/dev/ttyS4?baud=115200
serial serial:/dev/ttyS5?baud=115200
serial serial:/dev/ttyS6?baud=115200
serial serial:/dev/ttyS7?baud=115200
network smb
direct usb:/dev/usb/lp0
direct usb:/dev/usb/lp1
direct usb:/dev/usb/lp2
direct usb:/dev/usb/lp3
direct usb:/dev/usb/lp4
direct usb:/dev/usb/lp5
direct usb:/dev/usb/lp6
direct usb:/dev/usb/lp7
direct usb:/dev/usb/lp8
direct usb:/dev/usb/lp9
direct usb:/dev/usb/lp10
direct usb:/dev/usb/lp11
direct usb:/dev/usb/lp12
direct usb:/dev/usb/lp13
direct usb:/dev/usb/lp14
direct usb:/dev/usb/lp15
Last edited by oxblood; 07-22-2005 at 07:20 AM.
|
|
|
|
07-22-2005, 09:42 AM
|
#7
|
|
Member
Registered: Jan 2004
Location: Atlanta, GA
Distribution: Slackware 12.2
Posts: 82
Original Poster
Rep:
|
Hangdog42,
Sorry, I missed your reply. Your article is through and thanks for the tips. Unfortunately, D-Link printer server has a different setup than Linksys. I have set my Device URI as of following:
lpd://192.168.0.1/p1
Or lpd://192.168.0.1/P1
Or lpd://192.168.0.1/printer1
But none works; the printer starts up properly, accepts jobs but when it comes to the processing the actual job, for some reason the printer stops and I've to restart it. Either way, nothing gets printed. The job status is either in "Pending the process" or "Processing Since..." mode.
Here's the error_log for CUPS from the point where cupsd is started, adding a printer, and queuing a job.
http://..../cups.errlog.txt
It sends some command string to port 515 to the router but then the printer is shut down:
Code:
D [22/Jul/2005:15:03:57 -0400] [Job 1] KID3 exited with status 0
D [22/Jul/2005:15:03:57 -0400] [Job 1] tail process done writing data to STDOUT
D [22/Jul/2005:15:03:57 -0400] [Job 1] KID4 finished
D [22/Jul/2005:15:03:57 -0400] [Job 1] KID4 exited with status 0
D [22/Jul/2005:15:03:57 -0400] [Job 1] Renderer exit stat: 0
D [22/Jul/2005:15:03:57 -0400] [Job 1] KID3 finished
D [22/Jul/2005:15:03:57 -0400] [Job 1] Renderer process finished
D [22/Jul/2005:15:03:57 -0400] [Job 1]
D [22/Jul/2005:15:03:57 -0400] [Job 1] Closing foomatic-rip.
D [22/Jul/2005:15:03:57 -0400] [Job 1] Connected on ports 515 (local 1022)...
D [22/Jul/2005:15:03:57 -0400] [Job 1] lpd_command 02 p1
D [22/Jul/2005:15:03:57 -0400] [Job 1] Sending command string (4 bytes)...
D [22/Jul/2005:15:03:57 -0400] [Job 1] Reading command status...
D [22/Jul/2005:15:03:57 -0400] [Job 1] lpd_command returning 1
E [22/Jul/2005:15:03:57 -0400] PID 27883 stopped with status 1!
D [22/Jul/2005:15:03:57 -0400] UpdateJob: job 1, file 0 is complete.
D [22/Jul/2005:15:03:57 -0400] StopJob: id = 1, force = 0
I [22/Jul/2005:15:03:57 -0400] Saving printers.conf...
D [22/Jul/2005:15:03:57 -0400] StopJob: printer state is 5
Any ideas?
Last edited by oxblood; 12-11-2008 at 09:05 PM.
|
|
|
|
07-22-2005, 11:42 AM
|
#8
|
|
Member
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657
Rep:
|
oxblood
Quote:
lpd://192.168.0.1/p1
Or lpd://192.168.0.1/P1
Or lpd://192.168.0.1/printer1
|
How about
Queue Type - Networked Unix (LPD), Server - 192.168.0.1, and Queue - lp (that's lower-case L and P).
Which works out as
Code:
lpd://192.168.0.1/lp
You may already have tried this just not listed it in your post
Pete
Last edited by Pete M; 07-22-2005 at 11:44 AM.
|
|
|
|
07-22-2005, 12:20 PM
|
#9
|
|
Member
Registered: Jan 2004
Location: Atlanta, GA
Distribution: Slackware 12.2
Posts: 82
Original Poster
Rep:
|
Many thanks to you Pete. Everything works great now; I also tried CUPS on Solaris 9/10 and it works!
|
|
|
|
07-22-2005, 12:46 PM
|
#10
|
|
Member
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657
Rep:
|
oxblood
Glad to help
Pete
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:35 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|