auth:setup_printers
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
auth:setup_printers [2011/03/14 15:18] – [Add Printer using CUPS via Samba] kohofer | auth:setup_printers [2012/12/06 17:03] – [PRINTING via KERBEROS (using a Windows Print Server)] kohofer | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | ===== Windows | + | ===== LINUX ===== |
- | ==== Computer joined to UNIBZ domain ==== | ||
+ | ===== PRINTING via KERBEROS (using a Windows Print Server) ===== | ||
- | *Step 1 | + | Follow the Guide lines as described in the link below |
- | {{printers1.jpg|: | + | |
- | *Step 2 | + | https:// |
- | {{printers2.jpg|:printers2.jpg}} | + | |
- | *Step 3 | ||
- | {{printers3.jpg|: | ||
- | *Step 4 | + | Before you can print YOU MUST get a Kerberos ticket |
- | {{printers4.jpg|: | + | |
- | *Step 5 | + | * kinit < |
- | {{printers5.jpg|: | + | |
- | *Step 6 | + | Check if you got a correct ticket |
- | {{printers6.jpg|: | + | |
- | *Step 7 | + | * klist |
- | {{printers7.jpg|: | + | |
- | ==== Computer not joined to UNIBZ domain ==== | + | < |
+ | Ticket cache: FILE:/ | ||
+ | Default principal: < | ||
- | If your PC has not joined the domain, you will need to connect to ubz02prn | + | Valid starting |
- | and double click on one of the printers in the list in order to install it. | + | 06/12/2012 17:01 07/12/2012 03:01 krbtgt/ |
+ | renew until 07/12/2012 03:01 | ||
- | **You will of course need a valid account to connect to the printserver!** | + | </ |
+ | ---- | ||
- | To connect to ubz02prn, open Explorer and type \\ubz02prn.unibz.it: | ||
- | {{printers.jpg|: | + | ===== PRINTING VIA CUPS (using a Linux Print Server) ====== |
- | <note important> | + | First get the name(s) of the available printer(s): |
- | </ | + | |
- | ===== Linux ===== | + | < |
+ | http:// | ||
+ | </ | ||
- | ==== KDE Cups Print Server ==== | ||
- | Step 1 | + | Open your preferred browser and type this address: |
- | Open a konsole and type the following command: | + | * localhost:631 |
- | | + | Follow this guides as shown on the next screen shots |
- | The KDE Print Manager Window opens. Now Select '' | ||
- | {{kde_printmanager.jpg|:kde_printmanager.jpg}} | + | ^Select Add Printer ^Enter local username (must be in admin/sudo group) and local password^ |
+ | |{{: | ||
+ | ^Enter Connection string e.g. http:// | ||
+ | |{{: | ||
+ | ^Select Make ^Select Driver^ | ||
+ | |{{: | ||
- | Step 2 | + | Last select newly added printer; Click on **Administration**\\ |
+ | and select: **Set Default Options** | ||
- | Select the settings in the next 6 Windows | ||
- | {{add_printer_wizard.jpg|: | + | ---- |
- | {{add_printer_wizard3.jpg|: | ||
- | {{add_printer_wizard5.jpg|: | ||
- | Step 3 | + | ===== PRINTING VIA SAMBA (using a Windows Print Server) ===== |
- | Configure | + | <note important> |
- | {{configure_printer.jpg|:configure_printer.jpg}}{{configure_printer2-1.jpg|: | + | First get the name(s) of the printer(s) you want to use: |
- | {{configure_printer3.jpg|:configure_printer3.jpg}}{{configure_printer4.jpg|: | + | To get the printer names use smbclient. If the program is not installed do: |
- | {{configure_printer5.jpg|: | + | * apt-get update; apt-get install smbclient |
- | ==== Add Printer using CUPS via Samba ==== | + | Now execute this line to get a list of the printer names: |
- | === Chip Card Printer === | + | * smbclient -L \\< |
- | Prerequisite: | + | e.g. |
- | <note important> | + | * smbclient -L \\print.unibz.it -U bgates -W unibz |
- | <note warning>This procedure is only recommended for users with their own Notebook/ | + | Printer naming scheme: |
- | because it is necessary to store the password in clear!</ | + | <code> |
+ | UBZ 066 POS 300 | ||
+ | | | | ||
- | 1. Open your preferred browser and type this address: | + | | | |
- | localhost: | + | | |-> |
- | 2. Follow this guides as shown on the next screen shots | + | |->UBZ University Site Bolzano |
+ | </ | ||
- | ^ Select Add Printer | + | A list of old and new printer names you can find here: http://www.unibz.it/ |
- | | {{:auth:cps0.png|Add Printer}} | {{: | + | |
- | ^ Select Windows Printer via Samba ^ Device URI, replace with your username and password ^ | + | Now that you know the name of the printer, you can starting adding a printer. |
- | | {{: | + | |
- | ^ Select Manufacture Generic ^ Select Printer Driver Generic Postscript ^ | ||
- | | {{: | ||
- | ^ A window will appear asking for username and password ener yours ^ Set Printer Options ^ | + | SMB URI |
- | | {{:auth:cps6.png|Enter login and password}} | {{: | + | < |
+ | smb:// | ||
+ | </ | ||
- | 3. Restart cupsys daemon: | ||
- | sudo / | + | Open your preferred browser and type this address: |
- | ---- | + | * localhost: |
- | ==== How to connect to a Samba Print Server ==== | + | Follow this guides as shown on the next screen shots |
- | First get the name(s) | + | ^Select Add Printer from Administration Menu ^Chose how to connect to Printer^ |
+ | |{{: | ||
+ | ^Chose how to connect to Printer ^Enter Connection String SMB URI, enter Domain unibz, YOUR username and password!^ | ||
+ | |{{: | ||
+ | ^Enter Name, Description and Location ^Select Make of Printer^ | ||
+ | |{{: | ||
+ | ^Select Driver ^Set initial default Options^ | ||
+ | |{{: | ||
+ | ^Set Default Options^ | ||
+ | |{{: | ||
- | To get the printer names use a Samba share browser like LinNeighborhood or use | ||
- | smbclient with the following options: | ||
- | smbclient -L \\< | + | Check that the cups printer config file printers contains the string: |
- | Using Kerberos (aka kinit) | + | < |
+ | smb:// | ||
+ | </ | ||
- | smbclient -L \\< | + | In a terminal type: |
+ | * sudo cat / | ||
+ | Restart cups daemon: | ||
+ | * sudo / | ||
- | * Install: | + | === Remove clear password from / |
- | + | ||
- | sudo aptitude install linneighborhood | + | |
- | * Start: | + | <note important> |
- | LinNeighborhood | ||
- | - Press Add: | + | Open the config file and make the following modifications: |
- | * Fill in Samba Print Server, Domain and Print Server IP-Address and press Query to verify entries, if query status: query host ... done, press OK | + | * sudo vi / |
- | {{auth:add-machine.png}} | + | Place this line in: |
+ | < | ||
+ | AuthInfoRequired username, | ||
+ | </ | ||
+ | Next search for the the DeviceURI line and substitute it | ||
+ | with this line. Please remember to leave the printername unchanged! | ||
+ | < | ||
+ | DeviceURI smb:// | ||
+ | </ | ||
- | * Select the Samba Print Server and choose scan as user | + | ---- |
- | {{auth: | + | ===== CHIPCARD PRINTER (using a Windows Print Server) ===== |
- | * Fill in domain, username and password and press OK. | + | <note important> |
- | {{auth:scan-as-user.png}} | + | SMB URI |
+ | < | ||
+ | smb:// | ||
+ | </ | ||
- | Now you should have a list with all printers attached to the Samba Printer Server. | ||
- | {{auth:printer-list.png}} | + | Open your preferred browser and type this address: |
- | Next you need to create/add to / | + | * localhost: |
- | Example | + | Follow this guides as shown on the next screen shots |
- | < | + | ^Select Add Printer |
- | <Printer | + | |{{: |
- | Info **HP LaserJet 4050 Series** | + | ^Enter Connection smb URI, Domain, YOUR username and password! ^ Name, Description and Location |
- | Location | + | |{{:auth:03-enter-connection-string.png? |
- | DeviceURI smb:// | + | ^Select Make Generic ^Select Printer Driver Generic Postscript^ |
- | State Idle | + | |{{:auth:05-choose-make.png? |
- | StateTime 1178615467 | + | ^Modify Options^ |
- | Accepting Yes | + | |{{: |
- | Shared Yes | + | |
- | JobSheets none none | + | |
- | QuotaPeriod 0 | + | |
- | PageLimit 0 | + | |
- | KLimit 0 | + | |
- | OpPolicy default | + | |
- | ErrorPolicy retry-job | + | |
- | </Printer> | + | |
- | </ | + | |
- | You have to modify the following parameters: | ||
- | <code> | + | <note important>Check that the cups printer |
- | <Printer A103>: name of the printer | + | |
- | Info HP LaserJet 4050 Series: Info about the printer, type etc. | + | |
- | Location Library: Where is the printer located | + | |
- | DeviceURI smb:// | + | |
- | </code> | + | |
- | Example: | + | smb:// |
- | < | + | In a terminal type: |
- | <Printer A103> | + | |
- | Info HP LaserJet 4050 Series | + | |
- | Location Library | + | |
- | DeviceURI smb:// | + | |
- | </ | + | |
- | Last restart the cupsys daemon: | + | sudo cat / |
- | sudo / | + | Restart cups daemon: |
+ | sudo / | ||
- | ===== Mac OSX ===== | + | === Remove clear password from / |
- | ==== Mac OSX via IPP ==== | + | <note important> |
- | Open the preference panel and select "Print & Fax" and press the " | + | Open the config file and make the following modifications: |
- | {{auth: | + | * sudo vi / |
- | Choose "IP Printer" | + | Place this line in: |
- | In the address field put " | + | < |
+ | AuthInfoRequired username, | ||
+ | </ | ||
+ | Next search for the the DeviceURI line and substitute it | ||
+ | with this line. | ||
+ | < | ||
+ | DeviceURI smb:// | ||
+ | </ | ||
+ | ---- | ||
- | {{auth: | ||
- | |||
- | and in the " | ||
- | ^model^location^alias^queue| | ||
- | |HP4050|1st floor left|admin|/ | ||
- | |HP4350|2st floor left|krdb|/ | ||
- | |HP4100|2st floor right|dis|/ | ||
- | |HP3700|1st floor right|case|/ | ||
- | |HP5550|1st floor left|admin-color|/ | ||
- | |||
- | and then choose the printer model accordingly, | ||
- | |||
- | ==== Mac OSX via Samba ==== | ||
- | |||
- | Mac OS X v10.5 or later | ||
- | |||
- | 1. Choose System Preferences from the Apple menu. | ||
- | 2. Choose Print & Fax from the View menu. | ||
- | 3. Click the + button to add a printer. | ||
- | {{auth: | + | ==== Printing |
- | 4. Press the Control key while clicking the " | + | https://www.inf.unibz.it/wiki/auth/ |
- | then choose Customize Toolbar from the contextual menu that appears. | + | |
- | 5. Drag the Advanced (gear) icon to the toolbar. | + | |
- | 6. Click Done. | + | |
- | 7. Click the Advanced icon that was added to the toolbar. | + | |
- | 8. Choose Windows from the Type pop-up menu. | + | |
- | + | ||
- | {{auth: | + | |
- | + | ||
- | 9. In the URL field, type the printer' | + | |
- | smb:// | ||
- | 10. In the Name field, type the name you would like to use for this printer in Mac OS X. | + | ===== Windows 7 and Mac OSX ===== |
- | 11. Choose the appropriate PPD or printer driver from the " | + | |
- | 12. Click Add. | + | |
- | To get a list of Print queue names on ubz02prn you can use the terminal and type the following command: | + | [[http:// |
+ | Home>To Computer & Internet> | ||
- | smbutil view //mylogin@ubz02prn.unibz.it | + | List of old and new printer names:\\ |
+ | http://www.unibz.it/ | ||
/data/www/wiki.inf.unibz.it/data/pages/auth/setup_printers.txt · Last modified: 2023/04/18 16:23 by kohofer