Departmental Printers on your own computer using Samba
Obviously you need to know the Samba details before you can continue:
- what is your Samba account name (most probably the same as your departmental login name) and more important: what is your Samba password
- which Samba server can/should you use
- please note that although samba.cs.kuleuven.be probably will work, we do encourage you to look for and configure the Samba server of your research group
Then collect some data about the printer you want to use:
- which printer is on which floor and what queues are served by it
- what is the make and model of the printer you want to configure and what hardware options are installed
Linux
Contributed by Andrea Campagna ... many thanks !
Decide whether you want to go the GUI way or not.
The first way uses the graphical interface of CUPS, that is, pointing the browser to localhost:631.
- This gives the usual welcome page, where one has to click on Administration (welcome.png).
- At this point we want to "add a printer". Expect CUPS to ask for root credentials. (admin.png)
- Now we have to select a protocol, which in this case is "Windows printer via Samba". Notice that the position of the line may change each time one displays that page. Click continue. (prot.png).
- At this point it is required to write the auth credentials (departmental Samba account and password), the samba server and the queue we want to use. Click continue. (auth.png).
- Then some info, mostly useful for being understandable by the user when he will have 10 printers configured... Click continue and move forward. (names.png).
- It is finally the moment to tell the client which driver is necessary to use, either selecting one from the list or giving it explicitly the URI of a PPD file. Good practice is to put such a file in /usr/share/cups/model. Click add printer. (model_ex1.png, model_ex2.png).
- At the end, configuration of the installed printer capabilities. Click "set default options". (chars.png).
- Open a bottle of good wine to celebrate the (hypothetical) success (wine.png).
It is essentially the same procedure as described for printing using Cups on MacOS, with the difference of the server string that one has to use.
Now, if you dislike GUIs as I do, you can sort out this mess in a much simpler way.
- go root.
- place the appropriate .ppd file in /usr/share/cups/model/.
-
use lpadmin with the right options to select the ppd file, Samba server and credentials and print queue:
- lpadmin -p <printerqueue> -E -P /path/to/ppd/file.ppd -v smb://<username>:<password>@sambaserver.cs.kuleuven.be/<printerqueue>
MacOS-X
Copied from: http://support.apple.com/kb/ht3049.
- Choose System Preferences from the Apple menu.
- Choose Print & Fax from the View menu.
- Click the + button to add a printer.
- Press the Control key while clicking the "Default" icon (or any other icon on the toolbar), then choose Customize Toolbar from the contextual menu that appears.
- Drag the Advanced (gear) icon to the toolbar.
- Click Done.
- Click the Advanced icon that was added to the toolbar.
- Choose Windows from the Type pop-up menu.
- In the URL field, type the printer's address:
smb://sambaserver.cs.kuleuven.be./printer-queue - In the Name field, type the name you would like to use for this printer in Mac OS X.
- Choose the appropriate PPD or printer driver from the "Print Using" pop-up menu.
- You can/should look up necessary details on the URL shown in the preliminary section above.
- Click Add.
- When printing, your Samba account and password will be asked.

