issue118:tutoriel1
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue118:tutoriel1 [2017/02/28 11:08] – créée auntiee | issue118:tutoriel1 [2017/03/08 07:58] (Version actuelle) – d52fr | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | You just created a shiny new Linux system with all the bells and whistles? Happy to see your new babe giggle and dance, as you play with her? You want it to be the same way all the time? It is important to do some house-keeping once in a while. | + | **You just created a shiny new Linux system with all the bells and whistles? Happy to see your new babe giggle and dance, as you play with her? You want it to be the same way all the time? It is important to do some house-keeping once in a while. |
Over time, a computer system tends to get cluttered for many reasons. For example, software packages that are no longer needed can be uninstalled. When the system is upgraded from release to release, it may miss out on configuration tweaks that freshly installed systems get. Updating your system through the default updating tool will gradually cause the accumulation of packages and the filling of the cache. This can have a larger impact when you're uninstalling software packages, and their dependencies are left behind for no reason. | Over time, a computer system tends to get cluttered for many reasons. For example, software packages that are no longer needed can be uninstalled. When the system is upgraded from release to release, it may miss out on configuration tweaks that freshly installed systems get. Updating your system through the default updating tool will gradually cause the accumulation of packages and the filling of the cache. This can have a larger impact when you're uninstalling software packages, and their dependencies are left behind for no reason. | ||
- | Over the time, you could have a dozen copies of the same file lying in different corners of your system. The best place is to hunt them down and eliminate them before they take control of the hard disk. | + | Over the time, you could have a dozen copies of the same file lying in different corners of your system. The best place is to hunt them down and eliminate them before they take control of the hard disk.** |
- | Occasional mishaps, like unexpected disk crashes, or unintentional power failures, may leave your disk with a lot of inaccessible fragments. | + | Vous venez de créer un système Linux, tout nouveau, tout beau, avec toutes les fioritures ? Ça vous plaît de regarder votre nouvelle copine danser en rigolant pendant que vous jouez avec ? Vous voulez que ça dure ainsi à tout jamais ? Il est important de faire un peu de ménage de temps en temps. |
+ | |||
+ | Au fil du temps, un système informatique a tendance à s' | ||
+ | |||
+ | Au fil du temps, il pourrait y avoir une douzaine d' | ||
+ | |||
+ | **Occasional mishaps, like unexpected disk crashes, or unintentional power failures, may leave your disk with a lot of inaccessible fragments. | ||
A badly configured application may quietly chew up your disk, till there is no more free space left. Or, a runaway process or shell script may keep filling up your disk over and over again. The result could be a dramatic lockout for you. | A badly configured application may quietly chew up your disk, till there is no more free space left. Or, a runaway process or shell script may keep filling up your disk over and over again. The result could be a dramatic lockout for you. | ||
Ligne 19: | Ligne 25: | ||
df -h | df -h | ||
- | You can take the following preventive measures to avoid disasters. | + | You can take the following preventive measures to avoid disasters.** |
+ | |||
+ | Des incidents occasionnels, | ||
+ | |||
+ | Une application mal configurée peut, sans crier gare, ronger votre disque jusqu' | ||
+ | |||
+ | Linux propose une collection époustouflante d' | ||
+ | |||
+ | Une vérification de la santé de vos disques | ||
+ | |||
+ | La commande suivante révélera beaucoup sur des problèmes de santé éventuels : | ||
+ | |||
+ | sudo parted /dev/sda ‘print’ | ||
+ | |||
+ | df -h | ||
+ | |||
+ | Vous pouvez prendre les mesures préventives suivantes pour éviter des catastrophes : | ||
- | Call the professionals | + | **Call the professionals |
• Computer Janitor is an application to fix these kinds of problems. It attempts to find software packages that can be removed, and tweaks the system configuration in useful ways. | • Computer Janitor is an application to fix these kinds of problems. It attempts to find software packages that can be removed, and tweaks the system configuration in useful ways. | ||
• Do not use this program if you want to clean your system. All it does is remove packages it " | • Do not use this program if you want to clean your system. All it does is remove packages it " | ||
• Ubuntu Tweak is capable of a lot more than just system cleaning, but it is one aspect of the application that remains unsurpassed in terms of ease-of-use and features. Best of all, it doesn’t trash your system! | • Ubuntu Tweak is capable of a lot more than just system cleaning, but it is one aspect of the application that remains unsurpassed in terms of ease-of-use and features. Best of all, it doesn’t trash your system! | ||
- | • BleachBit quickly frees disk space, removes hidden junk, and easily guards your privacy. Erase cache, delete cookies, clear Internet history, remove unused localizations, | + | • BleachBit quickly frees disk space, removes hidden junk, and easily guards your privacy. Erase cache, delete cookies, clear Internet history, remove unused localizations, |
- | Trusty ol’ terminal commands | + | Faites venir les pros |
+ | |||
+ | • Computer Janitor est une application qui sait réparer ce genre de problèmes. Elle essaie de trouver les paquets logiciels qui peuvent être enlevés et ajuste la configuration du système de plusieurs façons utiles. | ||
+ | • N' | ||
+ | • Ubuntu Tweak peut faire beaucoup plus que le ménage dans votre système, mais c'est l'un des aspects de l' | ||
+ | • BleachBit libère rapidement de l' | ||
+ | |||
+ | **Trusty ol’ terminal commands | ||
Read all the corresponding man pages before you use these tools. | Read all the corresponding man pages before you use these tools. | ||
Ligne 35: | Ligne 64: | ||
If you’re not familiar with it, ncdu is an ncurses interface for du, the tool used for estimating file space usage on Linux distributions. du is installed out-of-the-box, | If you’re not familiar with it, ncdu is an ncurses interface for du, the tool used for estimating file space usage on Linux distributions. du is installed out-of-the-box, | ||
+ | |||
+ | sudo apt-get update | ||
+ | |||
+ | sudo apt-get install ncdu** | ||
+ | |||
+ | Les bonnes et fidèles commandes du terminal | ||
+ | |||
+ | Lisez toutes les pages man correspondantes avant d' | ||
+ | |||
+ | ncdu - ncdu analyse l' | ||
+ | |||
+ | Si vous ne le connaissez pas, ncdu est une interface ncurses pour du, l' | ||
sudo apt-get update | sudo apt-get update | ||
Ligne 40: | Ligne 81: | ||
sudo apt-get install ncdu | sudo apt-get install ncdu | ||
- | You can uninstall ncdu and its dependent packages. To remove the ncdu package and any other dependant package which are no longer needed: | + | **You can uninstall ncdu and its dependent packages. To remove the ncdu package and any other dependant package which are no longer needed: |
sudo apt-get remove --auto-remove ncdu | sudo apt-get remove --auto-remove ncdu | ||
Ligne 50: | Ligne 91: | ||
sudo apt-get clean | sudo apt-get clean | ||
- | Ubuntu doesn' | + | Ubuntu doesn' |
- | Get rid of cobwebs | + | Vous pouvez désinstaller ncdu et toutes ses dépendances. Pour enlever le paquet ncdu et tout paquet dépendant dont vous n'avez plus besoin : |
+ | |||
+ | sudo apt-get remove --auto-remove ncdu | ||
+ | |||
+ | Si vous n' | ||
+ | |||
+ | sudo aptitude autoremove | ||
+ | |||
+ | sudo apt-get clean | ||
+ | |||
+ | Ubuntu ne se pollue pas beaucoup au cours du temps avec une exception importante, à savoir, les vieux noyaux. Il n'a même pas besoin d' | ||
+ | |||
+ | **Get rid of cobwebs | ||
Remove junk files. | Remove junk files. | ||
Ligne 80: | Ligne 133: | ||
rm xyz/ | rm xyz/ | ||
- | Get rid of polluted settings in your web browser | + | ** |
+ | |||
+ | Enlevez les toiles d' | ||
+ | |||
+ | Débarrassez-vous des fichiers inutiles. | ||
+ | |||
+ | Il peut s'agir habituellement des fichiers autosave (qui s' | ||
+ | |||
+ | # Définissez DRDT de façon convenable | ||
+ | DRDT=xyz/ | ||
+ | find $1 -iname " | ||
+ | # Vous pouvez maintenant traiter les fichiers de DRDT comme vous voudrez. | ||
+ | |||
+ | Nettoyez le cache des navigateurs... | ||
+ | |||
+ | ... avec les outils fournis par les navigateurs. | ||
+ | |||
+ | Éclaircissez les miniatures | ||
+ | |||
+ | Pour chaque image affichée, Ubuntu crée automatiquement une miniature que vous verrez dans le gestionnaire des fichiers. Il stocke ces miniatures dans un dossier caché de votre compte utilisateur (le nom des dossiers ou fichiers cachés commence par un point, comme .cache ou .bash_history. C'est le point qui les rend cachés). | ||
+ | |||
+ | Au cours du temps, la quantité des miniatures peut augmenter considérablement. En outre, le cache des miniatures contiendra à la longue de très nombreuses miniatures superflues d' | ||
+ | |||
+ | Éclaircissez les miniatures environ tous les six mois. La façon la plus rapide de le faire est avec des commandes comme celles-ci : | ||
+ | |||
+ | rm xyz/ | ||
+ | |||
+ | rm xyz/ | ||
+ | |||
+ | rm xyz/ | ||
+ | |||
+ | **Get rid of polluted settings in your web browser | ||
Firefox and Chromium/ | Firefox and Chromium/ | ||
Ligne 92: | Ligne 176: | ||
fsck | fsck | ||
- | fsck “fsck” stands for “File System Consistency checK”. fsck is used to check and optionally repair one or more Linux filesystems. Filesys can be a device name (e.g. /dev/hdc1, /dev/sdb2), a mount point (e.g. /, /usr, /home), or an ext2 label or UUID specifier (e.g. UUID=8868abf6-88c5-4a83-98b8-bfc24057f7bd or LABEL=root). | + | fsck “fsck” stands for “File System Consistency checK”. fsck is used to check and optionally repair one or more Linux filesystems. Filesys can be a device name (e.g. /dev/hdc1, /dev/sdb2), a mount point (e.g. /, /usr, /home), or an ext2 label or UUID specifier (e.g. UUID=8868abf6-88c5-4a83-98b8-bfc24057f7bd or LABEL=root).** |
- | You shouldn' | + | Débarrassez-vous des réglages pollués dans votre navigateur Web |
+ | |||
+ | Ne vous fiez pas aveuglément aux extensions et modules complémentaires de Firefox et Chromium/ | ||
+ | |||
+ | Des symlinks cassés | ||
+ | |||
+ | Des liaisons symboliques sont souvent utilisées pour « stocker » des exemplaires multiples d'un seul et même fichier dans différents endroits, mais font référence à ce seul fichier. Que se passe-t-il si je supprime le fichier original, mais pas le lien ? Le lien restera, mais indiquera un fichier qui n' | ||
+ | |||
+ | find / | ||
+ | |||
+ | fsck | ||
+ | |||
+ | « fsck » est l’abréviation de « File System Consistency check » (Vérification de la consistance du système de fichier). fsck est utilisé pour vérifier et, le cas échéant, réparer un ou plusieurs systèmes de fichiers Linux. Le système de fichiers peut être le nom d'un dispositif (par ex. /dev/hdc1, /dev/sdb2), un point de montage (/, /usr, /home), ou une « label » (étiquette) ext2 ou un descripteur UUID (par ex. UUID=8868abf6-88c5-4a83-98b8-bfc24057f7bd ou LABEL=root). | ||
+ | |||
+ | **You shouldn' | ||
You will need root/ | You will need root/ | ||
Ligne 107: | Ligne 205: | ||
During the filesystem check, if errors are detected, you can get “fsck” to auto repair the filesystem with the -y flag. For example: | During the filesystem check, if errors are detected, you can get “fsck” to auto repair the filesystem with the -y flag. For example: | ||
- | fsck -y /dev/sda2 | + | fsck -y /dev/sda2** |
- | If you have installed and uninstalled a lot of applications, chances are your system is infected with a lot of dependencies files that you have absolutely no use for. Here are some useful commands to get rid of any partial package and remove any unused dependencies: | + | De toute façon, vous ne devriez pas avoir besoin de fsck pour des systèmes de fichiers modernes, puisqu' |
+ | Il faut les droits root/sudo pour lancer la commande « fsck ». | ||
+ | |||
+ | # fsck /dev/sda6 | ||
+ | # La sortie de fsck suit | ||
+ | fsck d' | ||
+ | |||
+ | e2fsck 1.42 (29-Nov-2011) | ||
+ | / | ||
+ | |||
+ | Pendant la vérification du système de fichiers, si des erreurs sont détectées, | ||
+ | |||
+ | fsck -y /dev/sda2 | ||
+ | **If you have installed and uninstalled a lot of applications, | ||
sudo apt-get clean | sudo apt-get clean | ||
Ligne 123: | Ligne 234: | ||
sudo apt-get autoremove | sudo apt-get autoremove | ||
- | This command will remove packages that were installed as dependencies for another package that has been removed, and so are no longer needed. | + | This command will remove packages that were installed as dependencies for another package that has been removed, and so are no longer needed.** |
- | fslint | + | Si vous avez installé et désinstallé de nombreuses applications, |
+ | |||
+ | sudo apt-get clean | ||
+ | |||
+ | Pour nettoyer le cache local des fichiers de paquets récupérés. | ||
+ | |||
+ | sudo apt-get autoclean | ||
+ | |||
+ | Pour enlever seulement les paquets qui ne sont pas du tout nécessaires et qui ne se trouvent plus dans les dépôts, ou dont une nouvelle version en a été trouvée. | ||
+ | |||
+ | sudo apt-get autoremove | ||
+ | |||
+ | Pour supprimer des paquets installés en tant que dépendances d'un autre paquet qui a été supprimé et, par conséquent, | ||
+ | |||
+ | **fslint | ||
fslint is a utility to find and clean various forms of lint on a filesystem, especially duplicate files and broken symlinks. | fslint is a utility to find and clean various forms of lint on a filesystem, especially duplicate files and broken symlinks. | ||
Ligne 135: | Ligne 260: | ||
In Conclusion | In Conclusion | ||
- | Just like regular exercise helps you reduce your belly fat and keeps you fit, frequent housekeeping will ensure that your Linux system works effortlessly and flawlessly. This article has given an overview of the options which Linux offers you for housekeeping. | + | Just like regular exercise helps you reduce your belly fat and keeps you fit, frequent housekeeping will ensure that your Linux system works effortlessly and flawlessly. This article has given an overview of the options which Linux offers you for housekeeping.** |
+ | |||
+ | fslint | ||
+ | |||
+ | fslint est un utilitaire qui trouve et nettoie diverses formes de « moutons » dans un système de fichiers, en particulier les doublons et les symlinks cassés. | ||
+ | |||
+ | Pour installer flslint : | ||
+ | |||
+ | sudo apt-get install fslint | ||
+ | |||
+ | Conclusion | ||
+ | Tout comme un exercice régulier vous aide à réduire votre ventre et vous garde en forme, faire fréquemment le ménage dans votre système permettra d' |
issue118/tutoriel1.1488276523.txt.gz · Dernière modification : 2017/02/28 11:08 de auntiee