Difference between pages "Install/ru" and "Install/de"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
 
(Created page with "{{Anmerkung|Wenn Du Funtoo Linux auf einer ARM installierst, schau bitte unter Funtoo Linux Installation on ARM nach, um relevante Unt...")
 
Line 4: Line 4:
<languages/>
<languages/>
{{Announce|To help us translate this documentation, {{CreateAccount}}, log in to the wiki. Then go to Actions -> Translate in the menu, or click the "Translate this page" link, above. You will be able to select small parts of the install docs and translate these parts to your native language.}}
{{Announce|To help us translate this documentation, {{CreateAccount}}, log in to the wiki. Then go to Actions -> Translate in the menu, or click the "Translate this page" link, above. You will be able to select small parts of the install docs and translate these parts to your native language.}}
== Вступление ==  
== Einleitung ==  


Данный документ написан с целью помочь в установке Funtoo Linux на PC-совместимые системы, сводя к минимуму использование сложных опций для конфигурации системы.
Dieses Dokument wurde geschrieben um Dir bei der Installation von Funtoo Linux auf PC-kompatiblen System zu helfen, während verwirrende Optionen bezüglich der Systemkonfiguration auf ein Minimum reduziert werden sollen.


Если ранее у Вас был опыт установки Gentoo Linux, то тогда многое будет уже знакомо, но вам все же стоит ознакомится с данной страницей, поскольку есть некоторые различия. Если Вы новичок в установке Linux на базе Gentoo либо вообще незнакомы с Linux, то добро пожаловать! Мы попытались сделать все инструкции по установке предельно понятными также и для новичков.
Wenn Du bereits frührere Erfahrungen mit der Installation von Gentoo Linux besitzt, werden Dir viele Schritte vertraut vorkommen -- dennoch solltest Du Dir jeden Abschnitt komplett durchlesen, da es ein paar Unterschiede gibt. Sollte die Installation eines auf Gentoo basierenden Linux neu für Dich sein oder bist Du gar ein Linux-Anfänger -- willkommen! Wir haben versucht diese Installationsanweisungen auch für Neulinge verständlich zu gestalten.


{{Note|Если Вы устанавливаете Funtoo Linux на [[Funtoo Linux Installation on ARM|ARM]] архитектуру, обратитесь к  [[Funtoo Linux Installation on ARM]] для того, чтобы узнать основные различия касательно поддержки ARM. }}
{{Anmerkung|Wenn Du Funtoo Linux auf einer [[Funtoo Linux Installation on ARM|ARM]] installierst, schau bitte unter [[Funtoo Linux Installation on ARM]] nach, um relevante Unterschiede bezüglich des ARM Supports beachten zu können.}}


== Обзор установки ==  
== Installation Overview ==  


Вот базовый обзор процесса установки Funtoo:
This is a basic overview of the Funtoo installation process:


# [[#Live CD|Закачка и загрузка выбранного образа Live CD]].
# [[#Live CD|Download and boot the live CD of your choice]].
# [[#Подготовка жесткого диска|Подготовка жесткого диска]].
# [[#Prepare Hard Disk|Prepare your disk]].
# [[#Creating filesystems|Создание]] и [[#Mounting filesystems|подключение]] файловых систем.
# [[#Creating filesystems|Create]] and [[#Mounting filesystems|mount]] filesystems.
# [[#Installing the Stage 3 tarball|Установка stage-архива Funtoo]], который Вы выбрали.
# [[#Installing the Stage 3 tarball|Install the Funtoo stage tarball]] of your choice.
# [[#Chroot into Funtoo|Переключение в новую систему]].
# [[#Chroot into Funtoo|Chroot into your new system]].
# [[#Загрузка дерева Portage-ей|Загрузка дерева Portage-ей]].
# [[#Downloading the Portage tree|Download the Portage tree]].
# [[#Configuring your system|Настройка Вашей системы]] и [[#Configuring your network|сети]].
# [[#Configuring your system|Configure your system]] and [[#Configuring your network|network]].
# [[#Configuring and installing the Linux kernel|Установка ядра]].
# [[#Configuring and installing the Linux kernel|Install a kernel]].
# [[#Installing a Bootloader|Установка загрузчика]].
# [[#Installing a Bootloader|Install a bootloader]].
# [[#Finishing Steps|Нанесение последних штрихов]].
# [[#Finishing Steps|Complete final steps]].
# [[#Restart your system|Перезагрузка]].
# [[#Restart your system|Reboot and enjoy]].


=== Live CD ===  
=== Live CD ===  


Для установки Funtoo Linux Вам прежде всего следует загрузить компьютер с Live CD или USB-флешки с каким-либо дистрибутивом Linux. Мы рекомендуем использовать дистрибутив на базе Gentoo [http://www.sysresccd.org/ System Rescue CD], так как он содержит многие инструменты и утилиты, а также поддерживает как 32-, так и 64-битные системы. Его можно записать на CD/DVD либо установить на флеш-карту. Взять дистрибутив можно отсюда:
In order to install Funtoo Linux, you will first need to boot your computer using a Linux-based Live CD or USB stick. We recommend the Gentoo-based [http://www.sysresccd.org/ System Rescue CD] as it contains lots of tools and utilities and supports both 32-bit and 64-bit systems. It can be burned to CD/DVD or installed on a USB stick. Download it here:


* Загрузка с '''[http://ftp.osuosl.org/pub/funtoo/distfiles/sysresccd/systemrescuecd-x86-4.5.0.iso osuosl.org]'''
* Download from '''[http://ftp.osuosl.org/pub/funtoo/distfiles/sysresccd/systemrescuecd-x86-4.5.0.iso osuosl.org]'''
* Загрузка с '''[http://build.funtoo.org/distfiles/sysresccd/systemrescuecd-x86-4.5.0.iso funtoo.org]'''
* Download from '''[http://build.funtoo.org/distfiles/sysresccd/systemrescuecd-x86-4.5.0.iso funtoo.org]'''


{{Note|Если Вы используете более старую версию System Rescue CD, '''не забудьте в загрузочном меню выбрать ядро <code>rescue64</code>, когда собираетесь поставить 64-разрядную систему'''. По умолчанию System Rescue CD загружается в 32-разрядном режиме, хотя его последние версии автоматически пытаются определить 64-разрядном процессоры.}}
{{Note|If using an older version of System Rescue CD, '''be sure to select the <code>rescue64</code> kernel at the boot menu if you are installing a 64-bit system'''. By default, System Rescue CD used to boot in 32-bit mode though the latest version attempts to automatically detect 64-bit processors.}}


==== Доступ к сети ====  
==== Network Access ====  


После того как Вы загрузились с System Rescue CD, убедитесь в том, что у Вас есть доступ в Интернет, который необходим для дальнейшей установки Funtoo Linux:
Once you have booted System Rescue CD, see if you have Internet access. Internet access is required for installing Funtoo Linux:


<console>
<console>
Line 47: Line 47:
</console>
</console>


Если пинг прошел успешно (отображаются сообщения <code>64 bytes</code> как в примере выше), то сеть настроена. Нажмите Ctrl-C, чтобы закончить пинг.  
If the ping is successful (you see <code>64 bytes</code> messages as above,) then your Network is set up. Hit Control-C to stop the ping.  


Если Вам нужно настроить WiFi-соединение для доступа в Интернет, то это следует делать в графической оболочке, предоставляемой System Rescue CD. Для запуска графического сеанса выполните команду <code>startx</code>:
If you need to set up a WiFi connection for Internet access, then this needs to be done using the System Rescue CD graphical environment. Run <code>startx</code> to start a graphical session:
<console>
<console>
# ##i##startx
# ##i##startx
Line 56: Line 56:
[[File:NetworkManagerIcon.PNG|left|caption]]
[[File:NetworkManagerIcon.PNG|left|caption]]


Для соединения с нужной WiFi-сетью воспользуйтесь аплетом NetworkManager (иконка в нижнем правом углу панели задач рабочего стола). Затем в графической оболочке откройте терминал с тем, чтобы завершить оставшиеся шаги.
Then, use the NetworkManager applet (icon in lower right of graphical session, in taskbar) to connect to a WiFi network of your choice. Next, open a terminal inside your graphical environment, and you should be able to use the terminal to complete the rest of the steps.


==== Удаленная установка ====  
==== Remote Install ====  


Как вариант, можно войти в System Rescue CD по сети через SSH для установки системы с другого компьютера. Возможно, это будет более удобным способом установки Funtoo Linux.
Alternatively, you can log into System Rescue CD over the network via SSH to perform the install from another computer, and this may be more convenient way to install Funtoo Linux.


Если Вы собираетесь установить систему удаленно, то следуйте согласно этим инструкциям. Сперва убедитесь, что System Rescue CD имеет функционирующее сетевое соединение. Затем установите пароль для root на System Rescue CD:
If you'd like to complete the install remotely, here's how. First, you will need to ensure that System Rescue CD has a functioning network connection. Then, you will need to set a root password for System Rescue CD:
{{console|body=
{{console|body=
###i## passwd
###i## passwd
Line 69: Line 69:
passwd: password updated successfully
passwd: password updated successfully
}}
}}
После установки пароля необходимо определить IP-адрес System Rescue CD, а затем использовать {{c|ssh}} для соединения с ним. Для того чтобы узнать IP-адрес, используемый System Resuce CD, выполните команду {{c|ifconfig}}:
Once you have typed in a password, you will now need to determine the IP address of System Rescue CD, and then you can use {{c|ssh}} to connect to it. To determine the IP address currently being used by System Rescue CD, type {{c|ifconfig}}:


{{console|body=
{{console|body=
###i## ifconfig
###i## ifconfig
}}
}}
Один из сетевых интерфейсов должен иметь IP-адрес (отображенный как {{c|inet addr:}}) из Вашей локальной сети. После этого к System Rescue CD можно подключиться удаленно и  с комфортом выполнить оставшиеся шаги из существующей операционной системы. В удаленной системе наберите следующее, заменив {{с|1.2.3.4}} на IP-адрес System Rescue CD. Подключение из существующего Linux или MacOS будет выглядеть следующим образом:
One of the interfaces should have an IP address (listed as {{c|inet addr:}}) from your LAN. You can then connect remotely, from another system on your LAN, to System Rescue CD, and perform steps from the comfort of an existing OS. On your remote system, type the following, replacing {{c|1.2.3.4}} with the IP address of System Rescue CD. Connecting from an existing Linux or MacOS system would look something like this:


{{console|body=
{{console|body=
(remote system) $ ##i##ssh root@1.2.3.4
(remote system) $ ##i##ssh root@1.2.3.4
Password: ##i##**********}}
Password: ##i##**********}}
{{Note|Если у вас возникнет желание организовать удаленное подключение с существующей Microsoft Windows - системы, вам понадобится скачать какой-нибудь SSH-клиент для Windows, например [http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY].}}
{{Note|If you'd like to connect remotely from an existing Microsoft Windows system, you'll need to download an SSH client for Windows, such as [http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY].}}


После того как вы зайдете в систему через SSH, вы будете иметь удаленное подключение к System Rescue CD и сможете произвести приведенные ниже операции по установке системы.
After you've logged in via SSH, you're now connected remotely to System Rescue CD and can perform the installation steps.


=== Подготовка жесткого диска ===  
=== Prepare Hard Disk ===  


В этом разделе мы узнаем о различных способах, с помощью которых Funtoo Linux может загрузиться с жесткого диска. Под "загрузкой" мы подразумеваем процесс, при котором Linux запускается после нажатия кнопки питания Вашего компьютера, ноутбука или сервера. Вы можете представить себе "загрузку" как процесс, который начинается с запуска прошивки (встроенное программное обеспечение), затем поиска и запуска ядра Linux, которое затем, идентифицирует Ваше оборудование и стартует само.
In this section, we'll learn about the different ways that Funtoo Linux can boot from a hard disk. By "boot", we mean the process by which Linux starts after you press the power button on your desktop, laptop or server. You can think of "booting" as a process that starts with your computer's firmware (built-in software) running, and then "finding" the Linux kernel and running it. The Linux kernel then takes over, identifies all your hardware, and starts.


==== Общие сведения ====  
==== Background ====  


{{Note|Если Вы делаете свои первые шаги в Linux, чтобы окончательно не запутаться, данный раздел Вам, возможно, лучше пропустить и сразу перейти к [[#Which to Use?|Что выбрать?]]}}
{{Note|If you are an absolute beginner to Linux, you may be less confused if you skip to the next section, [[#Which to Use?|Which to Use?]]}}


Раньше для PC-совместимого компьютера существовал только один способ загрузки. Все наши настольные компьютеры и серверы имели микропрограмму под названием "PC BIOS". Все наши жесткие диски имели Главную Загрузочную Запись (MBR) записанную в самом начале диска, откуда PC BIOS считывал загрузчик, который в свою очередь загружал Linux. Наши жесткие диски при этом были поделены на разные области с помощью стандартной системы разделов в MBR. Так оно было, и всех это устраивало!
In earlier times, there was only one way to boot a PC-compatible computer. All of our desktops and servers had standard firmware called the "PC BIOS," all our hard drives used Master Boot Records at the beginning of the disk, where the PC BIOS would "look" to find boot loader code which would in turn load Linux, and our hard drives were partitioned into different regions using the standard MBR partition scheme. That was just how it was done. And we liked it that way!


Потом появились EFI и UEFI, которые являются новыми современными микропрограммами, предназначенными как для загрузки систем, так и для задания дисковых разделов на дисках большего чем 2.2ТБ размера с помощью таблиц разделов GPT. Теперь у нас внезапно появилось несколько способов установки и загрузки Linux-систем, что превратило этот некогда простой и безальтернативный вопрос в нечто более запутанное.
Then, along came EFI and UEFI, which are new-style firmware designed to boot systems, along with GPT partition tables to define disk partitions on disks larger than 2.2TB. All of the sudden, we had a variety of options for installing and booting Linux systems, turning what once was a one-method-fits-all approach into something a lot more complex.


Давайте воспользуемся моментом для описания доступных способов конфигурирования жесткого диска для загрузки Funtoo Linux. Руководство по установке использует и рекомендует классический метод: загрузка с помощью BIOS и использование MBR. Он работает, и (за исключением редких случаев) всецело поддерживается. Нет ничего плохого в данном методе. К тому же, если Ваш жесткий диск обьемом не более 2ТБ, это не создаст препятствий в использовании всего дискового пространства.
Let's take a moment to review the options available to you for configuring a hard drive to boot Funtoo Linux. This Install Guide uses, and recommends, the old-school method of BIOS booting and using an MBR. It works and (except for rare cases) is universally supported. There's nothing wrong with it. If your system disk is 2TB or smaller in size, it won't prevent you from using all of your disk's capacity, either.


Все же бывает так, что классический метод не является оптимальным. Если Ваш жесткий диск обьемом более 2ТБ, то MBR разделы не позволят использовать весь диск. Это одна их причин. Другая причина - существуют системы "ПК", которые более не поддерживают загрузку с БИОС, и заставляют использовать UEFI загрузку. Сочувствуя пользователям, попавшим в затрудние с выбором, данное руководство описывает также и UEFI загрузку.
But, there are some situations where the old-school method isn't optimal. If you have a system disk >2TB in size, then MBR partitions won't allow you to access all your storage. So that's one reason. Another reason is that there are some so-called "PC" systems out there that don't support BIOS booting anymore, and force you to use UEFI to boot. So, out of compassion for people who fall into this predicament, this Install Guide documents UEFI booting too.


Однако, мы все же советуем применять классический метод если только у Вас нет особых причин его не использовать. Загрузчик, который мы будем использовать в этом руководстве для загрузки ядра Linux называется GRUB. Поэтому этот метод мы называем '''BIOS + GRUB (MBR)'''-методом. Это - традиционный способ подготовить PC-совместимую систему к загрузке Linux.
Our recommendation is still to go old-school unless you have reason not to. The boot loader we will be using to load the Linux kernel in this guide is called GRUB, so we call this method the '''BIOS + GRUB (MBR)''' method. It's the traditional method of setting up a PC-compatible system to boot Linux.


Если же Вам необходимо использовать UEFI, мы советуем вообще не использовать MBR для загрузки системы, поскольку не все системы этот вариант поддерживают. Вместо этого мы рекомендуем использовать UEFI для загрузки GRUB, который в свою очередь будет загружать Linux. Этот метод мы называем '''UEFI + GRUB (GPT)'''-методом.
If you need to use UEFI to boot, we recommend not using the MBR at all for booting, as some systems support this, but others don't. Instead, we recommend using UEFI to boot GRUB, which in turn will load Linux. We refer to this method as the '''UEFI + GRUB (GPT)''' method.


И да, существуют еще немало других способов, некоторые из которых описаны на сранице [[Boot Methods]]. Раньше мы советовали использовать '''BIOS + GRUB (GPT)'''-метод, но он не особо хорошо поддерживается среди различной аппаратуры.
And yes, there are even more methods, some of which are documented on the [[Boot Methods]] page. We used to recommend a '''BIOS + GRUB (GPT)''' method but it is not consistently supported across a wide variety of hardware.


==== Что выбрать? ====
==== Which to Use? ====


'''Вам нужно определиться с тем, какой способ загрузки выбрать.''' Тут есть несколько подходов.
'''The big question is -- which boot method should you use?''' Here's how to tell.


;Подход 1 - классический:  
;Principle 1 - Old School: If you can reliably boot System Rescue CD and it shows you an initial light blue menu, you are booting the CD using the BIOS, and it's likely that you can thus boot Funtoo Linux using the BIOS. So, go old-school and use BIOS booting, ''unless'' you have some reason to use UEFI, such as having a >2.2TB system disk. In that case, see Principle 2, as your system may also support UEFI booting.
Если у Вас нормально загружается System Rescue CD и при загрузке отображается начальное меню светло-голубого цвета, это означает что загрузка с CD-диска происходит средствами BIOS и у Вас есть все шансы, что и установленную систему Funtoo Linux сможете загружать с помощью BIOS-а. В этом случае следует использовать классический вариант, "если только" у вас нет особых причин использовать UEFI, таких, например, как использование системного диска размером более 2.2 ТБ.
В этом случае следует рассмотреть Подход 2, поскольку Ваша система, возможно, также поддерживает и загрузку через UEFI.


;Подход 2 - современный: Если у Вас нормально загружается System Rescue CD и при загрузке отображается начальное черно-белое меню -- можете себя поздравить, конфигурация вашей системы поддерживает UEFI-загрузку. В этом случае все готово к установке Funtoo Linux с загрузкой через UEFI.  
;Principle 2 - New School: If you can reliably boot System Rescue CD and it shows you an initial black and white menu -- congratulations, your system is configured to support UEFI booting. This means that you are ready to install Funtoo Linux to boot via UEFI. Your system may still support BIOS booting, but just be trying UEFI first. You can poke around in your BIOS boot configuration and play with this.
Ваша система также может поддерживать загрузку средствами BIOS, но все же лучше сначала попробовать UEFI. Можете покопаться в настройках BIOS-а и попробовать эту штуку.


{{Note|'''У опытных пользователей может возникнуть вопрос:''' Неужели между этими подходами такая существенная разница? Дело тут вот в чем. Если Вы используете классические MBR-разделы, раздел {{f|/boot}} должен быть отформатирован в файловой системе ext2, для чего можно использовать {{c|fdisk}} и создать нужные MBR-разделы. Если же Вы используете современные GPT-разделы и загрузку через UEFI, раздел {{f|/boot}} необходимо отформатировать в файловой системе vfat, поскольку именно с такими разделами работает UEFI и для создания Ваших GPT-разделов можно использовать {{c|gdisk}}. Также в этом случае установку GRUB надо будет проделать несколько иначе. Если Вам интересно, на этом, по сути, различия и заканчиваются.}}
{{Note|'''Advanced Users May Wonder:''' What's the Big Difference between Old School and New School?: Here's the deal. If you go with old-school MBR partitions, your {{f|/boot}} partition will be an ext2 filesystem, and you'll use {{c|fdisk}} to create your MBR partitions. If you go with new-school GPT partitions and UEFI booting, your {{f|/boot}} partition will be a vfat filesystem, because this is what UEFI is able to read, and you will use {{c|gdisk}} to create your GPT partitions. And you'll install GRUB a bit differently. That's about all it comes down to, in case you were curious.}}


Для установки Funtoo Linux современным методом UEFI, Вам нужно загрузить SysRescue CD в UEFI режиме. Если Вы успешно загружаете SysRescue CD, Вы увидите черно-белый экран с вариантами загрузки. В противном случае, если Вы видите меню голубого цвета, UEFI режим не активирован и Вы не сможете настроить загрузку современным способом!
To install Funtoo Linux to boot via the New School UEFI method, you must boot System Rescue CD using UEFI. If you successfully boot sysresccd with UEFI, you will see an initial black and white screen to select the mode in which you will boot system rescue cd. Otherwise, if you see a blue screen with black text, UEFI will not be active and you will not be able to set up UEFI booting later in the install process!


{{Note|'''Некоторые материнские платы имеют неполную поддержку UEFI.''' Проведите собственное исследование. Например, Award BIOS в моей Gigabyte GA-990FXA-UD7 rev 1.1 позволяет включить UEFI-загрузку для CD/DVD-дисков. '''Для UEFI-загрузки с жестких дисков и установки Funtoo Linux таким способом этого недостаточно!''' UEFI должен поддерживаться как для съемных носителей (чтобы Вы могли загрузиться с System Rescue CD с помощью UEFI), так и для фиксированных (чтобы была возможность загрузить установленную таким образом Funtoo Linux). Оказывается, что более позднии ревизии этой платы (rev 3.0) имеют более новый BIOS с уже полноценной поддержкой UEFI-загрузки. Так что, тут в ход идет третье правило -- знай свое оборудование.}}
{{Note|'''Some motherboards may appear to support UEFI, but don't.''' Do your research. For example, the Award BIOS in my Gigabyte GA-990FXA-UD7 rev 1.1 has an option to enable UEFI boot for CD/DVD. '''This is not sufficient for enabling UEFI boot for hard drives and installing Funtoo Linux.''' UEFI must be supported for both removable media (so you can boot System Rescue CD using UEFI) as well as fixed media (so you can boot your new Funtoo Linux installation.) It turns out that later revisions of this board (rev 3.0) have a new BIOS that fully supports UEFI boot. This may point to a third principle -- know thy hardware.}}


==== Классический (BIOS/MBR) метод ====  
==== Old-School (BIOS/MBR) Method ====  


{{Note|Используйте этот метод если Вы загружаетесь с помощью BIOS и если начальное меню загрузки вашего System Rescue CD было светло-голубого цвета. Если Вы используете современный способ загрузки, [[#New-School (UEFI/GPT) Method|нажмите сюда чтобы сразу перейти к варианту для UEFI/GPT.]]}}
{{Note|Use this method if you are booting using your BIOS, and if your System Rescue CD initial boot menu was light blue. If you're going to use the new-school method, [[#New-School (UEFI/GPT) Method|click here to jump down to UEFI/GPT.]]}}


Первым делом, неплохо бы убедиться, что мы используем для разбивки нужный жесткий диск. Попробуйте запустить эту команду и проверьте, что Вы собрались переразбивать именно диск {{f|/dev/sda}}:
First, it's a good idea to make sure that you've found the correct hard disk to partition. Try this command and verify that {{f|/dev/sda}} is the disk that you want to partition:
{{console|body=
{{console|body=
###i## fdisk -l /dev/sda
###i## fdisk -l /dev/sda
Line 139: Line 136:
  1        2048  1250263694  596.2G  Linux filesyste Linux filesystem
  1        2048  1250263694  596.2G  Linux filesyste Linux filesystem
}}
}}
Теперь рекомендуется удалить с диска все имеющиеся MBR или GPT таблицы разделов, которые могут запутать работу системного BIOS-а во время загрузки. Этого мы добиваемся с помощью {{c|sgdisk}}:
Now, it is recommended that you erase any existing MBR or GPT partition tables on the disk, which could confuse the system's BIOS at boot time. We accomplish this using {{c|sgdisk}}:
{{Warning|Эта операция сделает все имеющиеся разделы недоступными! Вам '''крайне''' рекомендуется сделать резервные копии всех важных данных прежде чем приступать к этой процедуре.}}
{{Warning|This will make any existing partitions inaccessible! You are '''strongly''' cautioned and advised to backup any critical data before proceeding.}}


{{console|body=
{{console|body=
Line 149: Line 146:
other utilities.
other utilities.
}}
}}
Тут тоже все нормально, команда таки завершается успешно:
This output is also nothing to worry about, as the command still succeded:


{{console|body=
{{console|body=
Line 156: Line 153:
in memory.  
in memory.  
***************************************************************
***************************************************************
}}Теперь можно использовать {{c|fdisk}} для создания таблицы разделов MBR и самих разделов:
}}Now we will use {{c|fdisk}} to create the MBR partition table and partitions:
{{console|body=
{{console|body=
###i## fdisk /dev/sda
###i## fdisk /dev/sda
}}
}}
В {{c|fdisk}} проделайте следующее:
Within {{c|fdisk}}, follow these steps:


'''Очистка таблицы разделов''':
'''Empty the partition table''':
{{console|body=
{{console|body=
Command (m for help): ##i##o ↵
Command (m for help): ##i##o ↵
}}
}}
'''Создание первого раздела''' (boot):
'''Create Partition 1''' (boot):


{{console|body=
{{console|body=
Line 175: Line 172:
Last sector: ##i##+128M ↵
Last sector: ##i##+128M ↵
}}
}}
'''Создание второго раздела''' (swap):
'''Create Partition 2''' (swap):


{{console|body=
{{console|body=
Line 187: Line 184:
Hex code (type L to list all codes): ##i##82 ↵
Hex code (type L to list all codes): ##i##82 ↵
}}
}}
'''Создание корневого раздела:'''
'''Create the root partition:'''


{{console|body=
{{console|body=
Line 196: Line 193:
Last sector: ##i##↵
Last sector: ##i##↵
}}
}}
'''Проверка таблицы разделов:'''
'''Verify the partition table:'''


{{console|body=
{{console|body=
Line 213: Line 210:
/dev/sda3        4458496 625142447 310341976  83 Linux
/dev/sda3        4458496 625142447 310341976  83 Linux
}}
}}
'''Запись таблицы разделов на диск:'''
'''Write the parition table to disk:'''


{{console|body=Command (m for help): ##i##w}}
{{console|body=Command (m for help): ##i##w}}
После этого новая таблица разделов MBR будет записана на Ваш системный диск.
Your new MBR partition table will now be written to your system disk.


{{Note|С разбивкой диска покончено! Теперь возьмемся за [[#Creating filesystems|создание файловых систем]].}}
{{Note|You're done with partitioning! Now, jump over to [[#Creating filesystems|Creating filesystems]].}}


==== Современный (UEFI/GPT) метод ====  
==== New-School (UEFI/GPT) Method ====  


Используйте этот метод, если Вы заинтересованы в UEFI загрузке и если меню SysRescue CD было черно-белого цвета. Если оно было светло-голубого цвета, данный метод не работает.
{{Note|Use this method if you are interested in booting using UEFI, and if your System Rescue CD initial boot menu was black and white. If it was light blue, this method will not work.}}


Команда {{c|gdisk}} позволяет создать GPT-разделы указанным ниже образом. При необходимости можете подкорректировать размеры, хотя эти значения по умолчанию будут работать у баольшинства пользователей. Запустите {{c|gdisk}}:
The {{c|gdisk}} commands to create a GPT partition table are as follows. Adapt sizes as necessary, although these defaults will work for most users. Start {{c|gdisk}}:
{{console|body=###i## gdisk /dev/sda}}
{{console|body=###i## gdisk /dev/sda}}
В {{c|gdisk}} проделайте следующее:
Within {{c|gdisk}}, follow these steps:


'''Создание новой чистой таблицы разделов''' (Эта операция ''удалит все данные'' на Вашем диске после сохранения таблицы):
'''Create a new empty partition table''' (This ''will'' erase all data on the disk when saved):
{{console|body=
{{console|body=
Command: ##i##o ↵
Command: ##i##o ↵
Line 234: Line 231:
Proceed? (Y/N): ##i##y ↵
Proceed? (Y/N): ##i##y ↵
}}
}}
'''Создание первого раздела''' (boot):
'''Create Partition 1''' (boot):


{{console|body=
{{console|body=
Line 243: Line 240:
Hex Code: ##i##EF00 ↵
Hex Code: ##i##EF00 ↵
}}
}}
'''Создание второго раздела''' (swap):
'''Create Partition 2''' (swap):


{{console|body=
{{console|body=
Line 252: Line 249:
Hex Code: ##i##8200 ↵
Hex Code: ##i##8200 ↵
}}
}}
'''Создание третьего раздела''' (root):
'''Create Partition 3''' (root):


{{console|body=
{{console|body=
Line 261: Line 258:
Hex Code: ##i##↵
Hex Code: ##i##↵
}}
}}
По ходу процесса Вы также можете набрать "{{c|p}}" и нажать Enter чтобы посмотреть текущее состояние табицы разделов. Если Вы где-то допустили ошибку, вы можете набрать "{{c|d}}" чтобы удалить некорректно созданный раздел. Когда Вы будете удовлетворены таблицей разделов, наберите "{{c|w}}" чтобы записать ее на диск:
Along the way, you can type "{{c|p}}" and hit Enter to view your current partition table. If you make a mistake, you can type "{{c|d}}" to delete an existing partition that you created. When you are satisfied with your partition setup, type "{{c|w}}" to write your configuration to disk:


'''Запись таблицы разделов на диск''':
'''Write Partition Table To Disk''':
{{console|body=
{{console|body=
Command: ##i##w ↵
Command: ##i##w ↵
Do you want to proceed? (Y/N): ##i##Y ↵
Do you want to proceed? (Y/N): ##i##Y ↵
}}Теперь таблица разделов будет записана на диск и {{c|gdisk}} завершит свою работу.
}}The partition table will now be written to the disk and {{c|gdisk}} will close.


Теперь, GPT/GUID-разделы созданы и они появятся в Linux в виде следующих ''блочных устройств'':
Now, your GPT/GUID partitions have been created, and will show up as the following ''block devices'' under Linux:


* {{c|/dev/sda1}}, будет содержать файловую систему {{c|/boot}},  
* {{c|/dev/sda1}}, which will be used to hold the {{c|/boot}} filesystem,  


* {{c|/dev/sda2}}, будет использоваться под область подкачки, а также
* {{c|/dev/sda2}}, which will be used for swap space, and


* {{c|/dev/sda3}}, будет содержать корневую файловую систему.
* {{c|/dev/sda3}}, which will hold your root filesystem.


{{Tip|Теперь с помощью команды {{c|lsblk}} Вы можете проверить, что все необходимые блочные устройства были созданны правильно.}}
{{Tip|You can verify that the block devices above were correctly created by running the command {{c|lsblk}}.}}
==== Создание файловых систем ====  
==== Creating filesystems ====  


{{Note|Этот раздел касается ''как'' варианта установки с BIOS, ''так и'' UEFI-варианта. Не пропускайте этот этап!}}
{{Note|This section covers both BIOS ''and'' UEFI installs. Don't skip it!}}


Прежде чем ваши свежесозданные разделы можно будет использовать, блочные устройства, которые Вы создали на прошлом этапе, необходимо проинициализировать ''метаданными'' соответствующей файловой системы. Этот процесс известен как ''создание файловой системы'' в блочном устройстве. После создания файловых систем в блочных устройствах, они могут быть смонтированны и использованы для хранения файлов.
Before your newly-created partitions can be used, the block devices that were created in the previous step need to be initialized with filesystem ''metadata''. This process is known as ''creating a filesystem'' on the block devices. After filesystems are created on the block devices, they can be mounted and used to store files.


Однако, давайте по-простому. Вы используете классические MBR-разделы? Тогда создадим файловую систему типа ext2 на {{f|/dev/sda1}}:
Let's keep this simple. Are you using old-school MBR partitions? If so, let's create an ext2 filesystem on {{f|/dev/sda1}}:
{{console|body=###i## mkfs.ext2 /dev/sda1}}
{{console|body=###i## mkfs.ext2 /dev/sda1}}
Если же вы используете современные GPT-разделы, вам в  {{c|/dev/sda1}} следует создать файловую систему vfat, поскольку именно с такими разделами работает UEFI:
If you're using new-school GPT partitions for UEFI, you'll want to create a vfat filesystem on {{c|/dev/sda1}}, because this is what UEFI is able to read:
{{console|body=###i## mkfs.vfat -F 32 /dev/sda1}}
{{console|body=###i## mkfs.vfat -F 32 /dev/sda1}}
Теперь давайте создадим раздел подкачки. Этот раздел будет использоваться вашей Funtoo Linux системой в качестве виртуальной памяти, расположенной на диске.
Now, let's create a swap partition. This partition will be used as disk-based virtual memory for your Funtoo Linux system.


Вам не придется создавать файловую систему в разделе подкачки, ведь этот раздел не используется для хранения файлов. Тем не менее, его необходимо проинициализировать с помощью команды {{c|mkswap}}. После этого давайте выполним команду {{c|swapon}} чтобы сразу же задействовать пространство подкачки уже для загруженной сейчас с CD-диска системы на случай если оно понадобится в процессе дальнейшей установки системы:
You will not create a filesystem on your swap partition, since it is not used to store files. But it is necessary to initialize it using the {{c|mkswap}} command. Then we'll run the {{c|swapon}} command to make your newly-initialized swap space immediately active within the live CD environment, in case it is needed during the rest of the install process:
{{console|body=
{{console|body=
# ##i##mkswap /dev/sda2
# ##i##mkswap /dev/sda2
# ##i##swapon /dev/sda2
# ##i##swapon /dev/sda2
}}Теперь нужно создать корневую файловую систему. Тут будет жить наша Funtoo Linux. Обычно мы рекомендуем использовать ext4 или XFS в качестве корневой файловой системы. Если Вы не уверены, выбирайте ext4. Вот так можно создать файловую систему ext4:
}}Now, we need to create a root filesystem. This is where Funtoo Linux will live. We generally recommend ext4 or XFS root filesystems. If you're not sure, choose ext4. Here's how to create a root ext4 filesystem:


{{console|body=###i## mkfs.ext4 /dev/sda3}}
{{console|body=###i## mkfs.ext4 /dev/sda3}}
...а так можно создать файловую систему XFS, на случай если она Вам нравится больше чем ext4:
...and here's how to create an XFS root filesystem, if you prefer to use XFS instead of ext4:


{{console|body=###i## mkfs.xfs /dev/sda3}}
{{console|body=###i## mkfs.xfs /dev/sda3}}
Теперь, когда все файловые системы (и раздел подкачки) проинициализированы и могут быть смонтированы (подключены к cтруктуре каталогов) и использованы для хранения файлов, мы готовы присупить к установке Funtoo Linux на эти файловые системы.
Your filesystems (and swap) have all now been initialized, so that that can be mounted (attached to your existing directory heirarchy) and used to store files. We are ready to begin installing Funtoo Linux on these brand-new filesystems.


{{Warning|Если Dы разворачиваете узел OpenVZ, используйте пожалуйста только ext4. Команда разработчиков Parallels проводит обширное тестирование системы на ext4 и современные версии {{c|openvz-rhel6-stable}} '''не являются''' совместимыми с XFS. Также при этом Вы можете столкнуться с различными ошибками в ядре.}}
{{Warning|When deploying an OpenVZ host, please use ext4 exclusively. The Parallels development team tests extensively with ext4, and modern versions of {{c|openvz-rhel6-stable}} are '''not''' compatible with XFS, and you may experience kernel bugs.}}


==== Подключение файловых систем ====  
==== Mounting filesystems ====  


Подключите свежесозданные фаловые системы следующим образом, создав {{c|/mnt/funtoo}} в качестве точки монтирования для установки:
Mount the newly-created filesystems as follows, creating {{c|/mnt/funtoo}} as the installation mount point:
{{console|body=
{{console|body=
###i## mkdir /mnt/funtoo
###i## mkdir /mnt/funtoo
Line 313: Line 310:
###i## mount /dev/sda1 /mnt/funtoo/boot
###i## mount /dev/sda1 /mnt/funtoo/boot
}}
}}
Также, если у Вас есть отдельная файловая система для {{f|/home}} или чего то еще, можно проделать следующее:
Optionally, if you have a separate filesystem for {{f|/home}} or anything else:


{{console|body=
{{console|body=
Line 319: Line 316:
###i## mount /dev/sda4 /mnt/funtoo/home
###i## mount /dev/sda4 /mnt/funtoo/home
}}
}}
Если Ваш {{f|/tmp}} или {{f|/var/tmp}} находятся на отдельной файловой системе, не забудьте после монтирования проверить что права доступа к точке монтирования установлены в разрешение записи для всех. Делается это следующим образом:
If you have {{f|/tmp}} or {{f|/var/tmp}} on a separate filesystem, be sure to change the permissions of the mount point to be globally-writeable after mounting, as follows:
{{console|body=###i## chmod 1777 /mnt/funtoo/tmp}}
{{console|body=###i## chmod 1777 /mnt/funtoo/tmp}}
==== Установка даты ====  
==== Setting the Date ====  


{{Important|Если Ваши системные дата и время слишком сильно отличаются от правильных (обычно это проявляется если ошибка составляет несколько месяцев или лет), это может помешать системе Portage корректно загружать архивы с исходными текстами. Это происходит потому что некоторые наши исходники загружаются через протокол HTTPS, который использует SSL-сертификаты, которые содержат даты начала и окончания своего действия. Однако, если время в Вашей системе установлено более-менее верно, Вы вероятнее всего можете спокойно пропустить этот этап.}}
{{Important|If your system's date and time are too far off (typically by months or years,) then it may prevent Portage from properly downloading source tarballs. This is because some of our sources are downloaded via HTTPS, which use SSL certificates and are marked with an activation and expiration date. However, if your system time is relatively close to correct, you can probably skip this step for now.}}


Тут самое время проверить, что Ваши дата и время корректно установленны в UTC. Используйте команду {{c|date}} чтобы проверить текущую дату и время:
Now is a good time to verify the date and time are correctly set to UTC. Use the {{c|date}} command to verify the date and time:
{{console|body=
{{console|body=
###i## date
###i## date
Fri Jul 15 19:47:18 UTC 2011
Fri Jul 15 19:47:18 UTC 2011
}}
}}
Если дата или время требуют коррекции, это можно проделать с помощью {{c|date MMDDhhmmYYYY}}, где {{c|hhmm}} (часы и минуты) следует указывать в 24-часовом формате. Приведенный ниже пример устанавливает дату и время в "16 июля 2011, 8:00" по UTC:
If the date and/or time need to be corrected, do so using {{c|date MMDDhhmmYYYY}}, keeping in mind {{c|hhmm}} are in 24-hour format. The example below changes the date and time to "July 16th, 2011 @ 8:00PM" UTC:


{{console|body=
{{console|body=
Line 336: Line 333:
Fri Jul 16 20:00:00 UTC 2011
Fri Jul 16 20:00:00 UTC 2011
}}
}}
После того как вы установили системное время, хорошей идеей будет выставить его также и в системных часах чтобы оно не сбросилось после перезагрузки:
Once you have set the system clock, it's a very good idea to copy the time to the hardware clock, so it persists across reboots:


{{console|body=###i## hwclock --systohc}}
{{console|body=###i## hwclock --systohc}}
=== Установка Stage 3 архива ===  
=== Installing the Stage 3 tarball ===  


Теперь, когда ваши файловые системы созданы и ваша аппаратура и системные часы настроены, следущим шагом будет загрузка начального Stage 3 - архива. Stage 3 это заранее собранная система, которая используется в качестве отправной точки для установки Funtoo Linux.  
Now that filesystems are created and your hardware and system clock are set, the next step is downloading the initial Stage 3 tarball. The Stage 3 is a pre-compiled system used as a starting point to install Funtoo Linux. Notice: if you're using virtual machines (like Vbox) generic stage3 images are preferred rather than cpu-optimized ones.
Замечание: если вы используете виртуальные машины (типа Vbox), следует выбитать обычные stage3 вместо тех, что оптимизированы под конкретный процессор.


Для того, чтобы скачать подходящую для вашей системы сборку Funtoo Linux, обратитесь к странице [[Subarches]]. Подархитектуры - это сборки Funtoo Linux рассчитанные на работату на конкретном типе процессора чтобы обеспечить максимально возможную производительность. Они также используют наборы инструкций, доступные в каждом конктретном процессоре.
To download the correct build of Funtoo Linux for your system, head over to the [[Subarches]] page. Subarches are builds of Funtoo Linux that are designed to run on a particular type of CPU, to offer the best possible performance. They also take advantage of the instruction sets available for each CPU.


На странице [[Subarches]] перечисленны все оптимизированные под конкретный процессор версии Funtoo Linux. Найдите подходящий для вашего процессора вариант и нажмите на ссылку с его именем ({{c|corei7}}, например) на странице. При этом вы попадете на страницу вашей подархитектуры, где будут перечисленны все доступные для скачивания stage3.
The [[Subarches]] page lists all CPU-optimized versions of Funtoo Linux. Find the one that is appropriate for the type of CPU that your system has, and then click on its name in the first column (such as {{c|corei7}}, for example.) You will then go to a page dedicated to that subarch, and the available stage3's available for download will be listed.


Для большинства подархитектур имеются на выбор разные stage3. Следующая секция поможет Вам понять какой из образов stage3 выбрать.
For most subarches, you will have several stage3's available to choose from. This next section will help you understand which one to pick.


==== Которую выбрать сборку? ====  
==== Which Build? ====  


'''Если не уверены - выбирайте {{c|funtoo-current}}.'''
'''If you're not sure, pick {{c|funtoo-current}}.'''


У Funtoo Linux есть несколько различных 'сборок':
Funtoo Linux has various different 'builds':


{{TableStart}} {{2ColHead|Сборка|Описание}} <tr><td>{{c|funtoo-current}}</td><td>Самая популярная сборка Funtoo Linux. Получает самые свежие обновления и является самой любимой пользователями настольных компьютеров.</td></tr> <tr><td>{{c|funtoo-stable}}</td><td>Делает акцент на менее частых обновлениях и выборе наиболее проверенных и надежных версиях пакетов вместо самых последних версий.</td></tr> {{TableEnd}}
{{TableStart}}
{{2ColHead|Build|Description}}
<tr><td>{{c|funtoo-current}}</td><td>The most commonly-selected build of Funtoo Linux. Receives rapid updates and preferred by desktop users.</td></tr>
<tr><td>{{c|funtoo-stable}}</td><td>Emphasizes less-frequent package updates and trusted, reliable versions of packages over the latest versions.</td></tr>
{{TableEnd}}


==== Какой выбрать вариант? ====  
==== Which Variant? ====  


'''Если не уверены - выбирайте {{c|standard}}.'''
'''If you're not sure, pick {{c|standard}}.'''


Наши "обычные" stage3 идут с вариантом {{c|standard}}. А вообще доступны следующие варианты:
Our "regular" stage3's are listed with a variant of {{c|standard}}. The following variant builds are available:


{{TableStart}} {{2ColHead|Вариант|Описание}} <tr><td>{{c|standard}}</td><td>"Стандартная" версия Funtoo Linux.</td></tr> <tr><td>{{c|pure64}}</td><td>64-битная сборка без поддержки multilib(обеспечения совместимости с 32-битным кодом). Может быть идеальным выбором для серверных систем.</td></tr> <tr><td>{{c|hardened}}</td><td>Содержит пакет программ PIE/SSP для обеспечения наибольшей безопасности. Использование PIE требует наличия в ядре PaX, в то время как SSP работает на любом ядре и предоставляет дополнительную безопасность для пространства пользователя в вопросе предотвращения работы основаных на использовании стека exploit-ов. Прадназначен для особо опытных пользователей.</td></tr> {{TableEnd}}
{{TableStart}}
{{2ColHead|Variant|Description}}
<tr><td>{{c|standard}}</td><td>The "standard" version of Funtoo Linux</td></tr>
<tr><td>{{c|pure64}}</td><td>A 64-bit build that drops multilib (32-bit compatibility) support. Can be ideal for server systems.</td></tr>
<tr><td>{{c|hardened}}</td><td>Includes PIE/SSP toolchain for enhanced security. PIE does require the use of PaX in the kernel, while SSP works with any kernel, and provides enhanced security in user-space to avoid stack-based exploits. For expert users.</td></tr>
{{TableEnd}}


==== Загрузка Stage3 ====  
==== Download the Stage3 ====  


Когда Вы выберете понравившийся stage3, ипользуйте {{c|wget}} чтобы скачать выбранный вами Stage 3 архив. Он будет использоваться как основа для сборки вашей новой системы Funtoo Linux. Его содержимое нужно сохранить в каталог {{f|/mnt/funtoo}} следующим образом:
Once you have found the stage3 that you would like to download, use {{c|wget}} to download the Stage 3 tarball you have chosen to use as the basis for your new Funtoo Linux system. It should be saved to the {{f|/mnt/funtoo}} directory as follows:
{{console|body=
{{console|body=
###i## cd /mnt/funtoo
###i## cd /mnt/funtoo
###i## wget http://build.funtoo.org/funtoo-current/x86-64bit/generic_64/stage3-latest.tar.xz
###i## wget http://build.funtoo.org/funtoo-current/x86-64bit/generic_64/stage3-latest.tar.xz
}}
}}
Имейте в виду, что 64-битные системы могут работать как с 32-битными, так и 64-битными stage-ами, но 32-битные системы могут работать только 32-битными. Убедитесь, что Вы выбрали подходящий для вашего процессора вариант сборки Stage 3. Если Вы не уверены, безопаснее всего выбирать между {{c|generic_64}} и {{c|generic_32}}. Дополнительная информация по этому вопросу содержится на странице [[Subarches]].
Note that 64-bit systems can run 32-bit or 64-bit stages, but 32-bit systems can only run 32-bit stages. Make sure that you select a Stage 3 build that is appropriate for your CPU. If you are not certain, it is a safe bet to choose the {{c|generic_64}} or {{c|generic_32}} stage. Consult the [[Subarches]] page for more information.


После завершения загрузки распакуйте содержимое с помощью данной команды, подставив в нужное место фактическое имя файла вашего stage 3-архива:
Once the stage is downloaded, extract the contents with the following command, substituting in the actual name of your stage 3 tarball:
{{console|body=
{{console|body=
###i## tar xpf stage3-latest.tar.xz
###i## tar xpf stage3-latest.tar.xz
}}{{Important|Крайне важно при распаковке архива Stage 3 использовать параметр командной строки "{{c|'''p'''}}" у утилиты {{c|tar}}, поскольку он указывает, что {{c|tar}}-у следует ''сохранить'' все права доступа, которые были указаны в архиве. Без использования этого параметра права доступа в файловой системе вашей Funtoo Linux будут выставлены некорректно.}}
}}{{Important|It is very important to use {{c|tar's}} "{{c|'''p'''}}" option when extracting the Stage 3 tarball - it tells {{c|tar}} to ''preserve'' any permissions and ownership that exist within the archive. Without this option, your Funtoo Linux filesystem permissions will be incorrect.}}


=== Изменение корневого каталога в Funtoo ===
=== Chroot into Funtoo ===
Для установки Funtoo Linux, комманда {{c|chroot}} используется для начала. Данная комманда "переключает" в Funtoo Linux, так что комманды Вы выполняете, будут в свеже-созданной Funtoo Linux системе.
To install Funtoo Linux, the {{c|chroot}} command is first used. The chroot command will "switch into" the new Funtoo Linux system, so the commands you execute after running "chroot" will run within your newly-extracted Funtoo Linux system.


Прежде чем изменить корневой каталог, необходимо выполнить ряд шагов. Вам необходимо примонтировать {{f|/proc}}, {{f|/sys}} and {{f|/dev}} в новой системе. Для этого, используйте следующие комманды:
Before chrooting, there are a few things that need to be done to set up the chroot environment. You will need to mount {{f|/proc}}, {{f|/sys}} and {{f|/dev}} inside your new system. Use the following commands to do so:
{{console|body=
{{console|body=
# ##i##cd /mnt/funtoo
# ##i##cd /mnt/funtoo
Line 389: Line 394:
# ##i##mount --rbind /sys sys
# ##i##mount --rbind /sys sys
# ##i##mount --rbind /dev dev
# ##i##mount --rbind /dev dev
}}Также хорошей идеей будет и скопировать {{f|resolv.conf}} чтобы внутри chroot у Вас происходило корректное разрешение имен узлов сети Internet:
}}You'll also want to copy over {{f|resolv.conf}} in order to have proper resolution of Internet hostnames from inside the chroot:
{{console|body=
{{console|body=
# ##i##cp /etc/resolv.conf /mnt/funtoo/etc/
# ##i##cp /etc/resolv.conf /mnt/funtoo/etc/
}}Теперь Вы можете сменить корневой каталог. Используйте <code>env</code> перед
}}Now you can chroot into your new system. Use <code>env</code> before <code>chroot</code> to ensure that no environment settings from the installation media are pulled in to your new system:
<code>chroot</code>, чтобы убедиться, что настройки окружения живого диска не включаются в Вашей системе


{{console|body=###i## env -i HOME=/root TERM=$TERM chroot . bash -l}}
{{console|body=###i## env -i HOME=/root TERM=$TERM chroot . bash -l}}
{{Note|Пользователи установочного диска с 64-битным ядром и устанавливающие 32-битную систему: Некоторые программы могут использовать {{c|uname -r}} для проверки является ли система 32- или 64-битной. Вам может понадобиться добавить  linux32 к комманде chroot как быстрейшее решение, хотя в вообщем это не нужно.}}
{{Note|For users of live CDs with 64-bit kernels installing 32-bit systems: Some software may use {{c|uname -r}} to check whether the system is 32 or 64-bit. You may want append linux32 to the chroot command as a workaround, but it's generally not needed.}}
{{Important|Если Вы столкнулись с ошибкой "{{c|chroot: failed to run command `/bin/bash': Exec format error}}", скорее всего Вы используете 32-битное ядро и пытаетесь выполнить 64-битный код. Убедитесь, что Вы выбрали правильный тип ядра при загрузке SystemRescueCD.}}
{{Important|If you receive the error "{{c|chroot: failed to run command `/bin/bash': Exec format error}}", it is most likely because you are running a 32-bit kernel and trying to execute 64-bit code. Make sure that you have selected the proper type of kernel when booting SystemRescueCD.}}


Также обычно неплохой идеей является замена приглашения командной строки по умолчанию для chroot-окружения. Это позволит вам не запутаться когда Вы будете переключать терминалы между собой. Для этого используйте команду {{console|body=# ##i##export PS1="(chroot) $PS1"}}. Также проверьте разрешений Internet имен из chroot-окружения: {{console|body=###i## ping -c 5 google.com}}. Если ping не проходит, убедитесь что {{f|/etc/resolv.conf}} ничего лишнего типа адресов вроде {{c|127.0.x.x}}. Если что-то такое там есть эамените это поле {{c|127.0.x.x}} на {{c|8.8.8.8}} -- публичный DNS-сервер Google. После того как Вы закончите установку, не забудьте выставить туда свой DNS-сервер.
It's also a good idea to change the default command prompt while inside the chroot. This will avoid confusion if you have to change terminals. Use this command:
{{console|body=# ##i##export PS1="(chroot) $PS1"}}
Test internet name resolution from within the chroot:
{{console|body=###i## ping -c 5 google.com}}
If you can't ping, make sure {{f|/etc/resolv.conf}} doesn't contain things like {{c|127.0.x.x}} addresses, if it does, change the {{c|127.0.x.x}} entry to {{c|8.8.8.8}} -- Google's public dns address. Make sure to replace this with your dns of choice once the system is installed.




Поздравляю! Теперь Вы находитесь внутри chroot-окружения вашей Funtoo Linux-системы. Теперь необходимо ее правильно настроить чтобы после перезагрузки системы она успешно загрузилась без посторонней помощи.
Congratulations! You are now chrooted inside a Funtoo Linux system. Now it's time to get Funtoo Linux properly configured so that Funtoo Linux will start successfully, without any manual assistance, when your system is restarted.
=== Загрузка дерева Portage-ей ===  
=== Downloading the Portage tree ===  


{{note|Ели вас интересуют альтернативные способы проделать эту операцию, ознакомьтесь с [[Installing Portage From Snapshot]].}}
{{note|For an alternative way to do this, see [[Installing Portage From Snapshot]].}}
Теперь подошел этап установки вашей копии репозитария Portage-ей, в котором содержатся скрипты пакетов (ebuild-ы), которые сообщают системе portage каким образом нужно собирать и устанавливать каждый из тысяч различных пакетов с программным обеспечением. Чтобы создать репозитарий, просто запустите <code>emerge --sync</code> из chroot-окружения. Эта команда автоматически скопирует дерево portage-ей с [https://github.com/funtoo/ports-2012 GitHub]:
Now it's time to install a copy of the Portage repository, which contains package scripts (ebuilds) that tell portage how to build and install thousands of different software packages. To create the Portage repository, simply run <code>emerge --sync</code> from within the chroot. This will automatically clone the portage tree from [https://github.com/funtoo/ports-2012 GitHub]:


{{console|body=
{{console|body=
(chroot) ###i## emerge --sync
(chroot) ###i## emerge --sync
}}
}}
{{important|Если из за ограничений протокола git вы получили ошибку при первоначальном выполнении {{c|emerge --sync}}, установите переменной {{c|SYNC}} в файле {{c|/etc/portage/make.conf}} значение {{c|"https://github.com/funtoo/ports-2012.git"}} }}
{{important|If you receive the error with initial {{c|emerge --sync}} due to git protocol restrictions, set the {{c|SYNC}} variable in {{c|/etc/portage/make.conf}} to
{{c|"https://github.com/funtoo/ports-2012.git"}}
}}


=== Настройка Вашей системы ===
=== Configuring your system ===
Как и полагается дистрибутивам Linux, в Funtoo Linux также есть свои конфигурационные файлы. Один из этих файлов, {{f|/etc/fstab}}, вам совершенно точно нужно отредактировать для того чтобы Funtoo Linux успешно загружался. Редактирование прочих конфигурационных файлов является опциональным.  
As is expected from a Linux distribution, Funtoo Linux has its share of configuration files. The one file you are absolutely required to edit in order to ensure that Funtoo Linux boots successfully is {{f|/etc/fstab}}. The others are optional.  


==== Использование Nano ====  
==== Using Nano ====  


Редактор по-умолчанию, идущий в комплекте с chroot-окружением называтеся {{c|nano}}. Для редактирования какого-либо из приведенных ниже файлов, запускайте nano следующим образом:
The default editor included in the chroot environment is called {{c|nano}}. To edit one of the files below, run nano as follows:


{{console|body= (chroot) ###i## nano /etc/fstab }}
{{console|body=
Находясь в редакторе, Вы можете использовать клавиши стрелок для перемещения курсора и обычные для текстовых редакторов клавиши типа backspace и delete. Они будут работать привычным образом. Для того чтобы сохранить файл, нажмите Control-X и, если Вы хотите сохранить внесенные изменения, на запрос о подтверждении записи произошедших в буффере изменений ответьте {{c|y}}.
(chroot) ###i## nano /etc/fstab
}}
When in the editor, you can use arrow keys to move the cursor, and common keys like backspace and delete will work as expected. To save the file, press Control-X, and answer {{c|y}} when prompted to save the modified buffer if you would like to save your changes.


==== Конфигурационные файлы ====  
==== Configuration Files ====  


Here are a full list of files that you may want to edit, depending on your needs:
Here are a full list of files that you may want to edit, depending on your needs:
Line 471: Line 483:
{{TableEnd}}
{{TableEnd}}


Если вы устанавливаете Английскую версию Funtoo Linux, считайте что вам повезло - большую часть конфигурационных файлов можно оставить как есть. Если же вы устанавливаете другую локаль, тоже не беспокойтесь. Мы проведем вас через процесс конфигурации на старнице [[Funtoo Linux Localization]] и при необходимости у нас всегда есть кто-нибудь, кто может помочь в этом деле (см. [[#Community portal|Сообщество]]).
If you're installing an English version of Funtoo Linux, you're in luck, as most of the configuration files can be used as-is. If you're installing for another locale, don't worry. We will walk you through the necessary configuration steps on the [[Funtoo Linux Localization]] page, and if needed, there's always plenty of friendly, helpful support available. (See [[#Community portal|Community]])


Теперь давайте двинемся дальше и посмотрим, что еще осталось сделать. Используйте {{c|nano -w <имя_файла>}} для редактирования файлов. Аргумент "{{c|-w}}" отключает перенос строк, что будет удобно при редактировании конфигурационных файлов. Вы можете просто скопировать текст с этих примеров.
Let's go ahead and see what we have to do. Use {{c|nano -w <name_of_file>}} to edit files -- the "{{c|-w}}" argument disables word-wrapping, which is handy when editing configuration files. You can copy and paste from the examples.


{{Warning|Важно отредактировать{{c|/etc/fstab}} файл перед перезагрузкой системы! Вам нужно изменить оба "fs" и "type" колонки для соответствия Вашим разделам и файловым системам, созданным с помощью {{c|gdisk}} или {{c|fdisk}}. Пропуск этого шага может воспрепятствовать успешной загрузке Funtoo Linux.}}
{{Warning|It's important to edit your {{c|/etc/fstab}} file before you reboot! You will need to modify both the "fs" and "type" columns to match the settings for your partitions and filesystems that you created with {{c|gdisk}} or {{c|fdisk}}. Skipping this step may prevent Funtoo Linux from booting successfully.}}


==== /etc/fstab ====
==== /etc/fstab ====


{{f|/etc/fstab}} используется командой {{c|mount}}, которая выполняется при загрузке вашей системы. Строки в этом файле сообщают {{c|mount}}-у какие файловые системы подключать и каким образом это делать. Для того, чтобы ваша система загружалась правильно, вам нужно отредактировать {{f|/etc/fstab}} и убедиться, что его содержимое отражает структуру разделов, которую вы создавали в процессе установки ранее. Если вы уже не помните, какие разделы и где вы создавали, вам может помочь команда {{c|lsblk}}:
{{f|/etc/fstab}} is used by the {{c|mount}} command which is run when your system boots. Lines in this file inform {{c|mount}} about filesystems to be mounted and how they should be mounted. In order for the system to boot properly, you must edit {{f|/etc/fstab}} and ensure that it reflects the partition configuration you used earlier in the install process. If you can't remember the partition configuration that you used earlier, the {{c|lsblk}} command may be of help to you:
{{console|body=
{{console|body=
(chroot) ###i## nano -w /etc/fstab
(chroot) ###i## nano -w /etc/fstab
Line 498: Line 510:
#/dev/cdrom  /mnt/cdrom    auto    noauto,ro      0 0
#/dev/cdrom  /mnt/cdrom    auto    noauto,ro      0 0
}}
}}
{{Note|В настоящее время, в нашем варианте файла {{f|/etc/fstab}} по умолчанию указан {{c|/dev/sda4}} в качестве корневой файловой системы и {{c|/dev/sda3}} в качестве раздела подкачки. Эти строки надо поменять на {{c|/dev/sda3}} и {{c|/dev/sda2}} соответственно.}}
{{Note|Currently, our default {{f|/etc/fstab}}file  has the root filesystem as {{c|/dev/sda4}} and the swap partition as {{c|/dev/sda3}}. These will need to be changed to {{c|/dev/sda3}} and {{c|/dev/sda2}}, respectively.}}


{{Note|Если вы используете для загрузки UEFI, измените строку с {{f|/dev/sda1}} таким образом, чтобы там вместо {{c|ext2}} была указанна {{c|vfat}}.  
{{Note|If you're using UEFI to boot, change the {{f|/dev/sda1}} line so that it says {{c|vfat}} instead of {{c|ext2}}. Similarly, make sure that the {{f|/dev/sda3}} line specifies either {{c|xfs}} or {{c|ext4}}, depending on which filesystem you chose earlier on in the installation process when you created filesystems.}}
Точно так же убедитесь, что в строке с {{f|/dev/sda3}} указана {{c|xfs}} или {{c|ext4}} в зависимости от того, какую файловую систему вы выбирали ранее, когда создавали свои файловые системы.}}


==== /etc/localtime ====  
==== /etc/localtime ====  


{{f|/etc/localtime}} используется для того, чтобы указать в каком часовом поясе находится ваша машина. По умолчанию выбран вариант UTC. Если вы хотите чтобы ваша система использовала местное время, файл {{f|/etc/localtime}} следует заменить символьной ссылкой на файл описания часового пояса, который вы хотите использовать.  
{{f|/etc/localtime}} is used to specify the timezone that your machine is in, and defaults to UTC. If you would like your Funtoo Linux system to use local time, you should replace {{f|/etc/localtime}} with a symbolic link to the timezone that you wish to use.  


{{console|body= (chroot) ###i## ln -sf /usr/share/zoneinfo/Europe/Moscow /etc/localtime }}
{{console|body=
В примере выше приведен вариант для стандартного Московского времени (с учетом всех прошлых изменений на предмет летнего времени). Полный список доступных часовых поясов можно посмотреть командой {{c|ls /usr/share/zoneinfo}}. Также в этом каталоге есть и несколько подкаталогов, в которых часовые пояса представлены по географическому признаку.
(chroot) ###i## ln -sf /usr/share/zoneinfo/MST7MDT /etc/localtime
}}
The above sets the timezone to Mountain Standard Time (with daylight savings). Type {{c|ls /usr/share/zoneinfo}} to list available timezones. There are also sub-directories containing timezones described by location.


==== /etc/portage/make.conf ====  
==== /etc/portage/make.conf ====  


Параметр {{c|MAKEOPTS}} позволяет задать максимальное число параллельных процессов компиляции, которое должно использоваться при сборке пакета, что может существенно ускорить сборку. На практике обычно лучше всего этот параметр выставлять равным числу имеющихся процессоров (или аппаратных потоков) плюс 1. Например, если у вас двухядерный процессор без поддержки [[wikipedia:Hyper-threading|hyper-threading]], параметр {{c|MAKEOPTS}} вам следует установить равным 3:
{{c|MAKEOPTS}} can be used to define how many parallel compilations should occur when you compile a package, which can speed up compilation significantly. A rule of thumb is the number of CPUs (or CPU threads) in your system plus one. If, for example, you have a dual core processor without [[wikipedia:Hyper-threading|hyper-threading]], then you would set {{c|MAKEOPTS}} to 3:


<pre> MAKEOPTS="-j3" </pre>
<pre>
MAKEOPTS="-j3"  
</pre>


Если Вы не совсем уверены, сколько именно процессоров/ядер у вас имеется, в помощь Вам будет программа {{c|nproc}}.
If you are unsure about how many processors/threads you have, then use {{c|nproc}} to help you.
{{console|body= (chroot) ###i## nproc 16 }}
{{console|body=
Устанавливайте {{c|MAKEOPTS}} в указанное ей значение плюс 1:
(chroot) ###i## nproc
16
}}
Set {{c|MAKEOPTS}} to this number plus one:


<pre> MAKEOPTS="-j17" </pre>
<pre>
MAKEOPTS="-j17"
</pre>


{{c|USE}} - флаги определяют какие параметры будут включены при сборке пакетов. В процессе установки не рекомендуется добавлять слишком много USE-флагов - лучше сначала получить работающую нормально загружающуюся систему, а уже потом переходить к правке ваших USE-флагов. USE-флаг со занаком минус ("{{c|-}}") в начале означает что Portage следует отключить данный флаг при компиляции.
{{c|USE}} flags define what functionality is enabled when packages are built. It is not recommended to add a lot of USE flags during installation; you should wait until you have a working, bootable system before changing your USE flags. A USE flag prefixed with a minus ("{{c|-}}") sign tells Portage not to use the flag when compiling. A Funtoo guide to USE flags will be available in the future. For now, you can find out more information about USE flags in the [http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=2&chap=2 Gentoo Handbook].
Руководство по USE-флагам Funtoo будет доступно в будущем. Пока же дополнительные сведения о них вы можете получить из [http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=2&chap=2 Gentoo Handbook].


Параметр {{c|LINGUAS}} сообщает системе Portage с каким языком собирать систему и разные приложения (для тех пакетов, типа OpenOffice, которые используют переменную LINGUAS). Если Вы используете английский язык, делать это не обязательно. Если Вы хотите использовать другой язык, например Русский (ru) или Украинский (ua), Вам необходимо установить значение LINGUAS соответствующим образом:
{{c|LINGUAS}} tells Portage which local language to compile the system and applications in (those who use LINGUAS variable like OpenOffice). It is not usually necessary to set this if you use English. If you want another language such as French (fr) or German (de), set LINGUAS appropriately:


<pre> LINGUAS="ru" </pre>
<pre>
LINGUAS="fr"
</pre>


==== /etc/conf.d/hwclock ====
==== /etc/conf.d/hwclock ====
Если Вы используете схему загрузки совмещенную с Windows, Вам поребуется отредактировать этот файл на предмет изменения значения парметра '''clock''' с '''UTC''' на '''local''', поскольку Windows при каждой загрузке будет выставлять местное время в аппартных часах. В противном случае Вам скорее всего нет необходимости править этот файл. {{console|body= (chroot) ###i## nano -w /etc/conf.d/hwclock }}  
If you dual-boot with Windows, you'll need to edit this file and change the value of '''clock''' from '''UTC''' to '''local''', because Windows will set your hardware clock to local time every time you boot Windows. Otherwise you normally wouldn't need to edit this file.
==== Локализация ====
{{console|body=
(chroot) ###i## nano -w /etc/conf.d/hwclock
}}
==== Localization ====


По умолчанию Funtoo Linux настроен с поддержкой Юникода (UTF-8), и локалью и раскладкой клавиатуры US English.  
By default, Funtoo Linux is configured with Unicode (UTF-8) enabled, and for the US English locale and keyboard. If you would like to configure your system to use a non-English locale or keyboard, see [[Funtoo Linux Localization]].
Если Вы хотите сконфигурировать свою систему для использования какой-либо локали или раскладки помимо английской, обратитесь к [[Funtoo Linux Localization]].


=== Введение в Portage ===  
=== Introducing Portage ===  


Менеджер пакетов Funto Linux под названием Portage имеет команду под названием <code>emerge</code> которая используется для сборки и установки пакетов из исходных текстов. Также эта команда обеспечивает контроль за всеми зависимостями этих пакетов. Запустить emerge можно следующим образом:
Portage, the Funtoo Linux package manager has a command called <code>emerge</code> which is used to build and install packages from source. It also takes care of installing all of the package's dependencies. You call emerge like this:


<console> (chroot) # ##i##emerge packagename </console>
<console>
(chroot) # ##i##emerge packagename
</console>


Когда вы устанавливаете пакет указав его имя в командной строке, Portage записывает его имя в файл <code>/var/lib/portage/world</code>. Он предполягает, что если вы решили установить пакет по его имени, вы вероятнее всего рассматриваете его как часть вашей системы и в будущем его нужно будет обновлять. Это - очень удобная вещь, поскольку если все такие пакеты добавлены в группу  <code>world</code>, всю систему можно обновить лишь набрав следующую команду:
When you install a package by specifying its name in the command-line, Portage records its name in the <code>/var/lib/portage/world</code> file. It does so because it assumes that, since you have installed it by name, you want to consider it part of your system and want to keep the package updated in the future. This is a handy feature, since when packages are being added to the <code>world</code> set, we can update our entire system by typing:


<console> (chroot) # ##i##emerge --sync (chroot) # ##i##emerge -auDN @world </console>
<console>
(chroot) # ##i##emerge --sync
(chroot) # ##i##emerge -auDN @world
</console>


Это - "официальный" метод обновления Funtoo Linux - системы. Первым делом, мы сначала обновим наше дерево Portage-ей с помощью git чтобы получить самые последние версии ebuild-ов (скриптов сборки), после чего запустим команду emerge для обноаления набора пакетов <code>world</code>. У <code>emerge</code> есть опции командной строки чтобы:
This is the "official" way to update your Funtoo Linux system. Above, we first update our Portage tree using git to grab the latest ebuilds (scripts), and then run an emerge command to update the <code>world</code> set of packages. The options specified tell <code>emerge</code> to:


* '''<code>a</code>''' - показать список пакетов для установки и спросить ('''ask'''), хотите ли вы продолжить или нет.
* '''<code>a</code>''' - show us what will be emerged, and '''ask''' us if we want to proceed
* '''<code>u</code>''' - обновить ('''update''') указанные пакеты -- если они уже установлены, повторно переустанавливать их не надо.
* '''<code>u</code>''' - '''update''' the packages we specify -- don't emerge them again if they are already emerged.
* '''<code>D</code>''' - Просматривать полное дерево зависимостей пакетов при поиске обновлений. Другими словами, провести '''глубокое''' ('''deep''') обновление.  
* '''<code>D</code>''' - Consider the entire dependency tree of packages when looking for updates. In other words, do a '''deep''' update.
* '''<code>N</code>''' - Обновить все пакеты, для которых был изменен ('''new'''='''новые''') список USE-флагов.
* '''<code>N</code>''' - Update any packages that have changed ('''new''') USE settings.


Также Вам следует хотябы иногда использовать параметр <code>--with-bdeps=y</code> при emerge-е группы пакетов @world. Это обеспечит обновление также и зависимостей для собираемых пакетов.
You should also consider passing <code>--with-bdeps=y</code> when emerging @world, at least once in a while. This will update build dependencies as well.


Разумеется, иногда бывает желание установить пакет без добавления его в файл <code>world</code>. Обычно такое бывает при временной установке пакета или когда вы знаете, что этот пакет является зависимостью для какого-то другого пакета. Для получения такого эффекта, emerge можно вызвать следующим образом:
Of course, sometimes we want to install a package but not add it to the <code>world</code> file. This is often done because you only want the package installed temporarily or because you know the package in question is a dependnecy of another package. If this behavior is desired, you call emerge like this:


<console> (chroot) # ##i##emerge -1 имя_пакета </console>
<console>
(chroot) # ##i##emerge -1 packagename
</console>


Опытным пользователям также может быть интересно оснакомиться с wiki-страницей [[Emerge]].
Advanced users may be interested in the [[Emerge]] wiki page.


==== Обновление всего ====  
==== Updating World ====  


Сейчас как раз самое время запустить обновление всей системы и, возможно, лучше это сделать еще до первой перезагрузки.
Now is actually a very good time to update the entire system and it can be a good idea to do so prior to first boot.


<console> (chroot) # ##i##emerge --sync (chroot) # ##i##emerge -auDN @world </console>
<console>
(chroot) # ##i##emerge --sync
(chroot) # ##i##emerge -auDN @world
</console>


{{fancyimportant|1= Обязательно читайте все сообщения, которые по завершению работы оставляет emerge и следуйте указанным там инструкциям. Особенно это важно при обновлении perl-а или python.}}
{{fancyimportant|1=
Make sure you read any post emerge messages and follow their instructions. This is especially true if you have upgraded perl or python.}}


=== Ядро ===  
=== Kernel ===  


Начиная с середины мая 2015-го, stage3 Funtoo Linux содержат уже собранное {{c|debian-sources}} ядро чтобы ускорить и упростить установку системы. Чтобы проверить, установлен ли debian-sources, наберите:
Starting mid-May 2015, Funtoo Linux stage3's include a pre-built {{c|debian-sources}} kernel to make installation faster and easier. To see if debian-sources is installed, type:
{{console|body=
{{console|body=
(chroot) # ##i##emerge -s debian-sources
(chroot) # ##i##emerge -s debian-sources
Line 586: Line 620:
       ##g##License:##!g##      GPL-2
       ##g##License:##!g##      GPL-2
}}
}}
Если ваша версия содержится в {{c|Latest version installed}}, это означает что debian-sources уже собран для вас заранее и вы можете пропустить оставшуюся часть раздела посвященного ядру и сразу переходить к [[#Installing a Bootloader|разделу, посвященному установке загрузчика]].
If a version is listed under {{c|Latest version installed}}, then debian-sources is already pre-built for you and you can skip the rest of the Kernel section, and proceed to the [[#Installing a Bootloader|Installing a Bootloader section]].


==== Сборка ядра ====  
==== Building the Kernel ====  


Если Вам нужно собрать ядро для Funtoo Linux, руководствуйтесь следующей последовательностью действий:
If you need to build a kernel for Funtoo Linux, please follow these steps:


{{Fancynote|1= На странице [[Funtoo Linux Kernels]] указан полный список ядер поддерживаемых Funtoo Linux. Начинающим пользователям мы советуем выбрать <code>debian-sources</code>.}}
{{Fancynote|1=
See [[Funtoo Linux Kernels]] for a full list of kernels supported in Funtoo Linux. We recommend <code>debian-sources</code> for new users.}}


{{fancyimportant|1= Сборка <code>debian-sources</code> с установленным USE флагом <code>binary</code> потребует не менее 14ГБ свободного места в <code>/var/tmp</code> и займет около часа на процессоре Intel Core i7.}}
{{fancyimportant|1=
<code>debian-sources</code> with <code>binary</code> USE flag requires at least 14GB free in <code>/var/tmp</code> and takes around 1 hour to build on a Intel Core i7 Processor.}}


Теперь можно установить наше ядро:
Let's emerge our kernel:


<console> (chroot) # ##i##emerge debian-sources </console>
<console>
(chroot) # ##i##emerge debian-sources
</console>


После того как отработает <code>emerge</code>, ваше свежесобранное ядро и initramfs окажутся установленными в <code>/boot</code>, а заголовочные файлы ядра - в <code>/usr/src/linux</code>, после чего все будет готово к настройке загрузчика, который будет обеспечивать загрузку всего этого хозяйства при запуске Funtoo Linux-системы.
Once <code>emerge</code> completes, you'll have a brand new kernel and initramfs installed to <code>/boot</code>, plus kernel headers installed in <code>/usr/src/linux</code>, and you'll be ready to configure the boot loader to load these to boot your Funtoo Linux system.


{{warning|Если в Вашей системе установлен RAID-массив, при сборке ядра по зависимостям автоматически подтянется утилита <code>mdadm</code>. Важно не забыть отредактировать файл <code>/etc/mdadm.conf</code> прежде чем перезагрузить машину чтобы RAID-массив был корректно опознан и настроен прежде чем ядро попытается подключить его к файловой системе.
{{warning|If you have a RAID in your machine, the kernel installation will pull in the <code>mdadm</code> tool as a dependency. It is important to edit the <code>/etc/mdadm.conf</code> file prior to rebooting the machine so the RAID is properly recognised and set up before the kernel attempts to mount it in the tree. Failing to do so can result in an unusable or even unbootable system! For specific details, consult the mdadm man page <code>man mdadm</code> or the [[Package:Mdadm|mdadm]] ebuild page.}}
Если этого правильно не сделать, в результате может получиться нерабочая или вовсе не загружающаяся система! С конкретными деталями этой настройки можно познакомится либо в man-странице <code>man mdadm</code> либо в [[Package:Mdadm|mdadm]] ebuild page.}}


{{fancynote|Для пользователей видеокарт NVIDIA: USE-флаг <code>binary</code> вызывает установку драйверов Nouveau которые нельзя загружать одновременно с проприетарными драйверами фирмы-производителя. Также из-за KMS его не получится и выгрузить из уже загруженой системы. Вам необходимо добавить этот модуть в черный список загрузки в файле <code>/etc/modprobe.d/</code>.}}
{{fancynote|NVIDIA card users: the <code>binary</code> USE flag installs the Nouveau drivers which cannot be loaded at the same time as the proprietary drivers, and cannot be unloaded at runtime because of KMS. You need to blacklist it under <code>/etc/modprobe.d/</code>.}}


{{fancynote|Для обзора других ядер для Funtoo Linux, следуйте [[Funtoo Linux Kernels]]. Возможно, debian-sources не включает определенные модули - ситуация в которой [http://www.funtoo.org/wiki/Funtoo_Linux_Kernels#Using_Debian-Sources_with_Genkernel genkernel] может помочь. Также, не пропустите [[:Category:Hardware Compatibility|hardware compatibility]]}}
{{fancynote|For an overview of other kernel options for Funtoo Linux, see [[Funtoo Linux Kernels]]. There may be modules that the Debian kernel doesn't include, a situation where [http://www.funtoo.org/wiki/Funtoo_Linux_Kernels#Using_Debian-Sources_with_Genkernel genkernel] would be useful. Also be sure to see [[:Category:Hardware Compatibility|hardware compatibility]] information.}}


=== Установка загрузчика ===
=== Installing a Bootloader ===


Эти инструкции покажут Вам как пользоваться GRUB для загрузки BIOS (классический способ) или UEFI (современный метод). С релизом boot-update-1.7.2, шаги очень похожи.
These install instructions show you how to use GRUB to boot using BIOS (old-school) or UEFI (new-school). As of boot-update-1.7.2, now in Portage, the steps are very similar.


Во-первых, установите <code>boot-update</code>. Также установяться code>grub-2</code> и {{c|efibootmgr}}, так как они являются зависимостями.
First, emerge <code>boot-update</code>. This will also cause <code>grub-2</code> and {{c|efibootmgr}} to be merged, since they are dependencies:


<console> (chroot) # ##i##emerge boot-update </console>
<console>
(chroot) # ##i##emerge boot-update
</console>


Далее, отредактируйте <code>/etc/boot.conf</code> с помощью {{c|nano}} и укажите  "<code>Funtoo Linux genkernel</code>" как <code>default</code> параметр в начале файла, заменив <code>"Funtoo Linux"</code>.  
Then, edit <code>/etc/boot.conf</code> using {{c|nano}} and specify "<code>Funtoo Linux genkernel</code>" as the <code>default</code> setting at the top of the file, replacing <code>"Funtoo Linux"</code>.  


Теперь <code>/etc/boot.conf</code> должен выглядеть следующим образом:
<code>/etc/boot.conf</code> should now look like this:
{{file|name=/etc/boot.conf|body=
{{file|name=/etc/boot.conf|body=
boot {
boot {
Line 642: Line 681:
}
}
}}
}}
Если вы используете собственное, нестандартное ядро, ознакомьтесь с <code>man boot.conf</code> на предмет информации о различных доступных вам параметрах.
If you are booting a custom or non-default kernel, please read <code>man boot.conf</code> for information on the various options available to you.


==== Классическая (BIOS) MBR ====  
==== Old School (BIOS) MBR ====  


Следуя классическому способу, выполните следующую комманду для установки GRUB на MBR, а также генерации конфигурационного файла {{c|/boot/grub/grub.cfg}}, используемым GRUB при загрузке.
When using "old school" BIOS booting, run the following command to install GRUB to your MBR, and generate the {{c|/boot/grub/grub.cfg}} configuration file that GRUB will use for booting:


<console> (chroot) # ##i##grub-install --target=i386-pc --no-floppy /dev/sda (chroot) # ##i##boot-update </console>
<console>
(chroot) # ##i##grub-install --target=i386-pc --no-floppy /dev/sda
(chroot) # ##i##boot-update
</console>


==== Современная (UEFI) загрузочная запись (Boot Entry) ====
==== New School (UEFI) Boot Entry ====


Если Вы следуете современному способу, выполните следующий набор комманд, в зависимости от того, устанавливаете 32- или 64-битную систему. Это добавит GRUB как загрузочную запись UEFI.
If you're using "new school" UEFI booting, run of the following sets of commands, depending on whether you are installing a 64-bit or 32-bit system. This will add GRUB as a UEFI boot entry.


Для 64-битных x86-систем:
For x86-64bit systems:


<console> (chroot) # ##i##grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda (chroot) # ##i##boot-update </console>
<console>
(chroot) # ##i##grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
(chroot) # ##i##boot-update
</console>


Для 32-битных x86-систем:
For x86-32bit systems:


<console> (chroot) # ##i##grub-install --target=i386-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda (chroot) # ##i##boot-update </console>
<console>
(chroot) # ##i##grub-install --target=i386-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
(chroot) # ##i##boot-update
</console>


==== Первая загрузка и так далее... ====  
==== First Boot, and in the future... ====  


ОК, все готово к загрузке!  
OK -- you are ready to boot!  


Осталось только выполнить <code>grub-install</code> если это -- первая установка Funtoo Linux. Также нужно будет выполнить <code>boot-update</code> всякий раз как Вы отредактируете файл <code>/etc/boot.conf</code> на предмет добавления новых ядер в систему. Эта команда сгенерирует файл <code>/etc/boot.conf</code> и после перезагрузки Ваши новые ядра сразу появятся в загрузочном меню GRUB.
You only need to run <code>grub-install</code> when you first install Funtoo Linux, but you need to re-run <code>boot-update</code> every time you modify your <code>/etc/boot.conf</code> file or add new kernels to your system. This will regenerate {{c|/boot/grub/grub.cfg}} so that you will have new kernels available in your GRUB boot menu, the next time you reboot.


=== Настройка сети ===  
=== Configuring your network ===  


Важно убедиться, что после перезагрузки в Funtoo Linux, вы сможете подключиться к вашей локальной сети. Существует 3 основных подхода к конфигурированию вашей сети: через NetworkManager, через dhcpcd и с использованием скриптов [[Funtoo Linux Networking]]. Здесь мы разберем какой из этих вариантов выбрать исходя из того, к какого тапа сети вы хотите подключиться.
It's important to ensure that you will be able to connect to your local-area network after you reboot into Funtoo Linux. There are three approaches you can use for configuring your network: NetworkManager, dhcpcd, and the [[Funtoo Linux Networking]] scripts. Here's how to choose which one to use based on the type of network you want to set up.


==== Wi-Fi ====
==== Wi-Fi ====


Для нутбуков и мпрочих мобильных систем, которые будут использовать Wi-Fi, роуминг и будут постоянно подключаться к разным сетям, крайне рекомендуется использовать NetworkManager. Поскольку Wi-Fi карточки требуют для работы свои микропрограммы, вам также рекомендуется установить пакет linux-firmware:
For laptop/mobile systems where you will be using Wi-Fi, roaming, and connecting to various networks NetworkManager is strongly recommended.
Since Wi-Fi cards require firmware to operate, it is also recommended that you emerge the linux-firmware ebuild:


{{console|body=(chroot) # ##i##emerge linux-firmware networkmanager  
{{console|body=(chroot) # ##i##emerge linux-firmware networkmanager
(chroot) ###i## rc-update add NetworkManager default  
(chroot) ###i## rc-update add NetworkManager default
}}
}}
Данная команда обеспечит загрузку NetworkManager-а сразу после запуска Funtoo Linux. После того как вы закончите с установкой этих пакетов и перезагрузитесь, вы сможете использовать команду {{c|addwifi}} для подключения к точке доступа Wi-Fi:
The above command will ensure that NetworkManager starts after you boot into Funtoo Linux. Once you've completed these installation steps and have booted into Funtoo Linux, you can use the {{c|addwifi}} command to connect to a Wi-Fi access point:
{{console|body=# ##i##addwifi -S wpa -K 'пароль_для_вайфая' моя_вайфай_сеть}}.
{{console|body=# ##i##addwifi -S wpa -K 'wifipassword' mywifinetwork}}
С дополнительной информацией о NetworkManager-е можно познакомиться на странице [[Package:NetworkManager|NetworkManager package page]].
For more information about NetworkManager, see the [[Package:NetworkManager|NetworkManager package page]].


{{Note|wpa_supplicant также является неплохим вариантом для беспроводных сетей. Обратитесь к пакету {{package|net-wireless/wpa_supplicant}} чтобы узнать что нужно сделать для настройки wpa_supplicant.}}
{{Note|wpa_supplicant is also a good choice for wireless network connections. See the {{package|net-wireless/wpa_supplicant}} package for steps involved in setting up wpa_supplicant.}}


==== Настольный ПК (проводной DHCP) ====  
==== Desktop (Wired DHCP) ====  


Для домашнего компьютера или рабочей станции с проводной Ethernet-сетью, использующей DHCP, самым простым и эффективным вариантом настройки сетевого соединения является просто добавление {{c|dhcpcd}} в уровень default:
For a home desktop or workstation with wired Ethernet that will use DHCP, the simplest and most effective option to enable network connectivity is to simply add {{c|dhcpcd}} to the default runlevel:


{{console|body= (chroot) # ##i##rc-update add dhcpcd default}}
{{console|body=
После того, как вы перезагрузитесь, {{c|dhcpcd}} запустится в фоновом режиме и будет обслуживать все ваши сетевые интерфейсы, используя DHCP для получения сетевых адресов от DHCP-серверов.
(chroot) # ##i##rc-update add dhcpcd default}}
When you reboot, {{c|dhcpcd}} will run in the background and manage all network interfaces and use DHCP to acquire network addresses from a DHCP server.


Если у вас используется dnsmasq в качестве главного DHCP-сервера, его можно настроить так, чтобы сетевые адреса раздавались в соответствии с mac-адресами, что делает возможным  работу через DHCP также и для серверов.
If your upstream DHCP server is dnsmasq, it can be configured to assign addresses via mac address to make servers on DHCP feasible.


==== Сервер (статический IP) ====
==== Server (Static IP) ====


Для серверов мы рекомендуем использовать скрипты [[Funtoo Linux Networking]]. Они оптимизированны для использования в статических конфигурациях и вещей типа виртуальных сетевых ethernet-мостов для систем с виртуальными машинами. С информацией о том, как модно использовать шаблоно-ориентированную систему настройки сети Funtoo Linux можно ознакомиться на странице [[Funtoo Linux Networking]]
For servers, the [[Funtoo Linux Networking]] scripts are recommended. They are optimized for static configurations and things like virtual ethernet bridging for virtualization setups. See [[Funtoo Linux Networking]] for information on how to use Funtoo Linux's template-based network configuration system.


==== Имя узла ====
==== Hostname ====
По умолчанию в Funtoo в качестве имени узла используется "localhost". Хотя система будет отлично работать и с эти именем, некоторые ebuild-ы не устанавливаются если в качестве имени стоит это значение. Также использование одинаковых имен для разных машин может вызвать путаницу. Поэтому, рекомендуется установить в качестве имени узла что-то более осмысленное. Имя узла можно выбирать произвольно, можно использовать почти любую комбинацию символов. Главное чтобы это имя было понятно системному администратору. Для изменения имени узла отредактируйте
By default Funtoo uses "localhost" as hostname. Although the system will work perfectly fine using this name, some ebuilds refuse to install when detecting localhost as hostname. It also may create confusion if several systems use the same hostname. Therefore, it is advised to change it to a more meaningful name. The hostname itself is arbitrary, meaning you can choose almost any combination of characters, as long as it makes sense to the system administrator. To change the hostname, edit


{{console|body= (chroot) # ##i##nano /etc/conf.d/hostname }}
{{console|body=
(chroot) # ##i##nano /etc/conf.d/hostname
}}


Найдите строку начинающуюся с hostname и поменяйте значение, указанное в кавычках. Сохраните файл и при следующей загрузке Funtoo будет использовать новое имя узла.
Look for the line starting with hostname and change the entry between the quotes. Save the file, on the next boot Funtoo will use the new hostname.


{{warning|Не используйте разные спецсимволы в имени узла поскольку командная оболчка может обаботать их непредсказуемым образом. Используйте буквы Латинского алфавита: a-z, A-Z, 0-9}} {{tip|Выбирайте короткие имена узлов (до 8..10 символов) чтобы экран консоли не был забит именем узла, оставляя лишь немного места для собственно ввода команд. Особенно грустно это выглядит при наборе длинных командных строк различных языков программирования типа Bash, Python, SQL или Perl}}
{{warning|Do not use special characters in the hostname, as the shell may interpret these, leading to unpredictable results. Use the Latin alphabet: a-z, A-Z, 0-9}}
{{tip|Use short hostnames (up to 8 or 10 characters) to prevent the terminal screen being filled with the hostname, leaving little space for the command itself. This become particularly poignant when coding long command strings in various programming languages like Bash, Python, SQL and Perl}}


=== Заключительные шаги ===
=== Finishing Steps ===
==== Установите пароль для пользоователя root ====
==== Set your root password ====  
Установить пароль для root-а следующим образом необходимо до перезагрузки для того, чтобы после нее Вы смогли войти в систему.
It's imperative that you set your root password before rebooting so that you can log in.
<console> (chroot) # ##i##passwd </console>
<console>
(chroot) # ##i##passwd
</console>


===Перезагрузка системы ===  
===Restart your system ===  


Теперь пришло время выйти из chroot, отмонировать разделы и файлы Funtoo Linux и перезагрузить компьютер. Кагды Вы перезагрузитесь, запустится загрузчик GRUB, который загрузит ядро Linux и initramfs, после чего начнется загрузка вашей системы.
Now is the time to leave chroot, to unmount Funtoo Linux partitions and files and to restart your computer. When you restart, the GRUB boot loader will start, load the Linux kernel and initramfs, and your system will begin booting.


Выйдите из chroot-окружения, перейдите в каталог /mnt, отмонтируйте ваши разделы Funtoo и перезагрузите систему.<console> (chroot) # ##i##exit # ##i##cd /mnt # ##i##umount -lR funtoo # ##i##reboot </console>
Leave the chroot, change directory to /mnt, unmount your Funtoo partitions, and reboot.
<console>
(chroot) # ##i##exit
# ##i##cd /mnt
# ##i##umount -lR funtoo
# ##i##reboot
</console>


{{fancynote|System Rescue CD любезно отмонтирует все новые файловые системы Funtoo в процессе завершения своей работы.}}
{{fancynote|System Rescue CD will gracefully unmount your new Funtoo filesystems as part of its normal shutdown sequence.}}


Теперь вы должны увидеть как ваша система перезагружается, на пару секунд на экране появится экран загрузчика GRUB, после чего вы увидете загрузку ядра Linux и initramfs. После этого вы должны увидеть загрузку собственно Funtoo Linux и в конце вас поприветствует <code>login:</code> - приглашение войти в систему. Ваша Funtoo Linux система установилась успешно!
You should now see your system reboot, the GRUB boot loader appear for a few seconds, and then see the Linux kernel and initramfs loading. After this, you should see Funtoo Linux itself start to boot, and you should be greeted with a <code>login:</code> prompt. Funtoo Linux has been successfully installed!


=== Профили ===  
=== Profiles ===  


После того, как Вы перезагрузились в Funtoo Linux, можете продолжить подстраивать систему под Ваши нужды с помощью [[Funtoo Profiles]]. Краткое руководство по профилям приведено ниже, за более подробными сведениями обращайтесь к странице [[Funtoo Profiles]]. Существуют пять основных типов профилей: архитектура (arch), сборка (build), подархитектура (subarch), конфигурации (flavors) и дополнения (mix-ins):
Once you have rebooted into Funtoo Linux, you can further customize your system to your needs by using [[Funtoo Profiles]]. A quick introduction to profiles is included below -- consult the [[Funtoo Profiles]] page for more detailed information. There are five basic profile types: arch, build, subarch, flavors and mix-ins:


{{TableStart}}
{{TableStart}}
{{2ColHead|Тип Суб-профиля|Описание}}
{{2ColHead|Sub-Profile Type|Description}}
{{2Col|{{c|arch}}|Обычно {{c|x86-32bit}} или {{c|x86-64bit}}, это определяет тип процессора и поддержку Вашей системы. Установлено во время сборки stage и не подразумевает изменений.}}
{{2Col|{{c|arch}}|Typically {{c|x86-32bit}} or {{c|x86-64bit}}, this defines the processor type and support of your system. This is defined when your stage was built and should not be changed.}}
{{2Col|{{c|build}}|Определяет является ли Ваша система {{c|current}}, {{c|stable}} или {{c|experimental}}. {{c|current}} система будет иметь пакеты новее и размаскированные по сравнению с {{c|stable}} системами. Это также определено при сборке stage и обычно не меняется.}}
{{2Col|{{c|build}}|Defines whether your system is a {{c|current}}, {{c|stable}} or {{c|experimental}} build. {{c|current}} systems will have newer packages unmasked than {{c|stable}} systems. This is defined when your stage is built and is typically not changed.}}
{{2Col|{{c|subarch}}|Определяет оптимизации процессора для Вашей системы. subarch определен во время сборки stage3, но может быть изменено позже, если необходимо. Имейте ввиду, что параметры должны быть поддерживаемы Вашим процессором.}}
{{2Col|{{c|subarch}}|Defines CPU optimizations for your system. The subarch is set at the time the stage3 is built, but can be changed later to better settings if necessary. Be sure to pick a setting that is compatible with your CPU.}}
{{2Col|{{c|flavor}}|Определяет общий тип Вашей системы, как {{c|server}} или {{c|desktop}}, и включает соответствующий набор USE флагов.}}
{{2Col|{{c|flavor}}|Defines the general type of system, such as {{c|server}} or {{c|desktop}}, and will set default USE flags appropriate for your needs.}}
{{2Col|{{c|mix-ins}}|Определяет дополнительные опциональные параметры, в которых Вы возможно заинтересованы.}}
{{2Col|{{c|mix-ins}}|Defines various optional settings that you may be interested in enabling.}}
{{TableEnd}}
{{TableEnd}}


В каждой системе Funtoo Linux должна быть установлена ровно одна архитектура, сборка и конфигурация. Дополнения являются необязательными и при желании их можно включать и более одной за раз. Нередко конфигурации и дополнения наследуют некоторые настройки из других подпрофилей. Для просмотра текущих настроек профилей а также всей информации о наследовании, используйте {{c|epro show}}:
One arch, build and flavor must be set for each Funtoo Linux system, while mix-ins are optional and you can enable more than one if desired. Often, flavors and mix-ins inherit settings from other sub-profiles. Use {{c|epro show}} to view your current profile settings, in addition to any inheritance information:
{{console|body=
{{console|body=
(chroot) # ##i## epro show
(chroot) # ##i## epro show
Line 770: Line 831:
                           ##c##print##!c## (from desktop flavor)
                           ##c##print##!c## (from desktop flavor)
}}
}}
Некоторые примеры использования утилиты
Here are some basic examples of {{c|epro}} usage:
{{c|epro}}:
{{TableStart}}
{{TableStart}}
{{2ColHead|Описание|Комманда}}
{{2ColHead|Description|Command}}
{{2Col|Просмотр доступных профилей. Включенные профили отмечены лазурным цветом. Профили напрямую задействованые отображаются толстым шрифтом, а также  дополнительно отмечены {{c|*}} звездочкой.|{{console|body=(chroot) # ##i##epro list}}}}
{{2Col|View available profiles. Enabled profiles will be highlighted in cyan. Directly enabled profiles will be in bold and have a {{c|*}} appended.|{{console|body=(chroot) # ##i##epro list}}}}
{{2Col|Изменить системную конфигурацию.|{{console|body=(chroot) # ##i##epro flavor desktop}}}}
{{2Col|Change the system flavor.|{{console|body=(chroot) # ##i##epro flavor desktop}}}}
{{2Col|Добавить дополнение.|{{console|body=(chroot) # ##i##epro mix-in +gnome}}}}
{{2Col|Add a mix-in.|{{console|body=(chroot) # ##i##epro mix-in +gnome}}}}
{{TableEnd}}
{{TableEnd}}


===Последующие действия===  
===Next Steps===  


Если Вы -- новичек в Funtoo Linux и Gentoo Linux, посмотрите также [[Funtoo Linux First Steps]]. Эта страница поможет Вам познакомиться поближе с вашей новой системой. В нашей документации также есть особая категория [[:Category:Official Documentation|official documentation]], которая включает все документы которые официально поддерживаются для помощи в установке и использовании Funtoo Linux.
If you are brand new to Funtoo Linux and Gentoo Linux, please check out [[Funtoo Linux First Steps]], which will help get you acquainted with your new system. We also have a category for our [[:Category:Official Documentation|official documentation]], which includes all docs that we officially maintain for installation and operation of Funtoo Linux.


Еще у нас есть несколько страниц посвященных настройке вашей системы. В [[:Category:First Steps|First Steps]] содержится список таких страниц.
We also have a number of pages dedicated to setting up your system. See [[:Category:First Steps|First Steps]] for a list of these pages.


Если Ваша система нормально не загрузилась, ознакомьтесь с [[Installation Troubleshooting]] -- там перечисленны несколько шагов к возможному разрешению проблемы.[[Category:HOWTO]] [[Category:Install]] [[Category:Official Documentation]]
If your system did not boot correctly, see [[Installation Troubleshooting]] for steps you can take to resolve the problem.
[[Category:HOWTO]]
[[Category:Install]]
[[Category:Official Documentation]]

Revision as of 19:00, August 18, 2015

Install Funtoo Linux

Other languages:
Deutsch • ‎English • ‎Türkçe • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎slovenčina • ‎Ελληνικά • ‎русский • ‎українська • ‎հայերեն • ‎עברית • ‎ไทย • ‎中文(中国大陆)‎ • ‎中文(台灣)‎ • ‎日本語 • ‎한국어
   {{{title}}}
{{{body}}}

Einleitung

Dieses Dokument wurde geschrieben um Dir bei der Installation von Funtoo Linux auf PC-kompatiblen System zu helfen, während verwirrende Optionen bezüglich der Systemkonfiguration auf ein Minimum reduziert werden sollen.

Wenn Du bereits frührere Erfahrungen mit der Installation von Gentoo Linux besitzt, werden Dir viele Schritte vertraut vorkommen -- dennoch solltest Du Dir jeden Abschnitt komplett durchlesen, da es ein paar Unterschiede gibt. Sollte die Installation eines auf Gentoo basierenden Linux neu für Dich sein oder bist Du gar ein Linux-Anfänger -- willkommen! Wir haben versucht diese Installationsanweisungen auch für Neulinge verständlich zu gestalten.

Template:Anmerkung

Installation Overview

This is a basic overview of the Funtoo installation process:

  1. Download and boot the live CD of your choice.
  2. Prepare your disk.
  3. Create and mount filesystems.
  4. Install the Funtoo stage tarball of your choice.
  5. Chroot into your new system.
  6. Download the Portage tree.
  7. Configure your system and network.
  8. Install a kernel.
  9. Install a bootloader.
  10. Complete final steps.
  11. Reboot and enjoy.

Live CD

In order to install Funtoo Linux, you will first need to boot your computer using a Linux-based Live CD or USB stick. We recommend the Gentoo-based System Rescue CD as it contains lots of tools and utilities and supports both 32-bit and 64-bit systems. It can be burned to CD/DVD or installed on a USB stick. Download it here:

   Note

If using an older version of System Rescue CD, be sure to select the rescue64 kernel at the boot menu if you are installing a 64-bit system. By default, System Rescue CD used to boot in 32-bit mode though the latest version attempts to automatically detect 64-bit processors.

Network Access

Once you have booted System Rescue CD, see if you have Internet access. Internet access is required for installing Funtoo Linux:

root # ping www.google.com
PING www.google.com (216.58.217.36) 56(84) bytes of data.
64 bytes from den03s10-in-f4.1e100.net (216.58.217.36): icmp_seq=1 ttl=57 time=30.1 ms

If the ping is successful (you see 64 bytes messages as above,) then your Network is set up. Hit Control-C to stop the ping.

If you need to set up a WiFi connection for Internet access, then this needs to be done using the System Rescue CD graphical environment. Run startx to start a graphical session:

root # startx
caption

Then, use the NetworkManager applet (icon in lower right of graphical session, in taskbar) to connect to a WiFi network of your choice. Next, open a terminal inside your graphical environment, and you should be able to use the terminal to complete the rest of the steps.

Remote Install

Alternatively, you can log into System Rescue CD over the network via SSH to perform the install from another computer, and this may be more convenient way to install Funtoo Linux.

If you'd like to complete the install remotely, here's how. First, you will need to ensure that System Rescue CD has a functioning network connection. Then, you will need to set a root password for System Rescue CD:

root # passwd
New password: ********
Retype new password: ********
passwd: password updated successfully

Once you have typed in a password, you will now need to determine the IP address of System Rescue CD, and then you can use ssh to connect to it. To determine the IP address currently being used by System Rescue CD, type ifconfig:

root # ifconfig

One of the interfaces should have an IP address (listed as inet addr:) from your LAN. You can then connect remotely, from another system on your LAN, to System Rescue CD, and perform steps from the comfort of an existing OS. On your remote system, type the following, replacing 1.2.3.4 with the IP address of System Rescue CD. Connecting from an existing Linux or MacOS system would look something like this:

(remote system) $ ssh root@1.2.3.4
Password: **********
   Note

If you'd like to connect remotely from an existing Microsoft Windows system, you'll need to download an SSH client for Windows, such as PuTTY.

After you've logged in via SSH, you're now connected remotely to System Rescue CD and can perform the installation steps.

Prepare Hard Disk

In this section, we'll learn about the different ways that Funtoo Linux can boot from a hard disk. By "boot", we mean the process by which Linux starts after you press the power button on your desktop, laptop or server. You can think of "booting" as a process that starts with your computer's firmware (built-in software) running, and then "finding" the Linux kernel and running it. The Linux kernel then takes over, identifies all your hardware, and starts.

Background

   Note

If you are an absolute beginner to Linux, you may be less confused if you skip to the next section, Which to Use?

In earlier times, there was only one way to boot a PC-compatible computer. All of our desktops and servers had standard firmware called the "PC BIOS," all our hard drives used Master Boot Records at the beginning of the disk, where the PC BIOS would "look" to find boot loader code which would in turn load Linux, and our hard drives were partitioned into different regions using the standard MBR partition scheme. That was just how it was done. And we liked it that way!

Then, along came EFI and UEFI, which are new-style firmware designed to boot systems, along with GPT partition tables to define disk partitions on disks larger than 2.2TB. All of the sudden, we had a variety of options for installing and booting Linux systems, turning what once was a one-method-fits-all approach into something a lot more complex.

Let's take a moment to review the options available to you for configuring a hard drive to boot Funtoo Linux. This Install Guide uses, and recommends, the old-school method of BIOS booting and using an MBR. It works and (except for rare cases) is universally supported. There's nothing wrong with it. If your system disk is 2TB or smaller in size, it won't prevent you from using all of your disk's capacity, either.

But, there are some situations where the old-school method isn't optimal. If you have a system disk >2TB in size, then MBR partitions won't allow you to access all your storage. So that's one reason. Another reason is that there are some so-called "PC" systems out there that don't support BIOS booting anymore, and force you to use UEFI to boot. So, out of compassion for people who fall into this predicament, this Install Guide documents UEFI booting too.

Our recommendation is still to go old-school unless you have reason not to. The boot loader we will be using to load the Linux kernel in this guide is called GRUB, so we call this method the BIOS + GRUB (MBR) method. It's the traditional method of setting up a PC-compatible system to boot Linux.

If you need to use UEFI to boot, we recommend not using the MBR at all for booting, as some systems support this, but others don't. Instead, we recommend using UEFI to boot GRUB, which in turn will load Linux. We refer to this method as the UEFI + GRUB (GPT) method.

And yes, there are even more methods, some of which are documented on the Boot Methods page. We used to recommend a BIOS + GRUB (GPT) method but it is not consistently supported across a wide variety of hardware.

Which to Use?

The big question is -- which boot method should you use? Here's how to tell.

Principle 1 - Old School
If you can reliably boot System Rescue CD and it shows you an initial light blue menu, you are booting the CD using the BIOS, and it's likely that you can thus boot Funtoo Linux using the BIOS. So, go old-school and use BIOS booting, unless you have some reason to use UEFI, such as having a >2.2TB system disk. In that case, see Principle 2, as your system may also support UEFI booting.
Principle 2 - New School
If you can reliably boot System Rescue CD and it shows you an initial black and white menu -- congratulations, your system is configured to support UEFI booting. This means that you are ready to install Funtoo Linux to boot via UEFI. Your system may still support BIOS booting, but just be trying UEFI first. You can poke around in your BIOS boot configuration and play with this.
   Note

Advanced Users May Wonder: What's the Big Difference between Old School and New School?: Here's the deal. If you go with old-school MBR partitions, your /boot partition will be an ext2 filesystem, and you'll use fdisk to create your MBR partitions. If you go with new-school GPT partitions and UEFI booting, your /boot partition will be a vfat filesystem, because this is what UEFI is able to read, and you will use gdisk to create your GPT partitions. And you'll install GRUB a bit differently. That's about all it comes down to, in case you were curious.

To install Funtoo Linux to boot via the New School UEFI method, you must boot System Rescue CD using UEFI. If you successfully boot sysresccd with UEFI, you will see an initial black and white screen to select the mode in which you will boot system rescue cd. Otherwise, if you see a blue screen with black text, UEFI will not be active and you will not be able to set up UEFI booting later in the install process!

   Note

Some motherboards may appear to support UEFI, but don't. Do your research. For example, the Award BIOS in my Gigabyte GA-990FXA-UD7 rev 1.1 has an option to enable UEFI boot for CD/DVD. This is not sufficient for enabling UEFI boot for hard drives and installing Funtoo Linux. UEFI must be supported for both removable media (so you can boot System Rescue CD using UEFI) as well as fixed media (so you can boot your new Funtoo Linux installation.) It turns out that later revisions of this board (rev 3.0) have a new BIOS that fully supports UEFI boot. This may point to a third principle -- know thy hardware.

Old-School (BIOS/MBR) Method

   Note

Use this method if you are booting using your BIOS, and if your System Rescue CD initial boot menu was light blue. If you're going to use the new-school method, click here to jump down to UEFI/GPT.

First, it's a good idea to make sure that you've found the correct hard disk to partition. Try this command and verify that /dev/sda is the disk that you want to partition:

root # fdisk -l /dev/sda

Disk /dev/sda: 640.1 GB, 640135028736 bytes, 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt

root #         Start          End    Size  Type            Name
 1         2048   1250263694  596.2G  Linux filesyste Linux filesystem

Now, it is recommended that you erase any existing MBR or GPT partition tables on the disk, which could confuse the system's BIOS at boot time. We accomplish this using sgdisk:

   Warning

This will make any existing partitions inaccessible! You are strongly cautioned and advised to backup any critical data before proceeding.

root # sgdisk --zap-all /dev/sda

Creating new GPT entries.
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.

This output is also nothing to worry about, as the command still succeded:

***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. 
***************************************************************

Now we will use fdisk to create the MBR partition table and partitions:

root # fdisk /dev/sda

Within fdisk, follow these steps:

Empty the partition table:

Command (m for help): o ↵

Create Partition 1 (boot):

Command (m for help): n ↵
Partition type (default p): 
Partition number (1-4, default 1): 
First sector: 
Last sector: +128M ↵

Create Partition 2 (swap):

Command (m for help): n ↵
Partition type (default p): 
Partition number (2-4, default 2): 
First sector: 
Last sector: +2G ↵
Command (m for help): t ↵ 
Partition number (1,2, default 2): 
Hex code (type L to list all codes): 82 ↵

Create the root partition:

Command (m for help): n ↵
Partition type (default p): 
Partition number (3,4, default 3): 
First sector: 
Last sector: 

Verify the partition table:

Command (m for help): p

Disk /dev/sda: 298.1 GiB, 320072933376 bytes, 625142448 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x82abc9a6

Device    Boot     Start       End    Blocks  Id System
/dev/sda1           2048    264191    131072  83 Linux
/dev/sda2         264192   4458495   2097152  82 Linux swap / Solaris
/dev/sda3        4458496 625142447 310341976  83 Linux

Write the parition table to disk:

Command (m for help): w

Your new MBR partition table will now be written to your system disk.

   Note

You're done with partitioning! Now, jump over to Creating filesystems.

New-School (UEFI/GPT) Method

   Note

Use this method if you are interested in booting using UEFI, and if your System Rescue CD initial boot menu was black and white. If it was light blue, this method will not work.

The gdisk commands to create a GPT partition table are as follows. Adapt sizes as necessary, although these defaults will work for most users. Start gdisk:

root # gdisk /dev/sda

Within gdisk, follow these steps:

Create a new empty partition table (This will erase all data on the disk when saved):

Command: o ↵
This option deletes all partitions and creates a new protective MBR.
Proceed? (Y/N): y ↵

Create Partition 1 (boot):

Command: n ↵
Partition Number: 1 ↵
First sector: 
Last sector: +500M ↵
Hex Code: EF00 ↵

Create Partition 2 (swap):

Command: n ↵
Partition Number: 2 ↵
First sector: 
Last sector: +4G ↵
Hex Code: 8200 ↵

Create Partition 3 (root):

Command: n ↵
Partition Number: 3 ↵
First sector: 
Last sector:  (for rest of disk)
Hex Code: 

Along the way, you can type "p" and hit Enter to view your current partition table. If you make a mistake, you can type "d" to delete an existing partition that you created. When you are satisfied with your partition setup, type "w" to write your configuration to disk:

Write Partition Table To Disk:

Command: w ↵
Do you want to proceed? (Y/N): Y ↵

The partition table will now be written to the disk and gdisk will close.

Now, your GPT/GUID partitions have been created, and will show up as the following block devices under Linux:

  • /dev/sda1, which will be used to hold the /boot filesystem,
  • /dev/sda2, which will be used for swap space, and
  • /dev/sda3, which will hold your root filesystem.
   Tip

You can verify that the block devices above were correctly created by running the command lsblk.

Creating filesystems

   Note

This section covers both BIOS and UEFI installs. Don't skip it!

Before your newly-created partitions can be used, the block devices that were created in the previous step need to be initialized with filesystem metadata. This process is known as creating a filesystem on the block devices. After filesystems are created on the block devices, they can be mounted and used to store files.

Let's keep this simple. Are you using old-school MBR partitions? If so, let's create an ext2 filesystem on /dev/sda1:

root # mkfs.ext2 /dev/sda1

If you're using new-school GPT partitions for UEFI, you'll want to create a vfat filesystem on /dev/sda1, because this is what UEFI is able to read:

root # mkfs.vfat -F 32 /dev/sda1

Now, let's create a swap partition. This partition will be used as disk-based virtual memory for your Funtoo Linux system.

You will not create a filesystem on your swap partition, since it is not used to store files. But it is necessary to initialize it using the mkswap command. Then we'll run the swapon command to make your newly-initialized swap space immediately active within the live CD environment, in case it is needed during the rest of the install process:

root # mkswap /dev/sda2
root # swapon /dev/sda2

Now, we need to create a root filesystem. This is where Funtoo Linux will live. We generally recommend ext4 or XFS root filesystems. If you're not sure, choose ext4. Here's how to create a root ext4 filesystem:

root # mkfs.ext4 /dev/sda3

...and here's how to create an XFS root filesystem, if you prefer to use XFS instead of ext4:

root # mkfs.xfs /dev/sda3

Your filesystems (and swap) have all now been initialized, so that that can be mounted (attached to your existing directory heirarchy) and used to store files. We are ready to begin installing Funtoo Linux on these brand-new filesystems.

   Warning

When deploying an OpenVZ host, please use ext4 exclusively. The Parallels development team tests extensively with ext4, and modern versions of openvz-rhel6-stable are not compatible with XFS, and you may experience kernel bugs.

Mounting filesystems

Mount the newly-created filesystems as follows, creating /mnt/funtoo as the installation mount point:

root # mkdir /mnt/funtoo
root # mount /dev/sda3 /mnt/funtoo
root # mkdir /mnt/funtoo/boot
root # mount /dev/sda1 /mnt/funtoo/boot

Optionally, if you have a separate filesystem for /home or anything else:

root # mkdir /mnt/funtoo/home
root # mount /dev/sda4 /mnt/funtoo/home

If you have /tmp or /var/tmp on a separate filesystem, be sure to change the permissions of the mount point to be globally-writeable after mounting, as follows:

root # chmod 1777 /mnt/funtoo/tmp

Setting the Date

   Important

If your system's date and time are too far off (typically by months or years,) then it may prevent Portage from properly downloading source tarballs. This is because some of our sources are downloaded via HTTPS, which use SSL certificates and are marked with an activation and expiration date. However, if your system time is relatively close to correct, you can probably skip this step for now.

Now is a good time to verify the date and time are correctly set to UTC. Use the date command to verify the date and time:

root # date
Fri Jul 15 19:47:18 UTC 2011

If the date and/or time need to be corrected, do so using date MMDDhhmmYYYY, keeping in mind hhmm are in 24-hour format. The example below changes the date and time to "July 16th, 2011 @ 8:00PM" UTC:

root # date 071620002011
Fri Jul 16 20:00:00 UTC 2011

Once you have set the system clock, it's a very good idea to copy the time to the hardware clock, so it persists across reboots:

root # hwclock --systohc

Installing the Stage 3 tarball

Now that filesystems are created and your hardware and system clock are set, the next step is downloading the initial Stage 3 tarball. The Stage 3 is a pre-compiled system used as a starting point to install Funtoo Linux. Notice: if you're using virtual machines (like Vbox) generic stage3 images are preferred rather than cpu-optimized ones.

To download the correct build of Funtoo Linux for your system, head over to the Subarches page. Subarches are builds of Funtoo Linux that are designed to run on a particular type of CPU, to offer the best possible performance. They also take advantage of the instruction sets available for each CPU.

The Subarches page lists all CPU-optimized versions of Funtoo Linux. Find the one that is appropriate for the type of CPU that your system has, and then click on its name in the first column (such as corei7, for example.) You will then go to a page dedicated to that subarch, and the available stage3's available for download will be listed.

For most subarches, you will have several stage3's available to choose from. This next section will help you understand which one to pick.

Which Build?

If you're not sure, pick funtoo-current.

Funtoo Linux has various different 'builds':

BuildDescription
funtoo-currentThe most commonly-selected build of Funtoo Linux. Receives rapid updates and preferred by desktop users.
funtoo-stableEmphasizes less-frequent package updates and trusted, reliable versions of packages over the latest versions.

Which Variant?

If you're not sure, pick standard.

Our "regular" stage3's are listed with a variant of standard. The following variant builds are available:

VariantDescription
standardThe "standard" version of Funtoo Linux
pure64A 64-bit build that drops multilib (32-bit compatibility) support. Can be ideal for server systems.
hardenedIncludes PIE/SSP toolchain for enhanced security. PIE does require the use of PaX in the kernel, while SSP works with any kernel, and provides enhanced security in user-space to avoid stack-based exploits. For expert users.

Download the Stage3

Once you have found the stage3 that you would like to download, use wget to download the Stage 3 tarball you have chosen to use as the basis for your new Funtoo Linux system. It should be saved to the /mnt/funtoo directory as follows:

root # cd /mnt/funtoo
root # wget http://build.funtoo.org/funtoo-current/x86-64bit/generic_64/stage3-latest.tar.xz

Note that 64-bit systems can run 32-bit or 64-bit stages, but 32-bit systems can only run 32-bit stages. Make sure that you select a Stage 3 build that is appropriate for your CPU. If you are not certain, it is a safe bet to choose the generic_64 or generic_32 stage. Consult the Subarches page for more information.

Once the stage is downloaded, extract the contents with the following command, substituting in the actual name of your stage 3 tarball:

root # tar xpf stage3-latest.tar.xz
   Important

It is very important to use tar's "p" option when extracting the Stage 3 tarball - it tells tar to preserve any permissions and ownership that exist within the archive. Without this option, your Funtoo Linux filesystem permissions will be incorrect.

Chroot into Funtoo

To install Funtoo Linux, the chroot command is first used. The chroot command will "switch into" the new Funtoo Linux system, so the commands you execute after running "chroot" will run within your newly-extracted Funtoo Linux system.

Before chrooting, there are a few things that need to be done to set up the chroot environment. You will need to mount /proc, /sys and /dev inside your new system. Use the following commands to do so:

root # cd /mnt/funtoo
root # mount -t proc none proc
root # mount --rbind /sys sys
root # mount --rbind /dev dev

You'll also want to copy over resolv.conf in order to have proper resolution of Internet hostnames from inside the chroot:

root # cp /etc/resolv.conf /mnt/funtoo/etc/

Now you can chroot into your new system. Use env before chroot to ensure that no environment settings from the installation media are pulled in to your new system:

root # env -i HOME=/root TERM=$TERM chroot . bash -l
   Note

For users of live CDs with 64-bit kernels installing 32-bit systems: Some software may use uname -r to check whether the system is 32 or 64-bit. You may want append linux32 to the chroot command as a workaround, but it's generally not needed.

   Important

If you receive the error "chroot: failed to run command `/bin/bash': Exec format error", it is most likely because you are running a 32-bit kernel and trying to execute 64-bit code. Make sure that you have selected the proper type of kernel when booting SystemRescueCD.

It's also a good idea to change the default command prompt while inside the chroot. This will avoid confusion if you have to change terminals. Use this command:

root # export PS1="(chroot) $PS1"

Test internet name resolution from within the chroot:

root # ping -c 5 google.com

If you can't ping, make sure /etc/resolv.conf doesn't contain things like 127.0.x.x addresses, if it does, change the 127.0.x.x entry to 8.8.8.8 -- Google's public dns address. Make sure to replace this with your dns of choice once the system is installed.


Congratulations! You are now chrooted inside a Funtoo Linux system. Now it's time to get Funtoo Linux properly configured so that Funtoo Linux will start successfully, without any manual assistance, when your system is restarted.

Downloading the Portage tree

   Note

For an alternative way to do this, see Installing Portage From Snapshot.

Now it's time to install a copy of the Portage repository, which contains package scripts (ebuilds) that tell portage how to build and install thousands of different software packages. To create the Portage repository, simply run emerge --sync from within the chroot. This will automatically clone the portage tree from GitHub:

(chroot) # emerge --sync
   Important

If you receive the error with initial emerge --sync due to git protocol restrictions, set the SYNC variable in /etc/portage/make.conf to "https://github.com/funtoo/ports-2012.git"

Configuring your system

As is expected from a Linux distribution, Funtoo Linux has its share of configuration files. The one file you are absolutely required to edit in order to ensure that Funtoo Linux boots successfully is /etc/fstab. The others are optional.

Using Nano

The default editor included in the chroot environment is called nano. To edit one of the files below, run nano as follows:

(chroot) # nano /etc/fstab

When in the editor, you can use arrow keys to move the cursor, and common keys like backspace and delete will work as expected. To save the file, press Control-X, and answer y when prompted to save the modified buffer if you would like to save your changes.

Configuration Files

Here are a full list of files that you may want to edit, depending on your needs:

FileDo I need to change it?Description
/etc/fstab YES - required Mount points for all filesystems to be used at boot time. This file must reflect your disk partition setup. We'll guide you through modifying this file below.
/etc/localtime Maybe - recommended Your timezone, which will default to UTC if not set. This should be a symbolic link to something located under /usr/share/zoneinfo (e.g. /usr/share/zoneinfo/America/Montreal)
/etc/make.conf (symlink) - also known as:
/etc/portage/make.conf
Maybe - recommended Parameters used by gcc (compiler), portage, and make. It's a good idea to set MAKEOPTS. This is covered later in this document.
/etc/conf.d/hostname Maybe - recommended Used to set system hostname. Set the hostname variable to the fully-qualified (with dots, ie. foo.funtoo.org) name if you have one. Otherwise, set to the local system hostname (without dots, ie. foo). Defaults to localhost if not set.
/etc/hosts No You no longer need to manually set the hostname in this file. This file is automatically generated by /etc/init.d/hostname.
/etc/conf.d/keymaps Optional Keyboard mapping configuration file (for console pseudo-terminals). Set if you have a non-US keyboard. See Funtoo Linux Localization.
/etc/conf.d/hwclock Optional How the time of the battery-backed hardware clock of the system is interpreted (UTC or local time). Linux uses the battery-backed hardware clock to initialize the system clock when the system is booted.
/etc/conf.d/modules Optional Kernel modules to load automatically at system startup. Typically not required. See Additional Kernel Resources for more info.
/etc/conf.d/consolefont Optional Allows you to specify the default console font. To apply this font, enable the consolefont service by running rc-update add consolefont.
profiles Optional Some useful portage settings that may help speed up intial configuration.

If you're installing an English version of Funtoo Linux, you're in luck, as most of the configuration files can be used as-is. If you're installing for another locale, don't worry. We will walk you through the necessary configuration steps on the Funtoo Linux Localization page, and if needed, there's always plenty of friendly, helpful support available. (See Community)

Let's go ahead and see what we have to do. Use nano -w <name_of_file> to edit files -- the "-w" argument disables word-wrapping, which is handy when editing configuration files. You can copy and paste from the examples.

   Warning

It's important to edit your /etc/fstab file before you reboot! You will need to modify both the "fs" and "type" columns to match the settings for your partitions and filesystems that you created with gdisk or fdisk. Skipping this step may prevent Funtoo Linux from booting successfully.

/etc/fstab

/etc/fstab is used by the mount command which is run when your system boots. Lines in this file inform mount about filesystems to be mounted and how they should be mounted. In order for the system to boot properly, you must edit /etc/fstab and ensure that it reflects the partition configuration you used earlier in the install process. If you can't remember the partition configuration that you used earlier, the lsblk command may be of help to you:

(chroot) # nano -w /etc/fstab
   /etc/fstab - An example fstab file
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#
# See the manpage fstab(5) for more information.
#
# <fs>	     <mountpoint>  <type>  <opts>         <dump/pass>

/dev/sda1    /boot         ext2    noauto,noatime 1 2
/dev/sda2    none          swap    sw             0 0
/dev/sda3    /             ext4    noatime        0 1
#/dev/cdrom  /mnt/cdrom    auto    noauto,ro      0 0
   Note

Currently, our default /etc/fstabfile has the root filesystem as /dev/sda4 and the swap partition as /dev/sda3. These will need to be changed to /dev/sda3 and /dev/sda2, respectively.

   Note

If you're using UEFI to boot, change the /dev/sda1 line so that it says vfat instead of ext2. Similarly, make sure that the /dev/sda3 line specifies either xfs or ext4, depending on which filesystem you chose earlier on in the installation process when you created filesystems.

/etc/localtime

/etc/localtime is used to specify the timezone that your machine is in, and defaults to UTC. If you would like your Funtoo Linux system to use local time, you should replace /etc/localtime with a symbolic link to the timezone that you wish to use.

(chroot) # ln -sf /usr/share/zoneinfo/MST7MDT /etc/localtime

The above sets the timezone to Mountain Standard Time (with daylight savings). Type ls /usr/share/zoneinfo to list available timezones. There are also sub-directories containing timezones described by location.

/etc/portage/make.conf

MAKEOPTS can be used to define how many parallel compilations should occur when you compile a package, which can speed up compilation significantly. A rule of thumb is the number of CPUs (or CPU threads) in your system plus one. If, for example, you have a dual core processor without hyper-threading, then you would set MAKEOPTS to 3:

MAKEOPTS="-j3" 

If you are unsure about how many processors/threads you have, then use nproc to help you.

(chroot) # nproc
16

Set MAKEOPTS to this number plus one:

MAKEOPTS="-j17"

USE flags define what functionality is enabled when packages are built. It is not recommended to add a lot of USE flags during installation; you should wait until you have a working, bootable system before changing your USE flags. A USE flag prefixed with a minus ("-") sign tells Portage not to use the flag when compiling. A Funtoo guide to USE flags will be available in the future. For now, you can find out more information about USE flags in the Gentoo Handbook.

LINGUAS tells Portage which local language to compile the system and applications in (those who use LINGUAS variable like OpenOffice). It is not usually necessary to set this if you use English. If you want another language such as French (fr) or German (de), set LINGUAS appropriately:

LINGUAS="fr"

/etc/conf.d/hwclock

If you dual-boot with Windows, you'll need to edit this file and change the value of clock from UTC to local, because Windows will set your hardware clock to local time every time you boot Windows. Otherwise you normally wouldn't need to edit this file.

(chroot) # nano -w /etc/conf.d/hwclock

Localization

By default, Funtoo Linux is configured with Unicode (UTF-8) enabled, and for the US English locale and keyboard. If you would like to configure your system to use a non-English locale or keyboard, see Funtoo Linux Localization.

Introducing Portage

Portage, the Funtoo Linux package manager has a command called emerge which is used to build and install packages from source. It also takes care of installing all of the package's dependencies. You call emerge like this:

(chroot) # emerge packagename

When you install a package by specifying its name in the command-line, Portage records its name in the /var/lib/portage/world file. It does so because it assumes that, since you have installed it by name, you want to consider it part of your system and want to keep the package updated in the future. This is a handy feature, since when packages are being added to the world set, we can update our entire system by typing:

(chroot) # emerge --sync
(chroot) # emerge -auDN @world

This is the "official" way to update your Funtoo Linux system. Above, we first update our Portage tree using git to grab the latest ebuilds (scripts), and then run an emerge command to update the world set of packages. The options specified tell emerge to:

  • a - show us what will be emerged, and ask us if we want to proceed
  • u - update the packages we specify -- don't emerge them again if they are already emerged.
  • D - Consider the entire dependency tree of packages when looking for updates. In other words, do a deep update.
  • N - Update any packages that have changed (new) USE settings.

You should also consider passing --with-bdeps=y when emerging @world, at least once in a while. This will update build dependencies as well.

Of course, sometimes we want to install a package but not add it to the world file. This is often done because you only want the package installed temporarily or because you know the package in question is a dependnecy of another package. If this behavior is desired, you call emerge like this:

(chroot) # emerge -1 packagename

Advanced users may be interested in the Emerge wiki page.

Updating World

Now is actually a very good time to update the entire system and it can be a good idea to do so prior to first boot.

(chroot) # emerge --sync
(chroot) # emerge -auDN @world
   Important

Make sure you read any post emerge messages and follow their instructions. This is especially true if you have upgraded perl or python.

Kernel

Starting mid-May 2015, Funtoo Linux stage3's include a pre-built debian-sources kernel to make installation faster and easier. To see if debian-sources is installed, type:

(chroot) # emerge -s debian-sources
Searching...    
[ Results for search key : debian-sources ]
[ Applications found : 1 ]

*  sys-kernel/debian-sources
      Latest version available: 3.19.3
      Latest version installed: 3.19.3
      Size of files: 81,292 kB
      Homepage:      http://www.debian.org
      Description:   Debian Sources (and optional binary kernel)
      License:       GPL-2

If a version is listed under Latest version installed, then debian-sources is already pre-built for you and you can skip the rest of the Kernel section, and proceed to the Installing a Bootloader section.

Building the Kernel

If you need to build a kernel for Funtoo Linux, please follow these steps:

   Note

See Funtoo Linux Kernels for a full list of kernels supported in Funtoo Linux. We recommend debian-sources for new users.

   Important

debian-sources with binary USE flag requires at least 14GB free in /var/tmp and takes around 1 hour to build on a Intel Core i7 Processor.

Let's emerge our kernel:

(chroot) # emerge debian-sources

Once emerge completes, you'll have a brand new kernel and initramfs installed to /boot, plus kernel headers installed in /usr/src/linux, and you'll be ready to configure the boot loader to load these to boot your Funtoo Linux system.

   Warning

If you have a RAID in your machine, the kernel installation will pull in the mdadm tool as a dependency. It is important to edit the /etc/mdadm.conf file prior to rebooting the machine so the RAID is properly recognised and set up before the kernel attempts to mount it in the tree. Failing to do so can result in an unusable or even unbootable system! For specific details, consult the mdadm man page man mdadm or the mdadm ebuild page.

   Note

NVIDIA card users: the binary USE flag installs the Nouveau drivers which cannot be loaded at the same time as the proprietary drivers, and cannot be unloaded at runtime because of KMS. You need to blacklist it under /etc/modprobe.d/.

   Note

For an overview of other kernel options for Funtoo Linux, see Funtoo Linux Kernels. There may be modules that the Debian kernel doesn't include, a situation where genkernel would be useful. Also be sure to see hardware compatibility information.

Installing a Bootloader

These install instructions show you how to use GRUB to boot using BIOS (old-school) or UEFI (new-school). As of boot-update-1.7.2, now in Portage, the steps are very similar.

First, emerge boot-update. This will also cause grub-2 and efibootmgr to be merged, since they are dependencies:

(chroot) # emerge boot-update

Then, edit /etc/boot.conf using nano and specify "Funtoo Linux genkernel" as the default setting at the top of the file, replacing "Funtoo Linux".

/etc/boot.conf should now look like this:

   /etc/boot.conf
boot {
	generate grub
	default "Funtoo Linux genkernel" 
	timeout 3 
}

"Funtoo Linux" {
	kernel bzImage[-v]
}

"Funtoo Linux genkernel" {
	kernel kernel[-v]
	initrd initramfs[-v]
	params += real_root=auto 
} 

"Funtoo Linux better-initramfs" {
	kernel vmlinuz[-v]
	initrd /initramfs.cpio.gz
}

If you are booting a custom or non-default kernel, please read man boot.conf for information on the various options available to you.

Old School (BIOS) MBR

When using "old school" BIOS booting, run the following command to install GRUB to your MBR, and generate the /boot/grub/grub.cfg configuration file that GRUB will use for booting:

(chroot) # grub-install --target=i386-pc --no-floppy /dev/sda
(chroot) # boot-update

New School (UEFI) Boot Entry

If you're using "new school" UEFI booting, run of the following sets of commands, depending on whether you are installing a 64-bit or 32-bit system. This will add GRUB as a UEFI boot entry.

For x86-64bit systems:

(chroot) # grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
(chroot) # boot-update

For x86-32bit systems:

(chroot) # grub-install --target=i386-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
(chroot) # boot-update

First Boot, and in the future...

OK -- you are ready to boot!

You only need to run grub-install when you first install Funtoo Linux, but you need to re-run boot-update every time you modify your /etc/boot.conf file or add new kernels to your system. This will regenerate /boot/grub/grub.cfg so that you will have new kernels available in your GRUB boot menu, the next time you reboot.

Configuring your network

It's important to ensure that you will be able to connect to your local-area network after you reboot into Funtoo Linux. There are three approaches you can use for configuring your network: NetworkManager, dhcpcd, and the Funtoo Linux Networking scripts. Here's how to choose which one to use based on the type of network you want to set up.

Wi-Fi

For laptop/mobile systems where you will be using Wi-Fi, roaming, and connecting to various networks NetworkManager is strongly recommended. Since Wi-Fi cards require firmware to operate, it is also recommended that you emerge the linux-firmware ebuild:

(chroot) # emerge linux-firmware networkmanager
(chroot) # rc-update add NetworkManager default

The above command will ensure that NetworkManager starts after you boot into Funtoo Linux. Once you've completed these installation steps and have booted into Funtoo Linux, you can use the addwifi command to connect to a Wi-Fi access point:

root # addwifi -S wpa -K 'wifipassword' mywifinetwork

For more information about NetworkManager, see the NetworkManager package page.

   Note

wpa_supplicant is also a good choice for wireless network connections. See the net-wireless/wpa_supplicant package for steps involved in setting up wpa_supplicant.

Desktop (Wired DHCP)

For a home desktop or workstation with wired Ethernet that will use DHCP, the simplest and most effective option to enable network connectivity is to simply add dhcpcd to the default runlevel:

(chroot) # rc-update add dhcpcd default

When you reboot, dhcpcd will run in the background and manage all network interfaces and use DHCP to acquire network addresses from a DHCP server.

If your upstream DHCP server is dnsmasq, it can be configured to assign addresses via mac address to make servers on DHCP feasible.

Server (Static IP)

For servers, the Funtoo Linux Networking scripts are recommended. They are optimized for static configurations and things like virtual ethernet bridging for virtualization setups. See Funtoo Linux Networking for information on how to use Funtoo Linux's template-based network configuration system.

Hostname

By default Funtoo uses "localhost" as hostname. Although the system will work perfectly fine using this name, some ebuilds refuse to install when detecting localhost as hostname. It also may create confusion if several systems use the same hostname. Therefore, it is advised to change it to a more meaningful name. The hostname itself is arbitrary, meaning you can choose almost any combination of characters, as long as it makes sense to the system administrator. To change the hostname, edit

(chroot) # nano /etc/conf.d/hostname

Look for the line starting with hostname and change the entry between the quotes. Save the file, on the next boot Funtoo will use the new hostname.

   Warning

Do not use special characters in the hostname, as the shell may interpret these, leading to unpredictable results. Use the Latin alphabet: a-z, A-Z, 0-9

   Tip

Use short hostnames (up to 8 or 10 characters) to prevent the terminal screen being filled with the hostname, leaving little space for the command itself. This become particularly poignant when coding long command strings in various programming languages like Bash, Python, SQL and Perl

Finishing Steps

Set your root password

It's imperative that you set your root password before rebooting so that you can log in.

(chroot) # passwd

Restart your system

Now is the time to leave chroot, to unmount Funtoo Linux partitions and files and to restart your computer. When you restart, the GRUB boot loader will start, load the Linux kernel and initramfs, and your system will begin booting.

Leave the chroot, change directory to /mnt, unmount your Funtoo partitions, and reboot.

(chroot) # exit
root # cd /mnt
root # umount -lR funtoo
root # reboot
   Note

System Rescue CD will gracefully unmount your new Funtoo filesystems as part of its normal shutdown sequence.

You should now see your system reboot, the GRUB boot loader appear for a few seconds, and then see the Linux kernel and initramfs loading. After this, you should see Funtoo Linux itself start to boot, and you should be greeted with a login: prompt. Funtoo Linux has been successfully installed!

Profiles

Once you have rebooted into Funtoo Linux, you can further customize your system to your needs by using Funtoo Profiles. A quick introduction to profiles is included below -- consult the Funtoo Profiles page for more detailed information. There are five basic profile types: arch, build, subarch, flavors and mix-ins:

Sub-Profile TypeDescription
archTypically x86-32bit or x86-64bit, this defines the processor type and support of your system. This is defined when your stage was built and should not be changed.
buildDefines whether your system is a current, stable or experimental build. current systems will have newer packages unmasked than stable systems. This is defined when your stage is built and is typically not changed.
subarchDefines CPU optimizations for your system. The subarch is set at the time the stage3 is built, but can be changed later to better settings if necessary. Be sure to pick a setting that is compatible with your CPU.
flavorDefines the general type of system, such as server or desktop, and will set default USE flags appropriate for your needs.
mix-insDefines various optional settings that you may be interested in enabling.

One arch, build and flavor must be set for each Funtoo Linux system, while mix-ins are optional and you can enable more than one if desired. Often, flavors and mix-ins inherit settings from other sub-profiles. Use epro show to view your current profile settings, in addition to any inheritance information:

(chroot) #  epro show

=== Enabled Profiles: ===

        arch:  x86-64bit
       build:  current
     subarch:  intel64-haswell
      flavor:  desktop
     mix-ins:  gnome


=== All inherited flavors from desktop flavor: ===

                     workstation (from desktop flavor)
                            core (from workstation flavor)
                         minimal (from core flavor)

=== All inherited mix-ins from desktop flavor: ===

                               X (from workstation flavor)
                           audio (from workstation flavor)
                             dvd (from workstation flavor)
                           media (from workstation flavor)
      mediadevice-audio-consumer (from media mix-in)
                mediadevice-base (from mediadevice-audio-consumer mix-in)
      mediadevice-video-consumer (from media mix-in)
                mediadevice-base (from mediadevice-video-consumer mix-in)
        mediaformat-audio-common (from media mix-in)
          mediaformat-gfx-common (from media mix-in)
        mediaformat-video-common (from media mix-in)
                  console-extras (from workstation flavor)
                           print (from desktop flavor)

Here are some basic examples of epro usage:

DescriptionCommand
View available profiles. Enabled profiles will be highlighted in cyan. Directly enabled profiles will be in bold and have a * appended.
(chroot) # epro list
Change the system flavor.
(chroot) # epro flavor desktop
Add a mix-in.
(chroot) # epro mix-in +gnome

Next Steps

If you are brand new to Funtoo Linux and Gentoo Linux, please check out Funtoo Linux First Steps, which will help get you acquainted with your new system. We also have a category for our official documentation, which includes all docs that we officially maintain for installation and operation of Funtoo Linux.

We also have a number of pages dedicated to setting up your system. See First Steps for a list of these pages.

If your system did not boot correctly, see Installation Troubleshooting for steps you can take to resolve the problem.