[Gentoo] Gentoo Handbook: Installation (3) Installing stage 3

2022. 5. 17. 13:01·💻 Study/Linux 리눅스
728x90

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-line browsers

links를 사용하면 간단하게 stage tarball을 다운로드할 수 있다.

root # links <https://www.gentoo.org/downloads/mirrors/>

이후 표시되는 메뉴들 중, Downloads로 커서를 이동 후 Enter하면 하단에 다운 가능한 stage 목록이 표시된다. 아래↓로 이동하여 앞서 선택한 stage을 고르고 다운받는다.

내가 선택한 것은 stage3-amd64-openrc-20220206T170533z.tar.xz 이다.

(파일을 다운받는 데 꽤 시간이 걸린다.)

proxy는 안해도 된다.
Verifying and validating 파트도 굳이 할 필요없다.

 

Unpacking the stage tarball

  • tar: 다운받은 stage의 압축을 해제한다.
root # tar xpvf stage3-*.tar.xz --xattrs-include='*.*' --numeric-owner

 

Configuring compile options

CFLAGS and CXXFLAGS

안 해도 된다.

 

MAKEOPTS

MAKEOPTS 변수는 패키지를 설치할 때 얼마나 많은 parallel compilations이 발생해야하는지를 정의한다. CPU가 가진 스레드의 수 이하로 설정하는 것이 좋다.

—> CPU의 코어 수로 설정한다.

root # nano -w /mnt/gentoo/etc/portage/make.conf
// make.conf
MAKEOPTS="-j6"

 

 

다음글

 

[Gentoo] Gentoo Handbook: Installation (4) Installing base system

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 ro..

soso-cod3v.tistory.com

 

728x90
저작자표시 (새창열림)

'💻 Study > Linux 리눅스' 카테고리의 다른 글

[Gentoo] Gentoo Handbook: Installation (5) Configuring the Linux kernel  (0) 2022.06.24
[Gentoo] Gentoo Handbook: Installation (4) Installing base system  (0) 2022.05.18
[Gentoo] Gentoo Handbook: Installation (2) Preparing the disks  (0) 2022.03.07
[Gentoo] Gentoo Handbook: Installation (1) Configuring the network  (0) 2022.03.07
[Gentoo] Gentoo Handbook: Installation  (0) 2022.03.07
'💻 Study/Linux 리눅스' 카테고리의 다른 글
  • [Gentoo] Gentoo Handbook: Installation (5) Configuring the Linux kernel
  • [Gentoo] Gentoo Handbook: Installation (4) Installing base system
  • [Gentoo] Gentoo Handbook: Installation (2) Preparing the disks
  • [Gentoo] Gentoo Handbook: Installation (1) Configuring the network
soyang.
soyang.
코딩 및 개발 일지를 기록합니다.
  • soyang.
    소소한 코딩일지
    soyang.
  • 전체
    오늘
    어제
  • 링크

    • Github 🐾
    • 포트폴리오 📓 (리뉴얼중)
    • LinkedIn 👩🏻‍💼
  • 공지사항

    • 소소한 코딩일지
  • 블로그 메뉴

    • 방명록
    • 분류 전체보기 (181)
      • 🚩 목표 & 회고 (9)
      • 📓 Papers (10)
      • 🧇 Algorithm (44)
        • 이론 (1)
        • LeetCode (2)
        • 프로그래머스 (30)
        • 백준 (11)
      • 💻 Study (47)
        • 🤖 AI 인공지능 (3)
        • Python 파이썬 (3)
        • Docker 도커 (4)
        • 웹 (20)
        • 안드로이드 (2)
        • JAVA 자바 (1)
        • Firebase (3)
        • Linux 리눅스 (10)
      • 🍪 Projects (2)
      • 🎒 학교 (44)
        • 대학원 도비 (2)
        • 21 동계 모각코: 슈붕팥붕 (13)
        • 21 하계 모각코: 와팬호 (13)
        • 20 동계 모각코: 와팬호 (13)
      • 활동들 (16)
        • 인프런 대학생 LEAF 2기 (9)
        • 2021 Silicon Valley Online .. (7)
  • 태그

    프로그래머스
    Gentoo
    알고리즘
    Linux
    리액트
    백준
    목표
    Ai
    알고리즘스터디
    공부
    Python
    Algorithm
    노마드코더
    모각코
    error
    인프런대학생Leaf
    Artificial Intelligence
    programmers
    코딩테스트
    React
  • 최근 댓글

  • hELLO· Designed By정상우.v4.10.3
soyang.
[Gentoo] Gentoo Handbook: Installation (3) Installing stage 3
상단으로

티스토리툴바