Locales are case sensitive and must be represented exactly as described. The next step is to run the locale-gen command. To verify that the selected locales are now available, run locale -a. Once done, it is now time to set the system-wide locale settings. Again we use eselect for this, now with the locale module. With eselect locale list , the available targets are displayed:. Setting the locale will avoid warnings and errors during kernel and software compilations later in the installation.
A full Localization guide to provide additional guidance through the locale selection process. Installing the Gentoo base system From Gentoo Wiki. Other languages:. Tip For those interested, the official specification for Portage's plug-in sync API can be found in the Portage project's Sync article. Note The --make-rslave operations are needed for systemd support later in the installation. Warning When using non-Gentoo installation media, this might not be sufficient. Tip If the Gentoo installation is interrupted anywhere after this point, it should be possible to 'resume' the installation at this step.
There is no need to repartition the disks again! Simply mount the root partition and run the steps above starting with copying the DNS info to re-enter the working environment. This is also useful for fixing bootloader issues. More information can be found in the chroot article. This is to be expected and nothing to worry about - the tool will create the location.
Note The output of the command is just an example and evolves over time. Note If you are using systemd, please make sure the profile name contains systemd. If you are using OpenRC, please make sure the profile name does not contain systemd. Warning Profile upgrades are not to be taken lightly.
When selecting the initial profile, make sure to use profile corresponding to the same version as the one initially used by stage3 e.
Each new profile version is announced through a news item containing migration instructions. Make sure to read it and follow them before switching to a newer profile.
Note The developer subprofile is specifically for Gentoo Linux development and is not meant to be used by casual users. Tip If a full scale desktop environment profile has been selected this process could greatly extend the amount of time necessary for the install process.
Those in a time crunch can work by this 'rule of thumb': the shorter the profile name, the less specific the system's world set ; the less specific the world set, the fewer packages the system will require.
Note The above example is truncated, the actual list of USE values is much, much larger. Ebuild developers choose certain default USE flag values in ebuilds in order to prevent conflicts, enhance security, and avoid errors, and other reasons. Disabling all USE flags will negate default behavior and may cause major issues. It is not a legal statement, and there is no guarantee that it will reflect reality. So don't rely on it, but check the package itself in depth, including all files that you use.
Note This step does not apply to users of the musl libc. Users who do not know what that means should perform this step. Warning We strongly suggest adding at least one UTF-8 locale because many applications may require it to build properly.
About the installation. Choosing the media. Configuring the network. Preparing the disks. Installing stage3. Configuring the kernel. Configuring the system. Installing tools. Configuring the bootloader. Portage introduction. Normandin Jr.
If you edit the wiki article, please do not add yourself here; your contributions are recorded on each article's associated history page. A handbook dedicated to installing and configuring Gentoo on the amd64 architecture. Other languages:. About the installation. Choosing the media. Configuring the network. Preparing the disks. Installing stage3. Installing base system.
Compare the output of these commands with the value registered in the. The values need to match, otherwise the downloaded file might be corrupt or the digests file is. Now unpack the downloaded stage onto the system. We use tar to proceed:. The x stands for e x tract, the p for p reserve permissions and the f to denote that we want to extract a f ile not standard input. Now that the stage file is unpacked, proceed with Configuring the compile options.
Fire up an editor in this guide we use nano to alter the optimization variables we will discuss hereafter. Several of those variables are discussed next.
Although those are defined generally here, for maximum performance one would need to optimize these flags for each program separately. The reason for this is because every program is different. However, this is not manageable, hence the definition of these flags in the make.
We will not explain all possible optimization options. To understand them all, read the GNU Online Manual s or the gcc info page info gcc — only works on a working Linux system. Possible options are described in the make.
A commonly used value is native as that tells the compiler to select the target architecture of the current system the one users are installing Gentoo on. A second one is the -O flag that is a capital O, not a zero smd64, which specifies the gcc optimization class flag.
Possible classes are s for size-optimized0 zero — for no optimizations1, 2 or even 3 for more speed-optimization flags every class has the same flags as the one before, plus some extras. Another popular optimization flag is -pipe use pipes rather than temporary files for communication between the various stages of compilation.
It has no hanvbook on the generated code, but uses more memory. On systems with low memory, gcc might get killed. In that case, do not use this flag. The default values contained in the stage3 archive that is unpacked should be good enough. The following one is just an example:.
Then continue with Installing and64 Gentoo base system. Installing the Gentoo installation files From Gentoo Wiki. Note Motherboards that do not include a Real-Time Clock RTC should be configured to automatically sync the system clock with a time server. This is also true for systems that do include a RTC, but have a failed battery. Warning Automatic time sync comes at a price.
0コメント