Gentoo Linux quick installer script

Author Artem Butusov · Published on August 9th, 2018

Why?

Sometimes working gentoo environment could be needed just right now but typical manual installation is taking time.

Let’s say you need Gentoo running on Virtual Box on you physical box to test some gentoo-specific things or you just like Gentoo more than other distros.

The script I will share with you will save you time. It a little bit naive and straightforward but it is also simple and easy to tune for your needs. Pretty linear bash script.

NOTE: There is full automated script available for Virtual Box here: https://github.com/sormy/gentoo-vbox-builder

What this doing

It is actually a minimal set of actions needed to get bootable Gentoo:

Prerequisites

Instruction below are for macOS host OS and guest Virtual Box instance. For windows it is similar but you will need to use Putty for SSH.

By the way, even SSH is optional here. You could technically just type manually a few commands directly in virtual box console session to initiate installation.

Installation

The link below could be outdated, please follow gist to download revision of script.

The script source code is available here: https://gist.github.com/sormy/7221a65a3becf082aaa3af2ec8dee1bc

THIS SCRIPT WILL DESTROY ALL DATA ON GUEST OS DISK!!! DO NOT RUN ON HOST OS WITH YOUR DATA!!!

Please note, script will stop if any error will happen.