Saturday, June 29, 2013

Configuring Ubuntu Linux Print Server using the CLI

You can configure print services using the command line.  The following command will allow printing from clients on the same subnet:

# cupsctl --share-printers

If you want to print from any subnet, the CLI command is:

# cupsctl --share-printers --remote-any


If you want to specify the protocols to use for print sharing, the CLI command is:

# cupsctl ' BrowseLocalProtocols = "cups dnssd lpd smb" '

Disabling Services at Boot

Assuming you want to disable "squid" at boot, issue the command:

# update-rc.d -f squid remove