Gentoo installation (3)-Configuration System and gentoo

Source: Internet
Author: User

Gentoo installation (3)-Configuration System and gentoo
Configure system information:

  • File System Information:

Create/etc/fstab

nano -w /etc/fstab
  • Network Information:

Host name, Domainname, etc

nano -w /etc/conf.d/hostname

Grouping Network

nano -w /etc/conf.d/net
  • System Information:

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
Install system tool software:
  • Optional: PCMCIA use lspci to view hardware information:
emerge pcmciautils
  • System Logger:
emerge syslog-ngrc-update add syslog-ng default
  • Optional: File Indexing:
emerge mlocate
  • Optional: Remote Access:
rc-update add sshd default
  • Optional: DHCP Client:
emerge dhcpcd
Configure the startup Item:
  • Using GRUB2:
emerge sys-boot/grubgrub2-install /dev/sda

Generating GRUB2 configuration:

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

Edit the configuration file:

nano -w /boot/grub/grub.conf

Example grub. conf:

# Which list is selected by default for guidance. 0 indicates the first, 1 indicates the second, and so on. Default 0 # How many seconds to wait before guiding the default list timeout 30 # use a pretty, "bloated" spalsh image to add a little fun :) # If you do not have a video card installed, comment out splashimage = (hd0, 0)/boot/grub/splash.xpm.gz title Gentoo Linux 3.10.10 # root (hd0, 0) partition of the kernel image (or operating system) kernel/boot/kernel-3.10.10-gentoo root =/dev/sda2 title Gentoo Linux 3.10.10 (rescue) # root (hd0, 0) partition where the kernel image (or operating system) is located) kernel/boot/kernel-3.10.10-gentoo root =/dev/sda2 init =/bin/bb # The next four lines only enable Dual boot with Windows . # In this example, the windows system is located in/dev/sda6. Title Windows XP rootnoverify (hd0, 5) makeactive chainloader + 1 # comment out makeactive under win7

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
Restart the system:
exitcdumount -l /mnt/gentoo/dev{/shm,/pts,}umount -l /mnt/gentoo{/boot,/proc,}reboot

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.