{"id":61,"date":"2016-05-26T10:53:03","date_gmt":"2016-05-26T02:53:03","guid":{"rendered":"http:\/\/www.inhhh.com\/?p=61"},"modified":"2016-05-26T17:27:13","modified_gmt":"2016-05-26T09:27:13","slug":"%e5%ae%89%e8%a3%85linux-gentoo%e5%85%a8%e7%a8%8b","status":"publish","type":"post","link":"http:\/\/www.inhhh.com\/blog\/?p=61","title":{"rendered":"\u5b89\u88c5linux Gentoo\u5168\u7a0b"},"content":{"rendered":"<p>\u6211\u5199\u7684\u8fd9\u4e9b\u6587\u7ae0\uff0c\u90fd\u662f\u8fb9\u505a\uff0c\u8fb9\u622a\u56fe\uff0c\u505a\u5199\u6587\u7ae0\u7684\uff0c\u6240\u4ee5\u4e4b\u540e\u8fd8\u4f1a\u66f4\u65b0\u3002<\/p>\n<p>\u5b89\u88c5linux Gentoo\u7684\u539f\u56e0\u5f88\u591a\uff0c\u56e0\u4e3a\u9700\u8981\u8fd9\u6837\u4e00\u4e2a\u73af\u5883\uff0c\u53bb\u8bd5\u4e1c\u897f\uff0c<\/p>\n<p>\u51c6\u5907\u5de5\u4f5c<\/p>\n<ol>\n<li>\u6211\u628astage3-i486-20140318.tar.bz2\u548cportage-latest.tar.bz2\u5305\u6dfb\u52a0\u5230\u955c\u50cfinstall-x86-minimal-20140318.iso\u4e2d \u8fd9\u6837\u53ea\u9700\u8981\u5728CD\u4e2d\u5f15\u4e00\u4e2aISO\u6587\u4ef6\u5373\u53ef<\/li>\n<li>\n<div class=\"msgheader\"><\/div>\n<p>\u914d\u7f6eVM<\/p>\n<p>\u5f00\u59cb\u5b89\u88c5<\/li>\n<li>\u8f93\u5165\u68c0\u67e5\u7f51\u5361,\u53d1\u73b0\u6211\u7684\u7f51\u5361\u53ebeno16777736, IP\u662f192.168.128.136\n<div id=\"zh-single-question-page\" class=\"zg-wrap zu-main clearfix with-indention-votebar\" data-urltoken=\"23003213\">\n<div class=\"zu-main-content\">\n<div class=\"zu-main-content-inner\">\n<div id=\"zh-question-answer-wrap\" class=\"zh-question-answer-wrapper navigable\" data-init=\"{&quot;params&quot;: {&quot;url_token&quot;: 23003213, &quot;pagesize&quot;: 10, &quot;offset&quot;: 0}, &quot;nodename&quot;: &quot;QuestionAnswerListV2&quot;}\" data-navigable-options=\"{&quot;items&quot;: &quot;&gt;.zm-item-answer&quot;}\" data-widget=\"navigable\" data-pagesize=\"10\">\n<div class=\"zm-item-answer zm-item-expanded focusin navigable-focusin\" tabindex=\"-1\" data-copyable=\"1\" data-isowner=\"0\" data-helpful=\"1\" data-deleted=\"0\" data-created=\"1437631585\" data-collapsed=\"0\" data-atoken=\"56121859\" data-aid=\"17856122\">\n<div class=\"zm-item-rich-text expandable js-collapse-body\" data-action=\"\/answer\/content\" data-resourceid=\"1382189\" data-entry-url=\"\/question\/23003213\/answer\/56121859\" data-author-name=\"Jerry Jho\">\n<div class=\"zm-editable-content clearfix\">\n<div class=\"highlight\">\n<pre><code class=\"language-c\">ifconfig\n\/etc\/init.d\/sshd start #\u542f\u52a8ssh\u6216\u8005\u7528service sshd start\npasswd root #\u8f93\u5165\u4f60\u7684\u5e10\u53f7\u548c\u5bc6\u7801\uff0c\u8fd9\u4e2a\u65f6\u5019\u4f60\u5c31\u53ef\u4ee5\u7528ssh\u8fdc\u7a0b\u767b\u5f55\u4e86\uff0c\u5f53\u7136\u4f60\u4e00\u53f0\u7535\u8111\u5c31\u5b8c\u5168\u4e0d\u9700\u8981\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/li>\n<li>\u5206\u533a\n<ol>\n<li>\n<div id=\"zh-single-question-page\" class=\"zg-wrap zu-main clearfix with-indention-votebar\" data-urltoken=\"23003213\">\n<div class=\"zu-main-content\">\n<div class=\"zu-main-content-inner\">\n<div id=\"zh-question-answer-wrap\" class=\"zh-question-answer-wrapper navigable\" data-init=\"{&quot;params&quot;: {&quot;url_token&quot;: 23003213, &quot;pagesize&quot;: 10, &quot;offset&quot;: 0}, &quot;nodename&quot;: &quot;QuestionAnswerListV2&quot;}\" data-navigable-options=\"{&quot;items&quot;: &quot;&gt;.zm-item-answer&quot;}\" data-widget=\"navigable\" data-pagesize=\"10\">\n<div class=\"zm-item-answer zm-item-expanded focusin navigable-focusin\" tabindex=\"-1\" data-copyable=\"1\" data-isowner=\"0\" data-helpful=\"1\" data-deleted=\"0\" data-created=\"1437631585\" data-collapsed=\"0\" data-atoken=\"56121859\" data-aid=\"17856122\">\n<div class=\"zm-item-rich-text expandable js-collapse-body\" data-action=\"\/answer\/content\" data-resourceid=\"1382189\" data-entry-url=\"\/question\/23003213\/answer\/56121859\" data-author-name=\"Jerry Jho\">\n<div class=\"zm-editable-content clearfix\">\n<div class=\"highlight\">\n<pre>fdisk \/dev\/sda\nn\np\n1\n2048\n+200M\na\n\n\nn\np\n2\n411648\n75000000\nt\n83\n\nn\np\n3\n\u56de\u8f66\n\u56de\u8f66\nt\n82\n\n\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/li>\n<\/ol>\n<\/li>\n<li>\u683c\u5f0f\u5316\u5206\u533a \u00a0&amp; \u6302\u8f7d\u5206\u533a\n<ol>\n<li>\n<div id=\"zh-single-question-page\" class=\"zg-wrap zu-main clearfix with-indention-votebar\" data-urltoken=\"23003213\">\n<div class=\"zu-main-content\">\n<div class=\"zu-main-content-inner\">\n<div id=\"zh-question-answer-wrap\" class=\"zh-question-answer-wrapper navigable\" data-init=\"{&quot;params&quot;: {&quot;url_token&quot;: 23003213, &quot;pagesize&quot;: 10, &quot;offset&quot;: 0}, &quot;nodename&quot;: &quot;QuestionAnswerListV2&quot;}\" data-navigable-options=\"{&quot;items&quot;: &quot;&gt;.zm-item-answer&quot;}\" data-widget=\"navigable\" data-pagesize=\"10\">\n<div class=\"zm-item-answer zm-item-expanded focusin navigable-focusin\" tabindex=\"-1\" data-copyable=\"1\" data-isowner=\"0\" data-helpful=\"1\" data-deleted=\"0\" data-created=\"1437631585\" data-collapsed=\"0\" data-atoken=\"56121859\" data-aid=\"17856122\">\n<div class=\"zm-item-rich-text expandable js-collapse-body\" data-action=\"\/answer\/content\" data-resourceid=\"1382189\" data-entry-url=\"\/question\/23003213\/answer\/56121859\" data-author-name=\"Jerry Jho\">\n<div class=\"zm-editable-content clearfix\">\n<div class=\"highlight\">\n<pre>mkfs.ext4 \/dev\/sda1\nmkfs.ext4 \/dev\/sda2\nmkswap \/dev\/sda3 #\u683c\u5f0f\u5316swap\nswapon \/dev\/sda3 #\u6302\u8f7dswap\nmount \/dev\/sda2 \/mnt\/gentoo #\u4f60\u5206\u7684\/\nmkdir \/mnt\/gentoo\/boot\nmount \/dev\/sda1 \/mnt\/gentoo\/boot #\u4f60\u5206\u7684\u51c6\u5907\u6302\u8f7dboot\u7684\u5206\u533a<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/li>\n<\/ol>\n<\/li>\n<li>\u89e3\u538b\u6587\u4ef6\n<div id=\"zh-single-question-page\" class=\"zg-wrap zu-main clearfix with-indention-votebar\" data-urltoken=\"23003213\">\n<div class=\"zu-main-content\">\n<div class=\"zu-main-content-inner\">\n<div id=\"zh-question-answer-wrap\" class=\"zh-question-answer-wrapper navigable\" data-init=\"{&quot;params&quot;: {&quot;url_token&quot;: 23003213, &quot;pagesize&quot;: 10, &quot;offset&quot;: 0}, &quot;nodename&quot;: &quot;QuestionAnswerListV2&quot;}\" data-navigable-options=\"{&quot;items&quot;: &quot;&gt;.zm-item-answer&quot;}\" data-widget=\"navigable\" data-pagesize=\"10\">\n<div class=\"zm-item-answer zm-item-expanded focusin navigable-focusin\" tabindex=\"-1\" data-copyable=\"1\" data-isowner=\"0\" data-helpful=\"1\" data-deleted=\"0\" data-created=\"1437631585\" data-collapsed=\"0\" data-atoken=\"56121859\" data-aid=\"17856122\">\n<div class=\"zm-item-rich-text expandable js-collapse-body\" data-action=\"\/answer\/content\" data-resourceid=\"1382189\" data-entry-url=\"\/question\/23003213\/answer\/56121859\" data-author-name=\"Jerry Jho\">\n<div class=\"zm-editable-content clearfix\">\n<div class=\"highlight\">\n<pre>cd \/mnt\/cdrom\ncp *.tar.bz2 \/mnt\/gentoo #\u590d\u5236\u4e24\u4e2a\u6587\u4ef6\u5230\/mnt\/gentoo\u4e0b\ncd \/mnt\/gentoo #gentoo\u76ee\u5f55\u4e0b\ntar xvjpf stage3-*.tar.bz2 #\u89e3\u538bstage3\ntar xvjf \/mnt\/gentoo\/portage-*.tar.bz2 -C \/mnt\/gentoo\/usr #\u89e3\u538bportage\u5230\/mnt\/gentoo\/usr<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/li>\n<li>\u4fee\u6539\u914d\u7f6e\n<ol>\n<li>\n<div id=\"zh-single-question-page\" class=\"zg-wrap zu-main clearfix with-indention-votebar\" data-urltoken=\"23003213\">\n<div class=\"zu-main-content\">\n<div class=\"zu-main-content-inner\">\n<div id=\"zh-question-answer-wrap\" class=\"zh-question-answer-wrapper navigable\" data-init=\"{&quot;params&quot;: {&quot;url_token&quot;: 23003213, &quot;pagesize&quot;: 10, &quot;offset&quot;: 0}, &quot;nodename&quot;: &quot;QuestionAnswerListV2&quot;}\" data-navigable-options=\"{&quot;items&quot;: &quot;&gt;.zm-item-answer&quot;}\" data-widget=\"navigable\" data-pagesize=\"10\">\n<div class=\"zm-item-answer zm-item-expanded focusin navigable-focusin\" tabindex=\"-1\" data-copyable=\"1\" data-isowner=\"0\" data-helpful=\"1\" data-deleted=\"0\" data-created=\"1437631585\" data-collapsed=\"0\" data-atoken=\"56121859\" data-aid=\"17856122\">\n<div class=\"zm-item-rich-text expandable js-collapse-body\" data-action=\"\/answer\/content\" data-resourceid=\"1382189\" data-entry-url=\"\/question\/23003213\/answer\/56121859\" data-author-name=\"Jerry Jho\">\n<div class=\"zm-editable-content clearfix\">\n<div class=\"highlight\">\n<pre># \u4fee\u6539\u914d\u7f6e\u6587\u4ef6\nnano \/mnt\/gentoo\/etc\/portage\/make.conf\n# CFLAGS=\"-O2 -march=i686 -pipe\"CXXFLAGS=\"${CFLAGS}\u201c \u540e\u9762\u6dfb\u52a0\u4ee3\u7801\nMAKEOPTS=\"-j2\"\nChroot<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/li>\n<\/ol>\n<\/li>\n<li>\u5b89\u88c5\n<ol>\n<li>\n<div id=\"zh-single-question-page\" class=\"zg-wrap zu-main clearfix with-indention-votebar\" data-urltoken=\"23003213\">\n<div class=\"zu-main-content\">\n<div class=\"zu-main-content-inner\">\n<div id=\"zh-question-answer-wrap\" class=\"zh-question-answer-wrapper navigable\" data-init=\"{&quot;params&quot;: {&quot;url_token&quot;: 23003213, &quot;pagesize&quot;: 10, &quot;offset&quot;: 0}, &quot;nodename&quot;: &quot;QuestionAnswerListV2&quot;}\" data-navigable-options=\"{&quot;items&quot;: &quot;&gt;.zm-item-answer&quot;}\" data-widget=\"navigable\" data-pagesize=\"10\">\n<div class=\"zm-item-answer zm-item-expanded focusin navigable-focusin\" tabindex=\"-1\" data-copyable=\"1\" data-isowner=\"0\" data-helpful=\"1\" data-deleted=\"0\" data-created=\"1437631585\" data-collapsed=\"0\" data-atoken=\"56121859\" data-aid=\"17856122\">\n<div class=\"zm-item-rich-text expandable js-collapse-body\" data-action=\"\/answer\/content\" data-resourceid=\"1382189\" data-entry-url=\"\/question\/23003213\/answer\/56121859\" data-author-name=\"Jerry Jho\">\n<div class=\"zm-editable-content clearfix\">\n<div class=\"highlight\">\n<pre>mirrorselect -i -o &gt;&gt; \/mnt\/gentoo\/etc\/portage\/make.conf\ncp -L \/etc\/resolv.conf \/mnt\/gentoo\/etc\/ #\u62f7\u8d1ddns\u4fe1\u606f<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/li>\n<\/ol>\n<\/li>\n<li>\u8fdb\u5165\u65b0\u7684\u7cfb\u7edf\u73af\u5883\n<pre>mount -t proc none \/mnt\/gentoo\/proc<\/pre>\n<\/li>\n<li>\n<pre>chroot \/mnt\/gentoo \/bin\/bash\nenv-update\nsource \/etc\/profile<\/pre>\n<\/li>\n<li>\u66f4\u65b0Portage\u6811\n<pre>emerge --sync --quiet # \u9a8c\u8bc1\u7cfb\u7edfprofile\neselect profile list<\/pre>\n<\/li>\n<li>\u66f4\u65b0\u65f6\u533a\n<pre>ls \/usr\/share\/zoneinfo #\u67e5\u770b\u65f6\u533a\ncp \/usr\/share\/zoneinfo\/Asia\/Shanghai \/etc\/localtime #\u6211\u4f7f\u7528\u7684\u662f\u4e0a\u6d77<\/pre>\n<\/li>\n<li>\u5b89\u88c5\u5185\u6838\u3002\n<pre>emerge gentoo-sources #\u5b89\u88c5\u5185\u6838\u6e90\u7801\nls -l \/usr\/src\/linux #\u67e5\u770b\u5185\u6838\u8fde\u63a5<\/pre>\n<\/li>\n<li>\u624b\u52a8\u914d\u7f6e\n<ol>\n<li>\n<div id=\"zh-single-question-page\" class=\"zg-wrap zu-main clearfix with-indention-votebar\" data-urltoken=\"23003213\">\n<div class=\"zu-main-content\">\n<div class=\"zu-main-content-inner\">\n<div id=\"zh-question-answer-wrap\" class=\"zh-question-answer-wrapper navigable\" data-init=\"{&quot;params&quot;: {&quot;url_token&quot;: 23003213, &quot;pagesize&quot;: 10, &quot;offset&quot;: 0}, &quot;nodename&quot;: &quot;QuestionAnswerListV2&quot;}\" data-navigable-options=\"{&quot;items&quot;: &quot;&gt;.zm-item-answer&quot;}\" data-widget=\"navigable\" data-pagesize=\"10\">\n<div class=\"zm-item-answer zm-item-expanded focusin navigable-focusin\" tabindex=\"-1\" data-copyable=\"1\" data-isowner=\"0\" data-helpful=\"1\" data-deleted=\"0\" data-created=\"1437631585\" data-collapsed=\"0\" data-atoken=\"56121859\" data-aid=\"17856122\">\n<div class=\"zm-item-rich-text expandable js-collapse-body\" data-action=\"\/answer\/content\" data-resourceid=\"1382189\" data-entry-url=\"\/question\/23003213\/answer\/56121859\" data-author-name=\"Jerry Jho\">\n<div class=\"zm-editable-content clearfix\">\n<div class=\"highlight\">\n<pre><span style=\"font-family: Merriweather, Georgia, serif;\"><span style=\"line-height: 28px; white-space: normal;\">\u00a0<\/span><\/span>cd \/usr\/src\/linux\nmake menuconfig<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/li>\n<\/ol>\n<\/li>\n<li>\u6211\u662f32\u4f4d\u7cfb\u7edf\u3002\u6240\u4ee564-bit kernel \u524d\u8fb9\u7684*\u4e00\u5b9a\u8981\u53bb\u6389<br \/>\n\u9700\u914d\u7f6e\uff0c\u6309\u2193\u5230File System\u56de\u8f66\u8fdb\u5165\uff0c\u56e0\u4e3a\u6211\u7528\u7684ext4,\u6240\u4ee5\u628aEXt4 debugging support\u9009\u4e0a<br \/>\n\u7136\u540eTab\u9009\u62e9\u5230save \u56de\u8f66\uff0c\u7136\u540e\u9009OK,Exit\u56de\u8f66\uff0c\u7136\u540e\u5728\u9009Exit\u63a8\u51fa<\/li>\n<li>\u7f16\u8bd1\u5185\u6838\n<ol>\n<li>\n<div id=\"zh-single-question-page\" class=\"zg-wrap zu-main clearfix with-indention-votebar\" data-urltoken=\"23003213\">\n<div class=\"zu-main-content\">\n<div class=\"zu-main-content-inner\">\n<div id=\"zh-question-answer-wrap\" class=\"zh-question-answer-wrapper navigable\" data-init=\"{&quot;params&quot;: {&quot;url_token&quot;: 23003213, &quot;pagesize&quot;: 10, &quot;offset&quot;: 0}, &quot;nodename&quot;: &quot;QuestionAnswerListV2&quot;}\" data-navigable-options=\"{&quot;items&quot;: &quot;&gt;.zm-item-answer&quot;}\" data-widget=\"navigable\" data-pagesize=\"10\">\n<div class=\"zm-item-answer zm-item-expanded focusin navigable-focusin\" tabindex=\"-1\" data-copyable=\"1\" data-isowner=\"0\" data-helpful=\"1\" data-deleted=\"0\" data-created=\"1437631585\" data-collapsed=\"0\" data-atoken=\"56121859\" data-aid=\"17856122\">\n<div class=\"zm-item-rich-text expandable js-collapse-body\" data-action=\"\/answer\/content\" data-resourceid=\"1382189\" data-entry-url=\"\/question\/23003213\/answer\/56121859\" data-author-name=\"Jerry Jho\">\n<div class=\"zm-editable-content clearfix\">\n<div class=\"highlight\">\n<pre><span style=\"font-family: Merriweather, Georgia, serif;\"><span style=\"line-height: 28px; white-space: normal;\"> make &amp;&amp; make modules_install #\u56de\u8f66\u4e4b\u540e\u7b49\u7740\u7f16\u8bd1\u5b8c\u6210\u5427\uff0c\u7f16\u8bd1\u5b8c\u6210\u540e\u4f1a\u6709bzImage\u7684\u4f4d\u7f6e\u4fe1\u606f<\/span><\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/li>\n<\/ol>\n<\/li>\n<li>\u5b89\u88c5\u5185\u6838\n<ol>\n<li>\n<div id=\"zh-single-question-page\" class=\"zg-wrap zu-main clearfix with-indention-votebar\" data-urltoken=\"23003213\">\n<div class=\"zu-main-content\">\n<div class=\"zu-main-content-inner\">\n<div id=\"zh-question-answer-wrap\" class=\"zh-question-answer-wrapper navigable\" data-init=\"{&quot;params&quot;: {&quot;url_token&quot;: 23003213, &quot;pagesize&quot;: 10, &quot;offset&quot;: 0}, &quot;nodename&quot;: &quot;QuestionAnswerListV2&quot;}\" data-navigable-options=\"{&quot;items&quot;: &quot;&gt;.zm-item-answer&quot;}\" data-widget=\"navigable\" data-pagesize=\"10\">\n<div class=\"zm-item-answer zm-item-expanded focusin navigable-focusin\" tabindex=\"-1\" data-copyable=\"1\" data-isowner=\"0\" data-helpful=\"1\" data-deleted=\"0\" data-created=\"1437631585\" data-collapsed=\"0\" data-atoken=\"56121859\" data-aid=\"17856122\">\n<div class=\"zm-item-rich-text expandable js-collapse-body\" data-action=\"\/answer\/content\" data-resourceid=\"1382189\" data-entry-url=\"\/question\/23003213\/answer\/56121859\" data-author-name=\"Jerry Jho\">\n<div class=\"zm-editable-content clearfix\">\n<div class=\"highlight\">\n<pre>cd \/usr\/src\/linux\ncp arch\/x86\/boot\/bzImage \/boot\/kernel-3.12.13-gentoo<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/li>\n<\/ol>\n<\/li>\n<li>\u914d\u7f6e\u6587\u4ef6\u7cfb\u7edf\n<ol>\n<li>\n<div id=\"zh-single-question-page\" class=\"zg-wrap zu-main clearfix with-indention-votebar\" data-urltoken=\"23003213\">\n<div class=\"zu-main-content\">\n<div class=\"zu-main-content-inner\">\n<div id=\"zh-question-answer-wrap\" class=\"zh-question-answer-wrapper navigable\" data-init=\"{&quot;params&quot;: {&quot;url_token&quot;: 23003213, &quot;pagesize&quot;: 10, &quot;offset&quot;: 0}, &quot;nodename&quot;: &quot;QuestionAnswerListV2&quot;}\" data-navigable-options=\"{&quot;items&quot;: &quot;&gt;.zm-item-answer&quot;}\" data-widget=\"navigable\" data-pagesize=\"10\">\n<div class=\"zm-item-answer zm-item-expanded focusin navigable-focusin\" tabindex=\"-1\" data-copyable=\"1\" data-isowner=\"0\" data-helpful=\"1\" data-deleted=\"0\" data-created=\"1437631585\" data-collapsed=\"0\" data-atoken=\"56121859\" data-aid=\"17856122\">\n<div class=\"zm-item-rich-text expandable js-collapse-body\" data-action=\"\/answer\/content\" data-resourceid=\"1382189\" data-entry-url=\"\/question\/23003213\/answer\/56121859\" data-author-name=\"Jerry Jho\">\n<div class=\"zm-editable-content clearfix\">\n<div class=\"highlight\">\n<pre>nano -w \/etc\/fstab #\u6839\u636e\u81ea\u5df1\u7684\u5206\u533a\u914d\u7f6e\n\/dev\/sda1 \/boot ext4 defaults,noatime 1 2\n\/dev\/sda2 \/ ext4 noatime 0 1\n\/dev\/sda3 none swap sw 0 0\n\/dev\/cdrom \/mnt\/cdrom auto noauto,ro 0 0<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/li>\n<\/ol>\n<\/li>\n<li>\u4fee\u6539\u4e3b\u673a\u540d\u79f0\n<ol>\n<li>\n<div id=\"zh-single-question-page\" class=\"zg-wrap zu-main clearfix with-indention-votebar\" data-urltoken=\"23003213\">\n<div class=\"zu-main-content\">\n<div class=\"zu-main-content-inner\">\n<div id=\"zh-question-answer-wrap\" class=\"zh-question-answer-wrapper navigable\" data-init=\"{&quot;params&quot;: {&quot;url_token&quot;: 23003213, &quot;pagesize&quot;: 10, &quot;offset&quot;: 0}, &quot;nodename&quot;: &quot;QuestionAnswerListV2&quot;}\" data-navigable-options=\"{&quot;items&quot;: &quot;&gt;.zm-item-answer&quot;}\" data-widget=\"navigable\" data-pagesize=\"10\">\n<div class=\"zm-item-answer zm-item-expanded focusin navigable-focusin\" tabindex=\"-1\" data-copyable=\"1\" data-isowner=\"0\" data-helpful=\"1\" data-deleted=\"0\" data-created=\"1437631585\" data-collapsed=\"0\" data-atoken=\"56121859\" data-aid=\"17856122\">\n<div class=\"zm-item-rich-text expandable js-collapse-body\" data-action=\"\/answer\/content\" data-resourceid=\"1382189\" data-entry-url=\"\/question\/23003213\/answer\/56121859\" data-author-name=\"Jerry Jho\">\n<div class=\"zm-editable-content clearfix\">\n<div class=\"highlight\">\n<pre>nano -w \/etc\/conf.d\/hostname<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/li>\n<\/ol>\n<\/li>\n<li>\u914d\u7f6e\u7f51\u7edc\n<ol>\n<li>\n<div id=\"zh-single-question-page\" class=\"zg-wrap zu-main clearfix with-indention-votebar\" data-urltoken=\"23003213\">\n<div class=\"zu-main-content\">\n<div class=\"zu-main-content-inner\">\n<div id=\"zh-question-answer-wrap\" class=\"zh-question-answer-wrapper navigable\" data-init=\"{&quot;params&quot;: {&quot;url_token&quot;: 23003213, &quot;pagesize&quot;: 10, &quot;offset&quot;: 0}, &quot;nodename&quot;: &quot;QuestionAnswerListV2&quot;}\" data-navigable-options=\"{&quot;items&quot;: &quot;&gt;.zm-item-answer&quot;}\" data-widget=\"navigable\" data-pagesize=\"10\">\n<div class=\"zm-item-answer zm-item-expanded focusin navigable-focusin\" tabindex=\"-1\" data-copyable=\"1\" data-isowner=\"0\" data-helpful=\"1\" data-deleted=\"0\" data-created=\"1437631585\" data-collapsed=\"0\" data-atoken=\"56121859\" data-aid=\"17856122\">\n<div class=\"zm-item-rich-text expandable js-collapse-body\" data-action=\"\/answer\/content\" data-resourceid=\"1382189\" data-entry-url=\"\/question\/23003213\/answer\/56121859\" data-author-name=\"Jerry Jho\">\n<div class=\"zm-editable-content clearfix\">\n<div class=\"highlight\">\n<pre>nano -w \/etc\/conf.d\/net #\u6839\u636e\u81ea\u5df1\u7684\u7f51\u5361\u914d\u7f6e\uff0c\u6211\u7684ifconfig\u7684\u7f51\u5361\u662fenp0s3\nconfig_enp0s3=( \"192.168.1.126 netmask 255.255.255.0 brd 192.168.1.255\" )\nroutes_enp0s3=( \"default via 192.168.1.1\" )\n\n\nln -s \/etc\/init.d\/net.lo \/etc\/init.d\/net.enp0s3\nrc-update add net.enp0s3 default #\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/li>\n<\/ol>\n<\/li>\n<li>\u00a0\u914d\u7f6eroot\u5bc6\u7801\n<ol>\n<li>\n<div id=\"zh-single-question-page\" class=\"zg-wrap zu-main clearfix with-indention-votebar\" data-urltoken=\"23003213\">\n<div class=\"zu-main-content\">\n<div class=\"zu-main-content-inner\">\n<div id=\"zh-question-answer-wrap\" class=\"zh-question-answer-wrapper navigable\" data-init=\"{&quot;params&quot;: {&quot;url_token&quot;: 23003213, &quot;pagesize&quot;: 10, &quot;offset&quot;: 0}, &quot;nodename&quot;: &quot;QuestionAnswerListV2&quot;}\" data-navigable-options=\"{&quot;items&quot;: &quot;&gt;.zm-item-answer&quot;}\" data-widget=\"navigable\" data-pagesize=\"10\">\n<div class=\"zm-item-answer zm-item-expanded focusin navigable-focusin\" tabindex=\"-1\" data-copyable=\"1\" data-isowner=\"0\" data-helpful=\"1\" data-deleted=\"0\" data-created=\"1437631585\" data-collapsed=\"0\" data-atoken=\"56121859\" data-aid=\"17856122\">\n<div class=\"zm-item-rich-text expandable js-collapse-body\" data-action=\"\/answer\/content\" data-resourceid=\"1382189\" data-entry-url=\"\/question\/23003213\/answer\/56121859\" data-author-name=\"Jerry Jho\">\n<div class=\"zm-editable-content clearfix\">\n<div class=\"highlight\">\n<pre>passwd root #\u8f93\u5165\u4f60\u7684\u5e10\u53f7\u5bc6\u7801<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/li>\n<\/ol>\n<\/li>\n<li>\u5b89\u88c5\u7cfb\u7edf\u5de5\u5177\n<ol>\n<li>\n<div id=\"zh-single-question-page\" class=\"zg-wrap zu-main clearfix with-indention-votebar\" data-urltoken=\"23003213\">\n<div class=\"zu-main-content\">\n<div class=\"zu-main-content-inner\">\n<div id=\"zh-question-answer-wrap\" class=\"zh-question-answer-wrapper navigable\" data-init=\"{&quot;params&quot;: {&quot;url_token&quot;: 23003213, &quot;pagesize&quot;: 10, &quot;offset&quot;: 0}, &quot;nodename&quot;: &quot;QuestionAnswerListV2&quot;}\" data-navigable-options=\"{&quot;items&quot;: &quot;&gt;.zm-item-answer&quot;}\" data-widget=\"navigable\" data-pagesize=\"10\">\n<div class=\"zm-item-answer zm-item-expanded focusin navigable-focusin\" tabindex=\"-1\" data-copyable=\"1\" data-isowner=\"0\" data-helpful=\"1\" data-deleted=\"0\" data-created=\"1437631585\" data-collapsed=\"0\" data-atoken=\"56121859\" data-aid=\"17856122\">\n<div class=\"zm-item-rich-text expandable js-collapse-body\" data-action=\"\/answer\/content\" data-resourceid=\"1382189\" data-entry-url=\"\/question\/23003213\/answer\/56121859\" data-author-name=\"Jerry Jho\">\n<div class=\"zm-editable-content clearfix\">\n<div class=\"highlight\">\n<pre>emerge syslog-ng #\u7cfb\u7edf\u65e5\u5fd7\u5de5\u5177\nrc-update add syslog-ng default\nemerge vixie-cron #Cron\u5b88\u62a4\u8fdb\u7a0b\nrc-update add vixie-cron default\nemerge sys-apps\/mlocate #\u5b89\u88c5\u6587\u4ef6\u7d22\u5f15locate,\u91cd\u542f\u540e\u8bb0\u5f97updatedb\u65b0\u5efa\u5e93<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/li>\n<\/ol>\n<\/li>\n<li>\u00a0\u6700\u540e\u9636\u6bb5<\/li>\n<\/ol>\n<ol>\n<li>\n<ol>\n<li>\n<div id=\"zh-single-question-page\" class=\"zg-wrap zu-main clearfix with-indention-votebar\" data-urltoken=\"23003213\">\n<div class=\"zu-main-content\">\n<div class=\"zu-main-content-inner\">\n<div id=\"zh-question-answer-wrap\" class=\"zh-question-answer-wrapper navigable\" data-init=\"{&quot;params&quot;: {&quot;url_token&quot;: 23003213, &quot;pagesize&quot;: 10, &quot;offset&quot;: 0}, &quot;nodename&quot;: &quot;QuestionAnswerListV2&quot;}\" data-navigable-options=\"{&quot;items&quot;: &quot;&gt;.zm-item-answer&quot;}\" data-widget=\"navigable\" data-pagesize=\"10\">\n<div class=\"zm-item-answer zm-item-expanded focusin navigable-focusin\" tabindex=\"-1\" data-copyable=\"1\" data-isowner=\"0\" data-helpful=\"1\" data-deleted=\"0\" data-created=\"1437631585\" data-collapsed=\"0\" data-atoken=\"56121859\" data-aid=\"17856122\">\n<div class=\"zm-item-rich-text expandable js-collapse-body\" data-action=\"\/answer\/content\" data-resourceid=\"1382189\" data-entry-url=\"\/question\/23003213\/answer\/56121859\" data-author-name=\"Jerry Jho\">\n<div class=\"zm-editable-content clearfix\">\n<div class=\"highlight\">\n<pre>emerge grub #\u5b89\u88c5grub\n\/usr\/sbin\/grub2-install --no-floppy \/dev\/sda #\u5b89\u88c5\n\/usr\/sbin\/grub2-mkconfig -o \/boot\/grub\/grub.cfg #\u751f\u6210\u914d\u7f6e\nexit #\u63a8\u51fachroot\nreboot #\u91cd\u542f<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u5199\u7684\u8fd9\u4e9b\u6587\u7ae0\uff0c\u90fd\u662f\u8fb9\u505a\uff0c\u8fb9\u622a\u56fe\uff0c\u505a\u5199\u6587\u7ae0\u7684\uff0c\u6240\u4ee5\u4e4b\u540e\u8fd8\u4f1a\u66f4\u65b0\u3002 \u5b89\u88c5linux Gentoo\u7684\u539f\u56e0\u5f88\u591a\uff0c\u56e0\u4e3a<\/p>\n<div class=\"more-link\">\n\t\t\t\t <a href=\"http:\/\/www.inhhh.com\/blog\/?p=61\" class=\"link-btn theme-btn\"><span>Read More <\/span> <i class=\"fa fa-caret-right\"><\/i><\/a>\n\t\t\t<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[22,23],"class_list":["post-61","post","type-post","status-publish","format-standard","hentry","category-it","tag-gentoo","tag-linux"],"_links":{"self":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/61","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=61"}],"version-history":[{"count":7,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/61\/revisions"}],"predecessor-version":[{"id":68,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/61\/revisions\/68"}],"wp:attachment":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=61"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=61"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=61"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}