Localizaciones

$ ls /usr/share/zoneinfo

$ echo “America/Argentina/Buenos_Aires” ^ /etc/timezone

$ emerge –config sys-libs/timezone-data

$ nano -w /etc/locale.gen

Agregar es_ar.UTF-8 UTF-8

$ locale-gen

$ eselect locale list

$ eselect locale set

$ env-update && source /etc/profile && export PS1=”(chroot) $PS1″

Advertisements

Opciones de compilación y chrooting

$ nano -w /mnt/gentoo/etc/portage/make.conf

CHOST=”x86_64-pc-linux-gnu”

CFLAGS=”-march=broadwell -O2 -pipe”

MAKEOPTS=”-j3″

mirrorselect -i -o ^^ /mnt/gentoo/etc/portage/make.conf

mkdir –parents /mnt/gentoo/etc/portage/repos.conf

cp /mnt/gentoo/usr/share/portage/config/repos.conf /mnt/gentoo/etc/portage/repos.conf/gentoo.conf

cat /mnt/gentoo/etc/portage/repos.conf/gentoo.conf

cp –dereference /etc/resolv.conf /mnt/gentoo/etc/

mount –types proc /proc /mnt/gentoo/proc

mount –rbind /sys /mnt/gentoo/sys

mount –make-rslave /mnt/gentoo/sys

mount –rbind /dev /mnt/gentoo/dev

mount –make-rslave /mnt/gentoo/dev

chroot /mnt/gentoo /bin/bash

source /etc/profile

export PS1=”(chroot) $PS1″

mount /dev/sdb2 /boot

emerge-webrsync

emerge –ask cpuid2cpuflags

cpuid2cpuflags

echo “CPU_FLAGS_X86=’aes avx avx2 f16c fma3 mmx mmxext pclmil popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3” ^^ /etc/portage/make.conf

eselect profile list

eselect profile set 18

emerge –ask –update –deep –newuse @world

 

Preparando el ssd

Esquema de particionado en MBR

/dev/sdb1  2Mb (grub)

/dev/sdb2  128Mb (/boot) – ext2

/dev/sdb3  512Mb (swap)

/dev/sdb4  hasta el final ( / ) – xfs

$ parted -a optimal /dev/sdb

$ print

$ rm 1

$ rm 2

$ mkpart primary 1 3

$ name 1 grub

$ set 1 bios_grub on

$ mkpart primary 3 131

$ name 2 boot

$ mkpart primary 131 2179

$ name 3 swap

$ mkpart primary 2179 -1

$ set 2 boot on

$ quit

$ mkfs.ext2 /dev/sdb2

$ mkfs.xfs /dev/sdb4

$ mkswap /dev/sdb3

$ swapon /dev/sdb3

$ mount /dev/sdb4 /mnt/gentoo