User Tools

Site Tools


auth:setup_printers

This is an old revision of the document!


Setup Printers

Windows

Computer joined to UNIBZ domain

  • Step 1

:printers1.jpg

  • Step 2

:printers2.jpg

  • Step 3

:printers3.jpg

  • Step 4

:printers4.jpg

  • Step 5

:printers5.jpg

  • Step 6

:printers6.jpg

  • Step 7

:printers7.jpg

Computer not joined to UNIBZ 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.

You will of course need a valid account to connect to the printserver!

To connect to ubz02prn, open Explorer and type \\ubz02prn.unibz.it:

:printers.jpg

Linux

KDE Cups Print Server

Step 1

Open a konsole and type the following command:

kcmshell printmgr

The KDE Print Manager Window opens. Now Select Add from the right menu and choose Add Printer/Class …

:kde_printmanager.jpg

Step 2

Select the settings in the next 6 Windows

:add_printer_wizard.jpg:add_printer_wizard2.jpg

:add_printer_wizard3.jpg:add_printer_wizard4.jpg

:add_printer_wizard5.jpg:add_printer_wizard6.jpg

Step 3

Configure the Printer, see next 6 Windows

:configure_printer.jpg:configure_printer2-1.jpg

:configure_printer3.jpg:configure_printer4.jpg

:configure_printer5.jpg:configure_printer6.jpg

Add Printer using CUPS via Samba

Prerequisite:

- member of the admin group

Caution:

This procedure is only recommended for users with their own Notebook/Desktop, because it is necessary to store the password in clear!

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
Add Printer Fillout the 3 fields
Select Windows Printer via Samba Device URI, replace with your username and password
Select Windows Printer via Samba Device URI, replace with your username and password
Select Manufacture Generic Select Printer Driver Generic Postscript
Select Manufacture Generic Select Printer Driver Generic Postscript
A window will appear asking for username and password ener yours Set Printer Options
Enter login and password Set Printer Options

3. Restart cupsys daemon:

sudo /etc/init.d/cupsys restart

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 or use smbclient with the following options:

smbclient -L \\<windowsprintserver> -U <windowsuser> -W <domain> > printer_list.txt

Using Kerberos (aka kinit)

smbclient -L \\<windowsprintserver> -k > printer_list.txt
  • Install:

sudo aptitude install linneighborhood

  • Start:
LinNeighborhood

- Press Add:

  • 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

  • Select the Samba Print Server and choose scan as user

  • Fill in domain, username and password and press OK.

Now you should have a list with all printers attached to the Samba Printer Server.

Next you need to create/add to /etc/cups/printers.conf file

Example

<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>

You have to modify the following parameters:

<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.

Example:

<Printer A103>
Info HP LaserJet 4050 Series
Location Library
DeviceURI smb://bgates:forgotten@UNIBZ/UBZ02PRN/4250_A103

Last restart the cupsys daemon:

sudo /etc/init.d/cupsys restart

MacOsX

Open the preference panel and select “Print & Fax” and press the “+” button

Choose “IP Printer” and then “Internet Printing Protocol” In the address field put “gutenberg.inf.unibz.it:631”

and in the “queue” the path according to this table:

modellocationaliasqueue
HP40501st floor leftadmin/printers/HP_LaserJet_4050
HP43502st floor leftkrdb/printers/HP_LJ4350
HP41002st floor rightdis/printers/HP_LaserJet_4100
HP37001st floor rightcase/printers/HP_LaserJet_3700
HP55501st floor leftadmin-color/printers/HP_Color_LaserJet_5550

and then choose the printer model accordingly, then press “Add”

MacOsX via Samba

Open the preference panel and select “Print & Fax” and press the “+” button

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

smb://UNIBZ\mylogin:mypassowrd@ubz02prn.unibz.it/Printqueuename

. Finally choose your printer model.

To get a list of Printqueuenames on ubz02prn you can use the terminal and type the following command:

 smbutil view //mylogin@ubz02prn.unibz.it 
/data/www/wiki.inf.unibz.it/data/attic/auth/setup_printers.1256116841.txt.gz · Last modified: 2019/01/16 10:03 (external edit)