All pastes #557097 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-06-10 21:16 UTC
rendered paste body
ALL COMMANDS START WITH '#'



# fdisk /dev/hdb

/dev/hdb configuration after formatting
===================================================================================
Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1          13      104391   83  Linux
/dev/hdb2              14         512     4008217+  82  Linux swap / Solaris
/dev/hdb3             513        9729    74035552+  83  Linux
===================================================================================

# mkreiserfs /dev/hdb1
# mkreiserfs /dev/hdb3
# mkswap /dev/hdb2


swapon /dev/hdb2
# mount /dev/hdb3 /mnt/gentoo
# mkdir /mnt/gentoo/boot
# mount /dev/hdb1 /mnt/gentoo/boot

# date
===================================================================================
Sat Jun  9 01:35:19 UTC 2007
(date is good)
===================================================================================


# cd /mnt/gentoo
# wget http://gentoo.mirrors.tera-byte.com/releases/x86/current/stages/stage3-x86-2007.0.tar.bz2  
# wget http://gentoo.mirrors.tera-byte.com/releases/x86/current/stages/stage3-x86-2007.0.tar.bz2.DIGESTS 
# md5sum -c stage3-x86-2007.0.tar.bz2.DIGESTS 
===================================================================================
stage3-x86-2007.0.tar.bz2: OK
(got good copy)
===================================================================================

# wget http://gentoo.mirrors.tera-byte.com/snapshots/portage-latest.tar.bz2
# wget http://gentoo.mirrors.tera-byte.com/snapshots/portage-latest.tar.bz2.md5sum
# md5sum -c portage-latest.tar.bz2.md5sum 
===================================================================================
portage-latest.tar.bz2: OK
(got good copy)
===================================================================================



# tar xvjpf stage3-x86-2007.0.tar.bz2

===================================================================================
I wrote the file:
/mnt/gentoo/etc/make.conf
===================================================================================

# mkdir /mnt/gentoo/usr/local/portage
# mkdir /mnt/gentoo/var/log/portage

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

# mount -t proc none /mnt/gentoo/proc
# mount -o bind /dev /mnt/gentoo/dev

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


# emerge --sync
# emerge portage

# ls -FGg /etc/make.profile
===================================================================================
lrwxrwxrwx 1 48 Jun  9 01:53 /etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2007.0/
(it is the correct profile)
===================================================================================
# nano -w /etc/locale.gen 
===================================================================================
(I edited /etc/locale.gen so it consists of:
fr_FR.ISO-8859-1
fr_FR.ISO-8859-15@euro
en_US.ISO-8859-1
en_US.UTF-8
===================================================================================
# locale-gen


# cd /usr/portage/scripts/
# ./bootstrap.sh 
===================================================================================
 * System has been bootstrapped already!
 * If you re-bootstrap the system, you must complete the entire bootstrap process
 * otherwise you will have a broken system.
 * Press enter to continue or CTRL+C to abort ...

I pressed enter
===================================================================================



# emerge -e system
# cp /usr/share/zoneinfo/Canada/Eastern /etc/localtime

# emerge pciutils
# emerge gentoo-sources
# emerge genkernel

# zcat /proc/config.gz > /usr/share/genkernel/x86/kernel-config-2.6

# genkernel --menuconfig all
===================================================================================
make the change to Core 2/new Xeon
under processor type and features 
      processor family
===================================================================================

# emerge vim
===================================================================================
(so editing would be easier, not necessary)
===================================================================================

===================================================================================
edited the following files:
/etc/conf.d/hostname
/etc/conf.d/net
/etc/hosts
===================================================================================

# rc-update add net.eth0 default

# passwd 
===================================================================================
set the root password
===================================================================================

# emerge syslog-ng vixie-cron slocate reiserfsprogs dhcpcd
# rc-update add syslog-ng default
# rc-update add vixie-cron default
# emerge grub
===================================================================================
(wrote: /boot/grub/grub.conf)
===================================================================================
# cp /usr/share/genkernel/generic/linuxrc /boot

# grub
===================================================================================
 root (hd0,0)
 setup (hd1)
 quit
( set up grub)
===================================================================================
# rm portage-latest.tar.bz2*
# rm stage3-x86-2007*

===================================================================================
# useradd roger -m -g users -G video,audio,wheel -s /bin/bash
# passwd roger
(adding the user: roger)
===================================================================================

# emerge gentoolkit

===================================================================================
(finished, so time unmount filesystems and reboot)
===================================================================================