ログイン
編集不可のページディスカッション情報添付ファイル
"neotaso/GentooInstallBattle 4th"の差分

MMA
4と5のリビジョン間の差分
2014-03-16 08:13:31時点のリビジョン4
サイズ: 2729
編集者: neotaso
コメント:
2014-03-16 08:14:34時点のリビジョン5
サイズ: 2748
編集者: neotaso
コメント:
削除された箇所はこのように表示されます。 追加された箇所はこのように表示されます。
行 72: 行 72:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -march=core2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="bindist mmx sse sse2 bash-completion alsa cdr dcd emacs ipv6 unicode usb X"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
PORTAGE_TMPDIR="/tmp/portage"
 # These settings were set by the catalyst build script that automatically
 # built this stage.
 # Please consult /usr/share/portage/config/make.conf.example for a more
 # detailed example.
 CFLAGS="-O2 -march=core2 -pipe"
 CXXFLAGS="${CFLAGS}"
 MAKEOPTS="-j5"
 # WARNING: Changing your CHOST is not something that should be done lightly.
 # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
 CHOST="x86_64-pc-linux-gnu"
 # These are the USE flags that were used in addition to what is provided by the
 # profile used for building.
 USE="bindist mmx sse sse2 bash-completion alsa cdr dcd emacs ipv6 unicode usb X"
 PORTDIR="/usr/portage"
 DISTDIR="${PORTDIR}/distfiles"
 PKGDIR="${PORTDIR}/packages"
 PORTAGE_TMPDIR="/tmp/portage"
行 90: 行 90:
INPUT_DEVICES="keyboard mouse"  INPUT_DEVICES="keyboard mouse"
行 92: 行 92:
LANGUAGES="ja"  LANGUAGES="ja"
  • 4回目のインストール
  • 前回のインストール、明らかにパーティションがダメだった
  • ちゃんとしたのを
  • ハンドブック:https://www.gentoo.org/doc/en/handbook/handbook-amd64.xml

    • 日本語はダメだ、アレは良くない
  • 特にRoundに意味は無い

Round 1

  • minimalCDを(ry
    • amd64で
  • ディスクを入れてブート
    boot: gentoo
  • 外から操作する準備
    # ifconfig enp2s0 192.168.. netmask 255.255.255.0
    # passwd
    # /etc/init.d/sshd start
  • SSHして操作(コピペとか楽)

Round 2

  • パーティションする

sda1

128MB

boot

ext4

sda2

2GB

swap

(swap)

sda3

370GB

/

btrfs

  • # fdisk /dev/sda
    
    p:現在のパーティション
    d:パーティション削除
    n:パーティション作成
    a:bootパーティション選択
    w:書き込み(終了)
    q:書き込みせず終了
    # mkswap /dev/sda2
    # swapon /dev/sda2
    # mkfs.ext4 /dev/sda1
    # mkfs.btrfs /dev/sda3
    # mount /dev/sda3 /mnt/gentoo
    # mkdir /mnt/gentoo/boot
    # mount /dev/sda1 /mnt/gentoo/boot
    # mount -t proc none /mnt/gentoo/proc
    # mount -o bind /dev /mnt/gentoo/dev
  • btrfsのサブボリュームを作る
    • /以下のetc,home,opt,varのsnapshotを取れるようにしたい
    # cd /mnt/gentoo
    # btrfs sub create hoge //上に書いたものを作る。
  • stage3とportage snapshotのダウンロード
    # links http://www.gentoo.org/main/en/mirrors.xml
    # tar xvjpf stage3-*.tar.bz2
    # tar xvjf portage-latest.tar.bz2 -C /mnt/gentoo/usr
  • make.confの設定
    # emacs /etc/portage/make.conf
    
     # These settings were set by the catalyst build script that automatically
     # built this stage.
     # Please consult /usr/share/portage/config/make.conf.example for a more
     # detailed example.
     CFLAGS="-O2 -march=core2 -pipe"
     CXXFLAGS="${CFLAGS}"
     MAKEOPTS="-j5"
     # WARNING: Changing your CHOST is not something that should be done lightly.
     # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
     CHOST="x86_64-pc-linux-gnu"
     # These are the USE flags that were used in addition to what is provided by the
     # profile used for building.
     USE="bindist mmx sse sse2 bash-completion alsa cdr dcd emacs ipv6 unicode usb X"
     PORTDIR="/usr/portage"
     DISTDIR="${PORTDIR}/distfiles"
     PKGDIR="${PORTDIR}/packages"
     PORTAGE_TMPDIR="/tmp/portage"
    
     INPUT_DEVICES="keyboard mouse"
    
     LANGUAGES="ja"
    
    # mirrorselect -io >> /mnt/gentoo/etc/portage/make.conf
    # mirrorselect -iro >> /mnt/gentoo/etc/portage/make.conf
  • localeの設定
    # emacs etc/locale.gen //英語と日本語の#を外す

Round 3

neotaso/GentooInstallBattle 4th (最終更新日時 2014-06-05 13:09:27 更新者 neotaso)