{"id":2356,"date":"2023-06-04T09:04:27","date_gmt":"2023-06-04T07:04:27","guid":{"rendered":"http:\/\/clark.tipistrani.it\/?p=2356"},"modified":"2023-06-04T09:04:27","modified_gmt":"2023-06-04T07:04:27","slug":"cups-un-server-di-stampa-per-linux-e-samba","status":"publish","type":"post","link":"http:\/\/clark.tipistrani.it\/?p=2356","title":{"rendered":"CUPS un server di stampa per Linux e samba"},"content":{"rendered":"<p><a href=\"https:\/\/it.wikipedia.org\/wiki\/Common_Unix_Printing_System\">CUPS<\/a> (Common Unix Printig System) sviluppato da Apple \u00e8 de facto il server di stampa di Linux e Samba.<br \/>\nDa root installare con apt cups\u00a0 e quindi in \/etc\/cups modificare il cupsd.conf in questo modo (le subnet sono indicative)<\/p>\n<p>#Listen localhost:631<br \/>\nPort 631<br \/>\nListen \/run\/cups\/cups.sock<\/p>\n<p># Show shared printers on the local network.<br \/>\n#Browsing On<br \/>\nBrowsing off<br \/>\nBrowseLocalProtocols dnssd<\/p>\n<p># Default authentication type, when authentication is required&#8230;<br \/>\nDefaultAuthType Basic<\/p>\n<p># Web interface setting&#8230;<br \/>\nWebInterface Yes<\/p>\n<p># Restrict access to the server&#8230;<br \/>\n&lt;Location \/&gt;<br \/>\nAllow localhost<br \/>\nAllow From 127.0.0.1<br \/>\nAllow From 172.27.200.0\/24<br \/>\nAllow From 192.168.2.0\/23<br \/>\nOrder allow,deny<br \/>\n&lt;\/Location&gt;<\/p>\n<p># Restrict access to the admin pages&#8230;<br \/>\n&lt;Location \/admin&gt;<br \/>\nAllow localhost<br \/>\nAllow From 127.0.0.1<br \/>\nAllow From 172.27.200.0\/24<br \/>\nAllow From 192.168.2.0\/23<br \/>\nOrder allow,deny<br \/>\n&lt;\/Location&gt;<\/p>\n<p># Restrict access to configuration files&#8230;<br \/>\n&lt;Location \/admin\/conf&gt;<br \/>\nAuthType Default<br \/>\nRequire user @SYSTEM<br \/>\nAllow localhost<br \/>\nAllow From 127.0.0.1<br \/>\nAllow From 172.27.200.0\/24<br \/>\nAllow From 192.168.2.0\/23<br \/>\nOrder allow,deny<br \/>\n&lt;\/Location&gt;<br \/>\nLasciando il resto inalterato, restartare il servizio e quindi con un browser puntare a http:\/\/indirizzo_server_cups:631<br \/>\nli aggiungere le stampanti dopo aver fornito le credenziali di root.<br \/>\nLa generazione pu\u00f2 esser di diversi tipi io ho scelto questa:<br \/>\nlpd:\/\/nome_stampante\/nome_coda_di_stampa ad esempio lpd:\/\/galvanica\/galvanica facendo coincidere nome host e nome coda quindi dare nome, descrizione e location della stampante nel modulo seguente continuare e scegliere il driver raw il driver vero e proprio lo si mette sui client, a questo punto la generazione della stampante \u00e8 finita.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CUPS (Common Unix Printig System) sviluppato da Apple \u00e8 de facto il server di stampa di Linux e Samba. Da root installare con apt cups\u00a0 e quindi in \/etc\/cups modificare il cupsd.conf in questo modo (le subnet sono indicative) #Listen localhost:631 Port 631 Listen \/run\/cups\/cups.sock # Show shared printers on the local network. #Browsing On [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,11,6],"tags":[267,268,149],"class_list":["post-2356","post","type-post","status-publish","format-standard","hentry","category-linux","category-samba","category-work","tag-cups","tag-printing","tag-samba"],"_links":{"self":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/2356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2356"}],"version-history":[{"count":3,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/2356\/revisions"}],"predecessor-version":[{"id":2362,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/2356\/revisions\/2362"}],"wp:attachment":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2356"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}