{"id":344,"date":"2013-01-19T01:03:45","date_gmt":"2013-01-18T19:03:45","guid":{"rendered":"http:\/\/alexeyka.zantsev.com\/?p=344"},"modified":"2013-01-19T01:24:26","modified_gmt":"2013-01-18T19:24:26","slug":"printers-control-from-the-console","status":"publish","type":"post","link":"https:\/\/alexeyka.zantsev.com\/?p=344","title":{"rendered":"Printers control from the console"},"content":{"rendered":"<p>A short list of helpful commands for printers&#8217; control.<\/p>\n<p><code>lpq<\/code> &#8211; shows the default system printer (if set) and its printing queue;<br \/>\n<code>lpstat -a<\/code> &#8211; shows all printers, available in the system, their &#8216;working since&#8217; time and type of connection (USB\/local network, etc);<\/p>\n<p><code>lpstat -p<\/code> &#8211; shows all printers, available in the system, their &#8216;working since&#8217; time and type of connection (USB\/local network, etc);<br \/>\n<code>lpstat -v<\/code> &#8211; shows all printers, available in the system, their &#8216;working since&#8217; time and type of connection (USB\/local network, etc);<\/p>\n<p><code>lpadmin -d printer_name<\/code> &#8211; set the printer_name as default system printer;<br \/>\n<code>lpadmin -x printer_name<\/code> &#8211; deletes printer_name printer from the system;<br \/>\n<code>cupsenable printer_name<\/code> &#8211; turns the printer_name printer on on the OS level;<br \/>\n<code>cupsdisable printer_name<\/code> &#8211; turns the printer_name printer off;<\/p>\n<p><code>cupsctl --share-printers<\/code> &#8211; shares all printers in the system, making them available across the network; and run the next command =><br \/>\n<code>cupsctl 'BrowseLocalProtocols=\"all\"'<\/code> &#8211; use all protocols of network printing. If you use Linux machines only (both printing server and client), it&#8217;s better to type &#8220;ipp&#8221; instead of &#8220;all&#8221;. IPP means Internet Printing Protocol.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A short list of helpful commands for printers&#8217; control. lpq &#8211; shows the default system printer (if set) and its printing queue; lpstat -a &#8211; shows all printers, available in the system, their &#8216;working since&#8217; time and type of connection (USB\/local network, etc); lpstat -p &#8211; shows all printers, available in the system, their &#8216;working [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[97,111,59],"class_list":["post-344","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-cups","tag-lp","tag-printing"],"_links":{"self":[{"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/posts\/344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=344"}],"version-history":[{"count":4,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/posts\/344\/revisions"}],"predecessor-version":[{"id":346,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/posts\/344\/revisions\/346"}],"wp:attachment":[{"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}