Difference between revisions of "Install/fr"

From Funtoo
Jump to navigation Jump to search
(Created page with "=== Téléchargement de l'arbre Portage ===")
(171 intermediate revisions by 5 users not shown)
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.}}
== Introduction ==  
== Introduction ==


Ce document a été produit afin de vous permettre d'installer Funtoo Linux sur un PC compatible. Il a été conçu de façon à réduire au minimum possible les options de configuration afin d'en accélérer et d'en faciliter l'installation.
Ce document a été produit afin de vous permettre d'installer Funtoo Linux sur un PC compatible. Sa conception réduit au minimum les options de configuration. Cela permet d'installer la distribution  le plus rapidement possible et en toute simplicité.


Si vous avez déjà installé Gentoo Linux, plusieurs étapes vous seront familières. Cependant, prenez le temps de lire le document au complet. Il y a quelques différences.
Si vous avez déjà de l'expérience sur l'installation Gentoo Linux, plusieurs étapes vous seront familières. Cependant, prenez le temps de lire le document en entier, car il y a quelques différences.


Si vous installez un système basé sur Gentoo Linux pour la première fois ou si vous êtes tout simplement un nouveau venu dans le monde de Linux, nous vous souhaitons la bienvenue. Nous avons tout mis en oeuvre afin que les instructions d'installation soient comprises par tous.
Si vous installez un système basé sur Gentoo Linux pour la première fois, ou si vous êtes tout simplement un nouveau venu dans le monde de Linux, nous vous souhaitons la bienvenue ! Nous avons tout mis en œuvre afin que ces instructions d'installation soient comprises par tous.


{{Note|Si vous installez Funtoo Linux sur une architecture de type [[Funtoo Linux Installation on ARM|ARM]], veuillez consulter le document [[Funtoo Linux Installation on ARM]] pour voir les différences notables en rapport avec le support ARM.}}
{{Note|Si vous installez Funtoo Linux sur une architecture de type [[Funtoo Linux Installation on ARM|ARM]], référez-vous au document [[Funtoo Linux Installation on ARM]] pour les différences notables en rapport avec le support ARM.}}


== Vue d'ensemble de l'installation ==  
== Vue d'ensemble de l'installation ==  


Voici un aperçu de base du processus d'installation de Funtoo Linux.
Voici un aperçu succinct de la procédure d'installation de Funtoo Linux.


# [[#Live CD|Téléchargement et démarrage sur un Live CD]].
# [[#Live CD|Téléchargement et démarrage sur un Live CD]].
#[[#Préparation du disque dur]].
# [[#Préparation du disque dur|Préparation du disque dur]].
# [[#Creating filesystems|Create]] and [[#Mounting filesystems|mount]] filesystems.
# [[#Formatage des partitions|Formatage]] et [[#Montage des partitions|montage]] des partitions.
# [[#Installing the Stage 3 tarball|Install the Funtoo stage tarball]] of your choice.
# [[#Installation du Stage 3|Installation du Stage 3 Funtoo]] de votre choix.
# [[#Chroot into Funtoo|Chroot into your new system]].
# [[#Passage à la racine de Funtoo|Passage à la racine du nouveau système]].
# [[#Downloading the Portage tree|Download the Portage tree]].
# [[#Téléchargement de l'arbre Portage|Téléchargement de l'arbre Portage]].
# [[#Configuring your system|Configure your system]] and [[#Configuring your network|network]].
# [[#Configuration du système|Configuration du système]] et [[#Configuration du réseau|réseau]].
# [[#Configuring and installing the Linux kernel|Install a kernel]].
# [[#Installation d'un noyau Linux|Installation d'un noyau]].
# [[#Installing a Bootloader|Install a bootloader]].
# [[#Installation du gestionnaire d'amorçage|Installation du gestionnaire d'amorçage]].
# [[#Finishing Steps|Complete final steps]].
# [[#Étapes de finalisation|Complétion de l'installation]].
# [[#Restart your system|Reboot and enjoy]].
# [[#Redémarrage du système|Redémarrage]].


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


Pour installer Funtoo, vous devrez d'abord démarrer votre ordinateur à l'aide d'un Live CD ou d'une clé USB  basé sur Linux. Nous vous recommandons SystemRescueCD basé sur Gentoo, car il offre beaucoup d'outils et d'utilitaires et supporte les systèmes 32-bit et 64-bit. Il peut être gravé sur un CD / DVD ou installé sur une clé USB. Téléchargez-le ici:
Pour installer Funtoo, vous devrez d'abord démarrer votre ordinateur à l'aide d'un Live CD ou d'une clé USB  basé sur Linux. Nous vous recommandons SystemRescueCD qui s'appuie sur Gentoo Linux. Il offre beaucoup d'outils et d'utilitaires et il supporte autant les systèmes 32-bit que les systèmes 64-bit. Vous pouvez le graver sur un CD / DVD ou l'installer sur une clé USB. Téléchargez-le ici:


* Téléchargement depuis '''[http://ftp.osuosl.org/pub/funtoo/distfiles/sysresccd/systemrescuecd-x86-4.5.0.iso osuosl.org]'''
* Téléchargement depuis '''[http://ftp.osuosl.org/pub/funtoo/distfiles/sysresccd/sysresccd-4.7.0_zfs_0.6.5.4.iso osuosl.org]'''
* Téléchargement depuis '''[http://build.funtoo.org/distfiles/sysresccd/systemrescuecd-x86-4.5.0.iso funtoo.org]'''
* Téléchargement depuis '''[http://build.funtoo.org/distfiles/sysresccd/sysresccd-4.7.0_zfs_0.6.5.4.iso funtoo.org]'''


{{Note|Si vous utilisez une version ancienne de System Rescue CD, ''' et si vous installez un système 64 bits, veillez à bien sélectionner le noyau <code>rescue64</code> au menu de démarrage (boot) '''. System Rescue CD démarrait généralement en mode 32 bits alors que la dernière version tente d'utiliser le mode 64 bits en priorité.}}
{{Important|'''NO VIDEO''': Il peut arriver que System Rescue CD n'active pas correctement le mode VIDEO lors du démarrage sous UEFI (Voir {{bug|FL-2030}}.) Si une telle situation se produit, appuyez sur {{c|e}} dans le menu de démarrage GRUB de System Rescue CD pour l'éditer. Ajoutez la ligne {{c|insmod all_video}}  et démarrez. Ce bogue a été soumis aux développeurs de System Rescue CD.}}
 
{{Note|Si vous utilisez une ancienne version de SystemRescueCD, ''' et si vous installez un système 64 bits, voir à bien sélectionner le noyau <code>rescue64</code> au menu de démarrage (boot) '''. Antérieurement, SystemRescueCD démarrait généralement en mode 32 bits alors que la dernière version tente d'utiliser le mode 64 bits en priorité.}}


==== Configuration réseau ====  
==== Configuration réseau ====  


Une fois le System Rescue CD démarré, vérifiez que vous avez un accès à internet. Il est nécessaire d'en avoir un pour installer un système Funtoo.
Une fois SystemRescueCD en marche, vérifiez que vous avez un accès à internet. Un tel accès est nécessaire et essentiel à l'installation du système Funtoo Linux.


<console>
<console>
Line 51: Line 53:
Si le ping réussi (vous devez voir au moins un message commençant par <code>64 bytes</code> comme ci-dessus) alors votre connexion à internet est établie. Utilisez la combinaison de touches Ctrl+C pour arrêter le ping.  
Si le ping réussi (vous devez voir au moins un message commençant par <code>64 bytes</code> comme ci-dessus) alors votre connexion à internet est établie. Utilisez la combinaison de touches Ctrl+C pour arrêter le ping.  


Si vous avez besoin de paramétrer une connexion Wifi, cela doit être fait en utilisant l'environnement graphique de System Rescue CD. Lancer la commant <code>startx</code> pour démarrer une session graphique.
Si vous avez besoin de configurer une connexion Wifi, cela doit être fait en utilisant l'environnement graphique de SystemRescueCD. Lancez la commande <code>startx</code> pour démarrer une session graphique.
<console>
<console>
# ##i##startx
# ##i##startx
Line 58: Line 60:
[[File:NetworkManagerIcon.PNG|left|caption]]
[[File:NetworkManagerIcon.PNG|left|caption]]


Une fois la session graphique lancée, utiliser l'applet NetworkManager (l'icône en bas à droite, dans la barre des tâches) pour paramétrer la connexion wifi de votre choix. Ensuite, ouvrez un terminal dans lequel vous pourrez continuer les différentes étapes de cette installation.
Une fois la session graphique lancée, utiliser l'applet NetworkManager (l'icône en bas à droite, dans la barre des tâches) pour configurer la connexion wifi de votre choix. Ensuite, vous ouvrez un terminal dans lequel vous poursuivez l'installation.


==== Installation à distance ====  
==== Installation à distance ====  


Se connecter à System Rescue CD à travers le réseau via une connexion SSH est aussi une manière d'installer Funtoo Linux depuis un autre ordinateur.
Vous pouvez vous connecter à SystemRescue CD à travers le réseau via une connexion SSH pour installer Funtoo Linux depuis un autre ordinateur.


Si vous souhaitez continuer l'installation à distance, voici comment faire.
Si vous souhaitez continuer l'installation à distance, voici comment faire.


D'abord, vous devrez vous assurer que System Rescue CD dispose d'une connexion réseau fonctionnelle. Ensuite, vous aurez besoin de définir un mot de passe root pour System Rescue CD:
D'abord, vous devez vous assurer que SystemRescueCD dispose d'une connexion réseau fonctionnelle. Ensuite, vous avez besoin de définir un mot de passe root pour SystemRescueCD:
{{console|body=
{{console|body=
###i## passwd
###i## passwd
Line 87: Line 89:
Une fois que vous vous êtes identifié via SSH, vous avez accès à distance à System Rescue CD. Vous pouvez dès lors procéder aux étapes d'installation de Funtoo Linux.
Une fois que vous vous êtes identifié via SSH, vous avez accès à distance à System Rescue CD. Vous pouvez dès lors procéder aux étapes d'installation de Funtoo Linux.


=== Prepare Hard Disk ===  
=== Préparation du disque dur ===  


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.
Dans cette section, nous allons en apprendre davantage sur les différentes façons dont Funtoo Linux peut démarrer à partir d'un disque dur. Par "boot", nous entendons le processus par lequel Linux démarre lorsque vous appuyez sur le bouton d'alimentation de votre ordinateur. Voyez le démarrage comme un processus qui commence par l'exécution du firmware de votre ordinateur (logiciel intégré) pour rechercher et trouver le noyau Linux et l'exécuter. Le noyau Linux prend alors le relais, identifie tout votre matériel et se met en marche.


==== Background ====  
==== Contexte ====  


{{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?]]}}
{{Note|Si vous en êtes à vos tous premiers pas dans Linux, évitez toute confusion en vous rendant directement à la section [[#Quelle méthode utiliser ?|Quelle méthode utiliser ?]]}}


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!
Il fut un temps où il n'y avait qu'une seule façon de démarrer un PC. Un firmware standard appelé «PC BIOS» équipait tous les PC, ordinateurs de bureau autant que serveurs. Tous les disques durs utilisaient le Master Boot Record dans le tout premier secteur de ceux-ci. C'est à cet endroit que le «PC BIOS» regardait afin d'y trouver le code du gestionnaire d'amorçage. Ce dernier chargeait le système Linux. Le partitionnement des disques durs tant qu'à lui reposait sur le schéma de partitionnement standard MBR. C'est ainsi que tout se faisait et tout le monde y trouvait son compte.


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.
Puis arrivèrent EFI et UEFI, des firmwares de nouvelle génération conçus pour démarrer les systèmes d'exploitation tout en supportant le partitionnement des disques d'une capacité de stockage supérieure à 2.2 To grâce au mode de partitionnement GPT. Tout à coup, nous nous retrouvions avec une variété d'options pour installer et démarrer les systèmes Linux. Ce qui jadis s'appuyait sur une méthode unique d'approche, devenait alors quelque chose de beaucoup plus complexe.


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.
Prenons quelques instants pour revoir les options disponibles de configuration d'un disque dur afin de pouvoir démarrer un système Funtoo Linux. Le guide d'installation utilise et recommande la bonne vieille méthode d'amorçage BIOS et du partitionnement MBR. Tout cela fonctionne très bien et est universellement supporté. Si la capacité de stockage du disque dur est de 2 To ou moins, vous n'aurez aucune contrainte à l'utiliser dans sa totalité.


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.
Il y a cependant des situations où cette méthode ne s'avère pas optimale. C'est le cas quand la capacité de stockage d'un disque est supérieure à 2 To. Le mode de partitionnement MBR vous empêchera d'utiliser la totalité de l'espace de stockage. Il y a aussi le fait que certains PC ne supportent plus le démarrage BIOS. Cela oblige à avoir recours à UEFI. Pour ces raisons, ce guide d'installation documente aussi le mode de démarrage UEFI.


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.
Nous continuons à recommander la méthode dite de la vieille école, BIOS + MBR. Le gestionnaire d'amorçage décrit dans ce guide se nomme GRUB. Nous référons à cette méthode ainsi : '''BIOS + GRUB(MBR)'''. C'est la méthode traditionnelle de la mise en place d'un système d'amorçage d'un PC.


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.
Si vous devez faire appel à UEFI pour démarrer, n'utilisez pas le Master Boot Record pour l'amorçage car certains systèmes ne le supportent pas. Allez-y plutôt avec UEFI pour lancer GRUB. Nous référons à cette technique comme étant la méthode dite '''UEFI + 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.
Évidemment il y a même plusieurs autres méthodes d'amorçage et certaines d'entre elles sont documentées dans le document [[Boot Methods]]. Nous avons pour habitude de recommander une méthode '''BIOS + GRUB(GPT)''', mais elle n'est pas toujours supportée par une grande variété de matériels.


==== Which to Use? ====
==== Quelle méthode utiliser ? ====


'''The big question is -- which boot method should you use?''' Here's how to tell.
'''La grande question est : Quelle méthode de boot utiliser ?''' Voici comment savoir.


;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.
;Méthode 1 - Old-School: Si vous pouvez démarrer sur SystemRescueCD sans problème et que vous obtenez un menu bleu clair, vous avez démarré en utilisant le BIOS et vous pouvez donc certainement lancer Funtoo Linux en utilisant le BIOS. Choisissez alors la méthode "Old-School", à moins d'avoir une quelconque raison d'utiliser UEFI (si vous avez un disque dur de plus de 2.2TB par exemple). Dans ce cas, référez-vous à la méthode 2, votre système peut aussi supporter le boot 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.
;Méthode 2 - New-School: Si vous pouvez démarrer SystemRescueCD sans problème et que vous êtes accueilli avec un menu noir et blanc -- félicitations, votre système est configuré pour supporter le démarrage UEFI. Cela signifie que vous êtes prêt à installer Funtoo Linux en utilisant le démarrage UEFI. Votre système est tout de même susceptible de supporter le démarrage via BIOS, mais essayez d'abord UEFI. Vous pouvez aller faire un tour dans le BIOS de votre machine et jouer sur les paramètres de configuration d'amorçage.


{{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.}}
{{Note|'''les utilisateurs aguerris pourraient se demander :''' Quelle est la grande différence entre les deux méthodes ? Avec des partitions MBR, votre partition {{f|/boot}} sera formatée en ext2 et vous utiliserez {{c|fdisk}} pour créer vos partitions MBR. Si vous choisissez les partitions GPT avec boot UEFI, votre partition {{f|/boot}} sera formatée en vfat car c'est le système de fichier reconnu par UEFI et vous créerez vos partitions GPT avec {{c|gdisk}}. Vous installerez aussi le GRUB un peu différemment.}}


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!
Pour installer Funtoo Linux et démarrer le système selon la méthode dite New School UEFI, SystemRescueCD doit être lancé en mode UEFI. La sélection du mode de démarrage doit se faire via un menu blanc et noir. Si le menu s'affiche en bleu et blanc, UEFI n'est pas disponible et vous serez incapable de configurer le mode d'amorçage UEFI plus tard au cours du processus d'installation de Funtoo Linux.


{{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.}}
{{Note|'''Certaines cartes-mères semblent supporter UEFI mais, en réalité, ne le font pas.''' Par exemple, vous pouvez avoir la possibilité de lancer votre système sur un CD/DVD amorçable en utilisant le mode UEFI, mais la même carte-mère ne supporte pas ce mode de lancement à partir du disque dur. Il en découle un autre principe qui consiste à connaître son matériel.}}


==== Old-School (BIOS/MBR) Method ====  
==== Méthode Old-School (BIOS/MBR) ====  


{{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.]]}}
{{Note|Ayez recours à cette méthode pour démarrer le BIOS quand le menu d'amorçage de SystemRescueCD s'affiche en bleu pâle. Si vous devez utiliser la méthode New-School, [[#Méthode New-School (UEFI/GPT)|cliquez ici pour vous rendre à la section 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 {{f|/dev/sda}} is the disk that you want to partition:
S'assurer que nous avons choisi le bon disque dur sur lequel créer les partitions est sans nul doute une excellente idée. Essayez la commande {{f|/dev/sda}} afin de vérifier si c'est bien le périphérique que vous utilisez :
{{console|body=
{{console|body=
###i## fdisk -l /dev/sda
###i## fdisk -l /dev/sda
Line 140: Line 142:
  1        2048  1250263694  596.2G  Linux filesyste Linux filesystem
  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 {{c|sgdisk}}:
Nous recommandons fortement que vous éradiquiez toutes tables de partitions, MBR ou  GPT, afin d'éviter toute confusion avec le système BIOS au moment du démarrage. Cette tâche se réalise avec la commande {{c|sgdisk}}:
{{Warning|This will make any existing partitions inaccessible! You are '''strongly''' cautioned and advised to backup any critical data before proceeding.}}
{{Warning|Cette action rend innacessibles toutes les partitions existantes! Effectuez une sauvegarde des données critiques avant d'exécuter cette opération.}}


{{console|body=
{{console|body=
Line 150: Line 152:
other utilities.
other utilities.
}}
}}
This output is also nothing to worry about, as the command still succeded:
Ne vous préoccupez pas de cette information produite par l'exécution de la commande. Elle s'est terminée avec succès:


{{console|body=
{{console|body=
Line 157: Line 159:
in memory.  
in memory.  
***************************************************************
***************************************************************
}}Now we will use {{c|fdisk}} to create the MBR partition table and partitions:
}}Nous appelons maintenant l'utilitaire {{c|fdisk}} pour créer la table de partitionnement MBR ainsi que les partitions:
{{console|body=
{{console|body=
###i## fdisk /dev/sda
###i## fdisk /dev/sda
}}
}}
Within {{c|fdisk}}, follow these steps:
Suivez ces étapes à l'intérieur du shell {{c|fdisk}}:


'''Empty the partition table''':
'''Vidage de la table des partitions''':
{{console|body=
{{console|body=
Command (m for help): ##i##o ↵
Command (m for help): ##i##o ↵
}}
}}
'''Create Partition 1''' (boot):
'''Création de la première partition''' (boot):


{{console|body=
{{console|body=
Line 176: Line 178:
Last sector: ##i##+128M ↵
Last sector: ##i##+128M ↵
}}
}}
'''Create Partition 2''' (swap):
'''Création de la seconde partition''' (swap):


{{console|body=
{{console|body=
Line 188: Line 190:
Hex code (type L to list all codes): ##i##82 ↵
Hex code (type L to list all codes): ##i##82 ↵
}}
}}
'''Create the root partition:'''
'''Création de la partition racine:'''


{{console|body=
{{console|body=
Line 197: Line 199:
Last sector: ##i##↵
Last sector: ##i##↵
}}
}}
'''Verify the partition table:'''
'''Vérification de la table des partitions:'''


{{console|body=
{{console|body=
Line 214: Line 216:
/dev/sda3        4458496 625142447 310341976  83 Linux
/dev/sda3        4458496 625142447 310341976  83 Linux
}}
}}
'''Write the parition table to disk:'''
'''Enregistrement de la table des partitions sur le disque:'''


{{console|body=Command (m for help): ##i##w}}
{{console|body=Command (m for help): ##i##w}}
Your new MBR partition table will now be written to your system disk.
La nouvelle table de partitions MBR sera alors enregistrée sur le disque.


{{Note|You're done with partitioning! Now, jump over to [[#Creating filesystems|Creating filesystems]].}}
{{Note|Vous avec complété le partitionnement du disque. Rendez-vous maintenant à la section sur [[#Formatage des partitions|le formatage des partitions]].}}


==== New-School (UEFI/GPT) Method ====  
==== Méthode New-School (UEFI/GPT) ====  


{{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.}}
{{Note|Appliquez cette méthode si votre intérêt se porte sur l'amorçage UEFI et si et seulement si le menu initial de SystemRescueCD s'affiche en noir et blanc. Cette méthode ne fonctionne pas quand le menu est bleu pâle.}}


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}}:
Les commandes {{c|gdisk}} pour créer une table de partitions GPT sont présentées ci-après. Adaptez les tailles selon les besoins bien que les valeurs par défaut utilisées ici rencontrent les besoins de la majorité des utilisateurs. Démarrez {{c|gdisk}}:
{{console|body=###i## gdisk /dev/sda}}
{{console|body=###i## gdisk /dev/sda}}
Within {{c|gdisk}}, follow these steps:
Suivez ces étapes à l'intérieur du shell {{c|gdisk}}:


'''Create a new empty partition table''' (This ''will'' erase all data on the disk when saved):
'''Créez une nouvelle table vide''' (Ceci ''effacera'' toutes les données du disque quand la table est sauvegardée):
{{console|body=
{{console|body=
Command: ##i##o ↵
Command: ##i##o ↵
Line 235: Line 237:
Proceed? (Y/N): ##i##y ↵
Proceed? (Y/N): ##i##y ↵
}}
}}
'''Create Partition 1''' (boot):
'''Créez la première partition''' (boot):


{{console|body=
{{console|body=
Line 244: Line 246:
Hex Code: ##i##EF00 ↵
Hex Code: ##i##EF00 ↵
}}
}}
'''Create Partition 2''' (swap):
'''Créez la seconde partition''' (swap):


{{console|body=
{{console|body=
Line 253: Line 255:
Hex Code: ##i##8200 ↵
Hex Code: ##i##8200 ↵
}}
}}
'''Create Partition 3''' (root):
'''Créez la troisième partition''' (root):


{{console|body=
{{console|body=
Line 262: Line 264:
Hex Code: ##i##↵
Hex Code: ##i##↵
}}
}}
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:
Tout au long du processus, vous pouvez taper "{{c|p}}" et appuyer sur Enter pour voir la table de partitions en cours de création. Si vous commettez une erreur, saisissez à l'écran l'option "{{c|d}}" pour supprimer une partition existante. Quand la table de partitions vous satisfait, exécutez l'option  "{{c|w}}" pour en sauvegarder la configuration sur le disque:


'''Write Partition Table To Disk''':
'''Sauvegarde de la table de partitions sur le disque''':
{{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 ↵
}}The partition table will now be written to the disk and {{c|gdisk}} will close.
}}La table de partitions est écrite sur le disque et {{c|gdisk}} se termine.


Now, your GPT/GUID partitions have been created, and will show up as the following ''block devices'' under Linux:
Maintenant que les partitions GPT/GUID ont été créées, elles s'afficheront ainsi sous Linux en tant que périphériques de bloc:


* {{c|/dev/sda1}}, which will be used to hold the {{c|/boot}} filesystem,  
* {{c|/dev/sda1}} qui accueille la partition {{c|/boot}},  


* {{c|/dev/sda2}}, which will be used for swap space, and
* {{c|/dev/sda2}} qui est utilisé comme partition de pagination, et


* {{c|/dev/sda3}}, which will hold your root filesystem.
* {{c|/dev/sda3}} qui  supporte la partition racine.


{{Tip|You can verify that the block devices above were correctly created by running the command {{c|lsblk}}.}}
{{Tip|Vous pouvez vérifier que les périphériques de bloc ci-haut ont été correctement créés en lançant la commande {{c|lsblk}}.}}
==== Creating filesystems ====  
==== Formatage des partitions  ====  


{{Note|This section covers both BIOS ''and'' UEFI installs. Don't skip it!}}
{{Note|Cette section concerne autant les installations BIOS que les installations UEFI. Ne l'esquivez pas !}}


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.
Avant de pouvoir utiliser vos partitions nouvellement créées, les périphériques de bloc nécessitent une initialisation avec un système de fichiers. Une fois cette initialisation complétée, les périphériques de bloc peuvent être montés pour y stocker des données.


Let's keep this simple. Are you using old-school MBR partitions? If so, let's create an ext2 filesystem on {{f|/dev/sda1}}:
Si vous utilisez des partitions dites «old-school» MBR, vous devez initialiser {{f|/dev/sda1}}, la partition d'amorçage (/boot) avec le système de fichiers ext2:
{{console|body=###i## mkfs.ext2 /dev/sda1}}
{{console|body=###i## mkfs.ext2 /dev/sda1}}
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:
Si par contre vous utilisez des partitions UEFI, «new-school», vous devez initialiser {{c|/dev/sda1}} avec le système de fichiers vfat parce qu'il s'agit du seul système de fichiers que sait lire UEFI :
{{console|body=###i## mkfs.vfat -F 32 /dev/sda1}}
{{console|body=###i## 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.
Créons maintenant une partition d'échange. Cette partition sert de mémoire virtuelle sur disque dur à votre système d'exploitation Funtoo Linux.


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:
Vous n'avez pas à initialiser la partition d'échange avec un système de fichiers car elle ne sert pas à stocker des fichiers. Toutefois, il faut l'initialiser avec la commande {{c|mkswap}}. Ensuite nous exécuterons la commande {{c|swapon}} afin de pouvoir immédiatement utiliser cet espace d'échange dans l'environnement du Live CD si jamais son usage devenait nécessaire pendant le processus d'installation :
{{console|body=
{{console|body=
# ##i##mkswap /dev/sda2
# ##i##mkswap /dev/sda2
# ##i##swapon /dev/sda2
# ##i##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:
}}Maintenant initialisons la partition racine. La partition racine est la partition où réside le système Funtoo Linux. Le systèmes de fichiers ext4 et XFS sont généralement recommandés. Dans l'incertitude, optez pour ext4. Voici comment initialiser la partition racine avec ext4 :


{{console|body=###i## mkfs.ext4 /dev/sda3}}
{{console|body=###i## mkfs.ext4 /dev/sda3}}
...and here's how to create an XFS root filesystem, if you prefer to use XFS instead of ext4:
... et voici comment initialiser la partition la partition racine avec XFS :


{{console|body=###i## mkfs.xfs /dev/sda3}}
{{console|body=###i## 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.
Toutes les partitions incluant le fichier d'échange sont maintenant initialisés. Nous pouvons les monter, les inclure dans le répertoire hiérarchique existant si vous préférez, et les utiliser pour y stocker des fichiers. Nous sommes prêts à installer Funtoo Linux sur ces nouvelles partitions.


{{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.}}
{{Warning|N'utilisez que ext4 quand vous déployez un hôte OpenVZ. Des tests intensifs ont été menés avec ext4 et les versions modernes de {{c|openvz-rhel6-stable}} ne sont pas compatibles avec XFS. Vous risquez de rencontrer plusieurs bogues au niveau du noyau.}}


==== Mounting filesystems ====  
==== Montage des partitions ====  


Mount the newly-created filesystems as follows, creating {{c|/mnt/funtoo}} as the installation mount point:
Maintenant que les partitions ont été créées, procédez à leur montage en créant le point de montage {{c|/mnt/funtoo}}:
{{console|body=
{{console|body=
###i## mkdir /mnt/funtoo
###i## mkdir /mnt/funtoo
Line 314: Line 316:
###i## mount /dev/sda1 /mnt/funtoo/boot
###i## mount /dev/sda1 /mnt/funtoo/boot
}}
}}
Optionally, if you have a separate filesystem for {{f|/home}} or anything else:
Si vous avez créé une partition pour vos données, {{f|/home}}, ou toute autre partition quelconque, veuillez procéder à leur montage:


{{console|body=
{{console|body=
Line 320: Line 322:
###i## mount /dev/sda4 /mnt/funtoo/home
###i## mount /dev/sda4 /mnt/funtoo/home
}}
}}
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:
Si les dossiers {{f|/tmp}} ou {{f|/var/tmp}} font l'objet d'une partition qui leur soit unique, assurez-vous que les points de montage soient entièrement inscriptibles après montage:
{{console|body=###i## chmod 1777 /mnt/funtoo/tmp}}
{{console|body=###i## chmod 1777 /mnt/funtoo/tmp}}
==== Setting the Date ====  
==== Réglage de la date et de l'heure ====  


{{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.}}
{{Important|Si l'heure et la date du système sont trop loin dans le temps (mois ou années), cela peut empêcher Portage d'effecuter un téléchargement adéquat des fichiers sources. Certains sont téléchargés via HTTPS qui ustilise des certificats SSL possédant des dates d'activation et d'expiration. Vous pouvez passer outre pour le moment si la date et l'heure sont sensiblement les mêmes que la date et l'heure courantes.}}


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:
Vérifiez maintenant si les date et heure sont correctement réglées sur UTC. Utilisez la commande {{c|date}} pour en vérifier les valeurs:
{{console|body=
{{console|body=
###i## date
###i## date
Fri Jul 15 19:47:18 UTC 2011
Fri Jul 15 19:47:18 UTC 2011
}}
}}
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:
Si la date et/ou l'heure ont besoin d'être ajustées, utilisez la commande {{c|date MMDDhhmmYYYY}}, tout en gardant en tête que {{c|hhmm}} correspond au format 24h. Dans l'exemple ci-après, la date et l'heure sont modifiées pour le "16 juillet 2011 @ 20:00" UTC:


{{console|body=
{{console|body=
Line 337: Line 339:
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:
Une fois l'horloge du système correctement réglée, il est de bon aloi de copier l'heure dans l'horloge matérielle afin qu'elle demeure consistante d'un démarrage à l'autre:


{{console|body=###i## hwclock --systohc}}
{{console|body=###i## hwclock --systohc}}
=== Installing the Stage 3 tarball ===  
=== Installation du Stage 3 ===  
 
Une fois les partitions du système créées et formatées et l'horloge réglée, l'étape suivante consiste à télécharger le fichier compressé du Stage 3. Le Stage 3 est un système de base pré-compilé. Il sert de point de départ à l'installation de Funtoo Linux. 
 
Afin de télécharger la version pré-compilée de Funtoo Linux correspondant à l'architecture de votre machine, consultez la page [[Subarches]]. Les composantes sous-architectures sont conçues en fonction d'un type de processeur particulier afin d'en tirer le meilleure performance possible. Elles exploitent l'ensemble d'instructions propres à chaque processeur.


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.
La page [[Subarches]] liste toutes les verisons de Funtoo Linux optimisées pour un processeur particulier. Trouvez celle appropriée à votre processeur et cliquez sur son nom dans la première colonne, par exemple {{|corei7}}. Vous serez alors redirigé vers la page dédiée à cette sous-architecture. Vous y retrouverez les Stage 3 disponibles au téléchargement.  


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.
Si vous utilisez Funtoo Linux dans un environnement virtuel et que votre machine virtuelle peut migrer vers différents types de matériel, il est alors recommandé d'utiliser un Stage 3 optimisé pour le plus vieil ensemble d'instructions du processeur sur lequel tournera la machine virtuelle ou une version hybride du Stage 3 si la machine virtuellle est destinée à un environnement basé sur les processeurs AMD et Intel.


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.


For most subarches, you will have several stage3's available to choose from. This next section will help you understand which one to pick.
La plupart des sous-architectures proposent plusieurs versions de Stage 3. La section qui suit, vous aidera à faire un choix.


==== Which Build? ====  
==== Quelle compilation ? ====  


'''If you're not sure, pick {{c|funtoo-current}}.'''
'''Dans l'incertitude, choisissez {{c|funtoo-current}}.'''


Funtoo Linux has various different 'builds':
Funtoo Linux a diverses compilations différentes.


{{TableStart}}
{{TableStart}}
{{2ColHead|Build|Description}}
{{2ColHead|Compilation|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-current}}</td><td>Version de Funtoo Linux la plus souvent choisie Elle reçoit rapidement les mises à jour et elle se veut la version préférée des utilisateurs de poste de travail.</td></tr><tr><td>{{c|funtoo-stable}}</td><td>Cette version met l'emphase sur la stabilité en offrant des versions antérieures et plus fiables des paquets contrairement aux dernière versions.</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}}
{{TableEnd}}


==== Which Variant? ====  
==== Quelle variante ? ====  


'''If you're not sure, pick {{c|standard}}.'''
'''Dans l'incertitude, choisissez {{c|standard}}.'''


Our "regular" stage3's are listed with a variant of {{c|standard}}. The following variant builds are available:
Nos Stage 3 «réguliers» sont répertoriés sous la variante dite  {{c|standard}}. Les différentes compilations  sont :


{{TableStart}}
{{TableStart}}
{{2ColHead|Variant|Description}}
{{2ColHead|Variante|Description}}
<tr><td>{{c|standard}}</td><td>The "standard" version of Funtoo Linux</td></tr>
<tr><td>{{c|standard}}</td><td>Version «standard» de 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|pure64}}</td><td>La version 64-bit ne supporte pas la compatibilité avec les applications 32-bit (multilib). S'avère la version idéale pour les serveurs.</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>
<tr><td>{{c|hardened}}</td><td>Inclut le <<toolchain>> PIE/SSP pour une sécurité accrue. PIE nécessite l'utilisation de PaX au niveau du noyau, alors que SSP s'adresse à n'importe quel noyau et fournit une sécurité renforcée au niveau de l'espace usager afin de prévenir l'exploitation des failles de sécurité et autres faiblesses pour introduire des <<malware>>. Utilisateurs experts.</td></tr>
{{TableEnd}}
{{TableEnd}}


==== Download the Stage3 ====  
==== Téléchargement du Stage 3 ====  


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:
Une fois que vous avez déterminer quelle variante et quelle version du Stage 3 à télécharger, utiliser la commande {{c|wget}} pour télécharger le fichier compressé que vous utiliserez comme base de votre nouveau système Funtoo Linux. Il devrait être enregistré dans le dossier {{f|/mnt/funtoo}} comme ceci :
{{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
}}
}}
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.
Veuillez noter que les systèmes 64-bit peuvent exécuter des Stage 3 de 64-bit ou 32-bit. Par contre un système 32-bit ne peut utiliser qu'un Stage 3 de 32-bit. Assurez-vous de sélectionner le Stage 3 apparenté à votre processeur. Si vous êtes dans l'incertitude, il est plus prudent de choisir le Stage 3 {{c|generic_64}} ou le Stage 3 {{c|generic_32}}. Consultez la page [[Subarches]] pour plus d'information.


Once the stage is downloaded, extract the contents with the following command, substituting in the actual name of your stage 3 tarball:
Quand le téléchargement est complété, extrayez le contenu du fichier compressé à l'aide de la commande suivante en substituant le nom du fichier téléchargé :
{{console|body=
{{console|body=
###i## tar xpf stage3-latest.tar.xz
###i## tar xpf stage3-latest.tar.xz
}}{{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.}}
}}{{Important|Il est très important d'utiliser l'option «{{c|'''p'''}}»  de la commande {{c|tar}} lors de l'extraction du fichier compressé Stage 3 - ce paramètre instruit {{c|tar}} de «préserver» et conserver permissions et droit de propriété qui existent dans le fichier archivé. Sans cette option, les droits d'accès aux fichiers du système Funtoo seront incorrects.}}


=== Chroot into Funtoo ===
=== Passage à la racine de Funtoo ===
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.
Pour installer Funtoo Linux, la commande {{c|chroot}} est d'abord exécutée. Cette commande vous place à la racine du nouveau système Funtoo. Ainsi, toutes les commandes qui seront exécutées par la suite, le seront dans l'environnement du système Funtoo Linux que vous venez d'extraire de l'archive du Stage 3.


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:
Mais avant de lancer la commande {{c|chroot}}, il y a quelques petits ajustements à apporter. Vous devez monter les fichiers {{f|/proc}}, {{f|/sys}} et {{f|/dev}} dans le nouveau système. Ayez recours aux commandes suivantes :
{{console|body=
{{console|body=
# ##i##cd /mnt/funtoo
# ##i##cd /mnt/funtoo
Line 398: Line 402:
# ##i##mount --rbind /sys sys
# ##i##mount --rbind /sys sys
# ##i##mount --rbind /dev dev
# ##i##mount --rbind /dev dev
}}You'll also want to copy over {{f|resolv.conf}} in order to have proper resolution of Internet hostnames from inside the chroot:
}}Il vous faut aussi copier le fichier {{f|resolv.conf}} afin que les noms des hôtes Internet soient correctements résolus.
{{console|body=
{{console|body=
# ##i##cp /etc/resolv.conf /mnt/funtoo/etc/
# ##i##cp /etc/resolv.conf /mnt/funtoo/etc/
Line 414: Line 418:




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.
=== Téléchargement de l'arbre Portage ===  
=== Downloading the Portage tree ===  


{{note|For an alternative way to do this, see [[Installing Portage From Snapshot]].}}
{{note|For an alternative way to do this, see [[Installing Portage From Snapshot]].}}
Line 427: Line 430:
}}
}}


=== Configuring your system ===
=== Configuration du système ===  
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.


==== Using Nano ====  
==== Utilisation de Nano ====  


The default editor included in the chroot environment is called {{c|nano}}. To edit one of the files below, run nano as follows:
The default editor included in the chroot environment is called {{c|nano}}. To edit one of the files below, run nano as follows:
Line 439: Line 441:
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.
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 ====  
==== Fichiers de configuration ====  


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 455: Line 457:
<td>{{c|/etc/make.conf}} (symlink) - also known as:<br/>{{c|/etc/portage/make.conf}}</td>
<td>{{c|/etc/make.conf}} (symlink) - also known as:<br/>{{c|/etc/portage/make.conf}}</td>
<td>''Maybe - recommended''</td>
<td>''Maybe - recommended''</td>
<td>Parameters used by gcc (compiler), portage, and make. It's a good idea to set MAKEOPTS. This is covered later in this document.</td>
<td>Parameters used by gcc (compiler), portage, and make. It's a good idea to set MAKEOPTS. This is covered later in this document. ''Note that it is normal for this file to be empty in Funtoo Linux, as many settings have been migrated to our enhanced profile system.''</td>
</tr><tr>
</tr><tr>
<td>{{c|/etc/conf.d/hostname}}</td>
<td>{{c|/etc/conf.d/hostname}}</td>
Line 554: Line 556:
</pre>
</pre>


==== /etc/conf.d/hwclock ====
==== Francisation ====
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 ====


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]].
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 ===  
=== Introduction à Portage ===  


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:
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:
Line 595: Line 592:
Advanced users may be interested in the [[Emerge]] wiki page.
Advanced users may be interested in the [[Emerge]] wiki page.


==== Updating World ====  
==== Mise à jour globale (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.
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.
Line 607: Line 604:
Make sure you read any post emerge messages and follow their instructions. This is especially true if you have upgraded perl or python.}}
Make sure you read any post emerge messages and follow their instructions. This is especially true if you have upgraded perl or python.}}


=== Kernel ===  
=== Noyau ===  


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:
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:
Line 626: Line 623:
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]].
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 ====  
==== Configuration et installation du noyau ====  


If you need to build a kernel for Funtoo Linux, please follow these steps:
If you need to build a kernel for Funtoo Linux, please follow these steps:
Line 650: Line 647:
{{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.}}
{{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 ===
=== Installation du gestionnaire d'amorçage ===


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.
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.
Line 687: Line 684:
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.
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.


==== Old School (BIOS) MBR ====  
==== Vieille école (BIOS) MBR ====  


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:
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:
Line 696: Line 693:
</console>
</console>


==== New School (UEFI) Boot Entry ====
==== Nouvelle école (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.
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.
Line 714: Line 711:
</console>
</console>


==== First Boot, and in the future... ====  
==== Premier démarrage et suivants ====  


OK -- you are ready to boot!  
OK -- you are ready to boot!  
Line 720: Line 717:
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.
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 ===  
=== Configuration du réseau ===  


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.
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.
Line 732: Line 729:
(chroot) ###i## rc-update add NetworkManager default
(chroot) ###i## 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 {{c|addwifi}} command to connect to a Wi-Fi access point:
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|nmtui}} command (which has an easy-to-use console-based interface) to configure NetworkManager so that it will connect (and automatically reconnect, after reboot) to a Wi-Fi access point:
{{console|body=# ##i##addwifi -S wpa -K 'wifipassword' mywifinetwork}}
{{console|body=# ##i##nmtui}}
For more information about NetworkManager, see the [[Package:NetworkManager|NetworkManager package page]].
For more information about NetworkManager, see the [[Package:NetworkManager|NetworkManager package page]].


{{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.}}
{{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.}}


==== Desktop (Wired DHCP) ====  
==== PC de bureau (Câblage 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 {{c|dhcpcd}} to the default runlevel:
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:
Line 748: Line 745:
If your upstream DHCP server is dnsmasq, it can be configured to assign addresses via mac address to make servers on DHCP feasible.
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) ====
==== Serveur (IP statique) ====


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.
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 ====
==== Nom de l'hôte ====
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=
{{console|body=
Line 764: Line 760:
{{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}}
{{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 ===
=== Étapes de finalisation ===  
==== Set your root password ====  
 
It's imperative that you set your root password before rebooting so that you can log in.
==== Définition du mot de passe de l'administrateur ====
<console>
(chroot) # ##i##passwd
</console>


===Restart your system ===  
=== Redémarrage  du système ===  


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.
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.
Line 787: Line 780:
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!
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 ===  
=== Profils ===  


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:
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:
Line 843: Line 836:
{{TableEnd}}
{{TableEnd}}


===Next Steps===  
=== La suite ===  


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.
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.

Revision as of 20:54, December 29, 2017

Install Funtoo Linux

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

Introduction

Ce document a été produit afin de vous permettre d'installer Funtoo Linux sur un PC compatible. Sa conception réduit au minimum les options de configuration. Cela permet d'installer la distribution le plus rapidement possible et en toute simplicité.

Si vous avez déjà de l'expérience sur l'installation Gentoo Linux, plusieurs étapes vous seront familières. Cependant, prenez le temps de lire le document en entier, car il y a quelques différences.

Si vous installez un système basé sur Gentoo Linux pour la première fois, ou si vous êtes tout simplement un nouveau venu dans le monde de Linux, nous vous souhaitons la bienvenue ! Nous avons tout mis en œuvre afin que ces instructions d'installation soient comprises par tous.

   Note

Si vous installez Funtoo Linux sur une architecture de type ARM, référez-vous au document Funtoo Linux Installation on ARM pour les différences notables en rapport avec le support ARM.

Vue d'ensemble de l'installation

Voici un aperçu succinct de la procédure d'installation de Funtoo Linux.

  1. Téléchargement et démarrage sur un Live CD.
  2. Préparation du disque dur.
  3. Formatage et montage des partitions.
  4. Installation du Stage 3 Funtoo de votre choix.
  5. Passage à la racine du nouveau système.
  6. Téléchargement de l'arbre Portage.
  7. Configuration du système et réseau.
  8. Installation d'un noyau.
  9. Installation du gestionnaire d'amorçage.
  10. Complétion de l'installation.
  11. Redémarrage.

Live CD

Pour installer Funtoo, vous devrez d'abord démarrer votre ordinateur à l'aide d'un Live CD ou d'une clé USB basé sur Linux. Nous vous recommandons SystemRescueCD qui s'appuie sur Gentoo Linux. Il offre beaucoup d'outils et d'utilitaires et il supporte autant les systèmes 32-bit que les systèmes 64-bit. Vous pouvez le graver sur un CD / DVD ou l'installer sur une clé USB. Téléchargez-le ici:

   Important

NO VIDEO: Il peut arriver que System Rescue CD n'active pas correctement le mode VIDEO lors du démarrage sous UEFI (Voir FL-2030.) Si une telle situation se produit, appuyez sur e dans le menu de démarrage GRUB de System Rescue CD pour l'éditer. Ajoutez la ligne insmod all_video et démarrez. Ce bogue a été soumis aux développeurs de System Rescue CD.

   Note

Si vous utilisez une ancienne version de SystemRescueCD, et si vous installez un système 64 bits, voir à bien sélectionner le noyau rescue64 au menu de démarrage (boot) . Antérieurement, SystemRescueCD démarrait généralement en mode 32 bits alors que la dernière version tente d'utiliser le mode 64 bits en priorité.

Configuration réseau

Une fois SystemRescueCD en marche, vérifiez que vous avez un accès à internet. Un tel accès est nécessaire et essentiel à l'installation du système 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

Si le ping réussi (vous devez voir au moins un message commençant par 64 bytes comme ci-dessus) alors votre connexion à internet est établie. Utilisez la combinaison de touches Ctrl+C pour arrêter le ping.

Si vous avez besoin de configurer une connexion Wifi, cela doit être fait en utilisant l'environnement graphique de SystemRescueCD. Lancez la commande startx pour démarrer une session graphique.

root # startx
caption

Une fois la session graphique lancée, utiliser l'applet NetworkManager (l'icône en bas à droite, dans la barre des tâches) pour configurer la connexion wifi de votre choix. Ensuite, vous ouvrez un terminal dans lequel vous poursuivez l'installation.

Installation à distance

Vous pouvez vous connecter à SystemRescue CD à travers le réseau via une connexion SSH pour installer Funtoo Linux depuis un autre ordinateur.

Si vous souhaitez continuer l'installation à distance, voici comment faire.

D'abord, vous devez vous assurer que SystemRescueCD dispose d'une connexion réseau fonctionnelle. Ensuite, vous avez besoin de définir un mot de passe root pour SystemRescueCD:

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

Une fois le mot de passe défini, il vous reste à obtenir l'adresse IP utilisée par System Rescue CD, adresse que vous utiliserez via ssh pour vous connecter à System RescueCD. Pour obtenir l'adresse IP utilisée par System Rescue CD, tapez ifconfig :

root # ifconfig

L'une des interfaces devrait afficher une adresse IP telle inet addr: sur votre LAN. Vous pourrez alors vous connecter à distance à System Rescue CD depuis un autre système sur votre LAN et effectuer les opérations d'installation dans le confort d'un système d'exploitation existant. Sur le système à distance, tapez la commande suivante en remplaçant 1.2.3.4 par l'adresse IP de System Rescue CD. Une connexion depuis un système Linux existant ou un système MacOS devrait ressembler à ceci :

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

Pour vous connecter à distance à partir du système MS Windows, vous devez télécharger et installer un client SSH Windows tel PuTTY.

Une fois que vous vous êtes identifié via SSH, vous avez accès à distance à System Rescue CD. Vous pouvez dès lors procéder aux étapes d'installation de Funtoo Linux.

Préparation du disque dur

Dans cette section, nous allons en apprendre davantage sur les différentes façons dont Funtoo Linux peut démarrer à partir d'un disque dur. Par "boot", nous entendons le processus par lequel Linux démarre lorsque vous appuyez sur le bouton d'alimentation de votre ordinateur. Voyez le démarrage comme un processus qui commence par l'exécution du firmware de votre ordinateur (logiciel intégré) pour rechercher et trouver le noyau Linux et l'exécuter. Le noyau Linux prend alors le relais, identifie tout votre matériel et se met en marche.

Contexte

   Note

Si vous en êtes à vos tous premiers pas dans Linux, évitez toute confusion en vous rendant directement à la section Quelle méthode utiliser ?

Il fut un temps où il n'y avait qu'une seule façon de démarrer un PC. Un firmware standard appelé «PC BIOS» équipait tous les PC, ordinateurs de bureau autant que serveurs. Tous les disques durs utilisaient le Master Boot Record dans le tout premier secteur de ceux-ci. C'est à cet endroit que le «PC BIOS» regardait afin d'y trouver le code du gestionnaire d'amorçage. Ce dernier chargeait le système Linux. Le partitionnement des disques durs tant qu'à lui reposait sur le schéma de partitionnement standard MBR. C'est ainsi que tout se faisait et tout le monde y trouvait son compte.

Puis arrivèrent EFI et UEFI, des firmwares de nouvelle génération conçus pour démarrer les systèmes d'exploitation tout en supportant le partitionnement des disques d'une capacité de stockage supérieure à 2.2 To grâce au mode de partitionnement GPT. Tout à coup, nous nous retrouvions avec une variété d'options pour installer et démarrer les systèmes Linux. Ce qui jadis s'appuyait sur une méthode unique d'approche, devenait alors quelque chose de beaucoup plus complexe.

Prenons quelques instants pour revoir les options disponibles de configuration d'un disque dur afin de pouvoir démarrer un système Funtoo Linux. Le guide d'installation utilise et recommande la bonne vieille méthode d'amorçage BIOS et du partitionnement MBR. Tout cela fonctionne très bien et est universellement supporté. Si la capacité de stockage du disque dur est de 2 To ou moins, vous n'aurez aucune contrainte à l'utiliser dans sa totalité.

Il y a cependant des situations où cette méthode ne s'avère pas optimale. C'est le cas quand la capacité de stockage d'un disque est supérieure à 2 To. Le mode de partitionnement MBR vous empêchera d'utiliser la totalité de l'espace de stockage. Il y a aussi le fait que certains PC ne supportent plus le démarrage BIOS. Cela oblige à avoir recours à UEFI. Pour ces raisons, ce guide d'installation documente aussi le mode de démarrage UEFI.

Nous continuons à recommander la méthode dite de la vieille école, BIOS + MBR. Le gestionnaire d'amorçage décrit dans ce guide se nomme GRUB. Nous référons à cette méthode ainsi : BIOS + GRUB(MBR). C'est la méthode traditionnelle de la mise en place d'un système d'amorçage d'un PC.

Si vous devez faire appel à UEFI pour démarrer, n'utilisez pas le Master Boot Record pour l'amorçage car certains systèmes ne le supportent pas. Allez-y plutôt avec UEFI pour lancer GRUB. Nous référons à cette technique comme étant la méthode dite UEFI + GRUB(GPT).

Évidemment il y a même plusieurs autres méthodes d'amorçage et certaines d'entre elles sont documentées dans le document Boot Methods. Nous avons pour habitude de recommander une méthode BIOS + GRUB(GPT), mais elle n'est pas toujours supportée par une grande variété de matériels.

Quelle méthode utiliser ?

La grande question est : Quelle méthode de boot utiliser ? Voici comment savoir.

Méthode 1 - Old-School
Si vous pouvez démarrer sur SystemRescueCD sans problème et que vous obtenez un menu bleu clair, vous avez démarré en utilisant le BIOS et vous pouvez donc certainement lancer Funtoo Linux en utilisant le BIOS. Choisissez alors la méthode "Old-School", à moins d'avoir une quelconque raison d'utiliser UEFI (si vous avez un disque dur de plus de 2.2TB par exemple). Dans ce cas, référez-vous à la méthode 2, votre système peut aussi supporter le boot UEFI.
Méthode 2 - New-School
Si vous pouvez démarrer SystemRescueCD sans problème et que vous êtes accueilli avec un menu noir et blanc -- félicitations, votre système est configuré pour supporter le démarrage UEFI. Cela signifie que vous êtes prêt à installer Funtoo Linux en utilisant le démarrage UEFI. Votre système est tout de même susceptible de supporter le démarrage via BIOS, mais essayez d'abord UEFI. Vous pouvez aller faire un tour dans le BIOS de votre machine et jouer sur les paramètres de configuration d'amorçage.
   Note

les utilisateurs aguerris pourraient se demander : Quelle est la grande différence entre les deux méthodes ? Avec des partitions MBR, votre partition /boot sera formatée en ext2 et vous utiliserez fdisk pour créer vos partitions MBR. Si vous choisissez les partitions GPT avec boot UEFI, votre partition /boot sera formatée en vfat car c'est le système de fichier reconnu par UEFI et vous créerez vos partitions GPT avec gdisk. Vous installerez aussi le GRUB un peu différemment.

Pour installer Funtoo Linux et démarrer le système selon la méthode dite New School UEFI, SystemRescueCD doit être lancé en mode UEFI. La sélection du mode de démarrage doit se faire via un menu blanc et noir. Si le menu s'affiche en bleu et blanc, UEFI n'est pas disponible et vous serez incapable de configurer le mode d'amorçage UEFI plus tard au cours du processus d'installation de Funtoo Linux.

   Note

Certaines cartes-mères semblent supporter UEFI mais, en réalité, ne le font pas. Par exemple, vous pouvez avoir la possibilité de lancer votre système sur un CD/DVD amorçable en utilisant le mode UEFI, mais la même carte-mère ne supporte pas ce mode de lancement à partir du disque dur. Il en découle un autre principe qui consiste à connaître son matériel.

Méthode Old-School (BIOS/MBR)

   Note

Ayez recours à cette méthode pour démarrer le BIOS quand le menu d'amorçage de SystemRescueCD s'affiche en bleu pâle. Si vous devez utiliser la méthode New-School, cliquez ici pour vous rendre à la section UEFI/GPT.

S'assurer que nous avons choisi le bon disque dur sur lequel créer les partitions est sans nul doute une excellente idée. Essayez la commande /dev/sda afin de vérifier si c'est bien le périphérique que vous utilisez :

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

Nous recommandons fortement que vous éradiquiez toutes tables de partitions, MBR ou GPT, afin d'éviter toute confusion avec le système BIOS au moment du démarrage. Cette tâche se réalise avec la commande sgdisk:

   Warning

Cette action rend innacessibles toutes les partitions existantes! Effectuez une sauvegarde des données critiques avant d'exécuter cette opération.

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.

Ne vous préoccupez pas de cette information produite par l'exécution de la commande. Elle s'est terminée avec succès:

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

Nous appelons maintenant l'utilitaire fdisk pour créer la table de partitionnement MBR ainsi que les partitions:

root # fdisk /dev/sda

Suivez ces étapes à l'intérieur du shell fdisk:

Vidage de la table des partitions:

Command (m for help): o ↵

Création de la première partition (boot):

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

Création de la seconde partition (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 ↵

Création de la partition racine:

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

Vérification de la table des partitions:

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

Enregistrement de la table des partitions sur le disque:

Command (m for help): w

La nouvelle table de partitions MBR sera alors enregistrée sur le disque.

   Note

Vous avec complété le partitionnement du disque. Rendez-vous maintenant à la section sur le formatage des partitions.

Méthode New-School (UEFI/GPT)

   Note

Appliquez cette méthode si votre intérêt se porte sur l'amorçage UEFI et si et seulement si le menu initial de SystemRescueCD s'affiche en noir et blanc. Cette méthode ne fonctionne pas quand le menu est bleu pâle.

Les commandes gdisk pour créer une table de partitions GPT sont présentées ci-après. Adaptez les tailles selon les besoins bien que les valeurs par défaut utilisées ici rencontrent les besoins de la majorité des utilisateurs. Démarrez gdisk:

root # gdisk /dev/sda

Suivez ces étapes à l'intérieur du shell gdisk:

Créez une nouvelle table vide (Ceci effacera toutes les données du disque quand la table est sauvegardée):

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

Créez la première partition (boot):

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

Créez la seconde partition (swap):

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

Créez la troisième partition (root):

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

Tout au long du processus, vous pouvez taper "p" et appuyer sur Enter pour voir la table de partitions en cours de création. Si vous commettez une erreur, saisissez à l'écran l'option "d" pour supprimer une partition existante. Quand la table de partitions vous satisfait, exécutez l'option "w" pour en sauvegarder la configuration sur le disque:

Sauvegarde de la table de partitions sur le disque:

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

La table de partitions est écrite sur le disque et gdisk se termine.

Maintenant que les partitions GPT/GUID ont été créées, elles s'afficheront ainsi sous Linux en tant que périphériques de bloc:

  • /dev/sda1 qui accueille la partition /boot,
  • /dev/sda2 qui est utilisé comme partition de pagination, et
  • /dev/sda3 qui supporte la partition racine.
   Tip

Vous pouvez vérifier que les périphériques de bloc ci-haut ont été correctement créés en lançant la commande lsblk.

Formatage des partitions

   Note

Cette section concerne autant les installations BIOS que les installations UEFI. Ne l'esquivez pas !

Avant de pouvoir utiliser vos partitions nouvellement créées, les périphériques de bloc nécessitent une initialisation avec un système de fichiers. Une fois cette initialisation complétée, les périphériques de bloc peuvent être montés pour y stocker des données.

Si vous utilisez des partitions dites «old-school» MBR, vous devez initialiser /dev/sda1, la partition d'amorçage (/boot) avec le système de fichiers ext2:

root # mkfs.ext2 /dev/sda1

Si par contre vous utilisez des partitions UEFI, «new-school», vous devez initialiser /dev/sda1 avec le système de fichiers vfat parce qu'il s'agit du seul système de fichiers que sait lire UEFI :

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

Créons maintenant une partition d'échange. Cette partition sert de mémoire virtuelle sur disque dur à votre système d'exploitation Funtoo Linux.

Vous n'avez pas à initialiser la partition d'échange avec un système de fichiers car elle ne sert pas à stocker des fichiers. Toutefois, il faut l'initialiser avec la commande mkswap. Ensuite nous exécuterons la commande swapon afin de pouvoir immédiatement utiliser cet espace d'échange dans l'environnement du Live CD si jamais son usage devenait nécessaire pendant le processus d'installation :

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

Maintenant initialisons la partition racine. La partition racine est la partition où réside le système Funtoo Linux. Le systèmes de fichiers ext4 et XFS sont généralement recommandés. Dans l'incertitude, optez pour ext4. Voici comment initialiser la partition racine avec ext4 :

root # mkfs.ext4 /dev/sda3

... et voici comment initialiser la partition la partition racine avec XFS :

root # mkfs.xfs /dev/sda3

Toutes les partitions incluant le fichier d'échange sont maintenant initialisés. Nous pouvons les monter, les inclure dans le répertoire hiérarchique existant si vous préférez, et les utiliser pour y stocker des fichiers. Nous sommes prêts à installer Funtoo Linux sur ces nouvelles partitions.

   Warning

N'utilisez que ext4 quand vous déployez un hôte OpenVZ. Des tests intensifs ont été menés avec ext4 et les versions modernes de openvz-rhel6-stable ne sont pas compatibles avec XFS. Vous risquez de rencontrer plusieurs bogues au niveau du noyau.

Montage des partitions

Maintenant que les partitions ont été créées, procédez à leur montage en créant le point de montage /mnt/funtoo:

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

Si vous avez créé une partition pour vos données, /home, ou toute autre partition quelconque, veuillez procéder à leur montage:

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

Si les dossiers /tmp ou /var/tmp font l'objet d'une partition qui leur soit unique, assurez-vous que les points de montage soient entièrement inscriptibles après montage:

root # chmod 1777 /mnt/funtoo/tmp

Réglage de la date et de l'heure

   Important

Si l'heure et la date du système sont trop loin dans le temps (mois ou années), cela peut empêcher Portage d'effecuter un téléchargement adéquat des fichiers sources. Certains sont téléchargés via HTTPS qui ustilise des certificats SSL possédant des dates d'activation et d'expiration. Vous pouvez passer outre pour le moment si la date et l'heure sont sensiblement les mêmes que la date et l'heure courantes.

Vérifiez maintenant si les date et heure sont correctement réglées sur UTC. Utilisez la commande date pour en vérifier les valeurs:

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

Si la date et/ou l'heure ont besoin d'être ajustées, utilisez la commande date MMDDhhmmYYYY, tout en gardant en tête que hhmm correspond au format 24h. Dans l'exemple ci-après, la date et l'heure sont modifiées pour le "16 juillet 2011 @ 20:00" UTC:

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

Une fois l'horloge du système correctement réglée, il est de bon aloi de copier l'heure dans l'horloge matérielle afin qu'elle demeure consistante d'un démarrage à l'autre:

root # hwclock --systohc

Installation du Stage 3

Une fois les partitions du système créées et formatées et l'horloge réglée, l'étape suivante consiste à télécharger le fichier compressé du Stage 3. Le Stage 3 est un système de base pré-compilé. Il sert de point de départ à l'installation de Funtoo Linux.

Afin de télécharger la version pré-compilée de Funtoo Linux correspondant à l'architecture de votre machine, consultez la page Subarches. Les composantes sous-architectures sont conçues en fonction d'un type de processeur particulier afin d'en tirer le meilleure performance possible. Elles exploitent l'ensemble d'instructions propres à chaque processeur.

La page Subarches liste toutes les verisons de Funtoo Linux optimisées pour un processeur particulier. Trouvez celle appropriée à votre processeur et cliquez sur son nom dans la première colonne, par exemple {{|corei7}}. Vous serez alors redirigé vers la page dédiée à cette sous-architecture. Vous y retrouverez les Stage 3 disponibles au téléchargement.

Si vous utilisez Funtoo Linux dans un environnement virtuel et que votre machine virtuelle peut migrer vers différents types de matériel, il est alors recommandé d'utiliser un Stage 3 optimisé pour le plus vieil ensemble d'instructions du processeur sur lequel tournera la machine virtuelle ou une version hybride du Stage 3 si la machine virtuellle est destinée à un environnement basé sur les processeurs AMD et Intel.


La plupart des sous-architectures proposent plusieurs versions de Stage 3. La section qui suit, vous aidera à faire un choix.

Quelle compilation ?

Dans l'incertitude, choisissez funtoo-current.

Funtoo Linux a diverses compilations différentes.

CompilationDescription
funtoo-currentVersion de Funtoo Linux la plus souvent choisie Elle reçoit rapidement les mises à jour et elle se veut la version préférée des utilisateurs de poste de travail.
funtoo-stableCette version met l'emphase sur la stabilité en offrant des versions antérieures et plus fiables des paquets contrairement aux dernière versions.

Quelle variante ?

Dans l'incertitude, choisissez standard.

Nos Stage 3 «réguliers» sont répertoriés sous la variante dite standard. Les différentes compilations sont :

VarianteDescription
standardVersion «standard» de Funtoo Linux
pure64La version 64-bit ne supporte pas la compatibilité avec les applications 32-bit (multilib). S'avère la version idéale pour les serveurs.
hardenedInclut le <<toolchain>> PIE/SSP pour une sécurité accrue. PIE nécessite l'utilisation de PaX au niveau du noyau, alors que SSP s'adresse à n'importe quel noyau et fournit une sécurité renforcée au niveau de l'espace usager afin de prévenir l'exploitation des failles de sécurité et autres faiblesses pour introduire des <<malware>>. Utilisateurs experts.

Téléchargement du Stage 3

Une fois que vous avez déterminer quelle variante et quelle version du Stage 3 à télécharger, utiliser la commande wget pour télécharger le fichier compressé que vous utiliserez comme base de votre nouveau système Funtoo Linux. Il devrait être enregistré dans le dossier /mnt/funtoo comme ceci :

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

Veuillez noter que les systèmes 64-bit peuvent exécuter des Stage 3 de 64-bit ou 32-bit. Par contre un système 32-bit ne peut utiliser qu'un Stage 3 de 32-bit. Assurez-vous de sélectionner le Stage 3 apparenté à votre processeur. Si vous êtes dans l'incertitude, il est plus prudent de choisir le Stage 3 generic_64 ou le Stage 3 generic_32. Consultez la page Subarches pour plus d'information.

Quand le téléchargement est complété, extrayez le contenu du fichier compressé à l'aide de la commande suivante en substituant le nom du fichier téléchargé :

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

Il est très important d'utiliser l'option «p» de la commande tar lors de l'extraction du fichier compressé Stage 3 - ce paramètre instruit tar de «préserver» et conserver permissions et droit de propriété qui existent dans le fichier archivé. Sans cette option, les droits d'accès aux fichiers du système Funtoo seront incorrects.

Passage à la racine de Funtoo

Pour installer Funtoo Linux, la commande chroot est d'abord exécutée. Cette commande vous place à la racine du nouveau système Funtoo. Ainsi, toutes les commandes qui seront exécutées par la suite, le seront dans l'environnement du système Funtoo Linux que vous venez d'extraire de l'archive du Stage 3.

Mais avant de lancer la commande chroot, il y a quelques petits ajustements à apporter. Vous devez monter les fichiers /proc, /sys et /dev dans le nouveau système. Ayez recours aux commandes suivantes :

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

Il vous faut aussi copier le fichier resolv.conf afin que les noms des hôtes Internet soient correctements résolus.

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.


Téléchargement de l'arbre Portage

   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"

Configuration du système

Utilisation de 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.

Fichiers de configuration

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. Note that it is normal for this file to be empty in Funtoo Linux, as many settings have been migrated to our enhanced profile system.
/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"

Francisation

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.

Introduction à 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.

Mise à jour globale (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.

Noyau

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.

Configuration et installation du noyau

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.

Installation du gestionnaire d'amorçage

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.

Vieille école (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

Nouvelle école (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.

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

Premier démarrage et suivants

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.

Configuration du réseau

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 nmtui command (which has an easy-to-use console-based interface) to configure NetworkManager so that it will connect (and automatically reconnect, after reboot) to a Wi-Fi access point:

root # nmtui

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.

PC de bureau (Câblage 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.

Serveur (IP statique)

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.

Nom de l'hôte

(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

Étapes de finalisation

Définition du mot de passe de l'administrateur

Redémarrage du système

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!

Profils

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

La suite

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.