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 17:16] – [PRINTING via KERBEROS (using a Windows Print Server)] kohoferauth:setup_printers [2017/02/17 13:09] – [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) =====
- +
-Follow the steps as described in the link below +
- +
-https://www.inf.unibz.it/wiki/tech/documentation/sysadmin/linux/printing_to_windows_print_server?s[]=krbsmb +
- +
-==== Cups printer setup and URI format ==== +
- +
-Now add a printer using cups (localhost:631) +
- +
-In cups select ''Kerberized Printer'' and the uri format is +
- +
-  krbsmb://DOMAIN/PRINTSERVER/PRINTER_SHARE +
- +
-e.g. +
- +
-  krbsmb://unibz/print.unibz.it/UBZ066POS300 +
- +
-Continue by selecting Printer Make, Printer Driver and set the Default Options +
- +
----- +
- +
- +
-===== 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 95: 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 106: 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 
 + 
 +==== Cups printer setup and URI format ==== 
 + 
 +Now add a printer using cups (localhost:631) 
 + 
 +In cups select ''Kerberized Printer'' and the uri format is 
 + 
 +  krbsmb://DOMAIN/PRINTSERVER/PRINTER_SHARE 
 + 
 +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]] 
 + 
 +---- 
 + 
 + 
 +===== 3PRINTING VIA CUPS (using a Linux Print Server) ====== 
 + 
 +First get the name(s) of the available printer(s):
  
-Place this line in:  
 <code> <code>
-AuthInfoRequired username,password +http://gutenberg.inf.unibz.it:631/printers
-</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> </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**
 +
  
 ---- ----
  
-===== CHIPCARD PRINTER (using a Windows Print Server) =====+ 
 + 
 + 
 + 
 +===== 4. CHIPCARD PRINTER (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 156: Line 139:
 SMB URI SMB URI
 <file> <file>
-smb://domain\username:password@ubz02cps.unibz.it/CPSPrn01+smb://unibz/ubz02cps.unibz.it/CPSPrn01
 </file> </file>
  
Line 166: Line 149:
 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+^Select Add Printer from Administration Menu ^Enter local username and password
-|{{: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}}| +|{{: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}}|
-^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 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}}|
  
-<note important>Check that the cups printer config file printers contains the string:</note>+^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}}|
  
-  smb://domain\username:password@ubz02cps.unibz.it/CPSPrn01+^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}}|
  
-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 ===+==== Printing of private and confidential Documents ====
  
-<note important>Please noteNOT ALL Programs show the prompt to enter DOMAIN\username and password</note>+https://www.inf.unibz.it/wiki/auth/printing_of_private_and_confidential_documents
  
-Open the config file and make the following modifications:  
  
-  * sudo vi /etc/cups/printers.conf+===== Windows and Mac OS X =====
  
-Place this line in +Windows:
-<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>+
  
-----+https://knowledge.scientificnet.org/workspace/#nd=2c1c4d8c-da72-44aa-be88-30adb4167fb6&ld=17f4d8ce-edff-4d42-ad33-d98e2cdebc35&ln=it
  
 +Mac OS X:
 +
 +https://knowledge.scientificnet.org/workspace/#nd=2838d956-3d00-4700-9a41-ce8b319433eb&ld=17f4d8ce-edff-4d42-ad33-d98e2cdebc35&ln=en
 +
 +
 +List of old and new printer names:
  
-==== Printing of private and confidential Documents ==== 
  
-https://www.inf.unibz.it/wiki/auth/printing_of_private_and_confidential_documents 
  
 +===== Troubleshooting =====
  
-===== Windows 7 and Mac OSX =====+Mac OSX 10.11 El Capitan Ricoh Aficio printer
  
-[[http://www.unibz.it/en/ict/ComputerInternet/network/printers/default.html+http://flying-geek.blogspot.it/2016/05/getting-os-x-1011-el-capitan-printing.html
-Home>To Computer & Internet>Computer - Network>Printers]]+
  
-List of old and new printer names:\\ +Update from Mavericks to El Capitan
-http://www.unibz.it/en/ict/Documents/PrinterList.pdf+
  
 +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