Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 4 down vote accepted

From this page:

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


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

Your Answer


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.