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/29 13:19] – [CHIPCARD PRINTER (using a Windows Print Server)] kohoferauth:setup_printers [2014/04/04 15:21] – [4. CHIPCARD PRINTER (using a Windows Print Server)] 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://<domain>@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.
  
-<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 +
-</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>+
  
-----+Now add a printer using cups (localhost:631)
  
-===== CHIPCARD PRINTER (using a Windows Print Server) =====+In cups select ''Kerberized Printer'' and the uri format is
  
-<note important>Your user must be a member of the admin/sudo group</note>+  krbsmb://DOMAIN/PRINTSERVER/PRINTER_SHARE
  
-SMB URI +e.g.
-<file> +
-smb://domain\username:password@ubz02cps.unibz.it/CPSPrn01 +
-</file>+
  
 +  krbsmb://unibz/print.unibz.it/UBZ066POS300
  
-Open your preferred browser and type this address: +Continue by selecting Printer Make, Printer Driver and set the Default Options
  
-  * localhost:631+<note important>Important DO NOT forget to get a Kerberos Ticket manually!!</note>
  
-Follow this guides as shown on the next screen shots+[[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]]
  
-^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}}|+
  
  
-<note important>Check that the cups printer config file printers contains the string:</note>+===== 3. PRINTING VIA CUPS (using a Linux Print Server) ======
  
-  smb://domain\username:password@ubz02cps.unibz.it/CPSPrn01+First get the name(s) of the available printer(s):
  
-In a terminal type:+<code> 
 +http://gutenberg.inf.unibz.it:631/printers 
 +</code>
  
-  sudo cat /etc/cups/printers.conf | grep smb: 
  
-Restart cups daemon:+Open your preferred browser and type this address
  
-  sudo /etc/init.d/cups restart+  * localhost:631
  
-=== Remove clear password from /etc/cups/printers.conf config file ===+Follow this guides as shown on the next screen shots
  
-<note important>Please note: NOT ALL Programs show the prompt to enter DOMAIN\username and password</note> 
  
-Open the config file and make the following modifications+^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|}}|
  
-  sudo vi /etc/cups/printers.conf+Last select newly added printer; Click on **Administration**\\ 
 +and select: **Set Default Options**
  
-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) ====== 
  
-First get the name(s) of the available printer(s): 
  
-<code+ 
-http://gutenberg.inf.unibz.it:631/printers + 
-</code>+===== 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>
  
  
Line 170: Line 148:
 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 ^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 Add Printer ^Enter local username (must be in admin/sudo group) and local password+^Select Windows Printer via SAMBA ^Enter Connection smb URI
-|{{: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}}| +|{{:auth:03_Add-Printer_cps.png?direct500|Select Windows Printer via SAMBA}}|{{:auth:04_Connection_cps.png?direct500|Enter Connection smb URI}}| 
-^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|}}| +^Name, Description and Location Names ^Select Make Generic
-^Select Make ^Select Driver^ +|{{:auth:05_Name-Description-Location_cps.png?direct500|Name, Description and Location Names}}|{{:auth:06_Make_cps.png?direct500|Select Make Generic}}| 
-|{{:auth:4_add-new-printer_w-browser.png?direct&600|}}|{{:auth:5_add-new-printer_w-browser.png?direct&600|}}|+ 
 +^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}}|
  
-Last select newly added printer; Click on **Administration**\\ 
-and select: **Set Default Options** 
  
  
/data/www/wiki.inf.unibz.it/data/pages/auth/setup_printers.txt · Last modified: 2023/04/18 16:23 by kohofer