ログイン
編集不可のページディスカッション情報添付ファイル

2014-02-06 11:05:06時点のリビジョン6

メッセージを消す
neotaso/GentooInstall 2nd

MMA

マシン

戦闘ログ

準備

Round 1

boot: gentoo

# ifconfig
# passwd
# /etc/init.d/sshd start

ここから先はリモートから操作する(隣の端末)

コピペが使えて楽

Round 2

# fdisk /dev/sda

sda1

/boot

64MB

ext2

sda2

swap

512MB

(swap)

sda3

/

20GB

btrfs

(空き)

約375GB

(none)

# fdisk

fdisk

# mkfs.ext2 /dev/sda1
# mkfs.btrfs /dev/sda3

# mkswap /dev/sda2
# swapon /dev/sda2

# mount /dev/sda3 /mnt/gentoo
# mkdir /mnt/gentoo/boot
# mount /dev/sda1 /mnt/gentoo/boot

Round 3

# cd /mnt/gentoo
# links http://www.gentoo.org/main/en/mirrors.xml

# tar xvjpf stage3-hogehoge
# tar xvjf portage-latest.tar.bz2 -C /mnt/gentoo/usr

# emacs ./etc/portage/make.conf

CFLAGS="-O2 -march=core2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"

Round 4

インストールのお時間です

# cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf

# mount -t proc none /mnt/gentoo/proc
# mount --rbind /dev /mnt/gentoo/dev

# chroot /mnt/gentoo /bin/bash
chroot: failed to run command '/bin/bash': Exec format error

# env-update
# source /etc/profile

# emerge --sync

# mirrorselect -io >> /mnt/gentoo/etc/portage/make.conf
# mirrorselect -iro >> /mnt/gentoo/etc/portage/make.conf

# eselect profile list
# eselect profile set x

# less /usr/portage/profiles/use.desc

# nano -w /etc/portage/make.conf

USE="bindist mmx sse sse2 -oss alsa canna cjk cdr dvd emacs imagemagick java mozilla mule ruby unicode usb ipv6 X"

# nano -w /etc/locale.gen

//英語日本語関連のコメントアウトを外す
ja_JP.SHIFT_JIS SHIFT_JIS //追加

# locale-gen

# ln -sf /usr/share/zoneinfo/Japan /etc/localtime

# emerge gentoo-sources

# emerge genkernel
# genkernel --menuconfig all