User Tools

Site Tools


auth:setup_printers

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
auth:setup_printers [2008/01/31 10:21] – created kohoferauth:setup_printers [2017/02/17 13:09] – [Windows 7 and Mac OSX] kohofer
Line 1: Line 1:
-===== Setup Printers =====+====== SETUP PRINTER UNDER LINUX ======
  
-===== Windows ===== 
-==== Computer joined to UNIBZ domain ==== 
  
-  *Step 1 
-  {{printers1.jpg|:printers1.jpg}} 
  
-  *Step 2 +===== 1PRINTING via SAMBA (using a Windows Print Server) =====
-  {{printers2.jpg|:printers2.jpg}}+
  
-  *Step 3 +<note important>Your user must be a member of the admin/sudo group</note>
-  {{printers3.jpg|:printers3.jpg}}+
  
-  *Step 4 +First get the name(s) of the printer(s) you want to use:
-  {{printers4.jpg|:printers4.jpg}}+
  
-  *Step 5 +To get the printer names use smbclientIf the program is not installed do:
-  {{printers5.jpg|:printers5.jpg}}+
  
-  *Step 6 +  * apt-get update; apt-get install smbclient
-  {{printers6.jpg|:printers6.jpg}}+
  
-  *Step 7 +Now execute this line to get a list of the printer names:
-  {{printers7.jpg|:printers7.jpg}}+
  
-==== Computer not joined to UNIBZ domain ===== +  * smbclient -L \\<windowsprintserver> -U <unibz-login> -W <domain>
-If your PC has not joined the domain, you will need to connect to ubz02prn and double click on one of the printers in the list in order to install it.+
  
-To connect to ubz02prn, open Explorer and type \\ubz02prn.unibz.it:+e.g.
  
-{{printers.jpg|:printers.jpg}}+  * smbclient -L \\print.unibz.it -U bgates -W unibz
  
-====== Linux ======+Printer naming scheme: 
 +<code> 
 +UBZ 066 POS 300 
 +|    |     |-> Room number
  
-==== KDE Cups Print Server ====+|    |   |->POS Building
  
-Step 1+|    |->IP-Adress
  
-Open a konsole and type the following command:+|->UBZ University Site Bolzano 
 +</code>
  
- kcmshell printmgr+A list of old and new printer names you can find here: http://www.unibz.it/en/ict/Documents/PrinterList.pdf
  
-The KDE Print Manager Window opens. Now Select ''Add'' from the right menu and choose ''Add Printer/Class ...''+Now that you know the name of the printer, you can starting adding a printer.
  
-{{kde_printmanager.jpg|:kde_printmanager.jpg}} 
  
-Step 2+SMB URI 
 +<file> 
 +smb://unibz/print.unibz.it/<printername> 
 +</file>
  
-Select the settings in the next 6 Windows 
  
-{{add_printer_wizard.jpg|:add_printer_wizard.jpg}}{{add_printer_wizard2.jpg|:add_printer_wizard2.jpg}}+Open your preferred browser and type this address:
  
-{{add_printer_wizard3.jpg|:add_printer_wizard3.jpg}}{{add_printer_wizard4.jpg|:add_printer_wizard4.jpg}}+  * localhost:631
  
-{{add_printer_wizard5.jpg|:add_printer_wizard5.jpg}}{{add_printer_wizard6.jpg|:add_printer_wizard6.jpg}}+Follow this guides as shown on the next screen shots
  
-Step 3+^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}}|
  
-Configure the Printer, see next 6 Windows 
  
-{{configure_printer.jpg|:configure_printer.jpg}}{{configure_printer2-1.jpg|:configure_printer2-1.jpg}}+When printing from an Application an Authentication Window will/should pop upIf 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.
  
-{{configure_printer3.jpg|:configure_printer3.jpg}}{{configure_printer4.jpg|:configure_printer4.jpg}}+Enter your unibz username and password!
  
-{{configure_printer5.jpg|:configure_printer5.jpg}}{{configure_printer6.jpg|:configure_printer6.jpg}}+{{:auth:Print-Authentication.png?direct&500|Enter username and password}}
  
 +----
  
-==== 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.+===== 2PRINTING via KERBEROS (using a Windows Print Server) =====
  
-  * Install: +Follow the steps as described in the link below
-   +
-  sudo aptitude install linneighborhood+
  
-  * Start:+https://www.inf.unibz.it/wiki/tech/documentation/sysadmin/linux/printing_to_windows_print_server?s[]=krbsmb
  
-  LinNeighborhood+==== Cups printer setup and URI format ====
  
-- Press Add:+Now add a printer using cups (localhost:631)
  
-  * 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 +In cups select ''Kerberized Printer'' and the uri format is
  
-{{auth:add-machine.png}}+  krbsmb://DOMAIN/PRINTSERVER/PRINTER_SHARE
  
-  * Select the Samba Print Server and choose scan as user+e.g.
  
-{{auth:linneighborhood.png}}+  krbsmb://unibz/print.unibz.it/UBZ066POS300
  
-  * Fill in domainusername and password and press OK.+Continue by selecting Printer MakePrinter Driver and set the Default Options
  
-{{auth:scan-as-user.png}}+<note important>Important DO NOT forget to get a Kerberos Ticket manually!!</note>
  
-Now you should have a list with all printers attached to the Samba Printer Server.+[[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]]
  
-{{auth:printer-list.png}}+----
  
-Next you need to create/add to /etc/cups/printers.conf file 
  
-Example+===== 3. PRINTING VIA CUPS (using a Linux Print Server) ====== 
 + 
 +First get the name(s) of the available printer(s):
  
 <code> <code>
-<Printer **A103**> +http://gutenberg.inf.unibz.it:631/printers
-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> </code>
  
-You have to modify the following parameters: 
  
-<code> +Open your preferred browser and type this address
-<Printer A103>: name of the printer +
-Info HP LaserJet 4050 Series: Info about the printer, type etc. +
-Location LibraryWhere is the printer located +
-DeviceURI smb://username:password@UNIBZ/UBZ02PRN/printername: username, password and Printer Name. +
-</code>+
  
-Example:+  * localhost:631
  
-<code> +Follow this guides as shown on the next screen shots
-<Printer A103> +
-Info HP LaserJet 4050 Series +
-Location Library +
-DeviceURI smb://bgates:forgotten@UNIBZ/UBZ02PRN/4250_A103 +
-</code>+
  
-Last restart the cupsys daemon: 
  
-  sudo /etc/init.d/cupsys restart+^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**
  
  
 +----
  
  
  
-==== MacOsX ==== 
  
  
-Open the preference panel and select "Print & Fax" and press the "+" button+===== 4. CHIPCARD PRINTER (using a Windows Print Server) =====
  
-{{auth:osx_printer1.png|}}+<note important>Your user must be a member of the admin/sudo group</note>
  
-Choose "IP Printer" and then "Internet Printing Protocol" +SMB URI 
-In the address field put "gutenberg.inf.unibz.it:631"+<file> 
 +smb://unibz/ubz02cps.unibz.it/CPSPrn01 
 +</file>
  
  
-{{auth:osx_printer2.png|}}+Open your preferred browser and type this address
  
-and in the "queue" the path according to this table: +  * localhost:631
-^model^location^alias^queue| +
-|HP4050|1st floor left|admin|/printers/HP_LaserJet_4050| +
-|HP4350|2st floor left|krdb|/printers/HP_LaserJet_4100_2fl_left| +
-|HP4100|2st floor right|dis|/printers/HP_LaserJet_4100| +
-|HP3700|1st floor right|case|/printers/HP_LaserJet_3700| +
-|HP5550|1st floor left|admin-color|/printers/HP_Color_LaserJet_5550|+
  
-and then choose the printer model accordingly, then press "Add"+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}}|
  
-==== MacOsX via Samba ====+^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}}|
  
-Open the preference panel and select "Print & Fax" and press the "+" button+^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}}|
  
-{{auth:osx_printer1.png|}} 
  
-While holding the option (alt) key press **More Printers** and chose **Advanced** from the topmost dropdown menu. Then choose as Device **Windows Printer via SAMBA**, insert a device name and as DeviceURI <code>smb://UNIBZ\mylogin:mypassowrd@ubz02prn.unibz.it/Printqueuename</code>. Finally choose your printer model. 
  
-{{auth:osx_printer_samba2.png|}}+----
  
  
-To get a list of Printqueuenames on ubz02prn you can use the terminal and type the following command:+==== Printing of private and confidential Documents ====
  
-<code> +https://www.inf.unibz.it/wiki/auth/printing_of_private_and_confidential_documents 
- smbutil view //mylogin@ubz02prn.unibz.it  + 
-</code>+ 
 +===== Windows and Mac OS X ===== 
 + 
 +Windows: 
 + 
 +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: 
 + 
 + 
 + 
 +===== 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