A progressive voice of the digital age, we are fighting for our digital freedoms in software, hardware and on the Internet. We watch for corporate abuse as well as promote knowledge and educate people about the dangers our rights currently face such as DRM and software patents. We do this with a focus on the Free Software movement and the ideals presented by the EFF, FSF, ACLU, and the hacker ethic.
Please support our social mission.

*Subscribe to our discussion list (med traffic) here
*Stay updated and get action alerts delivered to your inbox here
*Come to our meetings here .
*Subscribe to our local Boston list here
All of our decisions are made through direct democracy and collective decision making. For more information about us, please go here.
Solidarity

 

Gentoo Fast Install - Instalacion rapida

tata's picture

You are a newbee or someone that just wants to follow the steps of the instalation with out reading the big manual at the gentoo website. You are a gentoo hacker but sometimes cant remember all the steps cause you keep your mind in other things and want to have something similar to a checklist... so here it is.. enjoy.

1. Put your brains on... leave TV alone and all that non sense...
2. put cd with your downloaded image to boot from cdrom and make sure bios is setup to boot first from cd.
2a. configure your network so you can later on download the needed files.
run:

net-setup
select wired
select dhcp

3. run to create your partitions on your hard drive:

cfdisk /dev/sda

or

cfdisk /dev/hda

depending if you have scsi/sata or IDE

3a. if you have more HardDrives you should follow the letter scheme..
for example:
cfdisk /dev/sdb c e... or /dev/hdb c e..
4. when you created the 3 partitions for example:

/dev/sda1 boot with +- 100 megs
/dev/sda2 swap with +- 1000 megs
/dev/sda3 root with the rest of the disk

you have to create the filesystem in the partitions you just created like:

mkfs.ext3 /dev/sda1 for a ext3 file system
mkswap /dev/sda2 for swap memory space
mkfs.ext3 /dev/sda3 for a ext3 file system

5. now mount the created file systems:

mount /dev/sda3 /mnt/gentoo
swapon /dev/sda2
mkdir /mnt/gentoo/boot <--- this creates a dir called boot into the new mounted FS.
mount /dev/sda1 /mnt/gentoo/boot <-- here you mount it on that new dir.

now go to /mnt/gentoo

cd /mnt/gentoo

6. here you going to use a text browser to connect to the internet
and download two files.

links http://www.gentoo.org/main/en/mirrors.xml go into a mirror

go into one of the USA mirrors choose one.. I am choosing a http one not a ftp one..
now navigate in this order:

releases
x86
current
stages
select stage3-x86-2006.0.tar.bz2 <-- carefull dont download the other like DIGEST or .asc they are not what we looking for.
wait to it finish donwloading and exit

now do the same thing..
run

links http://www.gentoo.org/main/en/mirrors.xml go into a mirror

select one in the USA
now navigate in this order:
snapshots
and download portage-latest.tar.bz2 same as before carefull dont mistake with the other two files that have .gpgsig or .md5sum

7. now you need to uncompress the packages on your future / directory
so make sure you are in /mnt/gentoo
run

pwd

it will show you were you are..
now if you are indeed here run:

tar xvjpf stage3-amd64-2006.0.tar.bz2

when is done.. you have your base system there..

7a. now you going to uncompress the other file we downloaded.
make sure you are still under /mnt/gentoo
and run

tar xvjf /mnt/gentoo/portage-latest.tar.bz2 -C /mnt/gentoo/usr

8. select your mirror:

mirrorselect -i -o >> /mnt/gentoo/etc/make.conf

just select 2-3 near were you live.

8a. select a sync mirror:

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

just select one here.. prob default is ok..

9. copy your dns resolver file to the your new system/directory:

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

9a. run:

mount -t proc none /mnt/gentoo/proc

and

mount -o bind /dev /mnt/gentoo/dev

check the oficial gentoo documentation to see what this are for..

10. Enter in the new enviroment you been building.

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

11. Update portage tree... you downloaded a snapshoot before but some time have pass between when the snapshoot was made and now..

emerge --sync

11a. configure the timezone..
check here for your options:

ls /usr/share/zoneinfo

in my case East coast time I run..

cp /usr/share/zoneinfo/America/New_York /etc/localtime

11b.run:
lsmod | sed 1d | awk '{print $1}' >> /etc/modules.autoload.d/kernel-2.6

12. Kernel cofiguration
download some software you will need
run:

emerge genkernel
emerge gentoo-sources

run:

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

then to create the kernel run:

genkernel all

13. now we need to tell the system were are our partitions to boot from and use..
run:

nano -w /etc/fstab

and change:
/dev/BOOT for /dev/sda1
/dev/ROOT for /dev/sda3
/dev/SWAP for /dev/sda2

in /dev/sda1 change ext2 to be ext3

save the file.. :-)

14. now we need to give the new system a name.. do this..

nano -w /etc/conf.d/hostname

and change were it says localhost for the name you wish..
HOSTNAME="myname"

14b. now lets set the domain name we are into.
Setting the domainname

nano -w /etc/conf.d/domainname

(Set the DNSDOMAIN variable to your domain name)
DNSDOMAIN="homenetwork"

15. Now configure the NETWORK! if you are *not* using DHCP then:
run:

nano -w /etc/conf.d/net

and if you going to use DHCP(most prob for people at home) then leave alone.
but if you need a static ip then here is an example:
Manually setting IP information for eth0
config_eth0=( "192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255" )
routes_eth0=( "default gw 192.168.0.1"

15b. now we going to add the network script to boot when the system starts.. run this:

rc-update add net.eth0 default

16. now we going to create a root(admin) password
run:

passwd

and press enter.. then enter your new root password two times.

now run this we need it.. read the manual for more information.
run:

echo "tts/0" >> /etc/securetty
emerge syslog-ng
emerge vixie-cron
emerge slocate
emerge dhcpcd

and run to add them to the system start up procedure.

rc-update add syslog-ng default
rc-update add vixie-cron default

17. and now configure the boot looader.
run:

emerge grub
nano -w /boot/grub/grub.conf

and add:

#
# Sample boot menu configuration file
#
timeout 30
default 0
splashimage=(hd0,0)/grub/splash.xpm.gz

# For booting GNU/Linux
title Gentoo 2006 GNU/Linux by Chris Fernandez
root (hd0,0)
kernel /kernel-genkernel-x86-2.6.16-gentoo-r4 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
initrd /initramfs-genkernek-x86-2.6.16-gentoo-r4

18. Now we need to install the bootloader grub we just configured into the HD:
run:

grep -v rootfs /proc/mounts > /etc/mtab
grub-install --no-floppy /dev/sda

19. WE ARE DONE just run:

exit
cd /
umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo
reboot

Remember to take the cd out of the cdrom reader, if you have any

problem just pop the cd in again and boot and follow the first steps

to mount and chroot into your system..(dont format or repartition

since you alreayd have your system installed, you prob just need to

install grub the right way or retouch your kernel)