Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a HP laserjet shared on a windows 2003 server as //w3kserver/hp

I want to print from a linux client that has the cups system installed. When I add the printer in the cups web frontend on the linux client I need to provid an url of the printer that is shared on the windows server. How to construct that url for cups?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

From this page:

smb
This backend sends print files to printers shared by a Windows host. Examples 
of CUPS device-URIs that may be used includes:

    smb://workgroup/server/printersharename
    smb://server/printersharename
    smb://username:password@workgroup/server/printersharename
    smb://username:password@server/printersharename

The smb:// backend is a symlink to the Samba utility smbspool (does not ship with
CUPS). If the symlink is not present in your CUPS backend directory, have your 
root user create it: ln -s `which smbspool' /usr/lib/cups/backend/smb .
share|improve this answer
    
printing happily :) –  user12096 Feb 4 '10 at 11:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.