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
Next revision Both sides next revision
it_services:pf:printing [2020/10/30 14:06]
florido [Installation if connected via Wireless]
it_services:pf:printing [2023/05/22 09:54]
florido
Line 1: Line 1:
 ====== Printing ====== ====== Printing ======
  
-:!: this page needs to be updated. Sorry for the inconvenience. :!:+:!: this page is WORK IN PROGESS. Sorry for the inconvenience. :!:
  
-Printing is provided in two different ways:+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 possible. The 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/​).
  
-  * 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.  +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.
-    * **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.+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 15: 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 =====
Line 64: Line 61:
  
   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 141: Line 138:
 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
  
 ---- ----
 ===== Installation ===== ===== Installation =====
- 
-Check if you're connected via cable or wireless. Installation ​ 
-instructions are completely different. 
  
 ==== Installation if connected via ethernet cable ==== ==== Installation if connected via ethernet cable ====
Line 158: Line 152:
  
 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: 
- 
-== 1) Safe and Tedious (recommended) == 
-Root privileges: not needed 
  
 use your printer system configurator to add the printer. It may vary depending on distributions. 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:+1. When asked for the printer, choose to add a **network printer** and type in the URL:
  
-  ​ipp://​cups.hep.lu.se:​631/​printers/<​printername>​+  ​ipps://​cups.hep.lu.se:​631/​printers/<​printername>​
   ​   ​
 e.g. e.g.
  
   ipp://​cups.hep.lu.se:​631/​printers/​lw1   ipp://​cups.hep.lu.se:​631/​printers/​lw1
-   +  ​ipp://​cups.hep.lu.se:​631/​printers/​copy 
-Repeat ​the above for each printer you want to add.+  
 +2. Repeat ​step 1 for each printer you want to add.
  
-This should not require drivers, as they are provided by the CUPS server.+//​lw1// ​should not require drivers, as they are provided by the standard ​CUPS server ​library on every Linux.
  
-Test with ''​lpstat -a'', ​you should see the list of configured printers.+For //​copy//  ​you will need to install ​the driversI provide a working version here: TODO
  
-== 2) Quick and Advanced (recommended for experts) == +3. Test with ''​lpstat -a'',​ you should see the list of configured printers.
-Root privileges: needed+
  
-The printers can be added directly to the current cups configuration using configuration file. +4. Print test pageIf connected via wireless ​you will be asked for username and password.
-:!: **Be careful**: backup ''/​etc/​cups/​printers.conf''​ before ​you proceed.+
  
-Follow these steps: +=== Windows ===
-  - become root and shut down cups (may vary depending on distribution):​ <​code:​bash>#​ If running Ubuntu < 16.04  +
- sudo service cups stop +
-# If running Ubuntu >16.04  +
- sudo systemctl stop cups +
-</​code>​  +
-  - download {{ :​it_services:​pf:​printers.conf.tar.gz | this file}} and extract it somewhere. +
-  - merge or add the contents of the file at the end of your ''/​etc/​cups/​printers.conf''​ file and save. You can also overwrite the existing file if you just intend to use the division printers. +
-  - restart cups <​code:​bash>#​ If running Ubuntu < 16.04  +
- sudo service cups start +
-# If running Ubuntu >16.04  +
- sudo systemctl start cups +
-</​code>​  +
-  - test with ''​lpstat -a'',​ you should see the list of configured printers.+
  
-== 3) Hackish ​and Fastest == +1. Go to Printers ​and Faxes and add a new printer
-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.+2When asked for a new printer, select network printer (TCP/IP)
  
-Follow these steps:+3. Add the printer this way<​code>​https://​cups.hep.lu.se:​631/​printers/​printername</​code>​ e.g. <​code>​http://​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: TODO 
 +  - When the drivers have been installed, you should be able to use the printer.
  
-  - become root and shut down cups (may vary depending on distribution):​ <​code:​bash>#​ If running Ubuntu < 16.04  +4. Print a test page. If connected via wireless ​you will be asked for username and password.
- sudo service cups stop +
-If running Ubuntu >= 16.04  +
- sudo systemctl stop cups +
-</​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.+=== MacOS X ===
  
-== 4) Evil and Time-consuming == +:!::!::!::!: 
-Root privilegesmight be needed if you need to install new drivers +this documentation only works for direct installation. For the cups server is a bit more complicated.  
- +Apple does not provide ​drivers ​for any of the printersThey need to be downloaded asideI provided them hereTODO 
-:?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 printerIn 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 ===+
  
 [thanks to Alice O.] [thanks to Alice O.]
Line 254: Line 198:
   - Click the **+** sign to add a printer.   - Click the **+** sign to add a printer.
   - Go to the **IP** tab.   - Go to the **IP** tab.
-  - Then there are two (alternative) options: +  - This should ​automatically detect the printer drivers. 
-    - **Alt. 1**:​(Recommended) ​This will automatically detect the printer drivers. +    - In the Address field, enter the hostname (e.g. ''​lw1.hep.lu.se''​). 
-      - In the Address field, enter the hostname (e.g. ''​lw1.hep.lu.se''​). +    - The rest of the information will be filled in automatically (you can change the Name and Location fields to something more useful). 
-      - The rest of the information will be filled in automatically (you can change the Name and Location fields to something more useful)+    - Click "​Add"​.
-      - Click "​Add"​+
-    ​- **Alt. 2**: This will go through the division print server, ensuring that the printer is only contacted via the server. Unfortunately the division'​s cups server does not share printer drivers. MAC will pick the "​Generic Postscript printer"​ which will miss most of the printers feature. +
-      - In the Address field, enter the CUPS server (''​cups.hep.lu.se:​631''​). +
-      - In the Queue field, enter enter the queue (''​printers/​lw1''​). +
-        - You can change the Name and Location fields to something more useful. +
-      ​- Click "​Add"​. +
- +
-In order to see the printers through the CUPS web interface, you will probably need to enable it on the command line: +
-<​code:​bash>​ sudo cupsctl WebInterface=yes</​code>​ +
-Then you can see the printers in the browser by going to ''​http://​localhost:​631/​printers/''​. +
- +
----- +
- +
-==== Installation if connected via Wireless ==== +
- +
-This documentation is still to be written. Please use [#​evil_and_time-consuming |solution 4)] above for Linux. +
-For Windows or Mac it is recommended to connect to the printer directly at the moment, as the print server is not fully compatible with non-linux systems yet. +
- +
----- +
- +
-===== Drivers =====  +
- +
-==== HP Laserjet 600 M601 M602 Black&​White ==== +
- +
-Hostname: ''​lw1.hep.lu.se''​ +
- +
-One must accept the license to download these drivers. +
- +
-If the links below are outdated, please refer to the main source on the HP website: [[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=ds_99374_16&​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_16&​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. +
- +
-  * 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 ]] +
-  * 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]] +
- +
it_services/pf/printing.txt · Last modified: 2023/08/02 08:00 by florido

Accessibility Statement