This is an old revision of the document!
http://mirror.yandex.ru/gentoo-distfiles/releases/amd64/autobuilds/current-stage3-amd64/ https://www.gentoo.org/downloads/ http://gate.isp.un/unix/iso/install-amd64-minimal-20180826T214503Z.iso
# ip a #получает через /etc/init.d/dhcpcd # passwd # /etc/init.d/sshd start
livecd ~ # parted -a optimal /dev/sda mklabel gpt unit mib mkpart primary 1 3 name 1 grub set 1 bios_grub on mkpart primary 3 131 name 2 boot mkpart primary 131 643 name 3 swap mkpart primary 643 -1 name 4 rootfs set 2 boot on print quit livecd ~ # mkfs.ext2 /dev/sda2 livecd ~ # mkfs.ext4 /dev/sda4 livecd ~ # mkswap /dev/sda3 livecd ~ # swapon /dev/sda3
livecd ~ # mount /dev/sda4 /mnt/gentoo livecd ~ # cd /mnt/gentoo livecd /mnt/gentoo # wget http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage3-amd64-nomultilib/stage3-amd64-nomultilib-20180826T214503Z.tar.xz livecd /mnt/gentoo # wget http://gate.isp.un/unix/src/stage3-amd64-nomultilib-20180826T214503Z.tar.xz livecd /mnt/gentoo # tar xvpf stage3-*.tar.* --xattrs --numeric-owner
livecd /mnt/gentoo # cp -L /etc/resolv.conf /mnt/gentoo/etc/ mount -t proc /proc /mnt/gentoo/proc mount --rbind /sys /mnt/gentoo/sys mount --make-rslave /mnt/gentoo/sys mount --rbind /dev /mnt/gentoo/dev mount --make-rslave /mnt/gentoo/dev
livecd /mnt/gentoo # chroot /mnt/gentoo /bin/bash livecd / # source /etc/profile livecd / # export PS1="(chroot) $PS1"
(chroot) livecd / # emerge --sync 5 min (chroot) livecd / # echo "Europe/Moscow" > /etc/timezone (chroot) livecd / # emerge --config sys-libs/timezone-data # echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen # locale-gen # eselect locale list ... [3] en_US.utf8 ... # eselect locale set 3 # env-update && source /etc/profile && export PS1="(chroot) $PS1"
(chroot) livecd / # mkdir /boot (chroot) livecd / # mount /dev/sda2 /boot (chroot) livecd / # time emerge sys-kernel/gentoo-sources real 7m22.384s user 1m28.220s sys 0m34.460s (chroot) livecd / # echo MAKEOPTS="-j3" >> /etc/portage/make.conf (chroot) livecd / # emerge sys-apps/pciutils (chroot) livecd / # cd /usr/src/linux (chroot) livecd / # make menuconfig (chroot) livecd / # make && make modules_install real 23m6.433s user 21m55.208s sys 1m40.764s (chroot) livecd / # make install
(chroot) livecd / # cat /etc/fstab /dev/sda2 /boot ext2 defaults,noatime 0 2 /dev/sda3 none swap sw 0 0 /dev/sda4 / ext4 noatime 0 1 (chroot) livecd / # emerge sys-boot/grub:2 10 минут (chroot) livecd / # grub-install /dev/sda (chroot) livecd / # grub-mkconfig -o /boot/grub/grub.cfg
(chroot) livecd / # passwd (chroot) livecd / # rm /stage3-*.tar* (chroot) livecd / # exit exit livecd /mnt/gentoo # cd livecd ~ # umount -l /mnt/gentoo/dev{/shm,/pts,} livecd ~ # umount -R /mnt/gentoo livecd ~ # init 0 HDD в приоритет загрузки!!!!