{"id":774,"date":"2013-09-25T22:00:40","date_gmt":"2013-09-25T14:00:40","guid":{"rendered":"http:\/\/guoh.ai\/lifelog\/?p=774"},"modified":"2013-10-06T13:55:55","modified_gmt":"2013-10-06T05:55:55","slug":"replacing-ubuntu-11-10-network-manager-with-wicd","status":"publish","type":"post","link":"https:\/\/guoh.ai\/lifelog\/2013\/09\/replacing-ubuntu-11-10-network-manager-with-wicd\/","title":{"rendered":"\u7528Wicd\u66ff\u6362Ubuntu 11.10 Network Manager"},"content":{"rendered":"<p>Ubuntu 11.10\u7684Network Manager\u4e0d\u662f\u5f88\u7a33\u5b9a\uff0c\u7ecf\u5e38\u65ad\u7ebf\uff0c\u7279\u522b\u662f\u7f51\u7edc\u72b6\u6001\u4e0d\u662f\u5f88\u597d\u7684\u65f6\u5019(\u6839\u636e\u81ea\u5df1\u7ecf\u9a8c\u603b\u7ed3\u51fa\u6765\uff0c\u800c\u4e14\u65ad\u4e86\u5c31\u5f88\u96be\u8fde\u4e0a)\uff0cdmesg\u663e\u793a\u8d85\u65f6\u3002\u5b9e\u5728\u5fcd\u4e0d\u4f4f\u4e86\u5728\u7f51\u4e0a\u641c\u641c\uff0c\u522b\u4eba\u8bf4\u53ef\u4ee5\u7528Wicd\u66ff\u6362\u6389Network Manager\u3002<br \/>\n\u52a8\u624b\u5f00\u59cb<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo apt-get install wicd<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo aptitude remove network-manager<\/pre>\n<p>\u5176\u5b9e\u5982\u679c\u4f60\u6bd4\u8f83\u8c28\u614e\uff0c\u4e0d\u60f3\u7acb\u5373\u5220\u9664Network Manager\u7684\u8bdd\uff0c\u4f60\u53ef\u4ee5\u5148\u505c\u6b62\u670d\u52a1\uff0c\u7136\u540e\u518d\u7981\u6b62\u6389\u5b83\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo \/etc\/init.d\/network-manager stop<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo update-rc.d network-manager disable<\/pre>\n<p>\u7136\u540e\u518d\u91cd\u542fwicd<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo \/etc\/init.d\/wicd restart<\/pre>\n<p>\u6216\u8005\u91cd\u542f\u7cfb\u7edf\u3002<\/p>\n<p>\u6ce8\u610f\u4e86\uff0c\u6211\u4e00\u822c\u662f\u901a\u8fc7WPA2\u6765\u52a0\u5bc6\u65e0\u7ebf\u8fde\u63a5\u7684(\u4e5f\u5c31\u662f\u8def\u7531\u5668\u5f00\u4e86\u8fd9\u4e2a)\uff0c\u6211\u4eec\u8fde\u63a5Access Point\u7684\u65f6\u5019\u4e5f\u5e94\u5f53\u9009\u62e9\u8fd9\u4e2a\uff0c\u901a\u5e38\u6211\u4eec\u90fd\u4f1a\u8f93\u5165\u5bf9\u5e94\u7684\u660e\u6587\u5bc6\u7801\uff0c\u6bd4\u5982SSID\u4e3a&#8221;TA&#8217;S WIFI&#8221;\uff0cPASSWORD\u4e3a&#8221;cheatbot&#8221;\uff0c\u6211\u4eec\u76f4\u63a5\u9009\u62e9\u5bf9\u5e94\u7684SSID\u5e76\u4e14\u8f93\u5165\u8fd9\u4e2a\u660e\u6587\u5bc6\u7801\u5c31\u597d\u4e86\u3002<\/p>\n<p>\u4f46\u662fWicd\u8fd9\u91cc\u4e0d\u4e00\u6837\u7684\uff0c\u5b83\u9700\u8981\u4f60\u8f93\u5165\u4e00\u4e2aPassphrase\uff0c\u4e5f\u5c31\u662fUse Encryption\u4e0b\u7684WPA 1\/2 (Passphrase)\uff0c\u8fd9\u4e2a\u4e0d\u662f\u76f4\u63a5\u7684\u660e\u6587\u5bc6\u7801\uff0c\u5982\u679c\u4f60\u8f93\u5165\u76f4\u63a5\u7684\u660e\u6587\u5bc6\u7801\uff0c\u8fde\u63a5\u7684\u65f6\u5019\u5c31\u4f1a\u51fa\u73b0\u5bc6\u7801\u9519\u8bef\uff0cBad Password\u4e5f\u5c31\u662f\u8fd9\u4e48\u51fa\u6765\u7684\uff0c\u90a3\u4e48\u8fd9\u4e2a\u503c\u4ece\u54ea\u91cc\u6765\uff1f<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">man wpa_passphrase<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nWPA_PASSPHRASE(8)                                            WPA_PASSPHRASE(8)\r\n\r\nNAME\r\n       wpa_passphrase - Generate a WPA PSK from an ASCII passphrase for a SSID\r\n\r\nSYNOPSIS\r\n       wpa_passphrase &#x5B; ssid ] &#x5B; passphrase ]\r\n\r\nOVERVIEW\r\n       wpa_passphrase  pre-computes  PSK  entries  for  network  configuration\r\n       blocks of a wpa_supplicant.conf file. An ASCII passphrase and SSID  are\r\n       used to generate a 256-bit PSK.\r\n\r\nOPTIONS\r\n       ssid   The SSID whose passphrase should be derived.\r\n\r\n       passphrase\r\n              The  passphrase  to  use.  If  not included on the command line,\r\n              passphrase will be read from standard input.\r\n\r\nSEE ALSO\r\n       wpa_supplicant.conf(5) wpa_supplicant(8)\r\n\r\nLEGAL\r\n       wpa_supplicant is copyright (c) 2003-2007, Jouni Malinen &lt;j@w1.fi&gt;  and\r\n       contributors.  All Rights Reserved.\r\n\r\n       This  program  is  dual-licensed  under  both the GPL version 2 and BSD\r\n       license. Either license may be used at your option.\r\n\r\n                               07 September 2010             WPA_PASSPHRASE(8)\r\n<\/pre>\n<p>\u8fd9\u91cc\u5c31\u53ef\u4ee5\u770b\u5230\u5b9e\u9645\u662f\u6267\u884c\u5982\u4e0b\u547d\u4ee4<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nguohai@KNIGHT:~$ wpa_passphrase &quot;TA&#039;S WIFI&quot; &quot;cheatbot&quot;\r\nnetwork={\r\n\tssid=&quot;TA&#039;S WIFI&quot;\r\n\t#psk=&quot;cheatbot&quot;\r\n\tpsk=f122b3c5a2c1b50064805d44fa8b23802dadfdfa6e2dbb73bdf3d2ee702a4146\r\n}\r\n<\/pre>\n<p>\u8fd9\u91cc\u957f\u957f\u7684psk\u5c31\u662f\u9700\u8981\u6211\u4eec\u586b\u5230Properties\u7684Key\u91cc\u9762\u53bb\u7684\uff0c\u586b\u597d\u8fd9\u4e9b\u4e4b\u540e\uff0c\u8bd5\u7740\u8fde\u8fde\u770b(\u5982\u679c\u8fde\u4e0d\u4e0a\uff0c\u5c31\u91cd\u542f\u4e0b\u7cfb\u7edf\uff0c\u6211\u662f\u8fd9\u6837\u7684\uff0c\u7136\u540e\u6211\u8fd8\u52fe\u9009\u4e86\u524d\u9762\u7684Automatically connect to this network)\uff0c\u7136\u540e\u5b83\u5c31\u80fd\u6210\u529f\u8fde\u63a5\u4e0a\u4e86\u3002<\/p>\n<p>\u5f53\u7136\u7a33\u5b9a\u6027\u8fd8\u6709\u5f85\u89c2\u6d4b\uff0c\u4e0d\u8fc7\u5230\u73b0\u5728\u8fd8\u6ca1\u6709\u51fa\u73b0\u8fc7\u4e4b\u524d\u65ad\u5f00\u7684\u60c5\u51b5\uff0c\u867d\u7136Wicd\u6ca1\u6709\u9ed8\u8ba4\u7684Network Manager\u76f4\u89c2\uff0c\u597d\u770b\uff0c\u4f46\u662f\u53ea\u8981\u5b83\u7a33\u5b9a\u597d\u7528\uff0c\u6211\u4e5f\u5c31\u6ee1\u610f\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 11.10\u7684Network Manager\u4e0d\u662f\u5f88\u7a33\u5b9a\uff0c\u7ecf\u5e38\u65ad\u7ebf\uff0c\u7279\u522b\u662f\u7f51\u7edc\u72b6\u6001\u4e0d\u662f\u5f88\u597d\u7684\u65f6\u5019(\u6839\u636e\u81ea\u5df1\u7ecf\u9a8c\u603b\u7ed3\u51fa\u6765\uff0c\u800c\u4e14\u65ad\u4e86\u5c31\u5f88\u96be\u8fde\u4e0a)\uff0cdmesg\u663e\u793a\u8d85\u65f6\u3002\u5b9e\u5728\u5fcd\u4e0d\u4f4f\u4e86\u5728\u7f51\u4e0a\u641c\u641c\uff0c\u522b\u4eba\u8bf4\u53ef\u4ee5\u7528Wicd\u66ff\u6362\u6389Network Manager\u3002 \u52a8\u624b\u5f00\u59cb sudo apt-get install wicd sudo aptitude remove network-manager \u5176\u5b9e\u5982\u679c\u4f60\u6bd4\u8f83\u8c28\u614e\uff0c\u4e0d\u60f3\u7acb\u5373\u5220\u9664Network Manager\u7684\u8bdd\uff0c\u4f60\u53ef\u4ee5\u5148\u505c\u6b62\u670d\u52a1\uff0c\u7136\u540e\u518d\u7981\u6b62\u6389\u5b83\u3002 sudo \/etc\/init.d\/network-manager stop sudo update-rc.d network-manager disable \u7136\u540e\u518d\u91cd\u542fwicd sudo \/etc\/init.d\/wicd restart \u6216\u8005\u91cd\u542f\u7cfb\u7edf\u3002 \u6ce8\u610f\u4e86\uff0c\u6211\u4e00\u822c\u662f\u901a\u8fc7WPA2\u6765\u52a0\u5bc6\u65e0\u7ebf\u8fde\u63a5\u7684(\u4e5f\u5c31\u662f\u8def\u7531\u5668\u5f00\u4e86\u8fd9\u4e2a)\uff0c\u6211\u4eec\u8fde\u63a5Access Point\u7684\u65f6\u5019\u4e5f\u5e94\u5f53\u9009\u62e9\u8fd9\u4e2a\uff0c\u901a\u5e38\u6211\u4eec\u90fd\u4f1a\u8f93\u5165\u5bf9\u5e94\u7684\u660e\u6587\u5bc6\u7801\uff0c\u6bd4\u5982SSID\u4e3a&#8221;TA&#8217;S WIFI&#8221;\uff0cPASSWORD\u4e3a&#8221;cheatbot&#8221;\uff0c\u6211\u4eec\u76f4\u63a5\u9009\u62e9\u5bf9\u5e94\u7684SSID\u5e76\u4e14\u8f93\u5165\u8fd9\u4e2a\u660e\u6587\u5bc6\u7801\u5c31\u597d\u4e86\u3002 \u4f46\u662fWicd\u8fd9\u91cc\u4e0d\u4e00\u6837\u7684\uff0c\u5b83\u9700\u8981\u4f60\u8f93\u5165\u4e00\u4e2aPassphrase\uff0c\u4e5f\u5c31\u662fUse Encryption\u4e0b\u7684WPA 1\/2 (Passphrase)\uff0c\u8fd9\u4e2a\u4e0d\u662f\u76f4\u63a5\u7684\u660e\u6587\u5bc6\u7801\uff0c\u5982\u679c\u4f60\u8f93\u5165\u76f4\u63a5\u7684\u660e\u6587\u5bc6\u7801\uff0c\u8fde\u63a5\u7684\u65f6\u5019\u5c31\u4f1a\u51fa\u73b0\u5bc6\u7801\u9519\u8bef\uff0cBad Password\u4e5f\u5c31\u662f\u8fd9\u4e48\u51fa\u6765\u7684\uff0c\u90a3\u4e48\u8fd9\u4e2a\u503c\u4ece\u54ea\u91cc\u6765\uff1f man wpa_passphrase WPA_PASSPHRASE(8) WPA_PASSPHRASE(8) NAME wpa_passphrase &#8211; Generate a WPA PSK from an ASCII passphrase for a SSID SYNOPSIS wpa_passphrase &hellip; <a href=\"https:\/\/guoh.ai\/lifelog\/2013\/09\/replacing-ubuntu-11-10-network-manager-with-wicd\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u7528Wicd\u66ff\u6362Ubuntu 11.10 Network Manager<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_gfmr_meta_descriptions":[],"_gfmr_multilingual_taxonomy_terms":[],"footnotes":""},"categories":[6],"tags":[],"class_list":["post-774","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/posts\/774","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/comments?post=774"}],"version-history":[{"count":5,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/posts\/774\/revisions"}],"predecessor-version":[{"id":781,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/posts\/774\/revisions\/781"}],"wp:attachment":[{"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/media?parent=774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/categories?post=774"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/tags?post=774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}