Handbook:Parts/Installation/Base/ko

선택: 미러 선택
소스코드를 빨리 다운로드 하려면 빠른 미러를 선택하시는 것이 좋습니다. 포티지는 파일의   변수에서 미러를 찾아보며 해당 변수에 들어간 미러를 활용합니다 젠투 미러 목록 및 시스템에서 물리적으로 가까운(대부분 이런 미러가 빠름) 미러(또는 복수개의 미러) 를 검색할 수 있습니다. 그러나 우리에겐 필요한 미러를 선택하는 멋진 인터페이스를 사용자에게 제공해 줄  도구가 있습니다. 선택할 미러를 찾아보고 하나 이상의 미러를 키로 선택하면 됩니다.

두번째로 중요한 설정은 의 입니다. 이 변수에는 포티지 트리(프로그램을 다운로드하고 설치하는데 필요한 모든 포티지 정보가 담긴 ebuild 및 관련 파일의 모음)를 업데이트할 때 사용할 rsync 서버 주소를 담고 있습니다. 다시 말해,  서버를 직접 입력할 수도 있지만  에서 대부분의 과정을 쉽게 처리할 수 있습니다:

mirrorselect를 실행한 후 설정을 다시 확인해보시는게 좋겠습니다!

DNS 정보 복사
새 환경에 들어가기 전에 아직 남은게 하나 있는데 의 DNS 정보를 복사하는 일입니다. 새 환경에 들어가고 나서 네트워크가 그대로 동작할 수 있게 하려면 꼭 필요합니다. 파일에는 네트워크를 사용할 때 활용하는 네임 서버 주소가 들어있습니다.

이 정보를 복사하려면  명령에   옵션을 추가하는게 좋습니다. 파일이 심볼릭 링크라면 심볼릭 링크가 아니라 링크의 대상 파일 그 자체를 찾아서 복사합니다. 그렇지 않으면 새 환경에서 심볼릭 링크로 남아있으며 실제 존재하지 않는 파일(링크의 대항은 새 환경에서는 존재하지 않을것입니다)을 참조합니다.

필요한 파일 시스템 마운트
잠시 동안, 리눅스 루트는 새 위치로 바뀝니다. 새 환경이 제대로 동작하는지 보려면 각각의 파일 시스템을 활성화해야 합니다.

The filesystems that need to be made available are:
 * which is a pseudo-filesystem (it looks like regular files, but is actually generated on-the-fly) from which the Linux kernel exposes information to the environment
 * which is a pseudo-filesystem, like which it was once meant to replace, and is more structured than
 * is a regular file system, partially managed by the Linux device manager (usually ), which contains all device files

The location will be mounted on  whereas the other two are bind-mounted. The latter means that, for instance, will actually be  (it is just a second entry point to the same filesystem) whereas  is a new mount (instance so to speak) of the filesystem.

새 환경으로 진입
Now that all partitions are initialized and the base environment installed, it is time to enter the new installation environment by chrooting into it. This means that the session will change its root (most top-level location that can be accessed) from the current installation environment (installation CD or other installation medium) to the installation system (namely the initialized partitions). Hence the name, change root or chroot.

This chrooting is done in three steps.
 * 1) The root location is changed from  (on the installation medium) to  (on the partitions) using chroot
 * 2) Some settings (those in ) are reloaded in memory using the   command
 * 3) The primary prompt is changed to help us remember that this session is inside a chroot environment.

From this point, all actions performed are immediately on the new Gentoo Linux environment. Of course it is far from finished, which is why the installation still has some sections left :-)

포티지 스냅샷 설치
Next step is to install a portage snapshot, a collection of files that inform portage what software titles are available to install, which profiles the administrator can select, etc.

The use of  is recommended. This will fetch the latest portage snapshot (which Gentoo releases on a daily basis) from one of Gentoo's mirrors and install it onto the system.

From this point onward, portage might mention that certain updates are recommended to be executed. This is because certain system packages installed through the stage3 file might have newer versions available, and portage is now aware of this because a new portage snapshot is installed. This can be safely ignored for now; the updates can be triggered after the Gentoo installation has finished.

Optional: Updating the portage tree
It is possible to update the portage tree to the latest version. The previous  command will have installed a very recent portage snapshot (usually recent up to 24h) so this step is definitely optional.

Suppose there is a need for the last package updates (up to 1 hour), then use. This command will use the rsync protocol to update the portage tree (which was fetched earlier on through ) to the latest state.

몇가지 프레임 버퍼와 시리얼 콘솔 같은 느린 터미널에서는, 처리 과정의 속도를 높이기 위해  옵션을 사용하시는 것이 좋습니다:

뉴스 항목 보기
When a portage tree is synchronized to the system, portage might warn the user with the following:

Portage news items were created to provide a communication medium to push critical messages to users via the rsync tree. To manage them, use. The  application is a Gentoo application that allows for a common management interface towards system changes and operations. In this case,  is asked to use its   module.

For the  module, three operations are most used:
 * With  an overview of the available news items is displayed
 * With  the news items can be read
 * With  news items can be removed once they have been read and will not be reread anymore

More information about the newsreader is available through its manual page:

Choosing the right profile
A profile is a building block for any Gentoo system. Not only does it specify default values for,   and other important variables, it also locks the system to a certain range of package versions. This is all maintained by the Gentoo developers.

You can see what profile the system is currently using with, now using the   module:

As can be seen, there are also desktop subprofiles available for some architectures.

After viewing the available profiles for the architecture, users can select a different profile to use:

Configuring the USE variable
is one of the most powerful variables Gentoo provides to its users. Several programs can be compiled with or without optional support for certain items. For instance, some programs can be compiled with gtk-support, or with qt-support. Others can be compiled with or without SSL support. Some programs can even be compiled with framebuffer support (svgalib) instead of X11 support (X-server).

Most distributions compile their packages with support for as much as possible, increasing the size of the programs and startup time, not to mention an enormous amount of dependencies. With Gentoo users can define what options a package should be compiled with. This is where  comes into play.

In the  variable users define keywords which are mapped onto compile-options. For instance,  will compile ssl-support in the programs that support it. will remove X-server support (note the minus sign in front). will compile programs with gnome (and gtk) support, and not with kde (and qt) support, making the system fully tweaked for GNOME (if the architecture supports it).

The default USE settings are placed in the files of the Gentoo profile used by the system. Gentoo uses a (complex) inheritance system for its profiles, which we will not dive into at this stage. The easiest way to check the currently active  settings is to run   and select the line that starts with USE:

A full description on the available USE flags can be found on the system in.

Inside the  command, scrolling can be done using the  and  keys, and exited by pressing.

As an example we show a USE setting for a KDE-based system with DVD, ALSA and CD Recording support:

When  is defined in  it is added (or removed if the USE flag starts with the  sign) from that default list. Users who want to ignore any default USE settings and manage it completely themselves should start the  definition in  with  :

Timezone
Select the timezone for the system. Look for the available timezones in, then write it in the file.

Suppose the timezone of choice is Europe/Brussels:

Please avoid the timezones as their names do not indicate the expected zones. For instance, is in fact.

Next, reconfigure the package, which will update the  file for us, based on the  entry. The file is used by the system C library to know the timezone the system is in.

Configure locales
Most users will want to use only one or two locales on their system.

Locales specify not only the language that the system should use to interact with the system, but also what the rules are for sorting strings, displaying dates and times, etc.

The locales that a system should support should be mentioned in.

The following locales are an example to get both English (United States) and German (Germany) with the accompanying character formats (like UTF-8).

The next step is to run. It will generate all the locales specified in the file.

To verify that the selected locales are now available, run.

Once done, it is now time to set the system-wide locale settings. Again we use  for this, now with the   module.

With, the available targets are displayed:

With  the correct locale can be set:

Manually, this can still be accomplished through the file:

Make sure a locale is set, as the system would otherwise display warnings and errors during kernel builds and other software deployments later in the installation.

Now reload the environment:

We made a full Localization guide to help the user guide through this process. Another interesting article is the UTF-8 guide for very specific informations to enable UTF-8 on the system.