This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
инсталляция_системы_linux [2019/02/22 08:53] val [Сборка ядра будущей системы] |
инсталляция_системы_linux [2020/06/23 09:32] val [Настройка загрузки будущей системы] |
||
---|---|---|---|
Line 36: | Line 36: | ||
* [[https://wiki.gentoo.org/wiki/Handbook:AMD64/ru|Gentoo Handbook]] | * [[https://wiki.gentoo.org/wiki/Handbook:AMD64/ru|Gentoo Handbook]] | ||
* [[https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation/ru|Установка Gentoo]] | * [[https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation/ru|Установка Gentoo]] | ||
+ | * [[https://youtu.be/dIqaW47WXf8|Видео урок: Установка Gentoo и сборка ПО из исходных текстов]] | ||
==== Загрузочный образ (live CD) ==== | ==== Загрузочный образ (live CD) ==== | ||
<code> | <code> | ||
Line 44: | Line 44: | ||
http://gate.isp.un/unix/iso/install-amd64-minimal-20180826T214503Z.iso | http://gate.isp.un/unix/iso/install-amd64-minimal-20180826T214503Z.iso | ||
+ | https://mirror.yandex.ru/gentoo-distfiles/releases/amd64/autobuilds/current-stage3-amd64/install-amd64-minimal-20200621T214503Z.iso | ||
</code> | </code> | ||
Line 87: | Line 88: | ||
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://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 # wget http://gate.isp.un/unix/src/stage3-amd64-nomultilib-20180826T214503Z.tar.xz | ||
+ | |||
+ | livecd /mnt/gentoo # wget https://mirror.yandex.ru/gentoo-distfiles/releases/amd64/autobuilds/current-stage3-amd64/stage3-amd64-nomultilib-20200621T214503Z.tar.xz | ||
+ | |||
livecd /mnt/gentoo # tar xvpf stage3-*.tar.* --xattrs --numeric-owner | livecd /mnt/gentoo # tar xvpf stage3-*.tar.* --xattrs --numeric-owner | ||
Line 112: | Line 116: | ||
<code> | <code> | ||
- | (chroot) livecd / # emerge --sync | + | (chroot) livecd / # time emerge --sync |
5 min | 5 min | ||
Line 118: | Line 122: | ||
(chroot) livecd / # emerge --config sys-libs/timezone-data | (chroot) livecd / # emerge --config sys-libs/timezone-data | ||
- | # echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen | + | (chroot) livecd / # echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen |
- | # locale-gen | + | (chroot) livecd / # locale-gen |
- | # eselect locale list | + | (chroot) livecd / # eselect locale list |
... | ... | ||
- | [3] en_US.utf8 | + | [4] en_US.utf8 |
... | ... | ||
- | # eselect locale set 3 | + | (chroot) livecd / # eselect locale set 4 |
- | # env-update && source /etc/profile && export PS1="(chroot) $PS1" | + | (chroot) livecd / # env-update && source /etc/profile && export PS1="(chroot) $PS1" |
</code> | </code> | ||
Line 145: | Line 149: | ||
(chroot) livecd / # echo MAKEOPTS="-j3" >> /etc/portage/make.conf | (chroot) livecd / # echo MAKEOPTS="-j3" >> /etc/portage/make.conf | ||
- | |||
- | Вариант 1 | ||
- | |||
- | (chroot) livecd / # time emerge sys-kernel/genkernel | ||
- | real 1m50.914s | ||
- | user 0m44.950s | ||
- | sys 0m19.470s | ||
- | |||
- | (chroot) livecd / # time genkernel all | ||
- | real 72m28.142s | ||
- | user 111m48.750s | ||
- | sys 9m18.660s | ||
- | |||
- | Вариант 2 | ||
(chroot) livecd / # emerge sys-apps/pciutils | (chroot) livecd / # emerge sys-apps/pciutils | ||
Line 165: | Line 155: | ||
(chroot) livecd / # make menuconfig | (chroot) livecd / # make menuconfig | ||
- | (chroot) livecd / # make && make modules_install | + | (chroot) livecd / # time make && make modules_install |
- | real 23m6.433s | + | ... |
- | user 21m55.208s | + | real 77m5.257s |
- | sys 1m40.764s | + | user 71m29.137s |
+ | sys 5m17.065s | ||
+ | ... | ||
(chroot) livecd / # make install | (chroot) livecd / # make install | ||
Line 174: | Line 166: | ||
==== Настройка загрузки будущей системы ==== | ==== Настройка загрузки будущей системы ==== | ||
+ | |||
+ | * [[Настройка командных интерпретаторов]] | ||
+ | * [[Сервис SSH#Настройка ssh сервера]] | ||
+ | |||
<code> | <code> | ||
+ | (chroot) livecd / # emerge app-editors/vim | ||
+ | |||
(chroot) livecd / # cat /etc/fstab | (chroot) livecd / # cat /etc/fstab | ||
/dev/sda2 /boot ext2 defaults,noatime 0 2 | /dev/sda2 /boot ext2 defaults,noatime 0 2 | ||
Line 180: | Line 178: | ||
/dev/sda4 / ext4 noatime 0 1 | /dev/sda4 / ext4 noatime 0 1 | ||
- | (chroot) livecd / # emerge --ask --verbose sys-boot/grub:2 | + | (chroot) livecd / # emerge sys-boot/grub:2 |
- | 10 минут | + | ... |
+ | real 28m8.488s | ||
+ | user 22m36.359s | ||
+ | sys 5m6.910s | ||
(chroot) livecd / # grub-install /dev/sda | (chroot) livecd / # grub-install /dev/sda | ||
(chroot) livecd / # grub-mkconfig -o /boot/grub/grub.cfg | (chroot) livecd / # grub-mkconfig -o /boot/grub/grub.cfg | ||
- | </code> | ||
+ | (chroot) livecd / # time emerge net-misc/dhcpcd | ||
+ | ... | ||
+ | real 1m16.500s | ||
+ | user 1m3.037s | ||
+ | sys 0m8.343s | ||
+ | |||
+ | (chroot) livecd / # rc-update add sshd default | ||
+ | </code> | ||
==== Перезагрузка в новую систему ==== | ==== Перезагрузка в новую систему ==== | ||
<code> | <code> | ||
Line 201: | Line 209: | ||
livecd ~ # init 0 | livecd ~ # init 0 | ||
- | HDD в приоритет загрузки!!!! | + | Изъять CD или HDD в приоритет загрузки!!! |
</code> | </code> |