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/27 18:21] 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 ===== 
  
- +===== 1. PRINTING via SAMBA (using a Windows Print Server) =====
-===== 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 42: 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 53: 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 === +
- +
-Open the config file and make the following modifications:  +
- +
-  * 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. Please remember to leave the printername unchanged! +
-<code> +
-DeviceURI smb://print.unibz.it/<printername> +
-</code>+
  
 ---- ----
  
-===== CHIPCARD PRINTER (using a Windows Print Server) ===== 
  
-<note important>Your user must be a member of the admin/sudo group</note> 
  
-SMB URI +===== 2PRINTING via KERBEROS (using a Windows Print Server) =====
-<file> +
-smb://domain\username:password@ubz02cps.unibz.it/CPSPrn01 +
-</file>+
  
 +Follow the steps as described in the link below
  
-Open your preferred browser and type this address+https://www.inf.unibz.it/wiki/tech/documentation/sysadmin/linux/printing_to_windows_print_server?s[]=krbsmb
  
-  * localhost:631+==== Cups printer setup and URI format ====
  
-Follow this guides as shown on the next screen shots+Now add a printer using cups (localhost:631)
  
-^Select Add Printer from Administration Menu ^Chose how to connect to Printer^ +In cups select ''Kerberized Printer'' and the uri format is
-|{{: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}}|+
  
 +  krbsmb://DOMAIN/PRINTSERVER/PRINTER_SHARE
  
-<note important>Check that the cups printer config file printers contains the string:</note>+e.g.
  
-  smb://domain\username:password@ubz02cps.unibz.it/CPSPrn01+  krbsmb://unibz/print.unibz.it/UBZ066POS300
  
-In a terminal type:+Continue by selecting Printer Make, Printer Driver and set the Default Options
  
-  sudo cat /etc/cups/printers.conf | grep smb:+<note important>Important DO NOT forget to get a Kerberos Ticket manually!!</note>
  
-Restart cups daemon:+[[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]]
  
-  sudo /etc/init.d/cups restart+----
  
-=== Remove clear password from /etc/cups/printers.conf config file === 
- 
-Open the config file and make the following modifications:  
- 
-  * 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> 
- 
----- 
  
-===== PRINTING VIA CUPS (using a Linux Print Server) ======+===== 3. PRINTING VIA CUPS (using a Linux Print Server) ======
  
 First get the name(s) of the available printer(s): First get the name(s) of the available printer(s):
Line 175: Line 125:
 Last select newly added printer; Click on **Administration**\\ Last select newly added printer; Click on **Administration**\\
 and select: **Set Default Options** and select: **Set Default Options**
 +
 +
 +----
 +
 +
 +
 +
 +
 +===== 4. CHIPCARD PRINTER (using a Windows Print Server) =====
 +
 +<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}}|
 +
  
  
Line 193: 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