{"id":479,"date":"2011-01-28T00:30:38","date_gmt":"2011-11-28T13:51:50","guid":{"rendered":"http:\/\/kraftek.com\/blog\/share-a-printer-to-winxp-from-samba\/"},"modified":"2011-01-28T00:30:38","modified_gmt":"2011-11-28T13:51:50","slug":"share-a-printer-to-winxp-from-samba","status":"publish","type":"post","link":"\/blog\/index.php\/share-a-printer-to-winxp-from-samba\/","title":{"rendered":"share a printer to winxp from samba"},"content":{"rendered":"<p>To share a printer to the windows world you should:<br \/>\nModify \/etc\/cups\/cupsd. conf<br \/>\n&lt;Location \/printers\/deskjet&gt;<br \/>\n#Order Allow,Deny \/\/comment<br \/>\n#Deny From All \/\/comment<br \/>\nAllow From 127.0.0.1<br \/>\nAllow From 172.16.1.*<br \/>\n#AuthType None<br \/>\nAllow from All<br \/>\n&lt;\/Location&gt;<br \/>\n&lt;Location \/&gt;<br \/>\n#Order Deny,Allow<br \/>\n#Deny From All<br \/>\nAllow From 127.0.0.1<br \/>\nAllow From 172.16.1.*<br \/>\n&lt;\/Location&gt;<br \/>\nBrowsing On<br \/>\nBrowseProtocols cups<br \/>\n#BrowseOrder Deny,Allow<br \/>\nBrowseAllow @LOCAL<br \/>\nModify smb.conf, ensure the following is set:<br \/>\nprinting = cups<br \/>\nprintcap name = cups<br \/>\n[printers]<br \/>\ncomment = All Printers<br \/>\npath = \/var\/spool\/samba<br \/>\nbrowseable = no<br \/>\nguest ok = no<br \/>\nwritable = no<br \/>\nprintable = yes<br \/>\nprinting = cups<br \/>\npublic = yes<br \/>\nprinter name = deskjet<br \/>\nThen I had this error:<br \/>\nlpr: unable to print file: client-error-document-format-not-supported<br \/>\nSo we edit \/etc\/cups\/mime.types and change:<br \/>\napplication\/vnd. cups-raw (string(0,&lt;1B&gt;E) + !string(2,&lt;1B&gt;%0B)) string(0,&lt;1B&gt;@) 238\/433<br \/>\n(contains(0,128,&lt;1B&gt;%-12345X) + (contains(0,1024,&#8221;LANGUAGE=PCL&#8221;) contains(0,1024,&#8221;LANGUAGE = PCL&#8221;)))<br \/>\nto<br \/>\napplication\/vnd. cups-raw (string(0,&lt;1B&gt;E) + !string(2,&lt;1B&gt;%0B)) string(0,&lt;1B&gt;@) (contains(0,4096,&lt;1B&gt;%-12345X) + (contains(0,4096,&#8221;LANGUAGE=PCL&#8221;) contains(0,4096,&#8221;LANGUAGE = PCL&#8221;)))<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To share a printer to the windows world you should: Modify \/etc\/cups\/cupsd. conf &lt;Location \/printers\/deskjet&gt; #Order Allow,Deny \/\/comment #Deny From All \/\/comment Allow From 127.0.0.1 Allow From 172.16.1.* #AuthType None Allow from All &lt;\/Location&gt; &lt;Location \/&gt; #Order Deny,Allow #Deny From All Allow From 127.0.0.1 Allow From 172.16.1.* &lt;\/Location&gt; Browsing On BrowseProtocols cups #BrowseOrder Deny,Allow BrowseAllow [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-479","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/479","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=479"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/479\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=479"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}