Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| gentoo:installation [2024/10/24 12:30] – willy | gentoo:installation [2026/02/25 08:26] (current) – willy | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Gentoo Linux Installation ====== | + | ====== |
| - | Why [[https:// | + | Why [[https:// |
| These instructions are aimed at supporting you during the installation of your home server, the one on which most, or all, your self-hosted home services will run. This same page can be referred to when installing your // | These instructions are aimed at supporting you during the installation of your home server, the one on which most, or all, your self-hosted home services will run. This same page can be referred to when installing your // | ||
| Line 20: | Line 20: | ||
| I will assume your home server has one drive dedicated to the Gentoo installation. Data, media, and other files will be stored on a separate RAID array of some kind. | I will assume your home server has one drive dedicated to the Gentoo installation. Data, media, and other files will be stored on a separate RAID array of some kind. | ||
| - | Please do not configure that RAID array now, but read the [[selfhost: | + | Please do not configure that RAID array now, but read the [[gentoo: |
| === Get Ready for First Boot === | === Get Ready for First Boot === | ||
| Line 83: | Line 83: | ||
| </ | </ | ||
| - | And select your preferred profile. I would choose a plain basic profile like **default/ | + | And select your preferred profile. I would choose a plain basic profile like **default/ |
| <code bash> | <code bash> | ||
| eselect profile list | eselect profile list | ||
| Line 101: | Line 101: | ||
| And it's time to install some basic stuff (pick your own! there are also many choices): | And it's time to install some basic stuff (pick your own! there are also many choices): | ||
| <code bash> | <code bash> | ||
| - | > emerge -vp genkernel gentoo-sources | + | > emerge -vp pciutils usbutils mdadm vim tmux cronie |
| </ | </ | ||
| Research each one and pick yours. | Research each one and pick yours. | ||
| - | Now it's time to build the kernel: | + | Setup boot loader (assuming grub2 here): |
| <code bash> | <code bash> | ||
| + | grub-install --target=x86_64-efi --efi-directory=/ | ||
| + | </ | ||
| + | |||
| + | Now it's time to build the kernel, here you have two choices, either go with a fully source kernel or use the gentoo-kernel-bin package to reduce compile time. | ||
| + | |||
| + | To go the source way emerge **genkernel** and the latest gentoo sources, then run genkernel: | ||
| + | <code bash> | ||
| + | emerge -vp genkernel gentoo-sources | ||
| eselect kernel set 1 | eselect kernel set 1 | ||
| genkernel --mountboot --install all | genkernel --mountboot --install all | ||
| + | grub-mkconfig -o / | ||
| </ | </ | ||
| + | |||
| + | For the binary kernel instead: | ||
| + | <code bash> | ||
| + | echo " | ||
| + | emerge gentoo-kernel-bin | ||
| + | </ | ||
| + | |||
| + | When using the binary kernel, you don't need to run grub-mkconfig. | ||
| + | |||
| Then create a user and set root password: | Then create a user and set root password: | ||
| Line 124: | Line 142: | ||
| ln -s / | ln -s / | ||
| rc-update add net.xxx default | rc-update add net.xxx default | ||
| - | </ | ||
| - | |||
| - | Last, setup boot loader (Grub2 here): | ||
| - | <code bash> | ||
| - | grub-install --target=x86_64-efi --efi-directory=/ | ||
| </ | </ | ||