User Tools

Site Tools


it_services:pf

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 [2014/02/25 17:48]
florido
it_services:pf [2017/09/18 07:49]
florido [Useful documents]
Line 1: Line 1:
 ====== IT Services for Particle Physics ====== ====== IT Services for Particle Physics ======
  
-[[#Printing|{{https://​openclipart.org/​image/​128px/​svg_to_png/​34897/​warszawinka-printer.png | Printing }}]] +| **Printing** ​[[it_services:​pf:​Printing|{{ https://​openclipart.org/​image/​128px/​svg_to_png/​34897/​warszawinka-printer.png |Printing}}]] ​|
- +
----- +
- +
-===== Printing ===== +
- +
-**Disclaimer**:​ Printing is only provided for machines connected to the network via network cable. If you try to print wireless you might not succeed. If you need to print a document, I suggest you transfer it to ''​teddi.hep.lu.se''​ first. +
- +
-Printing is mostly provided by the //CUPS// server ''​cups.hep.lu.se''​. +
- +
-**Servers** and **Workstations** are automatically connected to all the printers served by it. +
- +
-These can be usually seen by issuing +
- +
-  lpstat -a +
-   +
-at the command line. Example: +
- +
-<​code>​pflorido@teddi:​~$ lpstat -a +
-clw1 accepting requests since tor 13 feb 2014 19.06.24 +
-clw1_trans accepting requests since fre  3 maj 2013 09.55.58 +
-clw2 accepting requests since tis 25 feb 2014 14.43.41 +
-lw1 accepting requests since tis 25 feb 2014 16.35.50 +
-lw4 accepting requests since tis 25 feb 2014 08.52.57 +
-lw4_hpdrivertest accepting requests since mån 18 nov 2013 10.47.04 +
-Ricoh accepting requests since ons 15 jan 2014 17.26.31 +
-</​code>​ +
- +
-If you have a personal machine or a windows machine you should read further. +
- +
-==== Installation ==== +
- +
-**Linux laptops** and **Apple or Windows machines** would need to install all the printers manually. +
- +
-:!: In our division the printers are not publicly shown in the network, so don't get fooled! if you see a printer in the printer browser might not be ours. Follow the instructions below to be on the safe side. +
- +
-=== GNU/Linux === +
- +
-Get to the printer room **B315a** and note the printer names. 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. +
- +
-When asked for the printer, choose to add a **network printer** and type in the URL: +
- +
-  ipp://​cups.hep.lu.se:​631/​printers/<​printername>​ +
-   +
-e.g. +
- +
-  ipp://​cups.hep.lu.se:​631/​printers/​lw1 +
-   +
-Repeat the above for each printer you want to add. +
- +
-This should not require drivers, as they are provided by the CUPS server. Some newer versions of CUPS seem to have problem accepting this fact :-D. +
- +
-Once installed, 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 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 the premises of our division.  +
- +
-== 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 +
-   +
-e.g. +
- +
-  socket://​clw1.hep.lu.se:​9100 +
- +
- +
-=== 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 have an account on teddi, you might access the drivers folder by entering ''​\\PONGO\shared\windows\drivers''​ in explorer file manager windows. You might be asked for access credentials. +
-    - If you don't have an account on teddi, try on Windows Update. If you're lucky windows will find them for you. +
-    - If Windows update didn't help, come and ask me, I have the drivers. +
-    - If I am not at the division, get the drivers from the vendor. +
-  - 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.+
  
  
 ---- ----
  
-Happy printing!  ​+===== Useful documents =====
  
 +  * [[http://​www.hep.lu.se/​staff/​paganelli/​fileshare/​2017doktoranddagen/​ITservices_path.sozi.html | Summary infographic of IT services at Particle Physics, written for Doktoranddagen 2017 ]]
 +  * [[http://​www.hep.lu.se/​courses/​MNXB01/​|MNXB01 Programming course for scientists ]]
 +  * [[http://​www.hep.lu.se/​courses/​MNXB01/​2015/​MNXB01-tutorial-1b.pdf|Introduction to Linux Command Line]] by [[http://​www.hep.lu.se/​staff/​konya/​|Balázs Kónya]]
it_services/pf.txt · Last modified: 2023/05/22 12:13 by florido

Accessibility Statement