Outils pour utilisateurs

Outils du site


tuto:gentoo:tuto_gentoo

Différences

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

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tuto:gentoo:tuto_gentoo [2012/04/14 12:04] roottuto:gentoo:tuto_gentoo [2016/01/14 22:40] (Version actuelle) – [Voir quel package est lié à une variable use] root
Ligne 37: Ligne 37:
   etc-update (ou dispatch-conf)   etc-update (ou dispatch-conf)
   eclean-dist   eclean-dist
 +
 +  * Voir les info d'emerge : variables de compilation utilisées (on peut les forcer ces variables dans le fichier //**/etc/make.conf**//) :
 +
 +  emerge --info
  
 ===== Description des variables use ===== ===== Description des variables use =====
Ligne 42: Ligne 46:
   cat /usr/portage/profiles/use.desc   cat /usr/portage/profiles/use.desc
  
 +===== Voir quel package est lié à une variable use =====
 +<code>
 +euse -i zlib
 +</code>
 +<code>
 +equery hasuse mysql
 +</code>
 ===== Installation aux petits oignons ===== ===== Installation aux petits oignons =====
 Installe le "soft" avec les options choisies (avec opt1 et sans opt2) Installe le "soft" avec les options choisies (avec opt1 et sans opt2)
Ligne 60: Ligne 71:
 ===== Lister toutes les versions d'un soft ===== ===== Lister toutes les versions d'un soft =====
 <code> <code>
-equery list -po firefox+equery list -po firefox
  * Searching for firefox ...  * Searching for firefox ...
 [-P-] [  ] www-client/firefox-3.6.20:0 [-P-] [  ] www-client/firefox-3.6.20:0
Ligne 69: Ligne 80:
  
 <code> <code>
-equery meta firefox+equery meta firefox
  * www-client/firefox [gentoo]  * www-client/firefox [gentoo]
 Herd:        mozilla (mozilla@gentoo.org) Herd:        mozilla (mozilla@gentoo.org)
Ligne 99: Ligne 110:
 ====== SCRIPT D'INSTALLATION ====== ====== SCRIPT D'INSTALLATION ======
  
-<code>+<code bash install.sh>
 #!/bin/bash #!/bin/bash
  
Ligne 187: Ligne 198:
 sleep 3 sleep 3
 cp -a "${CONF_PATH}/make.conf" etc/make.conf cp -a "${CONF_PATH}/make.conf" etc/make.conf
-COMPILE_CPU=`lscpu | grep "^CPU(s):" | awk '{ print $NF+1 }'`+COMPILE_CPU=`lscpu | grep "^CPU\(s\):" | awk '{ print $NF+1 }'`
 echo "MAKEOPTS='-j$COMPILE_CPU -l$COMPILE_CPU'" >> etc/make.conf echo "MAKEOPTS='-j$COMPILE_CPU -l$COMPILE_CPU'" >> etc/make.conf
 echo "EMERGE_DEFAULT_OPTS='--jobs=$COMPILE_CPU --load-average=${COMPILE_CPU}.0 --with-bdeps y'" >> etc/make.conf echo "EMERGE_DEFAULT_OPTS='--jobs=$COMPILE_CPU --load-average=${COMPILE_CPU}.0 --with-bdeps y'" >> etc/make.conf
 +echo "PORTAGE_NICENESS=15" >> etc/make.conf
 vi etc/make.conf vi etc/make.conf
  
Ligne 211: Ligne 223:
 hostname $MYHOSTNAME hostname $MYHOSTNAME
 echo -e "\n* Génération des locales..." echo -e "\n* Génération des locales..."
-locale.gen+locale-gen
 echo -e "\nDéfinition du password root..." echo -e "\nDéfinition du password root..."
 echo "changeme echo "changeme
Ligne 306: Ligne 318:
  
 ===== Fichier conf/fstab ===== ===== Fichier conf/fstab =====
-<code> +<code - fstab
-/dev/dm-3               /               ext3            defaults        0 1+/dev/dm-3               /            ext3            defaults        0 1
 /dev/dm-4               /home        ext3            defaults        0 2 /dev/dm-4               /home        ext3            defaults        0 2
 </code> </code>
  
 ===== Fichier conf/grub ===== ===== Fichier conf/grub =====
-<code>+<code - grub>
 default 0 default 0
 timeout 30 timeout 30
Ligne 330: Ligne 342:
  
 ===== Fichier conf/keymaps ===== ===== Fichier conf/keymaps =====
-<code>+<code make keymaps>
 # Use keymap to specify the default console keymap.  There is a complete tree # Use keymap to specify the default console keymap.  There is a complete tree
 # of keymaps in /usr/share/keymaps to choose from. # of keymaps in /usr/share/keymaps to choose from.
Ligne 356: Ligne 368:
 </code> </code>
  
-===== Fichier conf/make.conf ===== +===== Fichier conf/make.conf===== 
-<code>+<code make make.conf>
 # These settings were set by the catalyst build script that automatically                                                                                                                                                                           # These settings were set by the catalyst build script that automatically                                                                                                                                                                          
 # built this stage.                                                                                                                                                                                                                                 # built this stage.                                                                                                                                                                                                                                
 # Please consult /usr/share/portage/config/make.conf.example for a more                                                                                                                                                                             # Please consult /usr/share/portage/config/make.conf.example for a more                                                                                                                                                                            
 # detailed example.                                                                                                                                                                                                                                 # detailed example.                                                                                                                                                                                                                                
-CFLAGS="-march=native -O2 -pipe"                                                                                                                                                                                                                   +CFLAGS="-march=native -mtune=native -O3 -pipe"                                                                                                                                                                                                                   
 CXXFLAGS="${CFLAGS}"                                                                                                                                                                                                                                CXXFLAGS="${CFLAGS}"                                                                                                                                                                                                                               
 # WARNING: Changing your CHOST is not something that should be done lightly. # WARNING: Changing your CHOST is not something that should be done lightly.
tuto/gentoo/tuto_gentoo.txt · Dernière modification : 2016/01/14 22:40 de root