This is an old revision of the document!
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.
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.
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 .
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:
sudo service cups stop
/etc/cups/printers.conf
file and save.sudo service cups start
lpstat -a
, you should see the list of configured printers.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:
sudo service cups stop
/etc/cups/client.conf
(create it if it doesn't exist): ServerName cups.matfys.lth.se
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.
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 ). 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
I will write them when I have time. For the moment being, the only thing I can suggest is:
http://cups.hep-lu.se:631/printers/printername
e.g.
http://cups.hep.lu.se:631/printers/maria
\\PONGO\shared\windows\drivers
in explorer file manager windows. You might be asked for access credentials.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!