九. 系统配置

  1. 安装 LFS-Bootscripts-20150222

    软件包包含一套在 LFS 系统启动和关闭时的启动和停止脚本。

cd /sources
tar -jxf lfs-bootscripts-20150222.tar.bz2
cd lfs-bootscripts-20150222
make install
cd /sources
rm -rf lfs-bootscripts-20150222

  2. 管理网络设备

# 运行以下命令,创建网络设备 Udev 规则
bash /lib/udev/init-net-rules.sh
# 查看生成的规则
cat
/etc/udev/rules.d/70-persistent-net.rules

  3. 配置系统主机名称

echo "lfs" > /etc/hostname

  4. 创建 /etc/hosts  文件

cat > /etc/hosts << "EOF"
# Begin /etc/hosts (network card version)

127.0.0.1 localhost

# End /etc/hosts (network card version)
EOF
View Code

相关文章:

  • 2021-10-19
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
  • 2021-12-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2021-11-26
  • 2022-12-23
  • 2021-10-25
相关资源
相似解决方案