18 May 2010

Gentoo x86 Install coMMands Resume

mkfs.ext4 /dev/sda2
mkfs.ext4 /dev/sda3

wget stage3-i686-20100511.tar.bz2.DIGESTS
wget stage3-i686-20100511.tar.bz2


md5sum -c stage3-i686-20100511.tar.bz2.DIGESTS

wget portage-latest.tar.bz2.md5sum
wget portage-latest.tar.bz2

md5sum -c portage-latest.tar.bz2.md5sum

mirrorselect -i -r -o >> /mnt/gentoo/etc/make.conf
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf


mount /dev/sda3 /mnt/gentoo
mount /dev/sda2 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev

chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"


emerge --sync
nano -w /mnt/gentoo/make.conf

eselect profile list
eselect profile set 2


nano -w /etc/locale.gen
pt_BR/ISO-8859-1
pt_BR.UTF-8/UTF-8
en_US ISO-8859-1
en_US.UTF-8 UTF-8

locale-gen

cp /usr/share/zoneinfo/BRAZIL/East /etc/localtime

USE="-doc symlink" emerge -v gentoo-sources

emerge pciutils

cd /usr/src/linux
make menuconfig

emerge -v cpufrequtils
emerge -v pcmciautils
emerge -v pcmcia-cs-pnptools
emerge -v pcmcia-cs-cis
emerge -v alsa-lib
emerge -v alsa-utils
emerge -v alsa-tools

make && make modules_install

find /lib/modules/kernel-version/ -type f -iname '*.o' -or -iname '*.ko'

nano -w /etc/modules.autoload.d/kernel-2.6

nano -w /etc/fstab
nano -w /etc/conf.d/hostname

nano -w /etc/conf.d/net
config_eth0=( "dhcp" )
dhcp_eth0="nodns nontp nonis"

rc-update add net.eth0 default

USE="-X" emerge -pv pcmcia-cs

rc-update add pcmcia default

passwd

nano -w /etc/rc.conf

nano -w /etc/conf.d/keymaps

nano -w /etc/conf.d/clock

emerge syslog-ng
rc-update add syslog-ng default

emerge vixie-cron
rc-update add vixie-cron default

emerge slocate
emerge dhcpcd

USE="-X" emerge rp-pppoe

emerge -pv grub

nano -w /boot/grub/grub.conf

grub
grub> root (hd0,0)          (Where /boot is located)
grub> setup (hd0)          (Install the GRUB on MBR)
grub> quit                     (Get out of shell of GRUB)


exit
cd
umount /mnt/gentoo/boot

umount /mnt/gentoo/dev
umount /mnt/gentoo/proc
umount /mnt/gentoo
reboot

useradd -m -G users,wheel,audio -s /bin/bash YourUser



See Also:

[*] handbook-x86


biOos

No comments: