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/12/06 16:40] kohoferauth:setup_printers [2016/11/25 13:44] – [Windows 7 and Mac OSX] kohofer
Line 1: Line 1:
-====== SETUP PRINTER ======+====== SETUP PRINTER UNDER LINUX ======
  
-===== LINUX ===== 
  
  
-===== PRINTING via KERBEROS (using a Windows Print Server) ===== +===== 1. PRINTING via SAMBA (using a Windows Print Server) =====
- +
- +
-https://www.inf.unibz.it/wiki/tech/documentation/sysadmin/linux/printing_to_windows_print_server?s[]=krbsmb +
- +
- +
----- +
- +
- +
-===== PRINTING VIA CUPS (using a Linux Print Server) ====== +
- +
-First get the name(s) of the available printer(s): +
- +
-<code> +
-http://gutenberg.inf.unibz.it:631/printers +
-</code> +
- +
- +
-Open your preferred browser and type this address:  +
- +
-  * localhost:631 +
- +
-Follow this guides as shown on the next screen shots +
- +
- +
-^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** +
- +
- +
----- +
- +
- +
- +
-===== PRINTING VIA SAMBA (using a Windows Print Server) =====+
  
 <note important>Your user must be a member of the admin/sudo group</note> <note important>Your user must be a member of the admin/sudo group</note>
Line 81: Line 40:
 SMB URI SMB URI
 <file> <file>
-smb://domain\username:password@print.unibz.it/<printername>+smb://unibz/print.unibz.it/<printername>
 </file> </file>
  
Line 92: Line 51:
  
 ^Select Add Printer from Administration Menu ^Chose how to connect to Printer^ ^Select Add Printer from Administration Menu ^Chose how to connect to Printer^
-|{{:playground:01-add_printer-cups_admin.png?direct&500|Select Add Printer from Administration Menu}}|{{:playground:02-add_printer-cups_password.png?direct&500|Enter your local login and password}}|+|{{: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!^ ^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?direct&500|Chose how to connect to Printer}}|{{:playground:04-add_printer-cups_connection.png?direct&500|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^ ^Enter Name, Description and Location ^Select Make of Printer^
-|{{:playground:06-add_printer-cups_names-field.png?direct&500|Enter Name, Description and Location}}|{{:playground:07-add_printer-cups_make.png?direct&500|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^ ^Select Driver ^Set initial default Options^
-|{{:playground:08-add_printer-cups_model.png?direct&500|Select Driver}}|{{:playground:09-add_printer-cups_options.png?direct&500|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^ ^Set Default Options^
-|{{:playground:10-add_printer-cups_options.png?direct&500|Set Default Options}}|+|{{:auth:09_Set-Printer-Options2.png?direct&500|Set Default Options}}|{{:auth:10_Printers.png?direct&500|Printer}}|
  
  
-Check that the cups printer config file printers contains the string:+When printing from an Application an Authentication Window will/should pop up. If no Window pops up, you should 
 +check the taskbar for a Printer Icon, select it and release the print job by typing your login & password.
  
-<code> +Enter your unibz username and password!
-smb://domain\username:password@print.unibz.it/<printername> +
-</code>+
  
-In a terminal type: +{{:auth:Print-Authentication.png?direct&500|Enter username and password}}
-  * sudo cat /etc/cups/printers.conf grep smb:+
  
-Restart cups daemon: +----
-  * sudo /etc/init.d/cups restart+
  
-=== Remove clear password from /etc/cups/printers.conf config file === 
  
-<note important>Please note: NOT ALL Programs show the prompt to enter DOMAIN\username and password</note> 
  
 +===== 2. PRINTING via KERBEROS (using a Windows Print Server) =====
  
-Open the config file and make the following modifications: +Follow the steps as described in the link below
  
-  * sudo vi /etc/cups/printers.conf+https://www.inf.unibz.it/wiki/tech/documentation/sysadmin/linux/printing_to_windows_print_server?s[]=krbsmb
  
-Place this line in:  +==== Cups printer setup and URI format ==== 
-<code> + 
-AuthInfoRequired username,password +Now add a printer using cups (localhost:631) 
-</code> + 
-Next search for the the DeviceURI line and substitute it +In cups select ''Kerberized Printer'' and the uri format is 
-with this linePlease remember to leave the printername unchanged! + 
-<code> +  krbsmb://DOMAIN/PRINTSERVER/PRINTER_SHARE 
-DeviceURI smb://print.unibz.it/<printername> + 
-</code>+e.g
 + 
 +  krbsmb://unibz/print.unibz.it/UBZ066POS300 
 + 
 +Continue by selecting Printer Make, Printer Driver and set the Default Options 
 + 
 +<note important>Important DO NOT forget to get a Kerberos Ticket manually!!</note> 
 + 
 +[[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]]
  
 ---- ----
  
-===== CHIPCARD PRINTER (using a Windows Print Server) ===== 
  
-<note important>Your user must be member of the admin/sudo group</note>+===== 3. PRINTING VIA CUPS (using Linux Print Server) ======
  
-SMB URI +First get the name(s) of the available printer(s): 
-<file+ 
-smb://domain\username:password@ubz02cps.unibz.it/CPSPrn01 +<code
-</file>+http://gutenberg.inf.unibz.it:631/printers 
 +</code>
  
  
Line 152: Line 115:
 Follow this guides as shown on the next screen shots Follow this guides as shown on the next screen shots
  
-^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-choose-backend.png?direct&500|Chose how to connect to Printer}}| 
-^Enter Connection smb URI, Domain, YOUR username and password! ^ Name, Description and Location Names^ 
-|{{:auth:03-enter-connection-string.png?direct500|Enter Connection smb URI, Domain, YOUR username and password!}}|{{:auth:04-name-printer.png?direct500|Name, Description and Location Names}}| 
-^Select Make Generic ^Select Printer Driver Generic Postscript^ 
-|{{:auth:05-choose-make.png?direct500|Select Make Generic}}|{{:auth:06-choose-driver.png?direct500|Select Printer Driver Generic Postscript}}| 
-^Modify Options^ 
-|{{:auth:07-set-options.png?direct500|Modify Options}}| 
  
 +^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|}}|
  
-<note important>Check that the cups printer config file printers contains the string:</note>+Last select newly added printer; Click on **Administration**\\ 
 +and select**Set Default Options**
  
-  smb://domain\username:password@ubz02cps.unibz.it/CPSPrn01 
  
-In a terminal type:+----
  
-  sudo cat /etc/cups/printers.conf | grep smb: 
  
-Restart cups daemon: 
  
-  sudo /etc/init.d/cups restart 
  
-=== Remove clear password from /etc/cups/printers.conf config file === 
  
-<note important>Please note: NOT ALL Programs show the prompt to enter DOMAIN\username and password</note>+===== 4. CHIPCARD PRINTER (using a Windows Print Server) =====
  
-Open the config file and make the following modifications+<note important>Your user must be a member of the admin/sudo group</note> 
 + 
 +SMB URI 
 +<file
 +smb://unibz/ubz02cps.unibz.it/CPSPrn01 
 +</file> 
 + 
 + 
 +Open your preferred browser and type this address:  
 + 
 +  * localhost:631 
 + 
 +Follow this guides as shown on the next screen shots 
 + 
 +^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}}| 
 + 
 +^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}}| 
 + 
 +^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}}| 
 + 
 +^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}}|
  
-  * sudo vi /etc/cups/printers.conf 
  
-Place this line in:  
-<code> 
-AuthInfoRequired username,password 
-</code> 
-Next search for the the DeviceURI line and substitute it 
-with this line. 
-<code> 
-DeviceURI smb://ubz02cps.unibz.it/CPSPrn01 
-</code> 
  
 ---- ----
Line 208: Line 179:
 http://www.unibz.it/en/ict/Documents/PrinterList.pdf http://www.unibz.it/en/ict/Documents/PrinterList.pdf
  
 +===== Troubleshooting =====
 +
 +Mac OSX 10.11 El Capitan Ricoh Aficio printer
 +
 +http://flying-geek.blogspot.it/2016/05/getting-os-x-1011-el-capitan-printing.html
 +
 +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