配置系统

系统信息:

  • 文件系统信息:

创建/etc/fstab

nano -w /etc/fstab
  • 网络信息:

Host name, Domainname, etc

nano -w /etc/conf.d/hostname

Configuring Network

nano -w /etc/conf.d/net
  • 系统信息:

Gentoo uses /etc/rc.conf to configure the services, startup, and shutdown of your system.

nano -w /etc/rc.conf

Root Password

passwd

Gentoo uses /etc/conf.d/hwclock to set clock options.

nano -w /etc/conf.d/hwclock

安装系统工具软件:

  • 可选:PCMCIA使用lspci查看硬件信息:
emerge pcmciautils
  • System Logger:
emerge syslog-ng
rc-update add syslog-ng default
  • 可选:File Indexing:
emerge mlocate
  • 可选:Remote Access:
rc-update add sshd default
  • 可选:DHCP Client:
emerge dhcpcd

配置启动项:

  • Using GRUB2:
emerge sys-boot/grub
grub2-install /dev/sda

Optionally, install theos-prober utility (provided through the sys-boot/os-prober package) to have GRUB2 probe for other operating systems when running thegrub2-mkconfig command. In most instances, this will enable GRUB2 to automatically detect other operating systems (Windows 7, Windows 8.1, etc.).

Generating GRUB2 configuration:

grub2-mkconfig -o /boot/grub/grub.cfg
  • 可选:Using GRUB Legacy:
emerge sys-boot/grub:0

编辑配置文件:

nano -w /boot/grub/grub.conf

Example grub.conf:

    # 默认选择哪个列表来引导。0表示第一个, 1表示第二个,以此类推。
default 0
# 引导默认列表前等待多少秒
timeout 30
# 使用漂亮、“臃肿”的spalsh图像来增加一点趣味:)
# 如果您没有安装显卡,请将这行注释掉
splashimage=(hd0,0)/boot/grub/splash.xpm.gz title Gentoo Linux 3.10.10
# 内核镜像(或者操作系统)所在分区
root (hd0,0)
kernel /boot/kernel-3.10.10-gentoo root=/dev/sda2 title Gentoo Linux 3.10.10 (rescue)
# 内核镜像(或者操作系统)所在分区
root (hd0,0)
kernel /boot/kernel-3.10.10-gentoo root=/dev/sda2 init=/bin/bb # 接下来的四行只有在您与Windows系统进行双启动的情况下才需要。
# 本例中,windows系统位于/dev/sda6。
title Windows XP
rootnoverify (hd0,5)
makeactive
chainloader +1 #win7下注释掉makeactive

Setting up GRUB Legacy using grub-install:

Creating /etc/mtab:

grep -v rootfs /proc/mounts > /etc/mtab

Install GRUB Legacy:

grub-install --no-floppy /dev/sda

重启系统:

exit
cd
umount -l /mnt/gentoo/dev{/shm,/pts,}
umount -l /mnt/gentoo{/boot,/proc,}
reboot

最新文章

  1. FTPClient使用中的问题--获取当前工作目录为null
  2. 安卓冷知识:LayoutParams
  3. bzoj 2295: 【POJ Challenge】我爱你啊
  4. php solr 扩展
  5. CF 274B Zero Tree 树形DP
  6. Gson源码分析之Json结构抽象和注解使用
  7. Linux下更新瑞芯微固件
  8. 基于python的tagcloud
  9. 转 Problem: AnyConnect was not able to establish a connection to the specified secu
  10. Yii2按需加载图片怎么做?
  11. android DialogFragment 实现Dialog展示扫二维码图片展示
  12. AVL树探秘
  13. AUC计算 - 进阶操作
  14. 按Enter登录,Esc退出
  15. Ubuntu16.04 ionic(jdk,sdk,gradle)环境搭建完全攻略
  16. 【sping揭秘】24、Spring框架对JMS的集成(无环境版,以后学MQ的时候再隆重介绍)& 任务调度和线程池
  17. 面试:用 Java 实现一个 Singleton 模式
  18. uva-10422-骑士-搜索题
  19. CSS样式----CSS样式表的继承性和层叠性(图文详解)
  20. 显示iOS所有系统字体

热门文章

  1. python3 流程控制
  2. Java中集合框架体系
  3. css基础和心得(二)
  4. 利用LibreOffice与ImageMagick将网页分享至微信
  5. 一个数组分四个ul并且每个ul里边有四个li显示
  6. wf跟webx开源我见
  7. linux awk命令详解2
  8. mx51 IPU 透明处理
  9. 简单封装常用js方法
  10. 配置 Apache 的虚拟主机