{"id":583,"date":"2017-03-03T16:55:37","date_gmt":"2017-03-03T08:55:37","guid":{"rendered":"http:\/\/192.168.1.20\/?p=583"},"modified":"2017-03-25T15:22:11","modified_gmt":"2017-03-25T07:22:11","slug":"ubuntu{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}e6{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}8c{47dd41ec6bdcbd9a214c783a3735392b82ea6d1d918378c5a53e06407","status":"publish","type":"post","link":"http:\/\/alextop.top\/?p=583","title":{"rendered":"ubuntu\u6307\u4ee4 \u66f4\u65b0\u3001root\u5bc6\u7801\u3001\u8f6f\u4ef6\u6e90\u3001ubuntu\u5f71\u68adss"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>\u8f6f\u4ef6\u66f4\u65b0\u5668\uff08\u4e5f\u53ef\u66f4\u65b0\u7cfb\u7edf\uff09<\/p>\n<p>sudo update-manager -c -d<\/p>\n<p>&nbsp;<\/p>\n<p>\u7528root\u76f4\u63a5\u767b\u5165ubuntu 14_04<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u5982\u9700\u4f7f\u7528root\u8eab\u4efd\u767b\u5f55\uff0c\u53ef\u6253\u5f00\u7ec8\u7aef\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<br \/>\n#\u8bbe\u7f6eroot\u5bc6\u7801<br \/>\nsudo passwd root<br \/>\n#\u5207\u6362\u5230root\u7528\u6237<br \/>\nsudo -s<\/p>\n<p>\u60f3\u8981\u5728\u767b\u5f55\u754c\u9762\u4f7f\u7528root\u8eab\u4efd\u767b\u5f55\uff0c\u53ef\u7f16\u8f91\/etc\/lightdm\/\u76ee\u5f55\u4e0b\u7684lightdm.conf\u6587\u4ef6\uff0c\u5982\u6ca1\u6709\u6b64\u6587\u4ef6\uff0c\u76f4\u63a5\u521b\u5efa<br \/>\n1.\u5728terminal\u4e0b\u8f93\u5165<br \/>\nsudogedit \/usr\/share\/lightdm\/lightdm.conf.d\/50-ubuntu.conf<\/p>\n<p>\u5185\u5bb9\u5165\u4e0b<\/p>\n<p>&nbsp;<\/p>\n<p>autologin-user=root<\/p>\n<p>user-session=ubuntu<\/p>\n<p>greeter-show-manual-login=true<\/p>\n<p>&nbsp;<\/p>\n<p>2.\u5728terminal\u4e0b\u8f38\u5165<br \/>\ngedit \/root\/.profile<br \/>\n3.\u7528reboot\u547d\u4ee4\u91cd\u542f\u5373\u53ef<\/p>\n<p>&nbsp;<br \/>\nE: Encountered a section with no Package: header\u9519\u8bef\u89e3\u51b3\u65b9\u6cd5<\/p>\n<p>&nbsp;<\/p>\n<p>\u5728\u672c\u5b50\u4e0a\u5347\u7ea7\u5230\u4e8612.10\u3002\u4f46\u662f\u5728update\u7684\u65f6\u5019\u9047\u5230\u5982\u4e0b\u9519\u8bef\uff1a<\/p>\n<p>\u6b63\u5728\u8bfb\u53d6\u8f6f\u4ef6\u5305\u5217\u8868&#8230; \u6709\u9519\u8bef\uff01<\/p>\n<p>E: Encountered a section with no Package: header<br \/>\nE: Problem with MergeList \/var\/lib\/apt\/lists\/cn.archive.ubuntu.com_ubuntu_dists_quantal_multiverse_i18n_Translation-zh<br \/>\nE: \u65e0\u6cd5\u89e3\u6790\u6216\u6253\u5f00\u8f6f\u4ef6\u5305\u7684\u5217\u8868\u6216\u662f\u72b6\u6001\u6587\u4ef6\u3002<\/p>\n<p>\u539f\u56e0\u662f12.04\u548c12.10\u7684deb\u6e90list\u53d1\u751f\u51b2\u7a81\uff0c\u89e3\u51b3\u529e\u6cd5\u662f\u5220\u9664\u8be5\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\uff1a<\/p>\n<p>\u590d\u5236\u4ee3\u7801<br \/>\n\u4ee3\u7801\u5982\u4e0b:<\/p>\n<p>sudo rm -rf \/var\/lib\/apt\/lists\/*<\/p>\n<p>\u7136\u540e\u6267\u884cupdate\u547d\u4ee4\u6765\u91cd\u65b0\u751f\u6210\uff1a<\/p>\n<p>apt-get update<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>ubuntu 14.04 LTS\u5b89\u88c5ss\u5ba2\u6237\u7aef<\/h2>\n<p>\u524d\u63d0\u73af\u5883<\/p>\n<p>python \uff08\u7528\u6700\u65b0\u7684\u5c31\u884c\uff09<br \/>\npip \uff08\u6ce8\uff1apython\u5de5\u5177\uff09<br \/>\nbuild-essential<\/p>\n<p>\u4ee5\u4e0a\u53ef\u4ee5\u901a\u8fc7\u4e00\u6761\u547d\u4ee4\u89e3\u51b3\uff1a<br \/>\nsudo apt-get install python-pip python-dev build-essential<br \/>\n\u5982\u679c\u592a\u65e7\u4e86\u7684\uff0c\u8981\u81ea\u884c\u5347\u7ea7\u3002<br \/>\n\u5b89\u88c5ss<\/p>\n<p>\u4f7f\u7528\u547d\u4ee4\uff1a<br \/>\nsudo pip install shadowsocks<br \/>\n\u914d\u7f6ess<\/p>\n<p>\u5728\u4efb\u610f\u5730\u65b9\u521b\u5efa\u4e00\u4e2a\u540d\u4e3ass.json\u7684\u6587\u4ef6\uff1a<\/p>\n<p>touch ss.json<\/p>\n<p>\u5f80\u91cc\u9762\u5199\u5165\uff1a<\/p>\n<p>{<br \/>\n&#8220;server&#8221;:&#8221;\u670d\u52a1\u5668IP&#8221;,<br \/>\n&#8220;server_port&#8221;:\u7aef\u53e3,<br \/>\n&#8220;local_address&#8221;:&#8221;127.0.0.1&#8243;,<br \/>\n&#8220;local_port&#8221;:1080,<br \/>\n&#8220;password&#8221;:&#8221;\u5bc6\u7801&#8221;,<br \/>\n&#8220;timeout&#8221;:600,<br \/>\n&#8220;method&#8221;:&#8221;aes-256-cfb&#8221;,<br \/>\n&#8220;fast_open&#8221;:false<br \/>\n}<\/p>\n<p>\u4ee5\u4e0a\u7684\u5185\u5bb9\u4e2d\u7684\u4e2d\u6587\u90e8\u5206\u8fdb\u884c\u66ff\u6362\uff0c\u65e0\u9700\u6dfb\u52a0\u4efb\u4f55\u5176\u4ed6\u4e1c\u897f\uff0c\u5bf9\u5176\u4e2d\u7684\u9009\u9879\u5982\u679c\u6bd4\u8f83\u4e86\u89e3\u7684\uff0c\u81ea\u884c\u4fee\u6539\u3002\u5b83\u76f8\u5f53\u4e8e\u914d\u7f6e\u4e86ss\u76d1\u542c\u5728\u672c\u5730\u76841080\u7aef\u53e3\uff0c\u6240\u6709\u8d70\u672c\u57301080\u7aef\u53e3\u7684socket\u90fd\u4f1a\u81ea\u52a8\u7ffb\u8d8a\u957f\u57ce\u3002<br \/>\n\u542f\u52a8ss<\/p>\n<p>\u5728ss.json\u6240\u5728\u6587\u4ef6\u5939\u4e0b\u6253\u5f00\u7ec8\u7aef\uff0c\u6216\u8005\u81ea\u884c\u5207\u5230\u8be5\u6587\u4ef6\u5939\u4e0b\uff1a<br \/>\nsslocal ss.json<\/p>\n<p>\u6700\u540e\u4e00\u6b65\uff0c\u8bbe\u7f6e\u7cfb\u7edf\u8d70\u4ee3\u7406\u8def\u7ebf<\/p>\n<p>\u6253\u5f00\u7cfb\u7edf\u8bbe\u7f6e-&gt;\u7f51\u7edc-&gt;\u7f51\u7edc\u4ee3\u7406\uff0c\u9009\u62e9\u624b\u52a8\u9009\u9879\uff0c\u586b\u5165127.0.0.1 1080\u5230socks\u4e3b\u673a\u9879\uff0c\u5176\u4ed6\u90fd\u4e0d\u5fc5\u52a8\u6216\u8005\u6e05\u7a7a\u4e5f\u884c\uff0c\u70b9\u51fb\u5e94\u7528\u5373\u53ef\u3002\u6253\u5f00\u6d4f\u89c8\u5668\u8bd5\u8bd5\u5427\u3002<\/p>\n<p>\u5230\u8fd9\u91cc\u5c31\u5b8c\u6210\u4e86\uff0c\u6709\u5174\u8da3\u7684\u7ee7\u7eed\u5f80\u4e0b\u3002<br \/>\n\u4e0d\u591f\u5b8c\u7f8e<\/p>\n<p>\u4ee5\u4e0a\u7684\u914d\u7f6e\u786e\u5b9e\u53ef\u4ee5\u5b9e\u73b0\u4e86\uff0c\u4f46\u662f\u6d4f\u89c8\u5668\u6240\u6709\u7684\u6d41\u91cf\u90fd\u8d70\u56fd\u5916\u4e86\uff08\u7531\u4e8e\u5de5\u4f5c\u7684\u534f\u8bae\u5c42\u4e0d\u4e00\u6837\uff0c\u7ec8\u7aef\u4e5f\u4e0d\u4f1a\u8d70\u56fd\u5916\u8def\u7ebf\uff0c\u5176\u4ed6\u8f6f\u4ef6\u4e5f\u8981\u8fdb\u884c\u8bbe\u7f6e\u624d\u884c\uff0c\u9664\u4e86\u6d4f\u89c8\u5668\uff0c\u6211\u7528chrome\uff09\u3002\u8bd5\u8bd5\u4f7f\u7528ss\u7684pac\u6a21\u5f0f\u5427\uff0c\u795e\u5947\u5730\u81ea\u52a8\u9009\u62e9\u8fd1\u7684\u8def\u7ebf\u3002<br \/>\n\u751f\u6210pac\u6587\u4ef6\u3002<\/p>\n<p>\u524d\u63d0\u73af\u5883\uff1a<br \/>\nsudo pip install genpac<br \/>\n\u7528\u547d\u4ee4\u751f\u6210pac\u6587\u4ef6\uff1a<\/p>\n<p>genpac &#8211;proxy=&#8221;SOCKS5 127.0.0.1:1080&#8243; &#8211;gfwlist-proxy=&#8221;SOCKS5 127.0.0.1:1080&#8243; -o autoproxy.pac &#8211;gfwlist-url=&#8221;https:\/\/autoproxy-gfwlist.googlecode.com\/svn\/trunk\/gfwlist.txt&#8221;<\/p>\n<p>\u5728\u8bbe\u7f6e-&gt;\u7f51\u7edc-&gt;\u7f51\u7edc\u4ee3\u7406\uff0c\u9009\u62e9\u81ea\u52a8\uff0c\u586b\u5165file:\/\/\/home\/xcw0754\/autoproxy.pac\uff0c\u8fd9\u662f\u6211\u7684pac\u6587\u4ef6\u8def\u5f84\u3002<br \/>\n\u8fd8\u662f\u5acc\u9ebb\u70e6<\/p>\n<p>\u76f4\u63a5\u70b9\u51fb\u5b89\u88c5\u5ba2\u6237\u7aef\uff08https:\/\/github.com\/shadowsocks\/shadowsocks-qt5\/wiki\/{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}E5{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}AE{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}89{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}E8{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}A3{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}85{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}E6{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}8C{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}87{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}E5{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}8D{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}97\uff09\u5566\uff0c\u4f46\u662f\u4f60\u7684\u7cfb\u7edf\u4ecd\u7136\u662f\u9700\u8981\u5230\u7cfb\u7edf\u8bbe\u7f6e\u4e2d\u53bb\u914d\u7f6e\u90a3\u4e9b\u4e1c\u897f\u7684\uff0c\u6bd4\u5982pac\u6587\u4ef6\u3002<br \/>\n\u672c\u6587\u6c38\u4e45\u66f4\u65b0\u5730\u5740\uff1ahttp:\/\/www.linuxdiyf.com\/linux\/18663.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u8f6f\u4ef6\u66f4\u65b0\u5668\uff08\u4e5f\u53ef&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-583","post","type-post","status-publish","format-standard","hentry","category-jishu"],"_links":{"self":[{"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/posts\/583"}],"collection":[{"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=583"}],"version-history":[{"count":0,"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/posts\/583\/revisions"}],"wp:attachment":[{"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=583"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}