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
it_services:pf:printing [2018/11/30 10:28]
florido [Installation if connected via ethernet cable]
it_services:pf:printing [2019/05/15 13:25] (current)
florido [Installation if connected via Wireless]
Line 185: Line 185:
  
 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> ​
   - download {{ :​it_services:​pf:​printers.conf.tar.gz | this file}} and extract it somewhere.   - 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.   - 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>​sudo service cups start</​code>​+  - 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 206:
 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 248:
 === MacOS X === === MacOS X ===
  
-No ideaOSX uses the same CUPS system as linux ,so I guess it'​s ​easyIf anybody wants to write thiscontact me.+[thanks to Alice Ohlson] 
 +  - 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 fieldenter 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 driversMAC 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 interfaceyou 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 271:
 ==== 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 +
  
 ---- ----
it_services/pf/printing.1543573685.txt.gz · Last modified: 2018/11/30 10:28 by florido