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 [2014/03/31 12:00]
florido
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]]+
  
-  ​* 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]]+ 
 +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 B315a          ​| ​                    | lw1.hep.lu.se | +^ lw1          | Yes    | No     | A4         | Room A404          ​| ​                    | lw1.hep.lu.se | 
-lw4          | Yes    | No     | A4         | Room B315a          | Paper feeder broken. use only for drafts. | newprinter.matfys.lth.se | +copy         | Yes    | Yes    | A4         | Room A404          ​| ​                    ​| ​copy.hep.lu.se |
-^ clw1         | Yes    | Yes    | A4         | Room B315a          | Old colour printer. Low memory. Use only for drafts. | clw1.hep.lu.se | +
-^ clw1_trans ​  | Yes    | Yes    | A4         | Room B315a          | Old colour printer, transparencies. Not in use anymore. | clw1.hep.lu.se | +
-^ clw2         | Yes    | Yes    | A4         | Room B315a          ​| ​                    ​| ​clw2.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. | fysik-printer.fysik.lu.se | +
- +
- +
-The printer ''​lw4'',​ 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 61: Line 52:
 To print to another printer (newprinter in this example) use To print to another printer (newprinter in this example) use
  
-  lpr -P newprinter ​file.ps+  lpr -P lw1 file.ps
  
 To see what is in the print queue To see what is in the print queue
  
   lpq   lpq
-  lpq -P copy-t+  lpq -P copy
  
 To remove all your printouts from the queue To remove all your printouts from the queue
  
   lprm -   lprm -
-  lprm - -P newprinter+  lprm - -P copy
  
 == Duplex/​simplex == == Duplex/​simplex ==
Line 124: 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
  
-  lpr -P newprinter ​-o prettyprint -o number-up=2 file.ps+  lpr -P lw1 -o prettyprint -o number-up=2 file.ps
  
 == Other useful utilities == == Other useful utilities ==
Line 134: Line 126:
 gv or ghostview, is the number one program to check a ps-file before printing it. It can save many trees gv or ghostview, is the number one program to check a ps-file before printing it. It can save many trees
  
- 
- 
-==== To print to the Copier Canon C5255i ==== 
- 
-The copier can only operate with codes. There are two codes depending on the faculty you belong. ​ 
-Please do not switch queues. 
- 
-**If the queue you're using doesn'​t work. please contact me.** 
- 
-If you don't know the code, contact Katarina. 
- 
-=== Linux Workstations and Clusters === 
- 
-The following copier queues should be used on **workstations**:​ 
- 
-^ Use this queue... ​ ^ ... if you belong to   ​^ ​ 
-| **copy-n** ​            | N-fak                  |  
-| **copy-t** ​            | LTH                    | 
- 
- 
-If you experience problems printing from KDE or command line, follow these instructions:​ 
- 
-== Kde: == 
- 
-  - Go to //Print// 
-  - select the copy machine (either //copy-n// or //copy-t// depending which faculty you are) 
-  - choose //​Properties -> Advanced// 
-  - Scroll the menu until you find <​code>​User Password (max ...) 
-User ID (max)</​code>​ and set both to ''​None''​ 
- 
-== Commandline:​ == 
- 
-To pass the codes to the print queue (should not be needed after you do the 
-KDE thing above, but in any case): 
- 
-''​lpr -o UserID=<​code>​ -o UserPassword=<​code>​ -Pcopy-t yourfile''​ 
- 
-It seems the driver for this printer is different than the previous one 
-and KDE always tries to fallback to some weird default. 
- 
----- 
  
 ==== 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.matfys.lth.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 wirelessInstallation  +Get to the print room where the printer is located and note the printer Model Name and hostnamesYou will need those later.
-instructions are completely different.+
  
-==== Installation if connected via ethernet cable ====+==== GNU/​Linux ​====
  
-**Linux laptops** and **Apple or Windows machines** would need to install all the printers manually.+Use your printer system configurator ​to add the printer. It may vary depending on distributions.
  
-=== GNU/​Linux ​===+  - 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.
  
-Get to the Matfys print room and note the printer names. You will need those later.+==== Windows ====
  
-There are four ways of installing ​the drivers:+  - 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) 
 +  - 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.
  
-== 1) Safe and Tedious (recommended) ​== +==== MacOS X ====
-Root privileges: not needed+
  
-use your printer system configurator ​to add the printerIt may vary depending on distributions.+Drivers needs to be installed (to download them see [[#​Drivers]]) by copying them in the ''/​Library/​Printers/​PPDs/​Contents/​Resources/''​ folderMore info about this may come.
  
-When asked for the printer, choose to add a **network printer** and type in the URL:+Once drivers are installed:
  
-  ​ipp://cups.matfys.lth.se:​631/​printers/<​printername+  ​- Go to **System preferences** -> **Printers and Scanners** -> add the //advanced printer configuration//​ tab this way: 
-   +    - ''​ctrl''​ + click on free space under ''​add printer''​ to customize toolbar 
-e.g.+    - 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
  
-  ipp://​cups.matfys.lth.se:​631/​printers/​maria +=== Known Issues ​===
-   +
-Repeat the above for each printer you want to add. +
- +
-This should not require drivers, as they are provided by the CUPS server. +
- +
-Test with ''​lpstat -a'',​ you should see the list of configured printers. +
- +
-== 2) Quick and Advanced (recommended for experts) ​== +
-Root privileges: needed +
- +
-The printers can be added directly to the current cups configuration using a configuration file. +
-:!: **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 Matfys. 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.matfys.lth.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 Matfys. +
- +
-== 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://​maria.matfys.lth.se:​9100 +
-  http://​maria.matfys.lth.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.matfys.lth.se:​631/​printers/​printername</​code>​ e.g. <​code>​http://​cups.matfys.lth.se:​631/​printers/​maria</​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"​
  
-:!: **NOTE:** it is NOT possible to install ''​printer.matfys.lth.se'' ​via wireless. :!: +**A:** Wireless printing requires login due to general security and enforced national rules. It 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)
- +
-The best is to book a time with me if you need to install. +
- +
-If you really want to do yourself: +
- +
-Root privileges: might 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 [[#​|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://​copy.matfys.lth.se:9100 +
-  http://copy.matfys.lth.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 black and white ==== +
- +
-Hostnames: ''​printer.matfys.lth.se'';''​maria.matfys.lth.se''​ +
- +
-:!: NOTE: This printer ​can ONLY work if connected to the **cable** network. :!: +
- +
-  * For **MS Windows**: [[http://​h20566.www2.hp.com/​portal/​site/​hpsc/​template.PAGE/​public/​psi/​swdDetails/?​sp4ts.oid=5036601&​spf_p.tpst=swdMain&​spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253Dlj_98928_2%257CswEnvOID%253D4063%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument&​javax.portlet.begCacheTok=com.vignette.cachetoken&​javax.portlet.endCacheTok=com.vignette.cachetoken|HP page]], click the "​Download"​ button. +
-  * 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]] +
-  * For **Mac OS X** [[http://​h20566.www2.hp.com/​portal/​site/​hpsc/​template.PAGE/​public/​psi/​swdDetails/?​sp4ts.oid=5036601&​spf_p.tpst=swdMain&​spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253Dlj_126116_2%257CswEnvOID%253D4159%257CitemLocale%253D%257CswLang%253D8%257Cmode%253D%257Caction%253DdriverDocument&​javax.portlet.begCacheTok=com.vignette.cachetoken&​javax.portlet.endCacheTok=com.vignette.cachetoken|HP page]] +
- +
-==== Copier Canon C5255i ==== +
- +
-Hostname: ''​copy.matfys.lth.se''​ +
- +
-One must accept the license to load these drivers. +
- +
-  * For **MS Windows**: http://​files.canon-europe.com/​files/​soft44716/​software/​o141h1en_w_pcl2110_32_64.exe +
-  * For **GNU/​Linux**:​ CQue driver version 2.0.6, should be in your distribution repositories. If not, get if from [[http://​software.canon-europe.com/​software/​0044596.asp?​model= | Canon website]] +
-  * For **Mac OS X**: +
-    * Canon UFR II proprietary driver, should suit most of needs: +
-      * http://​software.canon-europe.com/​software/​0044814.asp?​model= +
-    * These other drivers you might want to try if unsuccessful with the above or willing to install some other specific functionality:​ +
-      * Fax: http://​software.canon-europe.com/​software/​0044789_0011101.asp?​model= +
-      * PS driver: http://​software.canon-europe.com/​software/​0044055_0011101.asp?​model= +
-      * PS driver (office): http://​software.canon-europe.com/​software/​0044800_0011101.asp?​model= Not sure how this one differs from the above. +
-==== Multifunction Canon iSENSYS MFC 8540C ====+
  
-Hostname: ​''​newprinter.matfys.lth.se''​+''​/​nfs/​windows/​drivers/​printers''​
  
-  * **MS Windows 32 bit**: [[http://​www.canon.se/​Support/​Consumer_Products/​products/​Fax__Multifunctionals/​Laser/​LaserBase_MF_series/​i-SENSYS_MF8540Cdn.aspx?​DLtcmuri=tcm:​87-1102085&​page=1&​type=download | Canon Website]] +Otherwise search for the printer name on respective vendor websites.
-  * **MS Windows 64 bit**: [[http://​www.canon.se/​Support/​Consumer_Products/​products/​Fax__Multifunctionals/​Laser/​LaserBase_MF_series/​i-SENSYS_MF8540Cdn.aspx?​DLtcmuri=tcm:​87-1102085&​page=1&​type=download | Canon Website]] +
-  * **MAC OS X**: Has been reported to work with the **default PCL driver**. +
-  * **GNU/​Linux**:​ [[http://​www.canon.se/​Support/​Consumer_Products/​products/​Fax__Multifunctionals/​Laser/​LaserBase_MF_series/​i-SENSYS_MF8540Cdn.aspx?​DLtcmuri=tcm:​87-1072447&​page=1&​type=download |Canon Website]]+
  
 +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.
  
-:?:  Is my Windows 32 or 64 bits? +copyCanon 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
->> :!: [[http://windows.microsoft.com/en-us/windows/32-bit-and-64-bit-windows#​1TC=windows-7 |Check Microsoft Knowledge Base here ]]+
it_services/pf/printing.1396267214.txt.gz · Last modified: 2014/03/31 12:00 by florido

Accessibility Statement