Outils pour utilisateurs

Outils du site


issue151:certifie_linux

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
issue151:certifie_linux [2019/11/30 13:54] – créée auntieeissue151:certifie_linux [2019/12/11 15:22] (Version actuelle) andre_domenech
Ligne 1: Ligne 1:
- +**Before we start , here is a new link to test yourself: http://www.penguintutor.com/quiz/index.php
-Before we start , here is a new link to test yourself: http://www.penguintutor.com/quiz/index.php+
  
 Where we are: https://www.lpi.org/our-certifications/exam-201-objectives (Topic 201: The kernel). In your LPIC study guide, mine is the second edition, this will be chapter 3 (pages 94 – 132). If you are using the free book above, it’s chapter 1 (page 15-44). Where we are: https://www.lpi.org/our-certifications/exam-201-objectives (Topic 201: The kernel). In your LPIC study guide, mine is the second edition, this will be chapter 3 (pages 94 – 132). If you are using the free book above, it’s chapter 1 (page 15-44).
  
-Welcome back learners, and a nod to those “just interested”. +Welcome back learners, and a nod to those “just interested”. **
  
-This issueour study material is short and sweet, yet I urge you to go hands on(It is actually pages 15-18 in the free book, but I needed to break it up as next lesson is a bit longer).+Avant de commencervoici un nouveau lien pour que vous vous testiez : http://www.penguintutor.com/quiz/index.php
  
-Compiling a kernel is something that rarely gets done any moreYet it is something you have to knowI got my toes wet the very first time on a Gateway Pentium2 with 256MB memory that needed GentooThe experience was such that I can tell you all the details almost 15 years later! Let us start with the older kernels 2.x & 3.x (you should know the numbering from LPIC-1). For the 2.x-branchI would suggest CentOS 5 or 6, not 7. (Suse doesn’t know where it wants to be with version numbering, so leave it for now). I suggest metal here, adding things, then plugging them in, is just better on metal. Make sure the machine we are going to play on has its BIOS updated beforehand. Lots of vendors supply BIOS updates in windows-only packages. Boo, hiss+Là où nous sommes : https://www.lpi.org/our-certifications/exam-201-objectives (Sujet 201: Le noyau)Dans votre guide d'étude du LPIC (j'ai la seconde édition), ce sera le chapitre 3 (pages 94 132). Si vous utilisez le livre gratuit ci-dessusc'est le chapitre 1 (pages 15 - 44).
  
-Back To The Future+Re-bonjour, les apprentis ; signe de la tête aux « juste intéressés ».
  
-Back to the kernel – and we do not need 1.21 gigawatts either! We need to know where and how. Where to find source code and documentationand how to apply itIf you have ever installed synaptic package manager and just perused the available packages, you may have seen packages with “-devel” in the name. This usually indicates that you get the source code too. In the kernelthis is the case. Every distribution has its own nuances when it comes to compiling the kernel. You have to know the “.rpm-distros” way, and the “.deb-distros” way. The Arch documentation is actually also very good if you would like to play on your own+**This issue, our study material is short and sweetyet I urge you to go hands on(It is actually pages 15-18 in the free bookbut I needed to break it up as next lesson is a bit longer).
  
-On .rpm-based distro”, you can run: yum install kernel-devel, which will pull the sources for you and dump it in: /usr/src/kernels/. Each version of the kernel source will have its own folder, named for the versionTo see which is the current source, you can use: uname -a. As for the documentation, this depends on your version of the kernelIf you use the 2.6.x branch, it still needs to be installed separately: yum install kernel-doc. Unlike the sourcethere is more than one place to find it. There is the place defined by the standard/usr/src/Linux/but SuseCentOS, Mageia, and Red Hat, each have their own hidey-hole(Looking in /usr/share/doc/ should be your first destination). However, your targets for the exam are Red Hat and Debian and kernels 2.6 and 3.5.+Compiling kernel is something that rarely gets done any moreYet it is something you have to knowI got my toes wet the very first time on Gateway Pentium2 with 256MB memory that needed GentooThe experience was such that I can tell you all the details almost 15 years later! Let us start with the older kernels 2.x & 3.x (you should know the numbering from LPIC-1)For the 2.x-branch, I would suggest CentOS 5 or 6, not 7. (Suse doesn’t know where it wants to be with version numberingso leave it for now)I suggest metal hereadding thingsthen plugging them inis just better on metalMake sure the machine we are going to play on has its BIOS updated beforehandLots of vendors supply BIOS updates in windows-only packagesBoo, hiss**
  
-Back to the 2.6 branch. If you find the documentation directoryyou will notice that it is a whore’s handbagthere is no consistencyIn my humble opinionthis is the folder that needs Linus Torvald’s angry rants most. For the exam, you need to be able to find it – looking on an old CentOS machine, it is in /usr/share/doc/kernel-doc-<version.number>/Documentationand I urge you to go find it yourself.+Pour ce numéronotre matériel d'étude est court et concis ; à nouveauje vous invite instamment à mettre les mains dans le cambouis(Dans le livre gratuitce sont les pages 15 à 18mais j'ai besoin de les morceler car la prochaine leçon est un peu plus longue.)
  
-Now on a 3.x kernel system (Ubuntu, my case), you can grab it all with one go: “apt-get source.” The full command being: apt-get source linux-image -<version.number>. If you know a bit about bash scriptingyou can substitute the <> part in angle bracketswith $(uname -rif it is the current one you are looking for, but it will work with other versions tooNavigate to /usr/src/ and look for the linux-headers folderand inside of that you should find the documentation folder. Now you may ask “what is all this ‘should’ nonsense?” Wellyou may find multiple folders here and you need to run uname -a again to find out which one you are usingNEVER assume it is the latest (biggest number) one+La compilation d'un noyau est quelque chose qui n'est plus faite que rarement. Pourtant, c'est une chose que vous devez connaître. J'y ai trempé les orteils pour la première fois sur un Pentium 2 de Gateway avec 256 Mo de mémoire qui avait besoin de Gentoo. L'expérience était telle que je peux vous en donner tous les détails presque 15 ans après ! Commençons avec les anciens noyaux 2.x et 3.x (vous devriez connaître la numérotation depuis LPIC-1)Pour la branche 2.xje vous suggère CentOS 5 ou 6pas 7. (Suse ne sait pas où il veut se placer pour la numérotation des versions ; aussi, abandonnez-le pour le moment). Je suggère de commencer au ras des composantsd'ajouter des choses puis de les connecterce qui est simplement mieux au ras des puces. Assurez-vous d'abord que le BIOS de la machine sur laquelle nous allons jouer est à jourBeaucoup de fournisseurs délivrent des mises à jour du BIOS dans des paquets pour le seul WindowsHou, hou !
  
-Now you may have done things differently, I know I have, but for the exam, know the stock standard way. +**Back To The Future 
 + 
 +Back to the kernel – and we do not need 1.21 gigawatts either! We need to know where and how. Where to find source code and documentation, and how to apply it. If you have ever installed synaptic package manager and just perused the available packages, you may have seen packages with “-devel” in the name. This usually indicates that you get the source code too. In the kernel, this is the case. Every distribution has its own nuances when it comes to compiling the kernel. You have to know the “.rpm-distros” way, and the “.deb-distros” way. The Arch documentation is actually also very good if you would like to play on your own. ** 
 + 
 +Retour vers le futur 
 + 
 +Revenons au noyau - et nous n'avons pas non plus besoin de 1,21 gigaWatts ! Nous devons savoir où et comment. Où trouver le code source et la documentation, et comment l'appliquer. Si vous avez déjà installé le gestionnaire de paquets Synaptic et déjà utilisé les paquets disponibles, vous devriez avoir déjà vu des paquets dont le nom comporte « -devel ». Ça indique en général que le code source vous est aussi fourni. Dans le noyau, c'est le cas. Chaque distribution a ses propres nuances à propos de la compilation du noyau. Vous devez connaître les méthodes des « distrib. rpm » et celles des « distrib. deb ». La documentation d'Arch est aussi vraiment très bonne si vous aimez jouer seul. 
 + 
 +**On a “.rpm-based distro”, you can run: yum install kernel-devel, which will pull the sources for you and dump it in: /usr/src/kernels/. Each version of the kernel source will have its own folder, named for the version. To see which is the current source, you can use: uname -a. As for the documentation, this depends on your version of the kernel. If you use the 2.6.x branch, it still needs to be installed separately: yum install kernel-doc. Unlike the source, there is more than one place to find it. There is the place defined by the standard, /usr/src/Linux/, but Suse, CentOS, Mageia, and Red Hat, each have their own hidey-hole. (Looking in /usr/share/doc/ should be your first destination). However, your targets for the exam are Red Hat and Debian and kernels 2.6 and 3.5.** 
 + 
 +Sur une distrib. rpm, vous pouvez lancer yum install kernel-devel, qui va récupérer les sources pour vous et les mettre dans : /usr/src/kernels/. Chaque version des sources du noyau aura son propre dossier, nommé suivant la version. Pour voir quelle est la source actuelle, vous pouvez utiliser : uname -a. Pour la documentation aussi, cela dépend de votre version du noyau. Si vous utilisez la branche 2.6.x, elle doit être installée indépendamment : yum install kernel-doc. Contrairement aux sources, il y a plus d'un endroit où la trouver. Un emplacement est défini par la norme, /usr/src/Linux/, mais Suse, CentOS, Mageia et Red Hat ont chacun leur propre cachette. (Un coup d'œil dans /usr/share/doc devra être le premier réflexe.) Cependant, vos cibles pour l'examen sont Red Hat et Debian et les noyaux 2.6 et 3.5. 
 + 
 +**Back to the 2.6 branch. If you find the documentation directory, you will notice that it is a whore’s handbag, there is no consistency. In my humble opinion, this is the folder that needs Linus Torvald’s angry rants most. For the exam, you need to be able to find it – looking on an old CentOS machine, it is in /usr/share/doc/kernel-doc-<version.number>/Documentation, and I urge you to go find it yourself. 
 + 
 +Now on a 3.x kernel system (Ubuntu, my case), you can grab it all with one go: “apt-get source.” The full command being: apt-get source linux-image -<version.number>. If you know a bit about bash scripting, you can substitute the <> part in angle brackets, with $(uname -r) if it is the current one you are looking for, but it will work with other versions too. Navigate to /usr/src/ and look for the linux-headers folder, and inside of that you should find the documentation folder. Now you may ask “what is all this ‘should’ nonsense?” Well, you may find multiple folders here and you need to run uname -a again to find out which one you are using. NEVER assume it is the latest (biggest number) one. ** 
 + 
 +Revenons à la branche 2.6. Si vous trouvez le répertoire de la documentation, vous remarquerez que c'est un sac à main de femme, qui n'a aucune organisation. À mon humble opinion, c'est le dossier contre lequel le colérique Linus Torvalds devrait fulminer le plus. Pour l'examen, vous devez être capable de le trouver ; en regardant dans une vieille machine CentOS, c'est dans /usr/share/doc/kernel-doc-<version.number>/Documentation, et je vous invite fortement à le trouver par vous-même. 
 + 
 +Maintenant, dans le système de noyaux 3.x (Ubuntu, dans mon cas), vous pouvez le récupérer d'un seul coup : « apt-get source ». La commande complète serait apt-get source linux-image -<numéro_de_version>. Si vous connaissez un peu les scripts bash, vous pouvez substituer la partie <...> par $(uname -r) si c'est le noyau actuel que vous cherchez, mais cela fonctionnera aussi avec d'autres versions. Naviguez jusqu'à /usr/src/ et regardez le dossier linux-headers, dans lequel vous devriez trouver le dossier de la documentation. Là, vous pourriez vous demander : « Qu'est-ce que c'est que ce non-sens d'un conditionnel ? Eh bien ! Vous pouvez trouver plusieurs dossiers ici et vous devez lancer à nouveau uname -a pour déterminer lequel vous utilisez. NE présumez JAMAIS que c'est le plus récent (le nombre le plus élevé). 
 + 
 +**Now you may have done things differently, I know I have, but for the exam, know the stock standard way. 
  
 This is basically all you need to know about the documentation. It is really not a lot, but go and do it, that way it will stick. Go grab the documentation for kernel 3.1, then go grab the documentation for kernel 3.3, see what happens in the folders when you do.  This is basically all you need to know about the documentation. It is really not a lot, but go and do it, that way it will stick. Go grab the documentation for kernel 3.1, then go grab the documentation for kernel 3.3, see what happens in the folders when you do. 
  
-Next issue we will look at the kernel components and compression. +Next issue we will look at the kernel components and compression. **
  
-If you would like to jump ahead, or test your skills at an LPI exam, do a test paper here: https://www.itexams.com/exam/117-201 (These were once valid LPI questions and will ease you into the format):+Mais vous auriez pu faire les choses différemment. Je sais que c'est mon cas, mais, pour l'examen, connaissez le chemin normal vers le stockage. 
 + 
 +C'est en gros tout ce que vous devez savoir sur la documentation. Ça ne fait pas beaucoup, mais allez-y et faites-le, pour que ça vous reste en mémoire. Allez récupérer la documentation pour le noyau 3.1, puis, allez chercher la documentation pour le noyau 3.3 ; regardez ce qui se passe dans les dossiers quand vous le faites. 
 + 
 +Dans le prochain numéro, nous regarderons les composants du noyau et la compression. 
 + 
 +**If you would like to jump ahead, or test your skills at an LPI exam, do a test paper here: https://www.itexams.com/exam/117-201 (These were once valid LPI questions and will ease you into the format):
 • The new exam number is 201-400 and 117-201 was the old one. • The new exam number is 201-400 and 117-201 was the old one.
 • The site does require signing up, but sign up with temporary email – not your real email. • The site does require signing up, but sign up with temporary email – not your real email.
 • DO NOT learn these questions parrot fashion, as they are probably not real exam questions. • DO NOT learn these questions parrot fashion, as they are probably not real exam questions.
  
-Let us know how you did – good or bad, it does not matter. Good, means you are ready to write and confident in your skills. Bad means you will be learning new stuff!! Yay! There is no down side here. If you do not know why an answer is the way it is, contact us.+Let us know how you did – good or bad, it does not matter. Good, means you are ready to write and confident in your skills. Bad means you will be learning new stuff!! Yay! There is no down side here. If you do not know why an answer is the way it is, contact us.** 
 + 
 +Si vous aimez prendre de l'avance, ou tester votre dextérité pour un examen du LPI, faites un test sur papier ici : https://www.itexams.com/exam/117-201 (ce sont d'anciennes vraies questions du LPI et elles vous mettront à l'aise avec la formulation) : 
 +••Le numéro du nouvel examen est 201-400 et 117-201 était l'ancien. 
 +••Le site nécessite une inscription, mais donnez un adresse mail temporaire, pas votre vraie adresse mail. 
 +••N'apprenez PAS ces questions par cœur, car ce ne sont probablement pas les vraies questions de l'examen. 
 + 
 +Faites-nous savoir ce que vous avez fait - bon ou mauvais, ça n'a pas d'importance. Bien, ça signifie que vous êtes prêt pour l'écrit et confiant dans vos connaissances. Mal, ça signifie que vous apprendrez de nouvelles choses ! Eh oui ! Ici, il n'y a pas de côté négatif ! Si vous ne  connaissez pas les raisons pour telle ou telle réponse, contactez-nous.
  
issue151/certifie_linux.1575118451.txt.gz · Dernière modification : 2019/11/30 13:54 de auntiee