Automatically Install Printers Shared on Windows Domain

Automatically Install Printers Shared on Windows Domain

All of the resources I can find provide detailed instructions for sharing Linux printers with Windows over SAMBA.

I would like to do the opposite.

I currently have CUPS configured so that it can add and print to printers shared from a Windows print server.

The problem is that I must manually configure the printer and select which driver it uses.

Is there any "out of the box" way to automatically determine the appropriate driver and/or autoconfigure a printer accessed via samba? If there are command line approaches I am comfortable wrapping them up in a script if need be. Any help would be appreciated.

1

1 Answer

This is the trick:

  • Add a print$ share in smb.conf if it doesn't already exist
  • Move the Windows drivers into /usr/share/cups/drv
  • Run cupsaddsmb -H localhost -U root -a -v

You can find more info at:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Elena Rostova
Author

Elena Rostova

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.