|Johnathan 013722528f Remove laptop-specific packages||1 year ago|
|etc/portage||1 year ago|
|usr/local/sbin||1 year ago|
|LICENSE.md||1 year ago|
|README.md||1 year ago|
|gein.sh||1 year 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 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
geinwithout much thought.
eselect opengl set nvidiaas root.
Prepare a disk or USB drive
gein should work from almost any live installation media, though
Fedora Workstation or Ubuntu Desktop will most likely be best if
you wish to continue using the system while you wait for the
installation to complete.
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 run
before performing these steps:
$ fdisk /dev/sdX $ mkfs.xfs /dev/sdX $ mount /dev/sdX1 /mnt/gentoo
You should be able to run the script from anywhere, but in general
it may be best to
sudo -i and
cd ~/ so that you are a
privileged user to begin with.
$ wget https://raw.githubusercontent.com/jcmdln/master/gein.sh $ sh gein.sh gein: Gentoo minimal installation script -b. --bootstrap Bootstrap the stage3 tarball -i, --install Install Gentoo
You will now need to modify
gein.sh. In order to proceed with the
installation, you must have the variable
gein.sh will complain at you.
Be sure to read the warning messages in
gein.sh if you haven’t
Bootstrap the system
The script will download the latest Stage3 archive for the detected architecture and do some housekeeping.
$ sh ./gein.sh bootstrap
Once the boostrap process finishes, you will be in a chroot within
/mnt/gentoo where you may proceed to the next step.
Install the desired target.
$ sh ./gein.sh install
If you used a LiveCD then kill some time while you wait. You won’t be prompted until after the installation has completed. These final prompts are for setting the root password and optionally creating a user.
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.
Enjoy your new Gentoo installation!
If you would like to create your own ideal Gentoo system using this script, you may do so by:
BOOTSTRAP()function to represent your configuration
I’m very interested in feedback regarding the contents of this repo. If you have any feedback, suggestions, or contributions please file an issue or pull request.