User Tools

Site Tools


auth:setup_printers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
auth:setup_printers [2012/11/15 17:33] – external edit 127.0.0.1auth:setup_printers [2016/11/25 13:44] – [Windows 7 and Mac OSX] kohofer
Line 1: Line 1:
-====== Setup Printers ======+====== SETUP PRINTER UNDER LINUX ======
  
-===== Guest ===== 
  
-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. 
  
 +===== 1. PRINTING via SAMBA (using a Windows Print Server) =====
  
-===== Windows =====+<note important>Your user must be a member of the admin/sudo group</note>
  
-==== Computer joined to UNIBZ domain ====+First get the name(s) of the printer(s) you want to use:
  
 +To get the printer names use smbclient. If the program is not installed do:
  
-  *Step 1 +  * apt-get update; apt-get install smbclient
-  {{printers1.jpg|:printers1.jpg}}+
  
-  *Step 2 +Now execute this line to get a list of the printer names:
-  {{printers2.jpg|:printers2.jpg}}+
  
-  *Step 3 +  * smbclient -L \\<windowsprintserver> -U <unibz-login> -W <domain>
-  {{printers3.jpg|:printers3.jpg}}+
  
-  *Step 4 +e.g.
-  {{printers4.jpg|:printers4.jpg}}+
  
-  *Step 5 +  * smbclient -L \\print.unibz.it -U bgates -W unibz
-  {{printers5.jpg|:printers5.jpg}}+
  
-  *Step 6 +Printer naming scheme: 
-  {{printers6.jpg|:printers6.jpg}}+<code> 
 +UBZ 066 POS 300 
 +       |-> Room number
  
-  *Step 7 +|    |   |->POS Building
-  {{printers7.jpg|:printers7.jpg}}+
  
-==== Computer not joined to UNIBZ domain ====+|    |->IP-Adress
  
-If your PC has not joined the domain, you will need to connect to ubz02prn +|->UBZ University Site Bolzano 
-and double click on one of the printers in the list in order to install it.+</code>
  
-**You will of course need a valid account to connect to the printserver!**+A list of old and new printer names you can find here: http://www.unibz.it/en/ict/Documents/PrinterList.pdf
  
-To connect to ubz02prnopen Explorer and type \\ubz02prn.unibz.it:+Now that you know the name of the printeryou can starting adding a printer.
  
-{{ :auth:ubz02prn.png?600 |Windows Print Server ubz02prn}} 
  
-<note important>For guest users make sure they are in the **guest_print_cs** group! +SMB URI 
-</note>+<file> 
 +smb://unibz/print.unibz.it/<printername
 +</file>
  
-===== Linux ===== 
  
-==== Add Printer using Browser (localhost) Printer Server ====+Open your preferred browser and type this address:
  
-Open browser and go to: http://localhost:631 Click on TAB **Administration** Select **Add Printer**+  * localhost:631
  
-{{:auth:0_add-new-printer_w-browser.png?direct&600|}}+Follow this guides as shown on the next screen shots
  
-Enter local **username** (must be in admin/sudo group) and local **password**+^Select Add Printer from Administration Menu ^Chose how to connect to Printer^ 
 +|{{:auth:01_Add-Printer.png?direct&500|Select Add Printer from Administration Menu}}|{{:auth:02_Enter-username-and-password.png?direct&500|Enter your local login and password}}| 
 +^Chose how to connect to Printer ^Enter Connection String SMB URI, enter Domain unibz, YOUR username and password!^ 
 +|{{:auth:03_Windows-Printer-via-SAMBA.png?direct&500|Chose how to connect to Printer}}|{{:auth:04_Connection-String.png?direct&500|Enter Connection String SMB URI, enter Domain unibz, YOUR username and password!}}| 
 +^Enter Name, Description and Location ^Select Make of Printer^ 
 +|{{:auth:05_Name-Description-Location.png?direct&500|Enter Name, Description and Location}}|{{:auth:06_Make.png?direct&500|Select Make of Printer}}| 
 +^Select Driver ^Set initial default Options^ 
 +|{{:auth:07_Model.png?direct&500|Select Driver}}|{{:auth:08_Set-Printer-Options1.png?direct&500|Set initial default Options}}| 
 +^Set Default Options^ 
 +|{{:auth:09_Set-Printer-Options2.png?direct&500|Set Default Options}}|{{:auth:10_Printers.png?direct&500|Printer}}|
  
-{{:auth:1_add-new-printer_w-browser.png?direct&600|}} 
  
-Enter Connection string e.g. http://gutenberg.inf.unibz.it:631/printers/3352_SERK000\\ +When printing from an Application an Authentication Window will/should pop upIf no Window pops up, you should 
-For other printers open new tab in browser http://gutenberg.inf.unibz.it:631/printers \\ +check the taskbar for Printer Icon, select it and release the print job by typing your login & password.
-right click on printer name under Queue Name and select **Copy Link Location** \\ +
-Go back to tab localhost:631 and paste in Connection field.\\ +
-Press **Continue**+
  
-{{:auth:2_add-new-printer_w-browser.png?direct&600|}}+Enter your unibz username and password!
  
-Fill out all 3 fields! Press **Continue**+{{:auth:Print-Authentication.png?direct&500|Enter username and password}}
  
-{{:auth:3_add-new-printer_w-browser.png?direct&600|}}+----
  
-Choose Printer Make! Press **Continue** 
  
-{{:auth:4_add-new-printer_w-browser.png?direct&600|}} 
  
-Choose Printer Model! Press **Continue**+===== 2. PRINTING via KERBEROS (using a Windows Print Server) =====
  
-{{:auth:5_add-new-printer_w-browser.png?direct&600|}}+Follow the steps as described in the link below
  
-Finally select newly added printer; Click on **Administration**\\ +https://www.inf.unibz.it/wiki/tech/documentation/sysadmin/linux/printing_to_windows_print_server?s[]=krbsmb
-and select**Set Default Options**+
  
-Done!+==== Cups printer setup and URI format ====
  
-==== KDE Cups Print Server ====+Now add a printer using cups (localhost:631)
  
-Step 1+In cups select ''Kerberized Printer'' and the uri format is
  
-Open a konsole and type the following command:+  krbsmb://DOMAIN/PRINTSERVER/PRINTER_SHARE
  
- kcmshell printmgr+e.g.
  
-The KDE Print Manager Window opens. Now Select ''Add'' from the right menu and choose ''Add Printer/Class ...''+  krbsmb://unibz/print.unibz.it/UBZ066POS300
  
-{{kde_printmanager.jpg|:kde_printmanager.jpg}}+Continue by selecting Printer Make, Printer Driver and set the Default Options
  
-Step 2+<note important>Important DO NOT forget to get a Kerberos Ticket manually!!</note>
  
-Select the settings in the next 6 Windows+[[https://www.inf.unibz.it/wiki/tech/documentation/sysadmin/linux/printing_to_windows_print_server?s[]=krbsmb#get_a_kerberos_ticket_manually|Get a Kerberos Ticket]]
  
-{{add_printer_wizard.jpg|:add_printer_wizard.jpg}}{{add_printer_wizard2.jpg|:add_printer_wizard2.jpg}}+----
  
-{{add_printer_wizard3.jpg|:add_printer_wizard3.jpg}}{{add_printer_wizard4.jpg|:add_printer_wizard4.jpg}} 
  
-{{add_printer_wizard5.jpg|:add_printer_wizard5.jpg}}{{add_printer_wizard6.jpg|:add_printer_wizard6.jpg}}+===== 3PRINTING VIA CUPS (using a Linux Print Server) ======
  
-Step 3+First get the name(s) of the available printer(s):
  
-Configure the Printer, see next 6 Windows+<code> 
 +http://gutenberg.inf.unibz.it:631/printers 
 +</code>
  
-{{configure_printer.jpg|:configure_printer.jpg}}{{configure_printer2-1.jpg|:configure_printer2-1.jpg}} 
  
-{{configure_printer3.jpg|:configure_printer3.jpg}}{{configure_printer4.jpg|:configure_printer4.jpg}}+Open your preferred browser and type this address
  
-{{configure_printer5.jpg|:configure_printer5.jpg}}{{configure_printer6.jpg|:configure_printer6.jpg}}+  * localhost:631
  
 +Follow this guides as shown on the next screen shots
  
-==== Add Printer using CUPS via Samba ==== 
  
-=== Chip Card Printer ===+^Select Add Printer ^Enter local username (must be in admin/sudo group) and local password^ 
 +|{{:auth:0_add-new-printer_w-browser.png?direct&500|Select Add Printer}}|{{:auth:1_add-new-printer_w-browser.png?direct&500|Enter local username (must be in admin/sudo group) and local password}}| 
 +^Enter Connection string e.g. http://gutenberg.inf.unibz.it:631/printers/<printername> ^ Name, Description and Location Names^ 
 +|{{:auth:2_add-new-printer_w-browser.png?direct&600|}}|{{:auth:3_add-new-printer_w-browser.png?direct&600|}}| 
 +^Select Make ^Select Driver^ 
 +|{{:auth:4_add-new-printer_w-browser.png?direct&600|}}|{{:auth:5_add-new-printer_w-browser.png?direct&600|}}|
  
 +Last select newly added printer; Click on **Administration**\\
 +and select: **Set Default Options**
  
-**IMPORTANT!** 
  
-<note important>member of the admin group</note>+----
  
-<note important>Alternative Device URI, in case URI below does NOT work!</note> 
  
-  smb://<domain>\<username>:<password>@ubz02cps/CPSPrn01 
-   
-  e.g. smb://unibz\freddy:TzB12-Ah@ubz02cps/CPSPrn01 
  
-<note warning>This procedure is only recommended for users with their own Notebook/Desktop, 
-because it is necessary to store the password in clear!</note> 
  
-**PROCEDURE** 
  
- * Open your preferred browser and type this address: +===== 4. CHIPCARD PRINTER (using a Windows Print Server) =====
  
-  localhost:631+<note important>Your user must be a member of the admin/sudo group</note>
  
-  * Follow this guides as shown on the next screen shots+SMB URI 
 +<file> 
 +smb://unibz/ubz02cps.unibz.it/CPSPrn01 
 +</file>
  
-^ Add Printer      ^ Select Backend ^ 
-| {{:auth:01-add-printer.png?direct&500|}} | {{:auth:02-choose-backend.png?direct&500|}} | 
- 
- 
-^ Enter Connection String SMB URI, enter Domain unibz, YOUR username and password! ^ Name, Description and Location Names^ 
-| {{:auth:03-enter-connection-string.png?direct500|}} | {{:auth:04-name-printer.png?direct500|}} | 
- 
- 
-^ Select Make Generic ^ Select Printer Driver Generic Postscript ^ 
-| {{:auth:05-choose-make.png?direct500|}} | {{:auth:06-choose-driver.png?direct500|}} | 
- 
- 
-^ Modify Options ^ 
-| {{:auth:07-set-options.png?direct500|}} | 
- 
- 
-<note important>Check that the cups printer config file printers contains the string:</note> 
- 
-  smb://domain\username:password@ubz02cps/CPSPrn01 
- 
-In a terminal type: 
- 
-  sudo cat /etc/cups/printers.conf | grep smb: 
- 
-Restart cups daemon: 
- 
-  sudo /etc/init.d/cups restart 
-==== How to connect to a Samba Print Server ==== 
- 
-First get the name(s) of the printer(s). 
- 
-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 
- 
-Using Kerberos (aka kinit) 
- 
-  smbclient -L \\<windowsprintserver> -k > printer_list.txt 
- 
- 
-  * Install: 
-   
-  sudo aptitude install linneighborhood 
- 
-  * Start: 
- 
-  LinNeighborhood 
- 
-- 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  
- 
-{{auth:add-machine.png}} 
- 
-  * Select the Samba Print Server and choose scan as user 
- 
-{{auth:linneighborhood.png}} 
- 
-  * Fill in domain, username and password and press OK. 
- 
-{{auth:scan-as-user.png}} 
- 
-Now you should have a list with all printers attached to the Samba Printer Server. 
- 
-{{auth:printer-list.png}} 
- 
-Next you need to create/add to /etc/cups/printers.conf file 
- 
-Example 
- 
-<code> 
-<Printer **A103**> 
-Info **HP LaserJet 4050 Series** 
-Location **Library** 
-DeviceURI smb://**username**:**password**@UNIBZ/UBZ02PRN/**printername** 
-State Idle 
-StateTime 1178615467 
-Accepting Yes 
-Shared Yes 
-JobSheets none none 
-QuotaPeriod 0 
-PageLimit 0 
-KLimit 0 
-OpPolicy default 
-ErrorPolicy retry-job 
-</Printer> 
-</code> 
- 
-You have to modify the following parameters: 
- 
-<code> 
-<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:password@UNIBZ/UBZ02PRN/printername: username, password and Printer Name. 
-</code> 
- 
-Example: 
- 
-<code> 
-<Printer A103> 
-Info HP LaserJet 4050 Series 
-Location Library 
-DeviceURI smb://bgates:forgotten@UNIBZ/UBZ02PRN/4250_A103 
-</code> 
  
-Last restart the cupsys daemon:+Open your preferred browser and type this address
  
-  sudo /etc/init.d/cupsys restart+  * localhost:631
  
 +Follow this guides as shown on the next screen shots
  
-===== Mac OSX =====+^Select Add Printer from Administration Menu ^Enter local username and password^ 
 +|{{:auth:01_Administration_cps.png?direct&500|Select Add Printer from Administration Menu}}|{{:auth:02_Enter-username-and-password.png?direct&500|Enter local username and password}}|
  
-==== Mac OSX via IPP ====+^Select Windows Printer via SAMBA ^Enter Connection smb URI^ 
 +|{{:auth:03_Add-Printer_cps.png?direct500|Select Windows Printer via SAMBA}}|{{:auth:04_Connection_cps.png?direct500|Enter Connection smb URI}}|
  
-Open the preference panel and select "Print & Fax" and press the "+" button+^Name, Description and Location Names ^Select Make Generic^ 
 +|{{:auth:05_Name-Description-Location_cps.png?direct500|Name, Description and Location Names}}|{{:auth:06_Make_cps.png?direct500|Select Make Generic}}|
  
-{{auth:osx_printer1.png|}}+^Select Printer Driver Generic Postscript ^Set Default Printer Options^ 
 +|{{:auth:07_Model_cps.png?direct500|Select Printer Driver Generic Postscript}}|{{:auth:08_Set-Printer-Options_cps.png?direct500|Set Default Printer Options}}|
  
-Choose "IP Printer" and then "Internet Printing Protocol" 
-In the address field put "gutenberg.inf.unibz.it:631" 
  
  
-{{auth:osx_printer2.png|}}+----
  
-and in the "queue" the path according to this table: 
-^model^location^alias^queue| 
-|DSM730|1st floor left|CASE-multifunction|/printers/DSM730| 
-|HP5550|1st floor left|CASE-color|/printers/5550_P103| 
-|MP3352|2nd floor right|DIS-multifunction|/printers/Aficio_MP3352| 
-|HP5550|2nd floor right|DIS-color|/printers/HP_Color_LaserJet_5550| 
-|RA2027|2nd floor left|KRDB-multifunction|/printers/Aficio_2027| 
-|HP4515|2nd floor left|KRDB-bw|/printers/P4515_P2L| 
-|HP4350|3rd floor left|KRDB-bw|/printers/HP_LJ4350| 
  
-and then choose the printer model accordingly, then press "Add"+==== Printing of private and confidential Documents ====
  
-==== Mac OSX via Samba ====+https://www.inf.unibz.it/wiki/auth/printing_of_private_and_confidential_documents
  
-Mac OS X v10.5 or later 
  
-   1. Choose System Preferences from the Apple menu. +===== Windows 7 and Mac OSX =====
-   2. Choose Print & Fax from the View menu. +
-   3. Click the + button to add a printer.+
  
-{{auth:osx_printer1.png|Printing Preferences}}+[[http://www.unibz.it/en/ict/ComputerInternet/network/printers/default.html| 
 +Home>To Computer & Internet>Computer - Network>Printers]]
  
-   4. Press the Control key while clicking the "Default" icon (or any other icon on the toolbar), +List of old and new printer names:\\ 
-      then choose Customize Toolbar from the contextual menu that appears. +http://www.unibz.it/en/ict/Documents/PrinterList.pdf
-   5Drag 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:osx_printer_samba2.png|Advanced Setup}} +
-    +
-   9. In the URL field, type the printer's address in the following format:+
  
-    smb://UNIBZ\mylogin:mypassword@ubz02prn.unibz.it/Printqueuename+===== Troubleshooting =====
  
-   10. In the Name field, type the name you would like to use for this printer in Mac OS X. +Mac OSX 10.11 El Capitan Ricoh Aficio printer
-   11. Choose the appropriate PPD or printer driver from the "Printer Model" pop-up menu. +
-   12. Click Add.+
  
-To get a list of Print queue names on ubz02prn you can use the terminal and type the following command:+http://flying-geek.blogspot.it/2016/05/getting-os-x-1011-el-capitan-printing.html
  
-  smbutil view //mylogin@ubz02prn.unibz.it +Update from Mavericks to El Capitan
  
 +https://discussions.apple.com/thread/7270354?tstart=0
/data/www/wiki.inf.unibz.it/data/pages/auth/setup_printers.txt · Last modified: 2023/04/18 16:23 by kohofer