{"id":1175,"date":"2019-06-30T00:39:04","date_gmt":"2019-06-29T16:39:04","guid":{"rendered":"http:\/\/van-yzt.com\/?p=1175"},"modified":"2019-06-30T00:39:04","modified_gmt":"2019-06-29T16:39:04","slug":"mac%e7%bb%88%e7%ab%af%e6%b5%8f%e8%a7%88%e5%99%a8%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/huzi-baozi.com\/?p=1175","title":{"rendered":"Mac\u7ec8\u7aef\u6d4f\u89c8\u5668\u914d\u7f6e"},"content":{"rendered":"<h2>\u5de5\u5177<\/h2>\n<ul>\n<li>\nw3m<\/li>\n<li>\nlibsixel<\/li>\n<li>\nssserver, ss-local, polipo<\/li>\n<\/ul>\n<h2>\n\u5b89\u88c5\u914d\u7f6e\u4f7f\u7528<\/h2>\n<h3>\nlibsixel<\/h3>\n<p>\u7528\u4e8ew3m\u4e2d\u56fe\u5f62\u5316\u5c55\u793a\u3002<\/p>\n<ul>\n<li>\n\u4e0b\u8f7d\u6e90\u7801<code>git clone https:\/\/github.com\/saitoha\/libsixel<\/code><\/li>\n<li>\n\u914d\u7f6e\u3001\u6784\u5efa\u3001\u5b89\u88c5<\/p>\n<ul>\n<li>\nconfigure, make, make install<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u8fd9\u91cc\u9700\u8981\u6ce8\u610f\u51e0\u4e2a\u70b9\uff1a<\/p>\n<ol>\n<li>\n\u8bf7\u4f7f\u7528Iterm2 3.3+ \u7248\u672c\uff1b<\/li>\n<li>\n\u8bf7\u6784\u5efa\u5b8c\u6bd5\u4e4b\u540e\u5b89\u88c5\uff0c\u5373make install<\/li>\n<li>\nconfigure\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u770b\u4e0b\u54ea\u4e9b\u5305\u4e0d\u5b58\u5728\uff0c\u5efa\u8bae\u624b\u52a8\u52a0\u4e0a\u4f9d\u8d56<\/li>\n<\/ol>\n<h3>\nw3m<\/h3>\n<ul>\n<li>\n\u4e0b\u8f7d\u6e90\u7801<code>git clone https:\/\/github.com\/tats\/w3m<\/code><\/li>\n<li>\n\u914d\u7f6e\u3001\u6784\u5efa\u3001\u5b89\u88c5<\/p>\n<ul>\n<li>\nconfigure, make, make install<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u9700\u8981\u6ce8\u610f\uff1a<\/p>\n<ol>\n<li>\nconfigure\u7684\u65f6\u5019\uff0c\u8bf7\u6ce8\u610fSSL\u3001\u5e76\u4e14\u52a0\u4e0a<code>--enable-image<\/code>\u53c2\u6570\uff1b<\/li>\n<\/ol>\n<p>\u5b8c\u6210\u8fd9\u6b65\uff0c\u5176\u5b9e\u5c31\u53ef\u4ee5\u4f7f\u7528w3m -sixel <url> \u53bb\u5c1d\u8bd5\u7ec8\u7aef\u6d4f\u89c8\u7f51\u9875\u4e86\u3002\u4f46\u662f\uff0c\u4f1f\u5927\u7684\u4e2d\u56fd\u4eba\u6c11\u4e0e\u4e16\u754c\u4e4b\u95f4\u5b58\u5728\u7740\u4e00\u5835\u770b\u4e0d\u89c1\u7684\u9ad8\u5899\u3002\u8fd9\u4e2a\u65f6\u5019\uff0c\u5c31\u9700\u8981\u201c\u79d1\u5b66\u4e0a\u7f51\u201d\u8f6f\u4ef6\u7684\u5e2e\u52a9\u3002\u6211\u4eec\u8fd9\u91cc\u7528\u5230\u4e86ssserver\u548css-local\uff0c\u8fd9\u4e24\u4e2a\u4e1c\u897f\u6211\u5c31\u4e0d\u52a0\u8d58\u8ff0\u3002\u91cd\u8981\u7684\u662f\uff0c\u672c\u5730ss-local\u542f\u52a8\u7684server\u662fsocks5\u534f\u8bae\uff0c\u800cw3m\u53ea\u652f\u6301HTTP\u3002<\/p>\n<p>\u6240\u4ee5\uff0c\u8bf7<code>brew install polipo<\/code>\uff0cpolipo\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5c06socks5\u534f\u8bae\u8f6c\u4e3aHTTP\u534f\u8bae\u3002\u4f46\u662fdownload\u7684\u65f6\u5019\u4e00\u76f4hang\u4f4f\uff0c\u6240\u4ee5\u6211\u53bbGitHub\u4e0a\u4e0b\u8f7d\u4e86\u6e90\u7801\uff0c\u6784\u5efa\u7f16\u8bd1\u5b89\u88c5\uff08\u8fd9\u91cc\u6ca1\u6709\u989d\u5916\u7684\u914d\u7f6e\uff09\u3002<br \/>\n<code>polipo socksParentProxy=127.0.0.1:1086 2&gt;&amp;1 1&gt;\/tmp\/polipo.log &amp;<\/code>\u542f\u52a8\u670d\u52a1\u3002<\/p>\n<p>\u63a5\u7740\uff0c\u6253\u5f00w3m\uff0c\u4f7f\u7528o\u67e5\u770boptions\uff0c\u5728http proxy\u548chttps proxy\u4e2d\u586b\u5199<code>http:\/\/127.0.0.1:8123<\/code>\uff0c\u522b\u5fd8\u4e86\u70b9\u4e0b\u9762\u7684[OK]\u4fdd\u5b58\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5de5\u5177 w3m libsixel ssserver, ss-local, polipo \u5b89\u88c5\u914d\u7f6e\u4f7f\u7528 libsixel \u7528\u4e8ew3m\u4e2d\u56fe\u5f62\u5316\u5c55\u793a\u3002 \u4e0b\u8f7d\u6e90\u7801git clone https:\/\/github.com\/saitoha\/libsixel \u914d\u7f6e\u3001\u6784\u5efa\u3001\u5b89\u88c5 configure, make, make install \u8fd9\u91cc\u9700\u8981\u6ce8\u610f\u51e0\u4e2a\u70b9\uff1a \u8bf7\u4f7f\u7528Iterm2 3.3+ \u7248\u672c\uff1b \u8bf7\u6784\u5efa\u5b8c\u6bd5\u4e4b\u540e\u5b89\u88c5\uff0c\u5373make install configure\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u770b\u4e0b\u54ea\u4e9b\u5305\u4e0d\u5b58\u5728\uff0c\u5efa\u8bae\u624b\u52a8\u52a0\u4e0a\u4f9d\u8d56 w3m \u4e0b\u8f7d\u6e90\u7801git clone https:\/\/github.com\/tats\/w3m \u914d\u7f6e\u3001\u6784\u5efa\u3001\u5b89\u88c5 configure, make, make install \u9700\u8981\u6ce8\u610f\uff1a configure\u7684\u65f6\u5019\uff0c\u8bf7\u6ce8\u610fSSL\u3001\u5e76\u4e14\u52a0\u4e0a&#8211;enable-image\u53c2\u6570\uff1b \u5b8c\u6210\u8fd9\u6b65\uff0c\u5176\u5b9e\u5c31\u53ef\u4ee5\u4f7f\u7528w3m -sixel \u53bb\u5c1d\u8bd5\u7ec8\u7aef\u6d4f\u89c8\u7f51\u9875\u4e86\u3002\u4f46\u662f\uff0c\u4f1f\u5927\u7684\u4e2d\u56fd\u4eba\u6c11\u4e0e\u4e16\u754c\u4e4b\u95f4\u5b58\u5728\u7740\u4e00\u5835\u770b\u4e0d\u89c1\u7684\u9ad8\u5899\u3002\u8fd9\u4e2a\u65f6\u5019\uff0c\u5c31\u9700\u8981\u201c\u79d1\u5b66\u4e0a\u7f51\u201d\u8f6f\u4ef6\u7684\u5e2e\u52a9\u3002\u6211\u4eec\u8fd9\u91cc\u7528\u5230\u4e86ssserver\u548css-local\uff0c\u8fd9\u4e24\u4e2a\u4e1c\u897f\u6211\u5c31\u4e0d\u52a0\u8d58\u8ff0\u3002\u91cd\u8981\u7684\u662f\uff0c\u672c\u5730ss-local\u542f\u52a8\u7684server\u662fsocks5\u534f\u8bae\uff0c\u800cw3m\u53ea\u652f\u6301HTTP\u3002 \u6240\u4ee5\uff0c\u8bf7brew install polipo\uff0cpolipo\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5c06socks5\u534f\u8bae\u8f6c\u4e3aHTTP\u534f\u8bae\u3002\u4f46\u662fdownload\u7684\u65f6\u5019\u4e00\u76f4hang\u4f4f\uff0c\u6240\u4ee5\u6211\u53bbGitHub\u4e0a\u4e0b\u8f7d\u4e86\u6e90\u7801\uff0c\u6784\u5efa\u7f16\u8bd1\u5b89\u88c5\uff08\u8fd9\u91cc\u6ca1\u6709\u989d\u5916\u7684\u914d\u7f6e\uff09\u3002 polipo socksParentProxy=127.0.0.1:1086 2&gt;&amp;1 1&gt;\/tmp\/polipo.log &amp;\u542f\u52a8\u670d\u52a1\u3002 \u63a5\u7740\uff0c\u6253\u5f00w3m\uff0c\u4f7f\u7528o\u67e5\u770boptions\uff0c\u5728http proxy\u548chttps proxy\u4e2d\u586b\u5199http:\/\/127.0.0.1:8123\uff0c\u522b\u5fd8\u4e86\u70b9\u4e0b\u9762\u7684[OK]\u4fdd\u5b58\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1175","post","type-post","status-publish","format-standard","hentry","category-study"],"_links":{"self":[{"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/posts\/1175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1175"}],"version-history":[{"count":1,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/posts\/1175\/revisions"}],"predecessor-version":[{"id":1176,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/posts\/1175\/revisions\/1176"}],"wp:attachment":[{"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}