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 [2009/10/21 10:52] – kohofer | auth:setup_printers [2012/12/06 17:16] – [PRINTING via KERBEROS (using a Windows Print Server)] kohofer | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Setup Printers | + | ====== SETUP PRINTER ====== |
- | ===== Windows | + | ===== LINUX ===== |
- | ==== Computer joined to UNIBZ domain | + | |
- | *Step 1 | ||
- | {{printers1.jpg|: | ||
- | *Step 2 | + | ===== PRINTING via KERBEROS (using a Windows Print Server) ===== |
- | {{printers2.jpg|: | + | |
- | *Step 3 | + | Follow the steps as described in the link below |
- | {{printers3.jpg|: | + | |
- | *Step 4 | + | https:// |
- | {{printers4.jpg|:printers4.jpg}} | + | |
- | *Step 5 | + | ==== Cups printer setup and URI format ==== |
- | {{printers5.jpg|: | + | |
- | *Step 6 | + | Now add a printer using cups (localhost:631) |
- | {{printers6.jpg|:printers6.jpg}} | + | |
- | *Step 7 | + | In cups select '' |
- | {{printers7.jpg|: | + | |
- | ==== Computer not joined to UNIBZ domain ===== | + | krbsmb:// |
- | If your PC has not joined the domain, you will need to connect to ubz02prn | + | e.g. |
- | 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!** | + | krbsmb:// |
- | To connect to ubz02prn, open Explorer | + | Continue by selecting Printer Make, Printer Driver |
- | {{printers.jpg|: | + | ---- |
- | ====== Linux ====== | ||
- | ==== KDE Cups Print Server ==== | + | ===== PRINTING VIA CUPS (using a Linux Print Server) ====== |
- | Step 1 | + | First get the name(s) of the available printer(s): |
- | Open a konsole and type the following command: | + | < |
+ | http:// | ||
+ | </ | ||
- | | ||
- | The KDE Print Manager Window opens. Now Select '' | + | Open your preferred browser |
- | {{kde_printmanager.jpg|:kde_printmanager.jpg}} | + | * localhost:631 |
- | Step 2 | + | Follow this guides as shown on the next screen shots |
- | Select the settings in the next 6 Windows | ||
- | {{add_printer_wizard.jpg|:add_printer_wizard.jpg}}{{add_printer_wizard2.jpg|:add_printer_wizard2.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^ | ||
+ | |{{: | ||
- | {{add_printer_wizard3.jpg|:add_printer_wizard3.jpg}}{{add_printer_wizard4.jpg|: | + | Last select newly added printer; Click on **Administration**\\ |
+ | and select: **Set Default Options** | ||
- | {{add_printer_wizard5.jpg|: | ||
- | Step 3 | + | ---- |
- | Configure the Printer, see next 6 Windows | ||
- | {{configure_printer.jpg|: | ||
- | {{configure_printer3.jpg|: | + | ===== PRINTING VIA SAMBA (using a Windows Print Server) ===== |
- | {{configure_printer5.jpg|: | + | <note important> |
- | ==== Add Printer using CUPS via Samba ==== | + | First get the name(s) of the printer(s) you want to use: |
- | Prerequisite: | + | To get the printer names use smbclient. If the program is not installed do: |
- | - member of the admin group | + | * apt-get update; apt-get install smbclient |
- | Caution: | + | Now execute this line to get a list of the printer names: |
- | This procedure is only recommended for users with their own Notebook/ | + | * smbclient -L \\< |
- | because it is necessary to store the password in clear! | + | |
- | 1. Open your preferred browser and type this address: | + | e.g. |
- | | + | |
- | 2. Follow this guides as shown on the next screen shots | + | Printer naming scheme: |
+ | < | ||
+ | UBZ 066 POS 300 | ||
+ | | | | ||
- | {{: | + | | |
+ | | |-> | ||
+ | |->UBZ University Site Bolzano | ||
+ | </ | ||
- | ==== How to connect to a Samba Print Server ==== | + | A list of old and new printer names you can find here: http:// |
- | First get the name(s) of the printer(s). | + | Now that you know the name of the printer, you can starting adding a printer. |
- | To get the printer names use a Samba share browser like LinNeighborhood or use | ||
- | smbclient with the following options: | ||
- | smbclient -L \\<windowsprintserver> -U <windowsuser> -W <domain> > printer_list.txt | + | SMB URI |
+ | <file> | ||
+ | smb:// | ||
+ | </file> | ||
- | Using Kerberos (aka kinit) | ||
- | smbclient -L \\< | + | Open your preferred browser and type this address: |
+ | * localhost: | ||
- | * Install: | + | Follow this guides as shown on the next screen shots |
- | + | ||
- | sudo aptitude install linneighborhood | + | |
- | * Start: | + | ^Select Add Printer from Administration Menu ^Chose how to connect to Printer^ |
+ | |{{:playground: | ||
+ | ^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^ | ||
+ | |{{: | ||
- | LinNeighborhood | ||
- | - Press Add: | + | Check that the cups printer config file printers contains the string: |
- | * 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 | + | < |
+ | smb:// | ||
+ | </ | ||
- | {{auth:add-machine.png}} | + | In a terminal type: |
+ | * sudo cat / | ||
- | | + | Restart cups daemon: |
+ | | ||
- | {{auth: | + | === Remove clear password from / |
- | * Fill in domain, | + | <note important> |
- | {{auth: | ||
- | Now you should have a list with all printers attached to the Samba Printer Server. | + | Open the config file and make the following modifications: |
- | {{auth: | + | * sudo vi / |
- | + | ||
- | Next you need to create/add to / | + | |
- | + | ||
- | Example | + | |
+ | Place this line in: | ||
< | < | ||
- | <Printer **A103**> | + | AuthInfoRequired |
- | Info **HP LaserJet 4050 Series** | + | |
- | Location **Library** | + | |
- | DeviceURI smb://**username**:**password**@UNIBZ/ | + | |
- | State Idle | + | |
- | StateTime 1178615467 | + | |
- | Accepting Yes | + | |
- | Shared Yes | + | |
- | JobSheets none none | + | |
- | QuotaPeriod 0 | + | |
- | PageLimit 0 | + | |
- | KLimit 0 | + | |
- | OpPolicy default | + | |
- | ErrorPolicy retry-job | + | |
- | </ | + | |
</ | </ | ||
- | + | Next search for the the DeviceURI line and substitute it | |
- | You have to modify | + | with this line. Please remember |
< | < | ||
- | <Printer A103>: name of the printer | + | DeviceURI smb://print.unibz.it/<printername> |
- | Info HP LaserJet 4050 Series: Info about the printer, type etc. | + | |
- | Location Library: Where is the printer located | + | |
- | DeviceURI smb://username: | + | |
</ | </ | ||
- | Example: | + | ---- |
- | < | + | ===== CHIPCARD PRINTER (using a Windows Print Server) ===== |
- | <Printer A103> | + | |
- | Info HP LaserJet 4050 Series | + | |
- | Location Library | + | |
- | DeviceURI smb:// | + | |
- | </ | + | |
- | Last restart | + | <note important> |
- | sudo /etc/init.d/cupsys restart | + | SMB URI |
+ | < | ||
+ | smb://domain\username: | ||
+ | </file> | ||
- | ==== MacOsX ==== | + | Open your preferred browser and type this address: |
+ | * localhost: | ||
- | Open the preference panel and select "Print & Fax" and press the " | + | Follow this guides as shown on the next screen shots |
- | {{auth:osx_printer1.png|}} | + | ^Select Add Printer from Administration Menu ^Chose how to connect to Printer^ |
+ | |{{:auth:01-add-printer.png? | ||
+ | ^Enter Connection smb URI, Domain, YOUR username and password! ^ Name, Description and Location Names^ | ||
+ | |{{: | ||
+ | ^Select Make Generic ^Select Printer Driver Generic Postscript^ | ||
+ | |{{: | ||
+ | ^Modify Options^ | ||
+ | |{{: | ||
- | Choose "IP Printer" | ||
- | In the address field put " | ||
+ | <note important> | ||
- | {{auth:osx_printer2.png|}} | + | smb:// |
- | and in the " | + | In a terminal type: |
- | ^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, | + | sudo cat / |
+ | Restart cups daemon: | ||
+ | sudo / | ||
- | ==== MacOsX via Samba ==== | + | === Remove clear password from / |
- | Open the preference panel and select "Print & Fax" and press the " | + | <note important> |
- | {{auth:osx_printer1.png|}} | + | Open the config file and make the following modifications: |
- | While holding the option (alt) key press **More Printers** and chose **Advanced** from the topmost dropdown menu. Then choose as Device **Windows Printer via SAMBA**, insert a device name and as DeviceURI < | + | |
- | {{auth:osx_printer_samba2.png|}} | + | Place this line in: |
+ | < | ||
+ | AuthInfoRequired username, | ||
+ | </ | ||
+ | Next search for the the DeviceURI line and substitute it | ||
+ | with this line. | ||
+ | < | ||
+ | DeviceURI smb:// | ||
+ | </ | ||
+ | ---- | ||
- | To get a list of Printqueuenames on ubz02prn you can use the terminal and type the following command: | ||
- | < | + | ==== Printing of private and confidential Documents ==== |
- | smbutil view //mylogin@ubz02prn.unibz.it | + | |
- | </code> | + | https://www.inf.unibz.it/ |
+ | |||
+ | |||
+ | ===== Windows 7 and Mac OSX ===== | ||
+ | |||
+ | [[http:// | ||
+ | Home>To Computer & Internet> | ||
+ | |||
+ | List of old and new printer names:\\ | ||
+ | http:// |
/data/www/wiki.inf.unibz.it/data/pages/auth/setup_printers.txt · Last modified: 2023/04/18 16:23 by kohofer