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 [2021/10/15 12:41] – [MacOS] kohoferauth:setup_printers [2023/03/24 10:03] – [Now that you know the name of the printer, you can starting adding a printer.] kohofer
Line 8: Line 8:
   * Install samba client package and dependency packages in order to use Printer via samba protocol:   * Install samba client package and dependency packages in order to use Printer via samba protocol:
  
-  sudo apt-get update && sudo apt-get install smbclient+  sudo apt-get update && sudo apt-get install smbclient python3-samba 
 + 
 +  * Install the driver: https://www.canon.co.uk/support/products/imagerunner/imagerunner_advance_dx_c3826i.html?type=drivers
  
  
Line 31: Line 33:
 e.g. e.g.
  
-  * smbclient -L \\print.unibz.it -U bgates -W unibz+  * smbclient -L \\print.scientificnet.org -U bgates -W unibz
  
 Printer naming scheme: Printer naming scheme:
Line 51: Line 53:
 SMB URI SMB URI
 <file> <file>
-smb://UNIBZ/print.unibz.it/<printername>+smb://UNIBZ/print.scientificnet.org/<printername>
 </file> </file>
  
Line 59: Line 61:
   * localhost:631   * localhost:631
  
-Follow this guides as shown on the next screen shots+Follow this guides as shown on the next screenshots
  
-^Select Add Printer from Administration Menu ^Chose how to connect to Printer^+^Select Add Printer from Administration Menu ^Enter your local username 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}}| |{{: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^ 
-|{{: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!}}|+|{{: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}}|
 ^Enter Name, Description and Location ^Select Make of Printer^ ^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}}|+|{{:auth:05_Name-Description-Location.png?direct&500|Enter Name, Descriptionand Location}}|{{:auth:06_Make.png?direct&500|Select Make of Printer}}|
 ^Select Driver ^Set initial default Options^ ^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}}| |{{:auth:07_Model.png?direct&500|Select Driver}}|{{:auth:08_Set-Printer-Options1.png?direct&500|Set initial default Options}}|
Line 84: Line 86:
   sudo more /etc/cups/printers.conf   sudo more /etc/cups/printers.conf
  
-and verify that you have a line saying: **AuthInfoRequired username,password**!+and verify that you have a line saying: **AuthInfoRequired username,password**
  
-In case the line is missing for the printer add the line or replace the line AuthInfoRequired none with **AuthInfoRequired username,password**!+In case the line is missing for the printer add the line or replace the line AuthInfoRequired none with **AuthInfoRequired username,password**
  
   sudo /etc/init.d/cups stop   sudo /etc/init.d/cups stop
Line 105: Line 107:
  
 ---- ----
 +
 +You can enter your username and password (in clear, not very secure!), so it won't ask you!
 +
 +  smb://username:password@domain/windows_print_server_host_name/printer_name
 +
 +e.g.:
 +
 +  smb://user:G656fdhfgsfg#/UNIBZ.IT/print.scientificnet.org/ubz021pos200
  
  
Line 124: Line 134:
 e.g. e.g.
  
-  krbsmb://unibz/print.unibz.it/UBZ066POS300+  krbsmb://unibz/print.scientificnet.org/UBZ066POS300
  
 Continue by selecting Printer Make, Printer Driver and set the Default Options Continue by selecting Printer Make, Printer Driver and set the Default Options
Line 206: Line 216:
  
  
-===== MacOS =====+====== MacOS =====
  
   * Open the System Preferences   * Open the System Preferences
Line 212: Line 223:
   * Click on the + button to add a printer   * Click on the + button to add a printer
   * Make a right click on the grey space between Windows and the search bar. Click then on Customize Toolbar   * Make a right click on the grey space between Windows and the search bar. Click then on Customize Toolbar
- 
- 
   * Drag the Advanced icon up into the toolbar and click on Done   * Drag the Advanced icon up into the toolbar and click on Done
   * Click on the new added Advanced icon in the Add Printer menu and choose the following setting:   * Click on the new added Advanced icon in the Add Printer menu and choose the following setting:
  
 <code> <code>
-Type: Windows printer via spools+Type: LPD/LPR Printer
 Device: Another Device Device: Another Device
-URL: smb://print.unibz.it/PRINTERNAME e.g. Printername = UBZ098POS100+URL: lpd://print.scientificnet.org/PRINTERNAME 
 +e.g. Printername = UBZ098POS100; lpd://print.scientificnet.org/UBZ098POS100
 Name: Name-of-the-Printer Name: Name-of-the-Printer
 Location: choose a location/description of the printer (optional); e.g. POS 2nd floor Location: choose a location/description of the printer (optional); e.g. POS 2nd floor
Line 228: Line 238:
 Arrived at this point the printer is installed. You can close the window. Arrived at this point the printer is installed. You can close the window.
  
-<note important>When printing make sure you get an Window asking for your unibz login and password!</note>+To verify the settings open in a browser this URL: http://localhost:631\\ 
 +When looking at the printers you might get this message: **cupsctl WebInterface=yes**\\ 
 +Open a Terminal and copy this command: **cupsctl WebInterface=yes** press Enter and return to the browser 
 +doing a refresh. 
 + 
 +<note important>When printing make sure you get a Windows asking for your unibz login and password!</note> 
 + 
 +===== 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]] 
 + 
 + 
 +====== Windows 10 ====== 
 + 
 +  - Press keys: Windows+R, the run command will open, enter \\print.scientificnet.org 
 +  - A window will ask for your unibz credentials, enter them 
 +  - A Explorer window should open with all available printers 
 +  - Find the appropriate Printer and double-click on it 
 +  - Printer Driver gets installed 
 + 
 +Done!
  
 ---- ----
Line 235: Line 271:
 List of printer names: List of printer names:
  
-  smbclient -L print.unibz.it -U <username> -W unibz+  smbclient -L print.scientificnet.org -U <username> -W unibz
  
 {(xssnipper>,1,sh printer-list slide, {(xssnipper>,1,sh printer-list slide,
Line 522: Line 558:
 )} )}
  
-//[[Konrad.Hofer@unibz.it|Hofer Konrad]] 2021/10/15 12:39//+//[[Konrad.Hofer@unibz.it|Hofer Konrad]] 2021/10/15 12:49//
  
- 
-===== 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