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 [2011/06/08 09:51] – [Guest] ccumerauth:setup_printers [2012/11/29 13:19] – [CHIPCARD PRINTER (using a Windows Print Server)] kohofer
Line 1: Line 1:
-====== Setup Printers ======+====== SETUP PRINTER ======
  
-===== Guest ===== 
  
-ubz02prn and gutenberg.inf.unibz.it are now open form the guest wlan. Guests created by the Faculty Administration are added automatically to the Guest_Print_CS group and this group has access only to the printer in the POS building.+===== LINUX =====
  
  
 +===== PRINTING VIA SAMBA (using a Windows Print Server) =====
  
 +<note important>Your user must be a member of the admin/sudo group</note>
  
 +First get the name(s) of the printer(s) you want to use:
  
-===== Windows =====+To get the printer names use smbclient. If the program is not installed do:
  
-==== Computer joined to UNIBZ domain ====+  * apt-get update; apt-get install smbclient
  
 +Now execute this line to get a list of the printer names:
  
-  *Step 1 +  * smbclient -L \\<windowsprintserver> -U <unibz-login> -W <domain>
-  {{printers1.jpg|:printers1.jpg}}+
  
-  *Step 2 +e.g.
-  {{printers2.jpg|:printers2.jpg}}+
  
-  *Step 3 +  * smbclient -L \\print.unibz.it -U bgates -W unibz
-  {{printers3.jpg|:printers3.jpg}}+
  
-  *Step 4 +Printer naming scheme: 
-  {{printers4.jpg|:printers4.jpg}}+<code> 
 +UBZ 066 POS 300 
 +       |-> Room number
  
-  *Step 5 +|    |   |->POS Building
-  {{printers5.jpg|:printers5.jpg}}+
  
-  *Step 6 +   |->IP-Adress
-  {{printers6.jpg|:printers6.jpg}}+
  
-  *Step 7 +|->UBZ University Site Bolzano 
-  {{printers7.jpg|:printers7.jpg}}+</code>
  
-==== Computer not joined to UNIBZ domain ====+A list of old and new printer names you can find here: http://www.unibz.it/en/ict/Documents/PrinterList.pdf
  
-If your PC has not joined the domain, you will need to connect to ubz02prn +Now that you know the name of the printer, you can starting adding a printer.
-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!** 
  
-To connect to ubz02prn, open Explorer and type \\ubz02prn.unibz.it:+SMB URI 
 +<file> 
 +smb://domain\username:password@print.unibz.it/<printername> 
 +</file>
  
-{{printers.jpg|:printers.jpg}} 
  
-<note important>For guest users make sure they are in the **guest_print_cs** group! +Open your preferred browser and type this address:
-</note>+
  
-===== Linux =====+  * localhost:631
  
-==== KDE Cups Print Server ====+Follow this guides as shown on the next screen shots
  
-Step 1+^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}}|
  
-Open a konsole and type the following command: 
  
- kcmshell printmgr+Check that the cups printer config file printers contains the string:
  
-The KDE Print Manager Window opens. Now Select ''Add'' from the right menu and choose ''Add Printer/Class ...''+<code> 
 +smb://domain\username:password@print.unibz.it/<printername> 
 +</code>
  
-{{kde_printmanager.jpg|:kde_printmanager.jpg}}+In a terminal type: 
 +  * sudo cat /etc/cups/printers.conf grep smb:
  
-Step 2+Restart cups daemon: 
 +  * sudo /etc/init.d/cups restart
  
-Select the settings in the next 6 Windows+=== Remove clear password from /etc/cups/printers.conf config file ===
  
-{{add_printer_wizard.jpg|:add_printer_wizard.jpg}}{{add_printer_wizard2.jpg|:add_printer_wizard2.jpg}}+<note important>Please noteNOT ALL Programs show the prompt to enter DOMAIN\username and password</note>
  
-{{add_printer_wizard3.jpg|:add_printer_wizard3.jpg}}{{add_printer_wizard4.jpg|:add_printer_wizard4.jpg}} 
  
-{{add_printer_wizard5.jpg|:add_printer_wizard5.jpg}}{{add_printer_wizard6.jpg|:add_printer_wizard6.jpg}}+Open the config file and make the following modifications
  
-Step 3+  * sudo vi /etc/cups/printers.conf
  
-Configure the Printer, see next 6 Windows +Place this line in:  
- +<code
-{{configure_printer.jpg|:configure_printer.jpg}}{{configure_printer2-1.jpg|:configure_printer2-1.jpg}} +AuthInfoRequired username,password 
- +</code
-{{configure_printer3.jpg|:configure_printer3.jpg}}{{configure_printer4.jpg|:configure_printer4.jpg}} +Next search for the the DeviceURI line and substitute it 
- +with this linePlease remember to leave the printername unchanged! 
-{{configure_printer5.jpg|:configure_printer5.jpg}}{{configure_printer6.jpg|:configure_printer6.jpg}} +<code> 
- +DeviceURI smb://print.unibz.it/<printername> 
-==== Add Printer using CUPS via Samba ==== +</code>
- +
-=== Chip Card Printer === +
- +
-Prerequisite: +
- +
-<note important>member of the admin group</note>  +
- +
-<note warning>This procedure is only recommended for users with their own Notebook/Desktop+
-because it is necessary to store the password in clear!</note+
- +
-1. Open your preferred browser and type this address:  +
- +
-  localhost:631 +
- +
-2. Follow this guides as shown on the next screen shots +
- +
-^ Select Add Printer      ^ Fillout the 3 fields with your own values^ +
-| {{: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 ^ +
-| {{: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 ^ +
-| {{:auth:cps4.png|Select Manufacture Generic}} | {{:auth:cps5.png|Select Printer Driver Generic Postscript}} | +
- +
-^ A window will appear asking for username and password ener yours ^ Set Printer Options ^ +
-| {{:auth:cps6.png|Enter login and password}} | {{:auth:cps7.png|Set Printer Options}} | +
- +
-3. Restart cupsys daemon: +
- +
-  sudo /etc/init.d/cupsys restart+
  
 ---- ----
  
-==== How to connect to Samba Print Server ====+===== CHIPCARD PRINTER (using Windows Print Server) =====
  
-First get the name(s) of the printer(s).+<note important>Your user must be a member of the admin/sudo group</note>
  
-To get the printer names use a Samba share browser like LinNeighborhood or use +SMB URI 
-smbclient with the following options:+<file> 
 +smb://domain\username:password@ubz02cps.unibz.it/CPSPrn01 
 +</file>
  
-  smbclient -L \\<windowsprintserver> -U <windowsuser> -W <domain> > printer_list.txt 
  
-Using Kerberos (aka kinit)+Open your preferred browser and type this address: 
  
-  smbclient -L \\<windowsprintserver> -k > printer_list.txt+  * localhost:631
  
 +Follow this guides as shown on the next screen shots
  
-  * Install+^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}}| 
-  sudo aptitude install linneighborhood+^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}}|
  
-  * Start: 
  
-  LinNeighborhood+<note important>Check that the cups printer config file printers contains the string:</note>
  
-- Press Add:+  smb://domain\username:password@ubz02cps.unibz.it/CPSPrn01
  
-  * Fill in Samba Print Server, Domain and Print Server IP-Address and press Query to verify entries, if query statusquery host ... done, press OK +In a terminal type:
  
-{{auth:add-machine.png}}+  sudo cat /etc/cups/printers.conf | grep smb:
  
-  * Select the Samba Print Server and choose scan as user+Restart cups daemon:
  
-{{auth:linneighborhood.png}}+  sudo /etc/init.d/cups restart
  
-  * Fill in domain, username and password and press OK.+=== Remove clear password from /etc/cups/printers.conf config file ===
  
-{{auth:scan-as-user.png}}+<note important>Please noteNOT ALL Programs show the prompt to enter DOMAIN\username and password</note>
  
-Now you should have a list with all printers attached to the Samba Printer Server.+Open the config file and make the following modifications: 
  
-{{auth:printer-list.png}} +  * sudo vi /etc/cups/printers.conf
- +
-Next you need to create/add to /etc/cups/printers.conf file +
- +
-Example+
  
 +Place this line in: 
 <code> <code>
-<Printer **A103**> +AuthInfoRequired username,password
-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>
- +Next search for the the DeviceURI line and substitute it 
-You have to modify the following parameters: +with this line.
 <code> <code>
-<Printer A103>: name of the printer +DeviceURI smb://ubz02cps.unibz.it/CPSPrn01
-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> </code>
  
-Example:+---- 
 + 
 +===== 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://bgates:forgotten@UNIBZ/UBZ02PRN/4250_A103+
 </code> </code>
  
-Last restart the cupsys daemon: 
  
-  sudo /etc/init.d/cupsys restart+Open your preferred browser and type this address: 
  
 +  * localhost:631
  
-===== Mac OSX =====+Follow this guides as shown on the next screen shots
  
-==== Mac OSX via IPP ==== 
  
-Open the preference panel and select "Print Fax" and press the "+" button+^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|}}|
  
-{{auth:osx_printer1.png|}}+Last select newly added printer; Click on **Administration**\\ 
 +and select**Set Default Options**
  
-Choose "IP Printer" and then "Internet Printing Protocol" 
-In the address field put "gutenberg.inf.unibz.it:631" 
  
 +----
  
-{{auth:osx_printer2.png|}} 
- 
-and in the "queue" the path according to this table: 
-^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| 
-|HP4350|3rd floor left|krdb-2|/printers/HP_LJ4350| 
- 
-and then choose the printer model accordingly, then press "Add" 
- 
-==== Mac OSX via Samba ==== 
- 
-Mac OS X v10.5 or later 
- 
-   1. Choose System Preferences from the Apple menu. 
-   2. Choose Print & Fax from the View menu. 
-   3. Click the + button to add a printer. 
  
-{{auth:osx_printer1.png|Printing Preferences}}+==== Printing of private and confidential Documents ====
  
-   4Press the Control key while clicking the "Default" icon (or any other icon on the toolbar), +https://www.inf.unibz.it/wiki/auth/printing_of_private_and_confidential_documents
-      then choose Customize Toolbar from the contextual menu that appears. +
-   5Drag the Advanced (gear) icon to the toolbar. +
-   6. Click Done. +
-   7. Click the Advanced icon that was added to the toolbar. +
-   8. Choose Windows from the Type pop-up menu. +
-    +
-{{auth:osx_printer_samba2.png|Advanced Setup}} +
-    +
-   9. In the URL field, type the printer's address in the following format:+
  
-    smb://UNIBZ\mylogin:mypassword@ubz02prn.unibz.it/Printqueuename 
  
-   10. In the Name field, type the name you would like to use for this printer in Mac OS X. +===== Windows 7 and Mac OSX =====
-   11. Choose the appropriate PPD or printer driver from the "Printer Model" pop-up menu. +
-   12. Click Add.+
  
-To get a list of Print queue names on ubz02prn you can use the terminal and type the following command:+[[http://www.unibz.it/en/ict/ComputerInternet/network/printers/default.html| 
 +Home>To Computer & Internet>Computer - Network>Printers]]
  
-  smbutil view //mylogin@ubz02prn.unibz.it +List of old and new printer names:\\ 
 +http://www.unibz.it/en/ict/Documents/PrinterList.pdf
  
/data/www/wiki.inf.unibz.it/data/pages/auth/setup_printers.txt · Last modified: 2023/04/18 16:23 by kohofer