This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
it_services:pf:printing [2017/03/23 13:40] florido [HP Laserjet 600 M601 M602 Black&White] |
it_services:pf:printing [2020/03/11 10:31] florido [Installation if connected via ethernet cable] |
||
---|---|---|---|
Line 121: | Line 121: | ||
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 | ||
Line 185: | Line 186: | ||
Follow these steps: | Follow these steps: | ||
- | - become root and shut down cups (may vary depending on distribution): <code>sudo service cups stop</code> | + | - become root and shut down cups (may vary depending on distribution): <code:bash># If running Ubuntu < 16.04 |
- | - download this file (sorry I didn't have the time to craft this yet... stay tuned) | + | sudo service cups stop |
- | - merge or add the contents of the file at the end of your ''/etc/cups/printers.conf'' file and save. | + | # If running Ubuntu >= 16.04 |
- | - restart cups <code>sudo service cups start</code> | + | 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. | - test with ''lpstat -a'', you should see the list of configured printers. | ||
Line 198: | Line 207: | ||
Follow these steps: | Follow these steps: | ||
- | - become root and shut down cups (may vary depending on distribution): <code>sudo service cups stop</code> | + | - 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> | ||
- add this line to ''/etc/cups/client.conf'' (create it if it doesn't exist): <code>ServerName cups.hep.lu.se</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. | - test with ''lpstat -a'', you should see the list of all configured printers. | ||
Line 236: | Line 249: | ||
=== MacOS X === | === 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. | + | [thanks to Alice O.] |
+ | - Go to **System Preferences** > **Printers & Scanners**. | ||
+ | - Click the **+** sign to add a printer. | ||
+ | - Go to the **IP** tab. | ||
+ | - Then there are two (alternative) options: | ||
+ | - **Alt. 1**:(Recommended) This will automatically detect the printer drivers. | ||
+ | - 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). | ||
+ | - 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/''. | ||
---- | ---- | ||
Line 242: | Line 272: | ||
==== Installation if connected via Wireless ==== | ==== Installation if connected via Wireless ==== | ||
- | The best is to book a time with me if you need to install. | + | The printers currently do not work via Wireless, sorry. |
- | + | ||
- | If you really want to do yourself: | + | |
- | + | ||
- | Root/Admin 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 [[#Drivers|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://lw1.hep.lu.se:9100 | + | |
- | http://clw2.hep.lu.se | + | |
---- | ---- | ||
Line 276: | Line 284: | ||
One must accept the license to download these drivers. | One must accept the license to download these drivers. | ||
- | The main source is the [[http://h20564.www2.hp.com/hpsc/swd/public/readIndex?sp4ts.oid=5254096&lang=en&cc=us#Z7_3054ICK0K8UDA0AQC11TA930S6|HP page]] | + | 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)) | * For **MS Windows**: Choose the proper Windows version (7/8/10) and architecture (32bit/64bit)) |