|Johnathan C Maudlin 52558e68f8 sets/gein-base: Add some helpful packages||2 years ago|
|etc/portage||2 years ago|
|usr||2 years ago|
|CNAME||3 years ago|
|License.md||3 years ago|
|Readme.md||2 years ago|
|gein.sh||2 years ago|
gein is a Gentoo Installation Framework in the form of a repository
and can be used as a model for you to automate your ideal Gentoo
Installation. This repository contains the following:
If you discover issues with any file in this repository, please do file an issue or submit a pull request. While I mainly created this repository to simplify installing my own flavor of Gentoo, I would like to remain somewhat agnostic when possible.
geinis not a Gentoo-based Linux distribution. This is simply a set of files that augment the Stage3 tarball and a script to orchestrate the installation of Gentoo.
geinis not a panacea. If you do not review the files in this repository then chances are that you will experience behavior that you might not prefer. Be sure to review this repository in it’s entirety, including the warnings at the top of
geinwill not partition and mount your disks. You must do so with the tools provided by your installation media, whether that be the Gentoo minimal install CD or some graphical LiveCD, before running
geinis not intended to provide an opinionated package set by default. I have attempted to keep
/etc/portage/setsas minimalist as possible though I do have a number of packages that suit my own tastes.
geinwithout much thought.
eselect opengl set nvidiaas root.
You may use this script as-is by performing the following steps:
Download the Gentoo minimal install CD for your architecture.
is able to run from a graphical LiveCD if you would prefer to entertain
yourself while installing Gentoo.
Write the ISO to a disk or USB drive, reboot, and boot from it.
$ dd if=~/Downloads/install-*.iso of=/dev/sdX $ reboot
Partition and mount your disks. Note that this example assumes that
you will be using a single partition and later installing GRUB to the
MBR. If you aren’t using the Gentoo installation CD, you will need to
mkdir /mnt/gentoo before performing these steps.
$ fdisk /dev/sdX $ mkfs.ext4 /dev/sdX $ mount /dev/sdX1 /mnt/gentoo
Download and run
$ wget https://gein.io/gein.sh $ sh gein.sh gein: Linux-based derivative of Gentoo bootstrap Bootstrap the stage3 tarball Post-bootstrap: minimal Headless installation desktop Desktop installation
You will now need to modify
gein.sh. In order to proceed with the
installation, you must have the variables
gein.sh will exit. If you don’t need any video support, then set
VideoCards to false. Below is an example of a minimal (X-less) install,
though examples are provided within
Now that we’ve satisfied the conditions I coded into
gein.sh, we may
now start the bootstrap process. The script will download the latest
Stage3 archive for the detected architecture and do some housekeeping.
The boostrap process finishes, which lastly will chroot into
/mnt/gentoo so we may proceed to the next step.
$ sh ./gein.sh bootstrap
Install the desired target.
$ sh ./gein.sh minimal
The installation itself takes quite some time, with GCC taking the longest to compile at about 1 hour and 30 minutes on a 2013 laptop. If you decided to use a LiveCD then kill some time while you wait. You won’t be prompted until after the installation has completed, and these final prompts are for installing laptop packages, setting the root password, and creating a user account.
Enjoy your new Gentoo installation!
If you would like to create your own ideal Gentoo system using this script, you may do so by:
CONFIG()function to represent your configuration