How to construct url of windows shared printer for cups client

Posted on

How to construct url of windows shared printer for cups client – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, windows, networking, printing, cups.

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?

Solution :

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 .

Leave a Reply

Your email address will not be published.