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/11/29 13:24] – kohofer | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | ===== Windows | + | ===== LINUX ===== |
- | ==== Computer joined to UNIBZ domain ==== | ||
+ | ===== PRINTING VIA CUPS (using a Linux Print Server) ====== | ||
- | *Step 1 | + | First get the name(s) of the available printer(s): |
- | {{printers1.jpg|:printers1.jpg}} | + | |
- | *Step 2 | + | < |
- | | + | http://gutenberg.inf.unibz.it: |
+ | </ | ||
- | *Step 3 | ||
- | {{printers3.jpg|: | ||
- | *Step 4 | + | Open your preferred browser and type this address: |
- | {{printers4.jpg|:printers4.jpg}} | + | |
- | *Step 5 | + | * localhost:631 |
- | {{printers5.jpg|:printers5.jpg}} | + | |
- | *Step 6 | + | Follow this guides as shown on the next screen shots |
- | {{printers6.jpg|: | + | |
- | *Step 7 | ||
- | {{printers7.jpg|: | ||
- | ==== Computer not joined to UNIBZ domain ==== | + | ^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^ | ||
+ | |{{: | ||
- | If your PC has not joined the domain, you will need to connect to ubz02prn | + | Last select newly added printer; Click on **Administration**\\ |
- | and double click on one of the printers in the list in order to install it. | + | and select: **Set Default Options** |
- | **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|: | ||
- | <note important> | ||
- | </ | ||
- | ===== Linux ===== | + | ===== PRINTING VIA SAMBA (using a Windows Print Server) |
- | ==== KDE Cups Print Server ==== | + | <note important> |
- | Step 1 | + | First get the name(s) of the printer(s) you want to use: |
- | Open a konsole and type the following command: | + | To get the printer names use smbclient. If the program is not installed do: |
- | | + | * apt-get update; apt-get install smbclient |
- | The KDE Print Manager Window opens. | + | Now execute this line to get a list of the printer names: |
- | {{kde_printmanager.jpg|: | + | * smbclient -L \\< |
- | Step 2 | + | e.g. |
- | Select the settings in the next 6 Windows | + | * smbclient -L \\print.unibz.it -U bgates -W unibz |
- | {{add_printer_wizard.jpg|:add_printer_wizard.jpg}}{{add_printer_wizard2.jpg|: | + | Printer naming scheme: |
+ | < | ||
+ | UBZ 066 POS 300 | ||
+ | | | ||
- | {{add_printer_wizard3.jpg|: | + | | | |->POS Building |
- | {{add_printer_wizard5.jpg|: | + | | |-> |
- | Step 3 | + | |->UBZ University Site Bolzano |
+ | </ | ||
- | Configure the Printer, see next 6 Windows | + | A list of old and new printer names you can find here: http:// |
- | {{configure_printer.jpg|: | + | Now that you know the name of the printer, you can starting adding a printer. |
- | {{configure_printer3.jpg|: | ||
- | {{configure_printer5.jpg|:configure_printer5.jpg}}{{configure_printer6.jpg|: | + | SMB URI |
+ | < | ||
+ | smb:// | ||
+ | </ | ||
- | ==== Add Printer using CUPS via Samba ==== | ||
- | === Chip Card Printer === | + | Open your preferred browser and type this address: |
- | Prerequisite: | + | * localhost:631 |
- | <note important> | + | Follow this guides as shown on the next screen shots |
- | <note warning> | + | ^Select Add Printer from Administration Menu ^Chose how to connect to Printer^ |
- | because it is necessary | + | |{{: |
+ | ^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^ | ||
+ | |{{: | ||
- | 1. Open your preferred browser and type this address: | ||
- | localhost:631 | + | Check that the cups printer config file printers contains the string: |
- | 2. Follow this guides as shown on the next screen shots | + | < |
+ | smb:// | ||
+ | </ | ||
- | ^ Select Add Printer | + | In a terminal type: |
- | | {{: | + | * sudo cat / |
- | ^ Select Windows Printer via Samba ^ Device URI, replace with your username and password ^ | + | Restart cups daemon: |
- | | {{: | + | * sudo /etc/init.d/cups restart |
- | ^ Select Manufacture Generic ^ Select Printer Driver Generic Postscript ^ | + | === Remove clear password from / |
- | | {{: | + | |
- | ^ A window will appear asking for username and password | + | <note important> |
- | | {{: | + | |
- | 3. Restart cupsys daemon: | ||
- | sudo / | + | Open the config file and make the following modifications: |
- | ---- | + | * sudo vi / |
- | ==== How to connect to a Samba Print Server ==== | + | Place this line in: |
+ | < | ||
+ | AuthInfoRequired username, | ||
+ | </ | ||
+ | Next search for the the DeviceURI line and substitute it | ||
+ | with this line. Please remember | ||
+ | < | ||
+ | DeviceURI smb:// | ||
+ | </ | ||
- | First get the name(s) of the printer(s). | + | ---- |
- | To get the printer names use a Samba share browser like LinNeighborhood or use | + | ===== CHIPCARD PRINTER (using |
- | smbclient with the following options: | + | |
- | smbclient -L \\<windowsprintserver> -U <windowsuser> -W < | + | <note important>Your user must be a member of the admin/sudo group</note> |
- | Using Kerberos (aka kinit) | + | SMB URI |
+ | < | ||
+ | smb:// | ||
+ | </ | ||
- | smbclient -L \\< | ||
+ | Open your preferred browser and type this address: | ||
- | * Install: | + | * localhost:631 |
- | + | ||
- | sudo aptitude install linneighborhood | + | |
- | * Start: | + | Follow this guides as shown on the next screen shots |
- | LinNeighborhood | + | ^Select Add Printer from Administration Menu ^Chose how to connect to Printer^ |
+ | |{{: | ||
+ | ^Enter Connection smb URI, Domain, YOUR username and password! ^ Name, Description and Location Names^ | ||
+ | |{{: | ||
+ | ^Select Make Generic ^Select Printer Driver Generic Postscript^ | ||
+ | |{{: | ||
+ | ^Modify Options^ | ||
+ | |{{: | ||
- | - Press Add: | ||
- | * 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 | + | <note important> |
- | {{auth:add-machine.png}} | + | smb:// |
- | * Select the Samba Print Server and choose scan as user | + | In a terminal type: |
- | {{auth: | + | sudo cat / |
- | * Fill in domain, username and password and press OK. | + | Restart cups daemon: |
- | {{auth: | + | sudo /etc/init.d/cups restart |
- | Now you should have a list with all printers | + | === Remove clear password from /etc/cups/printers.conf config file === |
- | {{auth:printer-list.png}} | + | <note important> |
- | Next you need to create/add to / | + | Open the config |
- | Example | + | * sudo vi / |
+ | 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. |
< | < | ||
- | <Printer A103>: name of the printer | + | DeviceURI smb://ubz02cps.unibz.it/CPSPrn01 |
- | Info HP LaserJet 4050 Series: Info about the printer, type etc. | + | |
- | Location Library: Where is the printer located | + | |
- | DeviceURI smb://username: | + | |
</ | </ | ||
- | Example: | + | ---- |
- | + | ||
- | < | + | |
- | <Printer A103> | + | |
- | Info HP LaserJet 4050 Series | + | |
- | Location Library | + | |
- | DeviceURI smb:// | + | |
- | </ | + | |
- | + | ||
- | 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|/ | + | |
- | + | ||
- | 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