Questions about this topic? Sign up to ask in the talk tab.

Difference between revisions of "Gentoo Installation"

From NetSec
Jump to: navigation, search
Line 41: Line 41:
 
Choose to Write tables to disk, and then exit.
 
Choose to Write tables to disk, and then exit.
 
<pre>
 
<pre>
<source lang="bash">
+
 
  
 
mkfs.ext2 /dev/sda1
 
mkfs.ext2 /dev/sda1
Line 48: Line 48:
 
mount -t reiserfs /dev/sda3 /mnt/gentoo ; cd /mnt/gentoo
 
mount -t reiserfs /dev/sda3 /mnt/gentoo ; cd /mnt/gentoo
 
wget http://gentoo.arcticnetwork.ca/releases/x86/current-stage3/stage3-i686-20110614.tar.bz2
 
wget http://gentoo.arcticnetwork.ca/releases/x86/current-stage3/stage3-i686-20110614.tar.bz2
    # for the below line, you can simply press the TAB button after stage3 and it will automatically complete the command, just press enter to confirm it
+
</pre>
 +
 
 +
for the below line, you can simply press the TAB button after stage3 and it will automatically complete the command, just press enter to confirm it
 +
<pre>
 
tar xvpjf stage3*
 
tar xvpjf stage3*
 
swapon /dev/sda2
 
swapon /dev/sda2
 
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
 
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
 +
</pre>
 +
 +
Okay, now you've set up your hard drives, downloaded a copy of gentoo on your live environment, and copied resolv.conf over.
 +
  Before continuing make sure you can access the internet.
 +
 +
you can test this by pinging google:
 +
<pre>
 +
ping -c 2 google.com
 +
</pre>
  
</source>
+
  if it isn't working, try the following:
 +
<pre>
 +
    ifconfig eth0 down && ifconfig eth0 up
 +
    dhcpcd eth0
 
</pre>
 
</pre>
     # make sure you can access network here, try ping google.com or links google.command
+
     {{info you might need to do this each time you reboot}}
    # if it isn't working, try to:
+
    # ifconfig eth0 down && ifconfig eth0 up
+
    # dhcpcd eth0
+
    # you might need to do this each time you reboot
+

Revision as of 18:18, 24 November 2011

Gentoo is a source-based linux distribution.source-based means every application is compiled locally.

You can download a copy of gentoo Here

To install gentoo you will need to create a bootable LiveCD or LiveUSB.

There are many ways one could create a LiveCD or LiveUSB, but that is outside of the scope of Gentoo Installation


Virtual Machine Setup

If you want to set up Gentoo within a virtual machine you will need at least:

  • Around 512MB to 1GB of RAM
  • At least 10GB HDD
  • Networking features enabled

And preferably multiple cores on an x86_64 processor



Hard Drive Setup

  ls /dev | grep sd
  cfdisk /dev/sda


cfdisk will then bring you into an ncurses gui. Use cfdisk to:

  • Create 100MB Partition Bootable at the Beginning
  • Create 2048MB Partition at the beginning
  • Create remaining free space partition at the beginning


Choose to Write tables to disk, and then exit.



mkfs.ext2 /dev/sda1
mkswap /dev/sda2
mkfs.reiserfs /dev/sda3
mount -t reiserfs /dev/sda3 /mnt/gentoo ; cd /mnt/gentoo
wget http://gentoo.arcticnetwork.ca/releases/x86/current-stage3/stage3-i686-20110614.tar.bz2

for the below line, you can simply press the TAB button after stage3 and it will automatically complete the command, just press enter to confirm it

tar xvpjf stage3*
swapon /dev/sda2
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf

Okay, now you've set up your hard drives, downloaded a copy of gentoo on your live environment, and copied resolv.conf over.

 Before continuing make sure you can access the internet. 

you can test this by pinging google:

ping -c 2 google.com
  if it isn't working, try the following:
    ifconfig eth0 down && ifconfig eth0 up
    dhcpcd eth0
   Template:Info you might need to do this each time you reboot