LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Print on Windows from Linux with LDP (https://www.linuxquestions.org/questions/linux-newbie-8/print-on-windows-from-linux-with-ldp-320156/)

mvo 05-04-2005 04:15 PM

Print on Windows from Linux with LDP
 
Hola!

From a Linux-client I try to print on a HP Laserjet 1300 connected in the same LAN to a W2K-machine. I tried to make it work with LDP but after configuring it seems to print but nothing comes out of the printer neither do I find an error...n

I added the Unix printing support on the w2k machine, and configured with the GUI a LDP printer with server-IP of the w2k-machine and its printername.
The Printerdriver is set to Postscript where I found the HP1300 in the list.

Even the test possibility in the GUI gives no error and says the following:
Job 10 queued on 'IPPRINT' by 'root'.

How to solve this printing problem? :confused:

Thanks!

Tino27 05-04-2005 07:55 PM

Are you dead set on using LDP to print? I have managed to figure out how to print to a Windows machine using CUPS/SAMBA and I'd be glad to share my experience with you if you'd like.

mvo 05-05-2005 01:12 PM

I would be very interested knowing how you print on a windows machine using samba/ cups. I hope to hear the story!!!

Tino27 05-06-2005 08:28 PM

Sorry for the delay. I've found that I needed to enable both the CUPS and SAMBA daemons locally on my laptop (which is Slackware). Then, you need to add an entry to your /etc/cups/printers.conf file ... either by modifying the file directly with a text editor, going through the "add printer" wizard in the KDE Control Center, or in the cups admin page on your local machine (http://localhost:631). Either way, you'll end up with at least this in your printers.conf file. This is an example of a HP LaserJet 4 on my windows network at work:

<DefaultPrinter My_HPLJ4>
Info HP LaserJet 4
Location Front of the office
DeviceURI smb://domain\username:password@DOMAIN/SERVERNAME/HPLJ4
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
AllowUser tino27
</Printer>

If you'll notice, the important parts are the DeviceURI

smb:// <-- this tells CUPS to channel through SAMBA

Then, then NT domain, username, password combination

domain\username:password

Then the '@' followed by the path to the specific windows computer and printer name. Make sure you get the '\\' and '/' going in the correct direction.

If you don't have an NT domain (just workstations joined together in a group), then the username/password combination must be a local account on the Windows box you are trying to print to (and you can obviously leave out the domain values in the above example).

Good luck.

mvo 05-09-2005 04:22 PM

Thank you, it is working proper now!


All times are GMT -5. The time now is 11:43 AM.