User Tools

Site Tools


инсталляция_системы_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 10:18]
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 151: 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 160: 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 166: 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 / # emerge app-misc/​screen
 +
 +(chroot) livecd / # rc-update add sshd default
 +</​code>​
 ==== Перезагрузка в новую систему ==== ==== Перезагрузка в новую систему ====
 <​code>​ <​code>​
Line 187: Line 211:
 livecd ~ # init 0 livecd ~ # init 0
  
-HDD в приоритет загрузки!!!!+Изъять CD или ​HDD в приоритет загрузки!!!
 </​code>​ </​code>​
инсталляция_системы_linux.txt · Last modified: 2023/11/27 13:25 by val