{"id":1351,"date":"2009-07-20T11:13:58","date_gmt":"2009-07-20T03:13:58","guid":{"rendered":"http:\/\/www.killtest.com.tw\/?p=1351"},"modified":"2009-07-20T11:13:58","modified_gmt":"2009-07-20T03:13:58","slug":"linux","status":"publish","type":"post","link":"https:\/\/www.killtest.com.tw\/?p=1351","title":{"rendered":"Linux\u8077\u696d\u8a8d\u8b49\u5fc5\u5099102\u500b\u77e5\u8b58\u9ede\uff08\u4e00\uff09"},"content":{"rendered":"<p>Linux\u804c\u4e1a\u8ba4\u8bc1\u8003\u8bd5102\u5fc5\u8003\u77e5\u8bc6\u70b9<\/p>\n<p>\u786c\u4ef6\u548c\u4f53\u7cfb\u7ed3\u6784<br \/>\n1. \/proc\/interrupts \u6587\u4ef6\u663e\u793a\u5f53\u524d\u7cfb\u7edf\u4e2d\u6b63\u5728\u4f7f\u7528\u7684\u4e2d\u65ad.<br \/>\n2. Linux\u652f\u6301\u6807\u51c6\u4e32\/\u5e76\u53e3\u548c\u6e38\u620f\u68d2\u53e3. \/dev\u76ee\u5f55\u4e0b\u5bf9\u5e94\u6bcf\u4e2a\u8bbe\u5907\/\u7aef\u53e3\u6709\u4e00\u4e2a\u6587\u4ef6.setserial\u547d\u4ee4\u7528\u4e8e\u663e\u793a\u4fee\u6539\u4e32\u53e3\u914d\u7f6e.<br \/>\n3. dmesg\u547d\u4ee4\u53ef\u663e\u793aLinux\u5728\u542f\u52a8\u65f6\u53d1\u73b0\u4e86\u54ea\u4e9b\u786c\u4ef6.<br \/>\n4. fdisk\u7528\u4e8e\u786c\u76d8\u5206\u533a. newe2fs\u7528\u4e8e\u5efa\u7acb\u6587\u4ef6\u7cfb\u7edf. mount\u7528\u4e8e\u5c06\u5206\u533a\u6302\u5728\u603b\u6587\u4ef6\u6811\u4e0a.<br \/>\n5. ifconfig\u662f\u6700\u5e38\u7528\u7684\u7f51\u7edc\u914d\u7f6e\u5de5\u5177. ping\u901a\u8fc7\u53d1\u9001ICMP\u6d88\u606f\u89c2\u5bdf\u4e00\u53f0\u7f51\u4e0a\u673a\u5668\u662f\u5426\u53ef\u88ab\u8fde\u901a. RedHat\u7684sndconfig\u7528\u4e8e\u914d\u7f6e\u58f0\u5361. minicom\u7528\u4e8e\u914d\u7f6emodem.<br \/>\n6. PPP\u534f\u8bae\u662f\u6700\u901a\u7528\u7684\u4e32\u884c\u901a\u8baf\u534f\u8bae. \/etc\/ppp\/options\u4e2d\u6709PPP\u7684\u914d\u7f6e\u4fe1\u606f.PAP(Password Authentication Protocol)\u548cCHAP(Challenge Handshake Authentication Protocol)\u662fPPP\u4e0b\u6700\u6d41\u884c\u7684\u4e24\u4e2a\u8ba4\u8bc1\u534f\u8bae.<\/p>\n<p>\u7cfb\u7edf\u5b89\u88c5\u548c\u8f6f\u4ef6\u5305\u5b89\u88c5<br \/>\n7. hda \u8868\u793a\u7b2c\u4e00\u4e2aIDE\u76d8, hda1\u662f\u5b83\u7684\u7b2c\u4e00\u4e2a\u5206\u533a. sda\u8868\u793a\u7b2c\u4e00\u4e2aSCSI\u76d8, sda1\u662f\u5b83\u7684\u7b2c\u4e00\u4e2a\u5206\u533a.<br \/>\n8. swap\u5206\u533a\u7684\u5927\u5c0f\u5e94\u81f3\u5c11\u548c\u5185\u5b58\u5927\u5c0f\u4e00\u6837. root\u5206\u533a\u5e94\u5c3d\u91cf\u5c0f.data\/user\u7b49\u5206\u533a\u8d8a\u7ec6, \u5907\u4efd\u5c31\u8d8a\u5bb9\u6613.<br \/>\n9. \u5206\u533a\u5b8c\u6210\u540e, \u53ef\u4ee5\u7528mke2fs\u5efa\u7acb\u6587\u4ef6\u7cfb\u7edf.<br \/>\n10. \/etc\/lilo.conf \u4e2d\u6709Lilo\u7684\u914d\u7f6e\u4fe1\u606f. \u7f16\u8f91\u5b8c\u6b64\u6587\u4ef6\u540e\u5fc5\u987b\u8fd0\u884c\/sbin\/lilo\u5b89\u88c5LILO bootloader.<br \/>\n11. tarball\u662f\u6700\u65b9\u4fbf\u7684\u6253\u5305\u5de5\u5177. &#8220;x&#8221;\u9009\u9879\u7528\u4e8e\u89e3\u5305, &#8220;c&#8221; \u9009\u9879\u7528\u4e8e\u6253\u5305, &#8220;v&#8221;\u9009\u9879\u63d0\u4f9b\u66f4\u591a\u8fc7\u7a0b\u4fe1\u606f. &#8220;f&#8221;\u9009\u9879\u7528\u4e8e\u6307\u660e\u5305\u6587\u4ef6\u540d.<br \/>\n12. make\u4f7f\u7528Makefile\u6587\u4ef6\u63d0\u4f9b\u7684\u7f16\u8bd1\u53c2\u6570\u547d\u4ee4\u7f16\u8bd1\u7cfb\u7edf. &#8220;configure&#8221;\u811a\u672c\u7528\u4e8e\u8f6f\u4ef6\u7684\u73af\u5883\u914d\u7f6e.<br \/>\n13. \u52a8\u6001\u5171\u4eab\u5e93\u65b9\u4fbf\u4e0d\u540c\u7684\u8f6f\u4ef6\u5171\u4eab\u5e93\u51fd\u6570, \u800c\u4e14\u5728\u5e93\u5347\u7ea7\u65f6, \u4f7f\u7528\u5b83\u7684\u8f6f\u4ef6\u65e0\u9700\u91cd\u65b0\u7f16\u8bd1. ldd\u547d\u4ee4\u7528\u4e8e\u663e\u793a\u8f6f\u4ef6\u7684\u5171\u4eab\u5e93\u4f7f\u7528\u60c5\u51b5. ldconfig\u547d\u4ee4\u7528\u4e8e\u66f4\u65b0\u7ef4\u62a4\u7cfb\u7edf\u7684\u5171\u4eab\u5e93\u6570\u636e\u7f13\u5b58(cache of shared library data).&#8221;ldconfig -p&#8221;\u663e\u793a\u5f53\u524d\u7684\u5171\u4eab\u5e93\u7f13\u5b58.<br \/>\n14. \u8f6f\u4ef6\u5305\u7ba1\u7406\u5de5\u5177\u6709RedHat\u7684RPM\u548cDebian\u7684dpkg.<br \/>\n15. rpm\u9009\u9879\u5305\u62ec:<br \/>\n-i \u5b89\u88c5\u5305<br \/>\n-e \u5378\u8f7d\u5305<br \/>\n-V \u9a8c\u8bc1\u5305\u7684\u5b89\u88c5\u60c5\u51b5 (-Va\u9a8c\u8bc1\u6240\u6709\u5305\u7684\u5b89\u88c5\u60c5\u51b5)<br \/>\n-q \u67e5\u5bfb\u54ea\u4e2a\u5305\u6709\u54ea\u4e2a\u6587\u4ef6 (-qf \u67e5\u5bfb\u54ea\u4e2a\u6587\u4ef6\u5c5e\u4e8e\u54ea\u4e2a\u5305 )<br \/>\n-b \u5efa\u7acb\u5305<br \/>\n-p \u663e\u793a\u5305\u7684\u4fe1\u606f.<br \/>\n16. dpkg (\u7565)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u804c\u4e1a\u8ba4\u8bc1\u8003\u8bd5102\u5fc5\u8003\u77e5\u8bc6\u70b9 \u786c\u4ef6\u548c\u4f53\u7cfb\u7ed3\u6784 1. \/proc\/interrupts \u6587\u4ef6\u663e\u793a\u5f53\u524d\u7cfb\u7edf\u4e2d\u6b63\u5728\u4f7f\u7528\u7684\u4e2d\u65ad. 2. Linux\u652f\u6301\u6807\u51c6\u4e32\/\u5e76\u53e3\u548c\u6e38\u620f\u68d2\u53e3. \/dev\u76ee\u5f55\u4e0b\u5bf9\u5e94\u6bcf\u4e2a\u8bbe\u5907\/\u7aef\u53e3\u6709\u4e00\u4e2a\u6587\u4ef6.setserial\u547d\u4ee4\u7528\u4e8e\u663e\u793a\u4fee\u6539\u4e32\u53e3\u914d\u7f6e. 3. dmesg\u547d\u4ee4\u53ef\u663e\u793aLinux\u5728\u542f\u52a8\u65f6\u53d1\u73b0\u4e86\u54ea\u4e9b\u786c\u4ef6. 4. fdisk\u7528\u4e8e\u786c\u76d8\u5206\u533a. newe2fs\u7528\u4e8e\u5efa\u7acb\u6587\u4ef6\u7cfb\u7edf. mount\u7528\u4e8e\u5c06\u5206\u533a\u6302\u5728\u603b\u6587\u4ef6\u6811\u4e0a. 5. ifconfig\u662f\u6700\u5e38\u7528\u7684\u7f51\u7edc\u914d\u7f6e\u5de5\u5177. ping\u901a\u8fc7\u53d1\u9001ICMP\u6d88\u606f\u89c2\u5bdf\u4e00\u53f0\u7f51\u4e0a\u673a\u5668\u662f\u5426\u53ef\u88ab\u8fde\u901a. RedHat\u7684sndconfig\u7528\u4e8e\u914d\u7f6e\u58f0\u5361. minicom\u7528\u4e8e\u914d\u7f6emodem. 6. PPP\u534f\u8bae\u662f\u6700\u901a\u7528\u7684\u4e32\u884c\u901a\u8baf\u534f\u8bae. \/etc\/ppp\/options\u4e2d\u6709PPP\u7684\u914d\u7f6e\u4fe1\u606f.PAP(Password Authentication Protocol)\u548cCHAP(Challenge Handshake Authentication Protocol)\u662fPPP\u4e0b\u6700\u6d41\u884c\u7684\u4e24\u4e2a\u8ba4\u8bc1\u534f\u8bae. \u7cfb\u7edf\u5b89\u88c5\u548c\u8f6f\u4ef6\u5305\u5b89\u88c5 7. hda \u8868\u793a\u7b2c\u4e00\u4e2aIDE\u76d8, hda1\u662f\u5b83\u7684\u7b2c\u4e00\u4e2a\u5206\u533a. sda\u8868\u793a\u7b2c\u4e00\u4e2aSCSI\u76d8, sda1\u662f\u5b83\u7684\u7b2c\u4e00\u4e2a\u5206\u533a. 8. swap\u5206\u533a\u7684\u5927\u5c0f\u5e94\u81f3\u5c11\u548c\u5185\u5b58\u5927\u5c0f\u4e00\u6837. root\u5206\u533a\u5e94\u5c3d\u91cf\u5c0f.data\/user\u7b49\u5206\u533a\u8d8a\u7ec6, \u5907\u4efd\u5c31\u8d8a\u5bb9\u6613. 9. \u5206\u533a\u5b8c\u6210\u540e, \u53ef\u4ee5\u7528mke2fs\u5efa\u7acb\u6587\u4ef6\u7cfb\u7edf. 10. \/etc\/lilo.conf \u4e2d\u6709Lilo\u7684\u914d\u7f6e\u4fe1\u606f. \u7f16\u8f91\u5b8c\u6b64\u6587\u4ef6\u540e\u5fc5\u987b\u8fd0\u884c\/sbin\/lilo\u5b89\u88c5LILO bootloader. 11. tarball\u662f\u6700\u65b9\u4fbf\u7684\u6253\u5305\u5de5\u5177. &#8220;x&#8221;\u9009\u9879\u7528\u4e8e\u89e3\u5305, &#8220;c&#8221; \u9009\u9879\u7528\u4e8e\u6253\u5305, &#8220;v&#8221;\u9009\u9879\u63d0\u4f9b\u66f4\u591a\u8fc7\u7a0b\u4fe1\u606f. &#8220;f&#8221;\u9009\u9879\u7528\u4e8e\u6307\u660e\u5305\u6587\u4ef6\u540d. 12. make\u4f7f\u7528Makefile\u6587\u4ef6\u63d0\u4f9b\u7684\u7f16\u8bd1\u53c2\u6570\u547d\u4ee4\u7f16\u8bd1\u7cfb\u7edf. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[3172,3160],"class_list":["post-1351","post","type-post","status-publish","format-standard","hentry","category-lpi","tag-linux","tag-lpi"],"_links":{"self":[{"href":"https:\/\/www.killtest.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/1351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.killtest.com.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.killtest.com.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.killtest.com.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.killtest.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1351"}],"version-history":[{"count":1,"href":"https:\/\/www.killtest.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/1351\/revisions"}],"predecessor-version":[{"id":1352,"href":"https:\/\/www.killtest.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/1351\/revisions\/1352"}],"wp:attachment":[{"href":"https:\/\/www.killtest.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.killtest.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.killtest.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}