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 [2018/11/30 10:27] florido [Installation if connected via ethernet cable] |
it_services:pf:printing [2018/12/13 12:19] florido |
||
---|---|---|---|
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 files 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. |