Gentoo Linux 安装(四)配置Linux内核

论坛 期权论坛     
选择匿名的用户   2021-5-21 15:50   0   0
<div style="white-space:pre-wrap; line-height:1.875; font-size:14px">
<span style="font-family:Open Sans; color:#333333; background-color:#fafafa">选择一个合适的内核并使用</span>
<span style="font-size:13px; font-family:monospace; color:#333333; background-color:#fafafa">emerge</span>
<span style="font-family:Open Sans; color:#333333; background-color:#fafafa">来安装它。</span>
</div>
<div style="white-space:pre-wrap; line-height:1.14286; font-size:14px">
<span style="font-size:12px; font-family:monospace; color:#ef2929; background-color:#333333"><strong>root #</strong></span>
<span style="font-size:12px; font-family:monospace; color:#ffffff; background-color:#333333">emerge --ask sys-kernel/gentoo-sources</span>
</div>
<div style="white-space:pre-wrap; line-height:1.14286; font-size:14px">
<span style="font-family:Open Sans; color:#333333; background-color:#fafafa">这将在</span>
<span style="font-size:13px; font-family:monospace; color:#333333; background-color:#fafafa">/usr/src/</span>
<span style="font-family:Open Sans; color:#333333; background-color:#fafafa">中安装Linux内核源码,并有一个符号连接叫作</span>
<span style="font-size:13px; font-family:monospace; color:#333333; background-color:#fafafa">linux</span>
<span style="font-family:Open Sans; color:#333333; background-color:#fafafa">将指向安装的内核源码:</span>
</div>
<div style="white-space:pre-wrap; line-height:1.14286; font-size:14px">
<span style="font-size:12px; font-family:monospace; color:#ef2929; background-color:#333333"><strong>root #</strong></span>
<span style="font-size:12px; font-family:monospace; color:#ffffff; background-color:#333333">ls -l /usr/src/linux</span>
</div>
<div style="white-space:pre-wrap; line-height:1.42857; font-size:14px">
<span style="font-size:13px; font-family:monospace; color:#ffffff; background-color:#333333">lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -&gt; linux-3.16.5-gentoo</span>
</div>
<div style="white-space:pre-wrap; line-height:1.42857; font-size:14px">
<br>
</div>
<div style="white-space:pre-wrap; line-height:1.42857; font-size:14px">
<span style="font-size:25px; font-family:Bitter; color:#333333; background-color:#fafafa">默认:手动配置</span>
</div>
<div style="white-space:pre-wrap; line-height:1.1; font-size:14px">
<span style="font-size:21px; font-family:Bitter; color:#333333; background-color:#fafafa">介绍</span>
</div>
<div style="white-space:pre-wrap; line-height:1.14286; font-size:14px">
<span style="font-family:Open Sans; color:#333333; background-color:#fafafa">手动配置内核经常被Linux用户认为是最困难的步骤。事实并非如此——但是当您手动配置几次内核之后,你就不会再觉得它有多么难了:)</span>
</div>
<div style="white-space:pre-wrap; line-height:1.14286; font-size:14px">
<span style="font-family:Open Sans; color:#333333; background-color:#fafafa">无论如何,有一件事是真实的:当手动配置内核时,了解(硬件)系统是至关重要的。大多数信息可以通过安装包含</span>
<span style="font-size:13px; font-family:monospace; color:#333333; background-color:#fafafa">lspci</span>
<span style="font-family:Open Sans; color:#333333; background-color:#fafafa">命令的</span>
<a href="https://packages.gentoo.org/packages/sys-apps/pciutils" rel="noopener noreferrer" target="_blank"><span style="font-family:Open Sans; color:#7e307e; background-color:#fafafa">sys-apps/pciutils</span></a>
<span style="font-family:Open Sans; color:#333333; background-color:#fafafa">来收集:</span>
</div>
<div style="white-space:pre-wrap; line-height:1.14286; font-size:14px">
<span style="font-size:12px; font-family:monospace; color:#ef2929; background-color:#333333"><strong>root #</strong></span>
<span style="font-size:12px; font-family:monospace; color:#ffffff; background-color:#333333">emerge --ask sys-apps/pciutils</span>
</div>
<div style="white-space:pre-wrap; line-height:1.14286; font-size:14px">
<span style="font-family:Open Sans; color:#31708f; background-color:#d9edf7"><strong> 附注</strong></span>
</div>
<div style="white-space:pre-wrap; line-height:1.14286; font-size:14px">
<span style="font-family:Open Sans; color:#31708f; background-color:#d9edf7">在chroot中,可以安全的忽略任何</span>
<span style="font-size:13px; font-family:monospace; color:#31708f; background-color:#d9edf7">lspci</span>
<span style="font-family:Open Sans; color:#31708f; background-color:#d9edf7">可能抛出的关于pcilib的警告(比如</span>
<span style="font-family:Open Sans; color:#31708f; background-color:#d9edf7"><em>pcilib: cannot open /sys/bus/pci/devices</em></span>
<span style="font-family:Open Sans; color:#31708f; background-color:#d9edf7">)。</span>
</div>
<div style="white-space:pre-wrap; line-height:1.14286; font-size:14px">
<span style="font-family:Open Sans; color:#333333; background-color:#fafafa">另一个系统信息来源是运行</span>
<span style="font-size:13px; font-family:monospace; color:#333333; background-color:#fafafa">lsmod</span>
<span style="font-family:Open Sans; color:#333333; background-color:#fafafa">来查看安装CD使用什么内核模块,它可能对启用什么提供了一个好的暗示。</span>
</div>
<div style="white-space:pre-wrap; line-height:1.14286; font-size:14px">
<span style="font-family:Open Sans;
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP