User Tools

Site Tools


it_services:pf:printing

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
it_services:pf:printing [2017/03/23 13:39]
florido [HP Laserjet 600 M601 M602 Black&White]
it_services:pf:printing [2023/08/02 08:00] (current)
florido [MacOS X]
Line 1: Line 1:
 ====== Printing ====== ====== Printing ======
  
-Printing ​is provided in two different ways:+:!: this page is WORK IN PROGRESS. Sorry for the inconvenience. Some items may change after we move, and possibly the whole page will be moved. :!:
  
-  * For machines connected to the network ​via **cable**, ​print queues are provided by the //​CUPS// ​server ​''​cups.hep.lu.se''​Machines should ​connect to it to print +Printing is provided ​via a cups print server ​at cups.hep.lu.se . For the moment it is possible to connect ​machines directly ​to the printer, provided they belong ​to known networks (the cabled network or eduroam) but in the future this may not be possibleThe reasons ​are due to national rules of accessing public IT services and are described in this security article: https://​www.it.lu.se/​it-sakerhet/​it-sakerhetsartiklar/​sakerhetskonfiguration/​
-    * **Clusters** and **Workstations** ​are automatically connected ​to all the printers served by it. **No installation is needed.** +
-    * Laptops with cable connection might **install the printers** [[#​Installation if connected via ethernet cable| following these instructions]]+
  
-  * **Wireless printing is disabled for security reasons.**<​del>​For machines connected to the network via **wireless**, one must connect **directly** to each printer and configure it+Detailed instructions on how to connect your machine directly to the printer will not be given here but they are available upon request in case the connection between your machine and the print server does not work as it should. 
-    [[#​Installation_if_connected_via_Wireless|Click here for installation instructions]]</​del>​+ 
 +Currently the setup is as follows: 
 + 
 +  ​* For machines connected to the network via **cable**,  there is no need for authentication
 +  For machines connected via wireless, authentication using your particle physics login (also known as "teddi login"​) is required.
  
 ===== About the available printers ===== ===== About the available printers =====
Line 14: Line 16:
 The following print queues are available from the Linux computers: The following print queues are available from the Linux computers:
  
-Printer ​Name ^ Duplex ^ Colour ^ Paper size ^ Location ​           ^ Notes               ^ hostname ^+Queue Name ^ Duplex ^ Colour ^ Paper size ^ Location ​           ^ Notes               ^ hostname ^
 ^ lw1          | Yes    | No     | A4         | Room A404          |                     | lw1.hep.lu.se | ^ lw1          | Yes    | No     | A4         | Room A404          |                     | lw1.hep.lu.se |
-clw2         | Yes    | Yes    | A4         | Room A404          |                     ​| ​clw2.hep.lu.se | +copy         | Yes    | Yes    | A4         | Room A404          |                     ​| ​copy.hep.lu.se |
-^ Ricoh        | Yes    | Yes    | A3/A4      | Entré - Fysikum Reception | :!: Printing on this machine will be billed to our division. Use only if strictly needed. | fysik-printer.fysik.lu.se | +
-^ :::        | :::    | :::    | :::      | ::: | This machine is only accessible from workstations. To access it with other machines contact Florido. | ::: | +
  
 The printer ''​lw1'',​ is the **default** printer. It will be used if no printer is specified. The printer ''​lw1'',​ is the **default** printer. It will be used if no printer is specified.
- 
  
 ===== How to print ===== ===== How to print =====
  
-==== Workstations and Clusters ==== +==== Using a graphical interface ​====
- +
-=== Using a graphical interface ===+
  
 Nowadays most of printing from workstations can be done via graphical tools. Nowadays most of printing from workstations can be done via graphical tools.
-The KDE and Gnome environments provide ​their own intuitive tools, so these will not be described here. +Most operating systems have their own intuitive tools, so these will not be described here.
- +
-=== Using the command line ===+
  
-On clusters and servers this might not be straightforward. Therefore ​the following ​command line instructions apply.+==== Using the command line (Linux or Apple) ====
  
 == List available printers === == List available printers ===
Line 63: Line 57:
  
   lpq   lpq
-  lpq -P clw2+  lpq -P copy
  
 To remove all your printouts from the queue To remove all your printouts from the queue
  
   lprm -   lprm -
-  lprm - -P clw2+  lprm - -P copy
  
 == Duplex/​simplex == == Duplex/​simplex ==
Line 121: Line 115:
  
 Might be useful if you want to print something that Leonardo D. has written. Might be useful if you want to print something that Leonardo D. has written.
-Combining options+ 
 +== Combining options ​==
 You can combine the options, like in the following example You can combine the options, like in the following example
  
Line 134: Line 129:
 ==== To check the print server status ==== ==== To check the print server status ====
  
-On the Linux system the printing is handled by a central print-spooler. The spooler queues, format (if necessary) and send the file to the printer. The spooler is in our case called cups. +On the Linux system the printing is handled by a central print-spooler. The spooler queues, format (if necessary) and send the file to the printer. The spooler is in our case called ​''​cups''​
-In the normal case the file you want to print should be a postscript-file.+In the normal case the file you want to print should be a postscript-file ​or a pdf.
  
 It is possible to print files that are not in postscript. One typical format is "​text",​ but even a lot of other formats is possible. The spooler takes care of the file, and try to do its best to convert it to postscript before it is sent to the printer. However, in most cases, I recommend that you convert the files to postscript yourself. It is possible to print files that are not in postscript. One typical format is "​text",​ but even a lot of other formats is possible. The spooler takes care of the file, and try to do its best to convert it to postscript before it is sent to the printer. However, in most cases, I recommend that you convert the files to postscript yourself.
  
-The print server status can only be seen when connected via **cable**.+The print server status can only be seen when connected via **cable** or **eduroam**.
  
-Click this link: http://​cups.hep.lu.se:​631/​+Click this link: https://​cups.hep.lu.se:​631/ ​and login with your teddi credentials if asked.
  
 ---- ----
 ===== Installation ===== ===== Installation =====
- 
-Check if you're connected via cable or wireless. Installation ​ 
-instructions are completely different. 
- 
-==== Installation if connected via ethernet cable ==== 
- 
-**Linux laptops** and **Apple or Windows machines** would need to install all the printers manually. 
- 
-=== GNU/Linux === 
  
 Get to the print room where the printer is located and note the printer Model Name and hostnames. You will need those later. Get to the print room where the printer is located and note the printer Model Name and hostnames. You will need those later.
  
-There are four ways of installing the drivers:+==== GNU/Linux ====
  
-== 1) Safe and Tedious (recommended) == +Use your printer system configurator to add the printer. It may vary depending on distributions.
-Root privileges: not needed+
  
-use your printer ​system configurator ​to add the printer. ​It may vary depending ​on distributions.+  - When asked for the printer, choose ​to add a **network printer** and type in the URL:<​code>​ipps://​cups.hep.lu.se:​631/​printers/<​printername></​code>​e.g.<​code>​ipps://​cups.hep.lu.se:​631/​printers/​lw1 
 +ipps://​cups.hep.lu.se:​631/​printers/​copy</​code>​  
 +  - Repeat step 1 for each printer ​you want to add. 
 +    * //lw1// should not require drivers, as they are provided by the standard CUPS server library ​on every Linux. 
 +    * For //​copy// ​ you will need to install the drivers. See [[#​Drivers]] 
 +  - Test with ''​lpstat -a'',​ you should see the list of configured printers. 
 +  - Print a test page. If connected via wireless you will be asked for username and password.
  
-When asked for the printer, choose to add a **network printer** and type in the URL:+==== Windows ====
  
-  ​ipp://​cups.hep.lu.se:​631/​printers/​<printername>​ +  ​- Go to **Printers and Faxes** and choose **Add a new printer**. Select **The printer isn't listed** as soon as it is visible. 
-   +  - When asked for a new printer, select network printer (TCP/IP) 
-e.g.+  - Add the printer using this URL: <​code>​https://​cups.hep.lu.se:​631/​printers/​printername</code> e.g. <​code>​https://​cups.hep.lu.se:​631/​printers/​lw1 
 +https://​cups.hep.lu.se:​631/​printers/​copy</​code>​ 
 +    * You will be asked for drivers. If you're lucky, they'​re on Windows Update, if you're not, find them yourself by looking at the vendor'​s website. I have some downloaded already and I provide them here: [[#​Drivers]] 
 +    * When the drivers have been installed, you should be able to use the printer. 
 +  - Print a test page. If connected via wireless you will be asked for username and password. 
 +  - Repeat these steps for each printer you want to add.
  
-  ipp://​cups.hep.lu.se:​631/​printers/​lw1 +==== MacOS X ====
-   +
-Repeat the above for each printer you want to add.+
  
-This should not require drivers, as they are provided ​by the CUPS server.+Drivers needs to be installed (to download them see [[#​Drivers]]) ​by copying them in the ''/​Library/​Printers/​PPDs/​Contents/​Resources/''​ folder. More info about this may come.
  
-Test with ''​lpstat -a'',​ you should see the list of configured printers.+Once drivers are installed:
  
-== 2Quick and Advanced ​(recommended ​for experts== +  - Go to **System preferences** -> **Printers and Scanners** -> add the //advanced printer configuration//​ tab this way: 
-Root privilegesneeded+    - ''​ctrl''​ + click on free space under ''​add printer''​ to customize toolbar 
 +    - Add **advanced** by drag & dropping it to the bar with other print configuration option 
 +  - Click on the ''​advanced''​ button just added 
 +  - To add each printer, fill the URL with the following strings: 
 +    * lw1: <​code>​ipps://​cups.hep.lu.se:​631/​printers/​lw1?​compression=gzip</​code>​ 
 +    * copy: <​code>​ipps://​cups.hep.lu.se:​631/​printers/​copy</​code>​ 
 +  - Add printer name (please use either lw1 or copy) and description ​(description is optional) 
 +  - select drivers: 
 +    * for //lw1//: HP PCL 4/5 if no driver installed, otherwise pick ''​HP m600/​601/​602''​ (TODO:CHECK
 +    * for //copy//Pick ''​Canon iR-ADV C275'' ​ (TODO:​CHECK) 
 +      * select options: "​feeding unit AK1" 
 +  - Repeat the process for each printer
  
-The printers can be added directly to the current cups configuration using a configuration file. +=== Known Issues ​===
-:!: **Be careful**: backup ''/​etc/​cups/​printers.conf''​ before you proceed. +
- +
-Follow these steps: +
-  - become root and shut down cups (may vary depending on distribution):​ <​code>​sudo service cups stop</​code>​  +
-  - download this file (sorry I didn't have the time to craft this yet... stay tuned) +
-  - merge or add the contents of the file at the end of your ''/​etc/​cups/​printers.conf''​ file and save. +
-  - restart cups <​code>​sudo service cups start</​code>​ +
-  - test with ''​lpstat -a'',​ you should see the list of configured printers. +
- +
-== 3) Hackish and Fastest ​== +
-Root privileges: needed +
- +
-:!: This solution might prevent you to use printers outside the Particle Physics division. Use it only if you know where to put your hands. +
- +
-Follow these steps: +
- +
-  - become root and shut down cups (may vary depending on distribution):​ <​code>​sudo service cups stop</​code>​  +
-  - add this line to ''/​etc/​cups/​client.conf''​ (create it if it doesn'​t exist): <​code>​ServerName cups.hep.lu.se</​code>​ +
-  - test with ''​lpstat -a'',​ you should see the list of all configured printers. +
- +
-If you use this, remember to comment out the ServerName line in client.conf and restart cups if you travel to a  location outside Particle Physics. +
- +
-== 4) Evil and Time-consuming == +
-Root privileges: might be needed if you need to install new drivers +
- +
-:?: Why is this evil? because this bypasses the print server. That means that is more likely to jam the print queue in the printer itself (will need a restart) and jam the printer itself if the driver is misconfigured (hopefully a restart will be enough LOL). Use at your own risk. +
- +
-Install the printer drivers yourself, and then install the printer by getting its network address. +
- +
-This may vary depending on the printer vendor, and Linux may or may not have the drivers. +
- +
-In short, all you need to do is to provide the hostname of the printer. In most cases it will work if you use +
- +
-  socket://<​printer FQDN>:​9100 +
-or +
-  http://<​printer FQDN> +
-   +
-e.g. +
- +
-  socket://​lw1.hep.lu.se:​9100 +
-  http://​lw1.hep.lu.se +
- +
-=== Windows === +
- +
-I will write them when I have time. For the moment being, the only thing I can suggest is: +
- +
-  - Go to Printers and Faxes and add a new printer +
-  - When asked for a new printer, select network printer (TCP/IP) +
-  - Add the printer this way: <​code>​http://​cups.hep.lu.se:​631/​printers/​printername</​code>​ e.g. <​code>​http://​cups.hep.lu.se:​631/​printers/​lw1</​code>​ +
-  - You will be asked for drivers. If you're lucky, they'​re on Windows Update, if you're not, find them yourself by looking at the vendor'​s website. +
-  - When the drivers have been installed, you should be able to use the printer. +
- +
-=== MacOS X === +
- +
-No idea. OSX uses the same CUPS system as linux ,so I guess it's easy. If anybody wants to write this, contact me.+
  
 ---- ----
  
-==== Installation if connected ​via Wireless ====+> **Q:** I cannot print via wireless. The printer dialog is stuck with the message "Hold for Authentication"​
  
-The best is to book a time with me if you need to install. +**A:** Wireless printing requires login due to general security ​and enforced national rulesIt is now possible ​to print via wifi by using your Particle Physics account also known as "​teddi"​ account (see https://www.hep.lu.se/staff/paganelli/​doku.php/​it_services:​pf#​accounts)
- +
-If you really want to do yourself: +
- +
-Root/Admin privilegesmight be needed if you need to install new drivers +
- +
-Install the printer drivers yourself, ​and then install the printer by using its hostname. +
-When choosing the printer driver, I suggest either PS or PCL. The result may vary depending on the printer. +
- +
-This may vary depending on the printer vendor, and Linux may or may not have the drivers. +
-A list of tested working drivers ​is provided [[#​Drivers|here]] +
- +
-All you need to do is to provide the hostname of the printer. In most cases it will work if you use +
- +
-  socket://<printer FQDN>:​9100 +
-or +
-  http://<​printer FQDN> +
-   +
-e.g. +
- +
-  socket://​lw1.hep.lu.se:9100 +
-  http://clw2.hep.lu.se+
  
 +In order to insert your login credentials,​ you need to click on the small round arrow next to the print dialog as in the picture below:
 +{{ :​it_services:​pf:​holdforauth.png?​600 |}}
 +Then you will be prompted for your username and password.
  
 ---- ----
 +===== Drivers =====
  
-===== Drivers =====  +They can be found on teddi or the shared storage at this path:
- +
-==== HP Laserjet 600 M601 M602 Black&​White ==== +
- +
-Hostname: ''​lw1.hep.lu.se''​ +
- +
-One must accept the license to download these drivers. +
- +
-The main source is the [[http://​h20564.www2.hp.com/​hpsc/​swd/​public/​readIndex?​sp4ts.oid=5254096&​lang=en&​cc=us#​Z7_3054ICK0K8UDA0AQC11TA930S6|HP page]] +
- +
-  * For **MS Windows**: Choose the proper Windows version (7/8/10) and architecture (32bit/​64bit)) +
-    *  I recommend the PCL6 driver for maximum control ​on the device +
-      * [[http://​h20564.www2.hp.com/​hpsc/​swd/​public/​detail?​sp4ts.oid=5254096&​swItemId=lj_98928_3&​swEnvOid=4063|Win 7 64bit here]]  +
-      * [[http://​h20564.www2.hp.com/​hpsc/​swd/​public/​detail?​sp4ts.oid=5254096&​swItemId=ds_99374_16&​swEnvOid=4192|Win 10 64 bit here]] +
-    * or the Universal PS driver if you need to print PS or DVI documents as well  +
-      * [[http://​h20564.www2.hp.com/​hpsc/​swd/​public/​detail?​sp4ts.oid=5254096&​swItemId=ds_99376_15&​swEnvOid=4063|Win 7 64bit here]] +
-      * [[http://​h20564.www2.hp.com/​hpsc/​swd/​public/​detail?​sp4ts.oid=5254096&​swItemId=ds_99376_16&​swEnvOid=4192|Win 10 64 bit here]] +
-  * For **Mac OS X** : [[http://​h20564.www2.hp.com/​hpsc/​swd/​public/​detail?​sp4ts.oid=5254096&​swItemId=lj_98930_1&​swEnvOid=219|Here]] +
-  * For **GNU/​Linux**:​ Drivers should be in the distribution repositories,​ but if not, follow the instructions here: [[http://​hplipopensource.com/​hplip-web/​gethplip.html|HPLIP driver]] +
- +
- +
-==== HP Laserjet 500 color M551  ==== +
- +
-Hostname''​clw2.hep.lu.se''​+
  
-One must accept the license to download these drivers.+''/​nfs/​windows/​drivers/​printers''​
  
-  * For **MS Windows**: [[http://​h20566.www2.hp.com/​portal/​site/​hpsc/​template.PAGE/​public/​psi/​swdDetails/?​sp4ts.oid=4184891&​spf_p.tpst=swdMain&​spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253Dlj_98544_2%257CswEnvOID%253D4063%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument&​javax.portlet.begCacheTok=com.vignette.cachetoken&​javax.portlet.endCacheTok=com.vignette.cachetoken| HP site ]] +Otherwise search for the printer name on respective vendor websites.
-  * For **Mac OS X**: [[http://​h20566.www2.hp.com/​portal/​site/​hpsc/​template.PAGE/​public/​psi/​swdDetails/?​sp4ts.oid=4184891&​spf_p.tpst=swdMain&​spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253Dlj_126159_2%257CswEnvOID%253D219%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument&​javax.portlet.begCacheTok=com.vignette.cachetoken&​javax.portlet.endCacheTok=com.vignette.cachetoken| HP site ]] +
-  * For **GNU/​Linux**:​ Drivers should be in the distribution repositories,​ but if not, follow the instructions here: [[http://​hplipopensource.com/​hplip-web/​gethplip.html|HPLIP driver]]+
  
 +lw1: HP Laserjet 600 M602 - https://​support.hp.com/​se-sv/​drivers/​selfservice/​hp-laserjet-enterprise-600-printer-m602-series/​5145285/​model/​5036604
 +  * For Linux these drivers are available in the **hplip** package on common distros, no need to download.
  
 +copy: Canon imageRUNNER ADVANCE DX C257i - https://​www.canon.se/​support/​business/​products/​office-printers/​imagerunner/​advance-dx/​imagerunner-advance-dx-c257i.html?​type=drivers&​os=all
it_services/pf/printing.1490276352.txt.gz · Last modified: 2017/03/23 13:39 by florido

Accessibility Statement