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 [2012/01/18 16:48] – kohofer | auth:setup_printers [2012/12/06 17:03] – [PRINTING via KERBEROS (using a Windows Print Server)] kohofer | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | ===== Guest ===== | + | ===== LINUX ===== |
- | ubz02prn and gutenberg.inf.unibz.it are now open form the guest wlan. Guests created by the Faculty Administration are added automatically to the Guest_Print_CS group and this group has access only to the printer in the POS building. | ||
+ | ===== PRINTING via KERBEROS (using a Windows Print Server) ===== | ||
- | ===== Windows ===== | + | Follow the Guide lines as described in the link below |
- | ==== Computer joined to UNIBZ domain ==== | + | https:// |
- | *Step 1 | + | Before you can print YOU MUST get a Kerberos ticket |
- | {{printers1.jpg|: | + | |
- | *Step 2 | + | * kinit < |
- | {{printers2.jpg|: | + | |
- | *Step 3 | + | Check if you got a correct ticket |
- | {{printers3.jpg|: | + | |
- | *Step 4 | + | * klist |
- | {{printers4.jpg|: | + | |
- | *Step 5 | + | < |
- | | + | Ticket cache: FILE:/ |
+ | Default principal: < | ||
- | *Step 6 | + | Valid starting |
- | | + | 06/12/2012 17:01 07/12/2012 03:01 krbtgt/ |
+ | renew until 07/12/2012 03:01 | ||
- | *Step 7 | + | </ |
- | | + | ---- |
- | ==== Computer not joined to UNIBZ domain ==== | ||
- | If your PC has not joined the domain, you will need to connect to ubz02prn | + | ===== PRINTING VIA CUPS (using a Linux Print Server) ====== |
- | and double click on one of the printers in the list in order to install it. | + | |
- | **You will of course need a valid account to connect to the printserver!** | + | First get the name(s) |
- | To connect to ubz02prn, open Explorer and type \\ubz02prn.unibz.it: | + | < |
+ | http:// | ||
+ | </ | ||
- | {{ : | ||
- | <note important> | + | Open your preferred browser and type this address: |
- | </ | + | |
- | ===== Linux ===== | + | * localhost: |
- | ==== KDE Cups Print Server ==== | + | Follow this guides as shown on the next screen shots |
- | Step 1 | ||
- | Open a konsole | + | ^Select Add Printer ^Enter local username (must be in admin/sudo group) |
+ | |{{:auth: | ||
+ | ^Enter Connection string e.g. http:// | ||
+ | |{{: | ||
+ | ^Select Make ^Select Driver^ | ||
+ | |{{: | ||
- | | + | Last select newly added printer; Click on **Administration**\\ |
+ | and select: **Set Default Options** | ||
- | The KDE Print Manager Window opens. Now Select '' | ||
- | {{kde_printmanager.jpg|: | + | ---- |
- | Step 2 | ||
- | Select the settings in the next 6 Windows | ||
- | {{add_printer_wizard.jpg|: | + | ===== PRINTING VIA SAMBA (using a Windows Print Server) ===== |
- | {{add_printer_wizard3.jpg|: | + | <note important> |
- | {{add_printer_wizard5.jpg|:add_printer_wizard5.jpg}}{{add_printer_wizard6.jpg|: | + | First get the name(s) of the printer(s) you want to use: |
- | Step 3 | + | To get the printer names use smbclient. If the program is not installed do: |
- | Configure the Printer, see next 6 Windows | + | * apt-get update; apt-get install smbclient |
- | {{configure_printer.jpg|:configure_printer.jpg}}{{configure_printer2-1.jpg|: | + | Now execute this line to get a list of the printer names: |
- | {{configure_printer3.jpg|: | + | * smbclient -L \\< |
- | {{configure_printer5.jpg|: | + | e.g. |
- | ==== Add Printer using CUPS via Samba ==== | + | * smbclient -L \\print.unibz.it -U bgates -W unibz |
- | === Chip Card Printer | + | Printer |
+ | < | ||
+ | UBZ 066 POS 300 | ||
+ | | | | ||
+ | | | | ||
- | **IMPORTANT!** | + | | |-> |
- | <note important>member of the admin group</note> | + | |->UBZ University Site Bolzano |
+ | </code> | ||
- | <note important> | + | A list of old and new printer names you can find here: http:// |
- | smb://< | + | Now that you know the name of the printer, you can starting adding a printer. |
- | + | ||
- | e.g. smb:// | + | |
- | <note warning> | ||
- | because it is necessary to store the password in clear!</ | ||
- | **PROCEDURE** | + | SMB URI |
+ | < | ||
+ | smb:// | ||
+ | </ | ||
- | * Open your preferred browser and type this address: | ||
- | localhost:631 | + | Open your preferred browser and type this address: |
- | * Follow this guides as shown on the next screen shots | + | * localhost: |
- | ^ Select Add Printer | + | Follow this guides as shown on the next screen shots |
- | | {{: | + | |
- | ^ Select | + | ^Select |
- | | {{:auth:cps2.png|Select Windows | + | |{{: |
+ | ^Chose how to connect to Printer ^Enter Connection String SMB URI, enter Domain unibz, YOUR username and password!^ | ||
+ | |{{:playground:03-add_printer-cups_uri.png? | ||
+ | ^Enter Name, Description and Location ^Select Make of Printer^ | ||
+ | |{{: | ||
+ | ^Select Driver ^Set initial default Options^ | ||
+ | |{{: | ||
+ | ^Set Default Options^ | ||
+ | |{{: | ||
- | ^ Select Manufacture Generic ^ Select Printer Driver Generic Postscript ^ | + | Check that the cups printer config file printers contains the string: |
- | | {{:auth: | + | |
- | ^ A window will appear asking for username and password ener yours ^ Set Printer Options ^ | + | < |
- | | {{:auth:cps6.png|Enter login and password}} | {{: | + | smb:// |
+ | </ | ||
- | | + | In a terminal type: |
+ | | ||
- | | + | Restart cups daemon: |
- | ==== How to connect to a Samba Print Server ==== | + | * sudo / |
- | First get the name(s) of the printer(s). | + | === Remove clear password from / |
- | To get the printer names use a Samba share browser like LinNeighborhood or use | + | <note important> |
- | smbclient with the following options: | + | |
- | smbclient -L \\< | ||
- | Using Kerberos (aka kinit) | + | Open the config file and make the following modifications: |
- | | + | |
+ | 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:// | ||
+ | </ | ||
- | * Install: | + | ---- |
- | + | ||
- | sudo aptitude install linneighborhood | + | |
- | * Start: | + | ===== CHIPCARD PRINTER (using a Windows Print Server) ===== |
- | LinNeighborhood | + | <note important> |
- | - Press Add: | + | SMB URI |
+ | < | ||
+ | smb:// | ||
+ | </ | ||
- | * 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 | ||
- | {{auth:add-machine.png}} | + | Open your preferred browser and type this address: |
- | * Select the Samba Print Server and choose scan as user | + | * localhost: |
- | {{auth: | + | Follow this guides as shown on the next screen shots |
- | * Fill in domain, username and password and press OK. | + | ^Select Add Printer from Administration Menu ^Chose how to connect to Printer^ |
+ | |{{: | ||
+ | ^Enter Connection smb URI, Domain, YOUR username and password! ^ Name, Description | ||
+ | |{{: | ||
+ | ^Select Make Generic ^Select Printer Driver Generic Postscript^ | ||
+ | |{{: | ||
+ | ^Modify Options^ | ||
+ | |{{: | ||
- | {{auth: | ||
- | Now you should have a list with all printers | + | <note important> |
- | {{auth:printer-list.png}} | + | smb:// |
- | Next you need to create/add to / | + | In a terminal type: |
- | Example | + | sudo cat / |
- | < | + | Restart cups daemon: |
- | <Printer **A103**> | + | |
- | Info **HP LaserJet 4050 Series** | + | |
- | Location **Library** | + | |
- | DeviceURI smb:// | + | |
- | State Idle | + | |
- | StateTime 1178615467 | + | |
- | Accepting Yes | + | |
- | Shared Yes | + | |
- | JobSheets none none | + | |
- | QuotaPeriod 0 | + | |
- | PageLimit 0 | + | |
- | KLimit 0 | + | |
- | OpPolicy default | + | |
- | ErrorPolicy retry-job | + | |
- | </ | + | |
- | </ | + | |
- | You have to modify the following parameters: | + | sudo / |
- | < | + | === Remove clear password from /etc/cups/printers.conf config file === |
- | <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://username: | + | |
- | </ | + | |
- | Example: | + | <note important> |
+ | Open the config file and make the following modifications: | ||
+ | |||
+ | * sudo vi / | ||
+ | |||
+ | Place this line in: | ||
< | < | ||
- | <Printer A103> | + | AuthInfoRequired username, |
- | Info HP LaserJet 4050 Series | + | </code> |
- | Location Library | + | Next search for the the DeviceURI line and substitute it |
- | DeviceURI smb://bgates: | + | with this line. |
+ | < | ||
+ | DeviceURI smb://ubz02cps.unibz.it/CPSPrn01 | ||
</ | </ | ||
- | Last restart the cupsys daemon: | + | ---- |
- | + | ||
- | sudo / | + | |
- | + | ||
- | + | ||
- | ===== Mac OSX ===== | + | |
- | + | ||
- | ==== Mac OSX via IPP ==== | + | |
- | + | ||
- | Open the preference panel and select "Print & Fax" and press the " | + | |
- | + | ||
- | {{auth: | + | |
- | + | ||
- | Choose "IP Printer" | + | |
- | In the address field put " | + | |
- | + | ||
- | + | ||
- | {{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|/ | + | |
- | |HP4350|3rd floor left|krdb-2|/ | + | |
- | + | ||
- | 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