{"id":86,"date":"2006-12-13T08:47:01","date_gmt":"2006-12-13T00:47:01","guid":{"rendered":"http:\/\/www.liangliang.org.cn\/blog\/?p=86"},"modified":"2006-12-13T08:47:01","modified_gmt":"2006-12-13T00:47:01","slug":"debian%e7%b3%bb%e7%bb%9f%e9%85%8d%e5%88%b6%e5%b7%a5%e5%85%b7","status":"publish","type":"post","link":"https:\/\/www.liangliang.org.cn\/?p=86","title":{"rendered":"debian\u7cfb\u7edf\u914d\u5236\u5de5\u5177"},"content":{"rendered":"<p>\u521a\u624d\u8bba\u575b\u4e0a\u770b\u5230\u6709\u4e2a\u5144\u5f1f\u63d0\u8bae\u7f57\u5217debian\u7cfb\u7edf\u914d\u5236\u5de5\u5177\uff0c\u6211\u89c9\u7684\u5f88\u597d\uff0c\u4e3a\u4e86\u8ba9\u66f4\u591a\u5144\u5f1f\u770b\u5230\uff0c\u53d1\u65b0\u8d34\uff0c\u671b\u522b\u4ecb\u610f\u3002<\/p>\n<p>\u90fd\u662f\u547d\u4ee4\u884c\u7684\u914d\u5236\u5de5\u5177\uff1a<\/p>\n<p>rcconf<br \/>\n\u7cfb\u7edf\u5f15\u5bfc\u662f\u4f60\u60f3\u8981\u542f\u52a8\u7684\u670d\u52a1\uff0c\u5f88\u6709\u7528\u5de5\u5177\u3002<\/p>\n<p>base-config<br \/>\n\u57fa\u7cfb\u7edf\u914d\u5236\uff0c\u7b2c\u4e00\u6b21\u542f\u52a8\u540e\uff0c\u78b0\u5230\u7684\u5c31\u662f\u5b83\u5427\uff0c\u914d\u5236\u7684\u65b9\u9762\u5f88\u591a\u54e6\uff0c\u5475\u5475\u3002<\/p>\n<p>debconf Debian \u5305\u88f9\u914d\u5236\u7cfb\u7edf<\/p>\n<p>dpkg-reconfigure \u914d\u5236\u4e00\u4e2a\u5df2\u7ecf\u5b89\u88c5\u7684\u5305\u88f9<br \/>\n\u5f88\u6709\u7528\u54e6\uff0c\u4efb\u4f55\u5b89\u88c5\u7684\u5305\u88f9\u90fd\u53ef\u4ee5\u7528\u5b83\u6765\u914d\u5236\u3002<\/p>\n<p>apt-get install etherconf<br \/>\ndpkg-reconfiguration etherconf<br \/>\n\u7f51\u7edc\u7684\u914d\u5236\uff0c\u5305\u62ec\u4e3b\u673a\u540d\uff0cIP\uff0cDHCP\uff0cDNS\uff0cGATEWAY\uff0cNETMASK\u3002\u3002\u3002\u7b49\u3002<\/p>\n<p>\u5982\u679c\u5982\u679c\u4f60\u7528lan\u4e0a\u7f51\uff0c\u8fd9\u51e0\u4e2a\u6587\u4ef6\u5f88\u91cd\u8981\uff1a<br \/>\n\/etc\/hostname\u4e3b\u673a\u540d<br \/>\n\/etc\/network\/interfaces \u7f51\u7edc\u914d\u5236<br \/>\n\/etc\/resolv.conf DNS\u914d\u5236<br \/>\n\u5982\uff1a<br \/>\nnameserver 202.96.104.18<br \/>\nnameserver 202.96.103.36<\/p>\n<p>dpkg-reconfiguration xserver-xfree86<br \/>\n\u9f20\u6807\uff0c\u952e\u76d8\uff0c\u663e\u793a\u5668\u548c\u663e\u5361\u914d\u5236\uff0c\u80fd\u4e0d\u80fd\u8fdbX\uff0c\u5168\u770b\u5b83\u4e86\u3002<br \/>\n\u6216\u624b\u5de5\u4fee\u6539\/etc\/X11\/XF86Config-4,\u4f5c\u7528\u4e00\u6837\u3002<\/p>\n<p>modconf<br \/>\n\u5927\u5bb6\u80af\u5b9a\u4f1a\u5728\u521a\u5f00\u59cb\u88c5\u7cfb\u7edf\u65f6\u78b0\u5230\u90a3\u4e2a\u53e6\u4eba\u671b\u800c\u751f\u754f\u7684\u57fa\u4e8e\u8868\u5355\u7684\u6a21\u5757\u9009\u53d6\u754c\u9762\uff08\u6211\u8fd8\u66fe\u4e13\u95e8\u5199\u4e00\u8d34\uff0c\u5173\u4e8e\u5982\u4f55\u9009\u53d6\u6a21\u5757\uff09\uff0c\u5c31\u662f\u5b83\u4e86\u3002Debian\u60f3\u7684\u975e\u5e38\u5468\u5230\uff0c\u5b83\u628a\u4f60\u987b\u8981\u7684\u6a21\u5757\u90fd\u505a\u597d\u4e86\uff0c\u53ea\u7b49\u4f60\u52a8\u624b\u9009\u4e86\uff0c\u4ee5\u540e\u5fd8\u4e86\u9009\u6216\u60f3\u79fb\u9664\u6a21\u5757\uff0c\u5343\u4e07\u4e0d\u8981\u9760\u91cd\u88c5\u6765\u89e3\u51b3\u95ee\u9898\uff0c\u5475\u5475\u3002<\/p>\n<p>\u5f53\u7136\u4e5f\u53ef\u4ee5\u624b\u52a8\u6dfb\u52a0\u4e86\uff1a<br \/>\n\/etc\/modules<br \/>\n\u8fd9\u91cc\u5199\u7684\u90fd\u662f\u4f60\u5f15\u5bfc\u65f6\u8981\u52a0\u8f7d\u7684\u5185\u6838\u6a21\u5757,\u53ef\u4ee5\u81ea\u5df1\u6dfb\u52a0\uff0c<br \/>\n\/etc\/modules.conf<br \/>\n\u6a21\u5757\u914d\u5236\uff0c\u8fd9\u4e2a\u4e0d\u7528\u81ea\u5df1\u6539\uff0c<br \/>\n\u5728\u4f60\u4fee\u6539\u4e86\/etc\/modules\u540e\uff0c\u53ef\u7528update-modules\u6765\u91cd\u5efa\/etc\/modules.conf\u548c\/etc\/chandev.conf\u3002<\/p>\n<p>\u51e0\u4e2a\u597d\u7528\u7684\u547d\u4ee4\uff1a<br \/>\nmodprobe - high level handling of loadable modules<br \/>\n\u7528\u6765\u52a0\u8f7d\u6a21\u5757<br \/>\nmodprobe -c \u663e\u793a\u5f53\u524d\u6b63\u88ab\u4f7f\u7528\u7684\u6a21\u5757\u914d\u5236<br \/>\nmodprobe -l \u663e\u793a\u80fd\u5339\u914d\u7684\u6a21\u5757\u5217\u8868\uff0c\u4f60\u53ef\u4ee5\u627e\u4f60\u9700\u8981\u7684\u6a21\u5757<br \/>\nmodprobe modname \u52a0\u8f7d\u6a21\u5757<br \/>\nmodprobe -r modname \u79fb\u9664\u6a21\u5757<\/p>\n<p>insmod - install loadable kernel module<br \/>\n\u7ed9\u6b63\u5728\u8fd0\u884c\u7684\u5185\u6838\u5b89\u88c5\u4e00\u4e2a\u53ef\u52a0\u8f7d\u6a21\u5757\u3002<br \/>\nrmmod<br \/>\n\u4ece\u6b63\u5728\u8fd0\u884c\u7684\u5185\u6838\u5378\u8f7d\u6a21\u5757\u3002<br \/>\nlsmod<br \/>\n\u5217\u51fa\u5df2\u52a0\u8f7d\u7684\u6a21\u5757\u3002<br \/>\nmodinfo modname<br \/>\n\u663e\u793a\u6bcf\u4e2a\u6a21\u5757\u7684\u4fe1\u606f\uff0c\u5f88\u6709\u8da3\u3002<\/p>\n<p>apt-setup<br \/>\n\u914d\u5236apt\u6e90\uff0c\u5c31\u662f\u5b89\u88c5\u65f6\u7684\u4f60\u770b\u5230\u7684\u90a3\u4e2a\uff0c\u5e2e\u52a9\u4f60\u5199\/etc\/apt\/source.list<\/p>\n<p>apt-get install aptconf<br \/>\ndpkg-reconfigure aptconf<br \/>\n\u914d\u5236apt\uff0c\u5982\u7981\u7528\u54ea\u4e2aapt\u6e90\uff0c\u81ea\u5b9a\u4e49\u6dfb\u52a0apt\u6e90\uff08\u5c31\u8c61\u662f\u4e2a\u50a8\u85cf\u5ba4\uff09\u7b49\uff0c\u627e\u7684\u662f\u4f60\u7684source.list\uff0c\u597d\u73a9\u3002<\/p>\n<p>apt-get install timezoneconf<br \/>\ndpkg-reconfigure timezoneconf<br \/>\n\u914d\u5236\u65f6\u533a\uff0c\u65e5\u671f\uff0c\u548c\u65f6\u95f4\u3002<\/p>\n<p>apt-get install localeconf<br \/>\ndpkg-reconfigure localeconf<br \/>\n\u914d\u5236locale\uff0c\u4e0d\u7528\u6211\u8bf4\u4e86\u5427\u3002<\/p>\n<p>locale<br \/>\n\u67e5\u770b\u672c\u5730\u7684locale<\/p>\n<p>dpkg-reconfigure locales<br \/>\n\u529f\u80fd\u540clocaleconf<\/p>\n<p>cpanel,\u522b\u4eba\u63d0\u9192\u7684\uff0c\u5475\u5475\uff0c\u51d1\u4e2a\u6570<br \/>\n\u4e2d\u6587\u56fe\u5f62\u914d\u5236\u5de5\u5177\u3002<\/p>\n<p>\u5475\u5475\uff0c\u6211\u600e\u4e48\u77e5\u9053\u7684\u5462\uff1f<br \/>\n\u5475\u5475\uff0capt-cache search debconf<br \/>\n\u8bb0\u5f97\u591a\u770b\u770b\u7537\u4eba(man)\u5440\uff0c\u4e0d\u8981\u82b1\u592a\u591a\u7684\u5fc3\u601d\u5728mm\u4e0a\u5440 \uff1a\uff09<\/p>\n<p>\u8bb0\u7684\u8ddf\u8d34\u54e6\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u521a\u624d\u8bba\u575b\u4e0a\u770b\u5230\u6709\u4e2a\u5144\u5f1f\u63d0\u8bae\u7f57\u5217debian\u7cfb\u7edf\u914d\u5236\u5de5\u5177\uff0c\u6211\u89c9\u7684\u5f88\u597d\uff0c\u4e3a\u4e86\u8ba9\u66f4\u591a\u5144\u5f1f\u770b\u5230\uff0c\u53d1\u65b0\u8d34\uff0c\u671b\u522b\u4ecb\u610f\u3002 \u90fd\u662f\u547d\u4ee4\u884c\u7684\u914d\u5236\u5de5\u5177\uff1a rcconf \u7cfb\u7edf\u5f15\u5bfc\u662f\u4f60\u60f3\u8981\u542f\u52a8\u7684\u670d\u52a1\uff0c\u5f88\u6709\u7528\u5de5\u5177\u3002 base-c&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-86","post","type-post","status-publish","format-standard","hentry","category-debian"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/86","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=86"}],"version-history":[{"count":0,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/86\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=86"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=86"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}