{"id":492,"date":"2014-09-19T13:48:37","date_gmt":"2014-09-19T11:48:37","guid":{"rendered":"http:\/\/aabz.si\/wp\/?p=482"},"modified":"2014-09-19T13:48:37","modified_gmt":"2014-09-19T11:48:37","slug":"cups-server","status":"publish","type":"post","link":"https:\/\/zogan.si\/wp\/?p=492","title":{"rendered":"CUPS printing"},"content":{"rendered":"<p>CUPS server<br \/>\nhttp:\/\/localhost:631\/<\/p>\n<hr \/>\n<p>Adding a local printer:<br \/>\nsystem-config-printer &amp;<\/p>\n<hr \/>\n<p>Starting CUPS server:<br \/>\nsudo \/etc\/init.d\/cups start<br \/>\nali<br \/>\nsudo \/service \/etc\/init.d\/cupsd start<br \/>\nsudo update-rc.d cupsd defaults<\/p>\n<hr \/>\n<p>Print with lpr:<br \/>\nlpr doc1.ps<br \/>\nSet default printer in .bashrc add line:<\/p>\n<p>export PRINTER=lp3<\/p>\n<p>To override default printer with lpr:<br \/>\nlpr -P canyonps doc1.ps<\/p>\n<p>Status lpc:<br \/>\n\/usr\/sbin\/lpc status<\/p>\n<hr \/>\n<p>Removing print jobs with lprm:<br \/>\nlprm -P lp0<br \/>\nlprm<\/p>\n<hr \/>\n<p>Show print queue:<br \/>\nlpq<\/p>\n<hr \/>\n<p>Samba setting for shared printer:<br \/>\nglobal]<br \/>\nload printers=yes<br \/>\ncups options=raw<br \/>\n;printcam name=\/etc\/printcap<br \/>\n;prionting=cups<br \/>\nprinters]<br \/>\ncomment=All Printers<br \/>\npath=\/var\/spool\/samba<br \/>\nbrowseable=yes<br \/>\nwriteable=no<br \/>\nprintable=yes<\/p>","protected":false},"excerpt":{"rendered":"<p>CUPS server http:\/\/localhost:631\/ Adding a local printer: system-config-printer &amp; Starting CUPS server: sudo \/etc\/init.d\/cups start ali sudo \/service \/etc\/init.d\/cupsd start sudo update-rc.d cupsd defaults Print with lpr: lpr doc1.ps Set<\/p>\n<p><a href=\"https:\/\/zogan.si\/wp\/?p=492\" class=\"more-link themebutton\">Read More<\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pgc_sgb_lightbox_settings":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-492","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/zogan.si\/wp\/index.php?rest_route=\/wp\/v2\/posts\/492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zogan.si\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zogan.si\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zogan.si\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zogan.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=492"}],"version-history":[{"count":0,"href":"https:\/\/zogan.si\/wp\/index.php?rest_route=\/wp\/v2\/posts\/492\/revisions"}],"wp:attachment":[{"href":"https:\/\/zogan.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zogan.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zogan.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}