gentoo_for_dummies printable version
  • download a gentoo minimal install iso http://mirrors.kernel.org/gentoo/releases/x86/autobuilds/current-iso/ and boot on it
  • prepare and mount all the 3 partition /, the swap partition, and /home
  • make the gentoo root partition the current directory
  • download portage ftp://ftp.free.fr/mirrors/ftp.gentoo.org/snapshots/ and extract it in ./usr
  • prepare compilation options in ./etc/make.conf <blockquote>CFLAGS=”-O2 -march=i686 -pipe” CXXFLAGS=“${CFLAGS}”</blockquote>
  • get the DNS resolutions from the system cp /etc/resolv.conf ./etc/
  • mount /proc with mount -t proc none ./proc
  • mount /dev with mount -o bind /dev ./dev
  • make the chroot with chroot . /bin/bash
  • make env-update and source /etc/profile for updating the environment
  • emerge --sync for updating the emerge tree
  • configure /etc/make.conf using the USE variable (for example with USE=“alse dvd gnome”), all the flags are in the /usr/portage/profiles/use.desc
  • update /etc/locale.gen for the charsets, then execute locale-gen for generating and updating the LOCALES
  • updating time: <blockquote>cp /usr/share/zoneinfo/Europe/Paris /etc/localtime</blocquote> edit /etc/conf.d/clock with <blockquote>CLOCK=“local” TIMEZONE=“Europe/Paris”</blockquote>
  • download kernel sources with emerge gentoo-sources (the archive is in /usr/src, emerge create a symbolic link to the latest installed sources with /usr/src/linux), go to /usr/src/linux
  • two methods to get a kernel:
    • with genkernel:
      1. emerge genkernel
      2. copy the configuration of the CD from the auto configuration with zcat /proc/config.gz > /usr/share/genkernel/x86/kernel-config-2.6
      3. execute genkernel all
      4. the kernel is created, go to /boot for verifying the files kernel* and initramfs*
    • with make menuconfig, then execute make && make modules_install
  • configure the dynamic modules: update-modules-f for updating the module configuration file automatically (by hand you have to edit the file /etc/modules.autoload.d/kernel-2.6)
  • edit /etc/fstab, example: <blockquote>/dev/sda1 /boot ext2 defaults,noatime 1 2 /dev/sda2 none swap sw 0 0 /dev/sda3 / ext3 noatime 0 1 /dev/cdrom /mnt/cdrom auto noauto,user 0 0</blockquote>
  • keyboard configuration
 
gentoo_for_dummies.txt · Last modified: 2010/08/15 15:49 by njames

 © Nicolas James 2009-2011

 Valid XHTML 1.0 Transitional Valid CSS! DokuWiki