Theurgist
December 12th, 2010, 04:10 AM
Greetings everybody!
I am new to this forum. I have run Ubuntu for a couple of years, back and forth. Now, I am interested in a solution to a question related to printers, managed through CUPS, _not_ through Samba. I need to use the LPR-protocol.
I wanted to set up at test environment to programatically set up the ports of LPR, to a queue on a Unix system from Windows(however I use Ubuntu for testing on a virtual environment).
I want to send the print from Windows to a lpd:\\192.168...x\queuename that is configured for me in CUPS on a Ubuntu machine that is set up to go back to the Windows-system that has a (Samsung) printer connected to USB, but shared on the environment(a different queue than that one initially started the request).
I am not allowed to use Samba, or any other printing protocol from Windows than LPR/LPD through destination port 515. So please don't bother explaining these concepts to me as I understand that it will solve the problems for some, but will pollute this thread with misleading concepts. Even though I bet it would be conceptually interesting.
The problem is, it seems that Windows doesn't really set up a true LPR/LPD Unix/Linux port when using the prnport.vbs scripts that comes with Windows. However when I do this manually, against the 'professional' Unix system, and connecting the printer via a local port through the printing wizard in Windows and then choosing LPR port, I will get a fully functioning LPR port to the printing server running CUPS.
Now my dilemma, I am working on a completely different system. This system doesn't connect to printers accessed by network, connected directly through TCP/IP via TP-cable, but via a USB shared printer through a Windows computer. That's a relevant difference.
I know, I am begging for trouble, by sending the print, back-and-forth, but the test FROM Ubuntu to Windows works fine (with the printer shared over USB). It doesn't work the other way around however, by sending the print to Linux from Windows.
In Windows it says that it is printing and the print-out does not time-out or alarm any error, but a telnet on 515 gets 'Connect failed'. I have tried to see if there is an issue with Iptables, and has also installed Firestarter to disable the functionality to get rid of any firewall problems.
lpc status gives me that the daemon for the queue is present.
When setting up the LPR port against my CUPS configuration on my test machine(Vista->Ubuntu) I get this:
--------------
The LPD Server did not respond as expected to a test command. Any of the following can cause this error:
The entry for IP Address or Queue Name is incorrect.
The TCP/IP print device (LPD server) does not support the test command.
The specified TCP/IP print device is not available.
If the information typed in the previous screen is correct, you can ignore this message. Click OK to continue, or click Cancel to return to the previous screen and verify settings.
------------------
What am I doing wrong here? Except for doing stuff awkwardly!;)
To me it looks like a firewall issue, but also som trouble with the lpd daemon. As this doesn't happen on the 'professional' system, however I don't have the insight in the actual configuration of CUPS on the server in the 'PRO' environment either, I need your guidance.
A good instinct tells me to narrow it down to only make the queue working from Windows to Linux, however the Linux is on a virtual machine, I don't want to make things more complicated to attach printers through USB via the virtual layers!
Is it practical to stream the LPR port to /dev/null on the Linux side just to see the buffering, to determine any issue with the lpd-daemon, or firewall? However this should be considered secondary if a lot of work is involved with it.
Best regards and thanks in advance!
Theurgist
I am new to this forum. I have run Ubuntu for a couple of years, back and forth. Now, I am interested in a solution to a question related to printers, managed through CUPS, _not_ through Samba. I need to use the LPR-protocol.
I wanted to set up at test environment to programatically set up the ports of LPR, to a queue on a Unix system from Windows(however I use Ubuntu for testing on a virtual environment).
I want to send the print from Windows to a lpd:\\192.168...x\queuename that is configured for me in CUPS on a Ubuntu machine that is set up to go back to the Windows-system that has a (Samsung) printer connected to USB, but shared on the environment(a different queue than that one initially started the request).
I am not allowed to use Samba, or any other printing protocol from Windows than LPR/LPD through destination port 515. So please don't bother explaining these concepts to me as I understand that it will solve the problems for some, but will pollute this thread with misleading concepts. Even though I bet it would be conceptually interesting.
The problem is, it seems that Windows doesn't really set up a true LPR/LPD Unix/Linux port when using the prnport.vbs scripts that comes with Windows. However when I do this manually, against the 'professional' Unix system, and connecting the printer via a local port through the printing wizard in Windows and then choosing LPR port, I will get a fully functioning LPR port to the printing server running CUPS.
Now my dilemma, I am working on a completely different system. This system doesn't connect to printers accessed by network, connected directly through TCP/IP via TP-cable, but via a USB shared printer through a Windows computer. That's a relevant difference.
I know, I am begging for trouble, by sending the print, back-and-forth, but the test FROM Ubuntu to Windows works fine (with the printer shared over USB). It doesn't work the other way around however, by sending the print to Linux from Windows.
In Windows it says that it is printing and the print-out does not time-out or alarm any error, but a telnet on 515 gets 'Connect failed'. I have tried to see if there is an issue with Iptables, and has also installed Firestarter to disable the functionality to get rid of any firewall problems.
lpc status gives me that the daemon for the queue is present.
When setting up the LPR port against my CUPS configuration on my test machine(Vista->Ubuntu) I get this:
--------------
The LPD Server did not respond as expected to a test command. Any of the following can cause this error:
The entry for IP Address or Queue Name is incorrect.
The TCP/IP print device (LPD server) does not support the test command.
The specified TCP/IP print device is not available.
If the information typed in the previous screen is correct, you can ignore this message. Click OK to continue, or click Cancel to return to the previous screen and verify settings.
------------------
What am I doing wrong here? Except for doing stuff awkwardly!;)
To me it looks like a firewall issue, but also som trouble with the lpd daemon. As this doesn't happen on the 'professional' system, however I don't have the insight in the actual configuration of CUPS on the server in the 'PRO' environment either, I need your guidance.
A good instinct tells me to narrow it down to only make the queue working from Windows to Linux, however the Linux is on a virtual machine, I don't want to make things more complicated to attach printers through USB via the virtual layers!
Is it practical to stream the LPR port to /dev/null on the Linux side just to see the buffering, to determine any issue with the lpd-daemon, or firewall? However this should be considered secondary if a lot of work is involved with it.
Best regards and thanks in advance!
Theurgist