[Gentoo] Gentoo Handbook: Installation (8) Configuring the bootloader
·
💻 Study/Linux 리눅스
Selecting a boot loader 나는 GRUB2를 사용할 것이다. Default: GRUB2 Emerge 먼저 grub을 설치한다. (chroot) root # echo 'GRUB_PLATFORMS="efi-64"' >> /etc/portage/make.conf (chroot) root # emerge --ask sys-boot/grub Install grub-install: 필수 GRUB2 파일을 /boot/grub 디렉토리에 설치한다. (chroot) root # grub-install --target=x86_64-efi --efi-directory=/boot Configure grub-mkconfig: GRUB2 configuration을 생성한다. (chroot) root #grub-m..
[Gentoo] Gentoo Handbook: Installation (7) Installing tools
·
💻 Study/Linux 리눅스
System logger system logger를 설치한다. OpenRC에서는 이것을 default runlevel로 추가해줘야 한다. (chroot) root # emerge --ask app-admin/sysklogd (chroot) root # rc-update add sysklogd default Networking tools 이미 앞에서 dhcpcd를 설치했기때문에 넘어간다.
[Gentoo] Gentoo Handbook: Installation (6) Configuring the system
·
💻 Study/Linux 리눅스
Filesystem information Creating the fstab file 딱히 고칠 건 없다. Filesystem labels and UUIDs (chroot) root # blkid Partition labels and UUIDs (chroot) root # nano -w /etc/fstab /etc/fstab 파일에 다음을 작성한다. /dev/sda1 /boot ext4 defaults,noatime 0 2 /dev/sda2 none swap sw 0 0 /dev/sda3 / ext4 noatime 0 1 Networking information Host and domain information 이 파트는 굳이 해줄 필요가 없다. Network dhcpcd (any init system) ..
[Gentoo] Gentoo Handbook: Installation (5) Configuring the Linux kernel
·
💻 Study/Linux 리눅스
(manual 이 아닌) genkernel을 사용해 자동으로 Linux kernel을 빌드하고 설치해보자. Installing the sources 적절한 kernel 소스를 선택하고 설치한다. (chroot) root # emerge --ask sys-kernel/gentoo-sources 먼저, 모든 설치된 kernel 목록을 확인하자 (chroot) root # eselect kernel list Available kernel symlink targets: [1] linux-5.15.19-gentoo 한 개뿐이다. 의심하지 마라. 한 개 설치했으면 한 개만 있다. linux라 불리는 symbolic link를 생성한다. (chroot) root # eselect kernel set 1 (chroot..
[Gentoo] Gentoo Handbook: Installation (4) Installing base system
·
💻 Study/Linux 리눅스
Chrooting Copy DNS info root # cp --dereference /etc/resolv.conf /mnt/gentoo/etc/ Mounting the necessary filesystems (자세한 설명은 Handbook 참고) root # mount --types proc /proc /mnt/gentoo/proc root # mount --rbind /sys /mnt/gentoo/sys root # mount --make-rslave /mnt/gentoo/sys root # mount --rbind /dev /mnt/gentoo/dev root # mount --make-rslave /mnt/gentoo/dev root # mount --bind /run /mnt/gentoo/run..
[Gentoo] Gentoo Handbook: Installation (3) Installing stage 3
·
💻 Study/Linux 리눅스
Installing a stage tarball Setting the date and time date: 현재 날짜와 시간을 확인한다. root # date Mon Oct 3 13:16:22 PDT 2021 Automatic ntpd: 자동으로 system clock을 UTC time으로 sync한다. root # ntpd -q -g Choosing a stage tarball Handbook을 읽어보고 본인에게 적당한 stage tarball을 선택하면 된다. 나는 Multilib, OpenRC를 선택했다. Downloading the stage tarball /mnt/gentoo: root file system이 mount된 곳으로 이동한다. root # cd /mnt/gentoo Command-li..