Gentoo Quick Install Guide AMD64 / x86

Gentoo Quick Install Guide x86/amd64This guide is derived from the official Gentoo Quick Install Guide located at Gentoo.org, however the official guide appears to be out of date have been removed.. I have decided to write an, unofficial, up-to-date guide.

Setup your network

Check network interface configuration to find out the name of your device (typically enp2s0 or enp3s0) using the ifconfig command, and set it up.

Attempt automatic network configuration

Manual network configuration

SSHd

If you would like to take over the installation over your network, you can start the sshd & set the root password now, and then follow then rest of the installation steps over SSH.

Prepare your disk(s)

Partition Disk(s)

You will need to use the command line tool, fdisk, to partition your disk, press m in fdisk for help.

When partitioning your disk, you should be sure to have at least a 150MB boot partition (Typically setup on /dev/sda1), a swap partition twice the size of your max memory (no more than 4GB recommended, typically on /dev/sda2), and your third partition (/dev/sda3) should be created with the remaining free space. After your disk is partitioned, we need to create the file systems.

Create file systems and swap

Mount the file system(s)

Our next step is to mount & extract the stage 3 to our new filesystem

Once your files are extracted, be sure that your ‘date’ command returns the correct UTC time, and if not fix it to match the correct UTC time (# date MMDDhhmmYYYY), after that is sorted we can chroot into our environment. If you are SSH’d into the system at this point, it is best to start a session in screen before you chroot.

Prepare the Stage

Install the current portage snapshot

Set your Timezone

Select & Set System Profile

Example output:

Select your profile (your default USE flags are determined based on the profile that you set).

Set Hostname

Your machine needs a name, or may be part of a domain, here you will get a chance to set that up 🙂

Configure the Kernel

You could manually go in and make your kernel & initramfs, however I prefer to go the genkernel route. If you are comfortable with default kernel configuration you can just immediately exit the menuconfig on the genkernel step and skip right to building your kernel.

It will take some time to build your kernel & modules, go ahead and grab a cup of coffee.

Boot configuration

/etc/fstab

Grub2

Gentoo has made grub2 default for installation, it’s alot easier to setup than you might think.

Finish Base Installation

Merge Startup Packages

You’ll probably want some of the core packages such as a DHCP client, cron daemon, and system logging daemon. Here’s a good starter kit

Set Passwords

Now is a good time to add users and change your root password before you reboot into your new system.

You should be safe to reboot & install the rest of your systems packages now. 🙂

I’m a geek, gamer, and writer.
I am also an apache attack helicopter. Hobbies include flying around, shooting things down, and occasionally breaking stuff.