User Tools

Site Tools


it_services:pf

This is an old revision of the document!


IT Services for Particle Physics

 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:

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

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:

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.

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:

  1. become root and shut down cups (may vary depending on distribution):
    sudo service cups stop
  2. download this file (sorry I didn't have the time to craft this yet… stay tuned)
  3. merge or add the contents of the file at the end of your /etc/cups/printers.conf file and save.
  4. restart cups
    sudo service cups start
  5. 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:

  1. become root and shut down cups (may vary depending on distribution):
    sudo service cups stop
  2. add this line to /etc/cups/client.conf (create it if it doesn't exist):
    ServerName cups.hep.lu.se
  3. 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:

  1. Go to Printers and Faxes and add a new printer
  2. When asked for a new printer, select network printer (TCP/IP)
  3. Add the printer this way:
    http://cups.hep-lu.se:631/printers/printername

    e.g.

    http://cups.hep.lu.se:631/printers/lw1
  4. You will be asked for drivers:
    1. 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.
    2. If you don't have an account on teddi, try on Windows Update. If you're lucky windows will find them for you.
    3. If Windows update didn't help, come and ask me, I have the drivers.
    4. If I am not at the division, get the drivers from the vendor.
  5. 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.

Printers Status

You can check the printers status by connecting to the print server using your browser, at the link cups.hep.lu.se:631. It is only visible within the division.


Happy printing!

it_services/pf.1393351367.txt.gz · Last modified: 2014/02/25 18:02 by florido