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 [2009/10/21 11:12] kohoferauth:setup_printers [2012/12/06 17:16] – [PRINTING via KERBEROS (using a Windows Print Server)] kohofer
Line 1: Line 1:
-===== Setup Printers =====+====== SETUP PRINTER ======
  
-===== Windows ===== +===== LINUX =====
-==== Computer joined to UNIBZ domain ====+
  
-  *Step 1 
-  {{printers1.jpg|:printers1.jpg}} 
  
-  *Step 2 +===== PRINTING via KERBEROS (using a Windows Print Server) =====
-  {{printers2.jpg|:printers2.jpg}}+
  
-  *Step 3 +Follow the steps as described in the link below
-  {{printers3.jpg|:printers3.jpg}}+
  
-  *Step 4 +https://www.inf.unibz.it/wiki/tech/documentation/sysadmin/linux/printing_to_windows_print_server?s[]=krbsmb
-  {{printers4.jpg|:printers4.jpg}}+
  
-  *Step 5 +==== Cups printer setup and URI format ====
-  {{printers5.jpg|:printers5.jpg}}+
  
-  *Step 6 +Now add a printer using cups (localhost:631)
-  {{printers6.jpg|:printers6.jpg}}+
  
-  *Step 7 +In cups select ''Kerberized Printer'' and the uri format is
-  {{printers7.jpg|:printers7.jpg}}+
  
-==== Computer not joined to UNIBZ domain =====+  krbsmb://DOMAIN/PRINTSERVER/PRINTER_SHARE
  
-If your PC has not joined the domain, you will need to connect to ubz02prn +e.g.
-and double click on one of the printers in the list in order to install it.+
  
-**You will of course need a valid account to connect to the printserver!**+  krbsmb://unibz/print.unibz.it/UBZ066POS300
  
-To connect to ubz02prnopen Explorer and type \\ubz02prn.unibz.it:+Continue by selecting Printer MakePrinter Driver and set the Default Options
  
-{{printers.jpg|:printers.jpg}}+----
  
-====== Linux ====== 
  
-==== KDE Cups Print Server ====+===== PRINTING VIA CUPS (using a Linux Print Server) ======
  
-Step 1+First get the name(s) of the available printer(s):
  
-Open a konsole and type the following command:+<code> 
 +http://gutenberg.inf.unibz.it:631/printers 
 +</code>
  
- kcmshell printmgr 
  
-The KDE Print Manager Window opens. Now Select ''Add'' from the right menu and choose ''Add Printer/Class ...''+Open your preferred browser and type this address: 
  
-{{kde_printmanager.jpg|:kde_printmanager.jpg}}+  * localhost:631
  
-Step 2+Follow this guides as shown on the next screen shots
  
-Select the settings in the next 6 Windows 
  
-{{add_printer_wizard.jpg|:add_printer_wizard.jpg}}{{add_printer_wizard2.jpg|:add_printer_wizard2.jpg}}+^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|}}|
  
-{{add_printer_wizard3.jpg|:add_printer_wizard3.jpg}}{{add_printer_wizard4.jpg|:add_printer_wizard4.jpg}}+Last select newly added printer; Click on **Administration**\\ 
 +and select**Set Default Options**
  
-{{add_printer_wizard5.jpg|:add_printer_wizard5.jpg}}{{add_printer_wizard6.jpg|:add_printer_wizard6.jpg}} 
  
-Step 3+----
  
-Configure the Printer, see next 6 Windows 
  
-{{configure_printer.jpg|:configure_printer.jpg}}{{configure_printer2-1.jpg|:configure_printer2-1.jpg}} 
  
-{{configure_printer3.jpg|:configure_printer3.jpg}}{{configure_printer4.jpg|:configure_printer4.jpg}}+===== PRINTING VIA SAMBA (using a Windows Print Server) =====
  
-{{configure_printer5.jpg|:configure_printer5.jpg}}{{configure_printer6.jpg|:configure_printer6.jpg}}+<note important>Your user must be a member of the admin/sudo group</note>
  
-==== Add Printer using CUPS via Samba ====+First get the name(s) of the printer(s) you want to use:
  
-Prerequisite:+To get the printer names use smbclient. If the program is not installed do:
  
-member of the admin group +  * apt-get update; apt-get install smbclient
  
-Caution:+Now execute this line to get a list of the printer names:
  
-This procedure is only recommended for users with their own Notebook/Desktop, +  * smbclient -L \\<windowsprintserver> -U <unibz-login> -W <domain>
-because it is necessary to store the password in clear!+
  
-1Open your preferred browser and type this address: +e.g.
  
-  localhost:631+  * smbclient -L \\print.unibz.it -U bgates -W unibz
  
-2. Follow this guides as shown on the next screen shots+Printer naming scheme: 
 +<code> 
 +UBZ 066 POS 300 
 +|    |     |-> Room number
  
-^ Select Add Printer      ^ Fillout the 3 fields with your own values^ +     |->POS Building
-{{:auth:cps0.png|Add Printer}} | {{:auth:cps1.png|Fillout the 3 fields}} |+
  
-^ Select Windows Printer via Samba ^ Device URI, replace with your username and password ^ +   |->IP-Adress
-{{:auth:cps2.png|Select Windows Printer via Samba}} | {{:auth:cps3.png|Device URI, replace with your username and password}} |+
  
-^ Select Manufacture Generic ^ Select Printer Driver Generic Postscript ^ +|->UBZ University Site Bolzano 
-| {{:auth:cps4.png|Select Manufacture Generic}} | {{:auth:cps5.png|Select Printer Driver Generic Postscript}} |+</code>
  
-window will appear asking for username and password ener yours ^ Set Printer Options ^ +list of old and new printer names you can find herehttp://www.unibz.it/en/ict/Documents/PrinterList.pdf
-| {{:auth:cps6.png|Enter login and password}} | {{:auth:cps7.png|Set Printer Options}} |+
  
 +Now that you know the name of the printer, you can starting adding a printer.
  
----- 
  
-==== How to connect to a Samba Print Server ====+SMB URI 
 +<file> 
 +smb://domain\username:password@print.unibz.it/<printername> 
 +</file>
  
-First get the name(s) of the printer(s). 
  
-To get the printer names use a Samba share browser like LinNeighborhood or use +Open your preferred browser and type this address:
-smbclient with the following options:+
  
-  smbclient -L \\<windowsprintserver> -U <windowsuser> -W <domain> > printer_list.txt+  * localhost:631
  
-Using Kerberos (aka kinit)+Follow this guides as shown on the next screen shots
  
-  smbclient -L \\<windowsprintserver> -k > printer_list.txt+^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}}| 
 +^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!}}| 
 +^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}}| 
 +^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}}| 
 +^Set Default Options^ 
 +|{{:playground:10-add_printer-cups_options.png?direct&500|Set Default Options}}|
  
  
-  * Install: +Check that the cups printer config file printers contains the string:
-   +
-  sudo aptitude install linneighborhood+
  
-  * Start:+<code> 
 +smb://domain\username:password@print.unibz.it/<printername> 
 +</code>
  
-  LinNeighborhood+In a terminal type: 
 +  * sudo cat /etc/cups/printers.conf | grep smb:
  
-- Press Add:+Restart cups daemon: 
 +  * sudo /etc/init.d/cups restart
  
-  * 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 +=== Remove clear password from /etc/cups/printers.conf config file ===
  
-{{auth:add-machine.png}}+<note important>Please noteNOT ALL Programs show the prompt to enter DOMAIN\username and password</note>
  
-  * Select the Samba Print Server and choose scan as user 
  
-{{auth:linneighborhood.png}}+Open the config file and make the following modifications
  
-  * Fill in domain, username and password and press OK.+  * sudo vi /etc/cups/printers.conf
  
-{{auth:scan-as-user.png}}+Place this line in 
 +<code> 
 +AuthInfoRequired username,password 
 +</code> 
 +Next search for the the DeviceURI line and substitute it 
 +with this linePlease remember to leave the printername unchanged! 
 +<code> 
 +DeviceURI smb://print.unibz.it/<printername> 
 +</code>
  
-Now you should have a list with all printers attached to the Samba Printer Server.+----
  
-{{auth:printer-list.png}}+===== CHIPCARD PRINTER (using a Windows Print Server) =====
  
-Next you need to create/add to /etc/cups/printers.conf file+<note important>Your user must be a member of the admin/sudo group</note>
  
-Example+SMB URI 
 +<file> 
 +smb://domain\username:password@ubz02cps.unibz.it/CPSPrn01 
 +</file>
  
-<code> 
-<Printer **A103**> 
-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> 
  
-You have to modify the following parameters:+Open your preferred browser and type this address
  
-<code> +  * localhost:631
-<Printer A103>name of the printer +
-Info HP LaserJet 4050 Series: Info about the printer, type etc. +
-Location Library: Where is the printer located +
-DeviceURI smb://username:password@UNIBZ/UBZ02PRN/printername: username, password and Printer Name. +
-</code>+
  
-Example:+Follow this guides as shown on the next screen shots
  
-<code> +^Select Add Printer from Administration Menu ^Chose how to connect to Printer^ 
-<Printer A103> +|{{: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}}| 
-Info HP LaserJet 4050 Series +^Enter Connection smb URI, Domain, YOUR username and password! ^ Name, Description and Location Names^ 
-Location Library +|{{: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}}| 
-DeviceURI smb://bgates:forgotten@UNIBZ/UBZ02PRN/4250_A103 +^Select Make Generic ^Select Printer Driver Generic Postscript^ 
-</code>+|{{: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}}|
  
-Last restart the cupsys daemon: 
  
-  sudo /etc/init.d/cupsys restart+<note important>Check that the cups printer config file printers contains the string:</note>
  
 +  smb://domain\username:password@ubz02cps.unibz.it/CPSPrn01
  
-==== MacOsX ====+In a terminal type:
  
 +  sudo cat /etc/cups/printers.conf | grep smb:
  
-Open the preference panel and select "Print & Fax" and press the "+" button+Restart cups daemon:
  
-{{auth:osx_printer1.png|}}+  sudo /etc/init.d/cups restart
  
-Choose "IP Printer" and then "Internet Printing Protocol" +=== Remove clear password from /etc/cups/printers.conf config file ===
-In the address field put "gutenberg.inf.unibz.it:631"+
  
 +<note important>Please note: NOT ALL Programs show the prompt to enter DOMAIN\username and password</note>
  
-{{auth:osx_printer2.png|}}+Open the config file and make the following modifications
  
-and in the "queue" the path according to this table: +  * sudo vi /etc/cups/printers.conf
-^model^location^alias^queue| +
-|HP4050|1st floor left|admin|/printers/HP_LaserJet_4050| +
-|HP4350|2st floor left|krdb|/printers/HP_LJ4350| +
-|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 accordinglythen press "Add"+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>
  
 +----
  
  
-==== MacOsX via Samba ====+==== Printing of private and confidential Documents ====
  
-Open the preference panel and select "Print & Fax" and press the "+" button+https://www.inf.unibz.it/wiki/auth/printing_of_private_and_confidential_documents
  
-{{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.+===== Windows and Mac OSX =====
  
-{{auth:osx_printer_samba2.png|}}+[[http://www.unibz.it/en/ict/ComputerInternet/network/printers/default.html| 
 +Home>To Computer & Internet>Computer - Network>Printers]]
  
 +List of old and new printer names:\\
 +http://www.unibz.it/en/ict/Documents/PrinterList.pdf
  
-To get a list of Printqueuenames on ubz02prn you can use the terminal and type the following command: 
- 
-<code> 
- smbutil view //mylogin@ubz02prn.unibz.it  
-</code> 
/data/www/wiki.inf.unibz.it/data/pages/auth/setup_printers.txt · Last modified: 2023/04/18 16:23 by kohofer