Outils pour utilisateurs

Outils du site


issue56:tuto1110

Ceci est une ancienne révision du document !


NOTE: Don’t kernel panic, programmers, Greg will be back with more Python next month. Before beginning, please understand that I'm no genius, far from it. My focus has been on Classic (with no effects) only because I've never cared for Compiz anyway, and, from what I've read, it seems to be difficult to get it to run in a classic Oneiric DE. So, if you want Compiz this is NOT for you, sorry. However I do hope someone else will be able to expand on this. I've tested this quite a bit, but only with fresh, fully updated Ubuntu Oneiric installs. Your mileage may vary with installations that have other underlying problems.

NOTE : Pas de noyau paniqué, les programmeurs, Greg sera de retour avec Python le mois prochain.

Avant de commencer, je vous prie de comprendre que je ne suis pas un génie, loin de là. Je ne me suis concentré sur Classic (sans effets) que parce que je n'ai jamais aimé Compiz de toute façon et, d'après ce que j'ai lu, il y auraient des difficultés pour le faire fonctionner dans un environnement de bureau classique Oneiric. Ainsi, si vous voulez Compiz, cet article n'est PAS pour vous. Navré. Toutefois, j'espère vraiment que quelqu'un d'autre saura le développer.

J'ai fait pas mal de tests, mais uniquement avec des installations d'Ubuntu Oneiric neuves et entièrement mises à jour. Des installations avec d'autres problèmes sous-jacents, peuvent donner des résultats différents.

Important warning: Many of the changes made here can and will break Unity, so I highly recommend first testing this either in a virtual machine or a multi-boot. I personally prefer an actual multi-boot but that's just a matter of choice. Another safe way to try this would be to create a new user account with administrative rights, that way the configuration files you change will affect only that new account. Then, if you decide to apply the changes to your original user account, the needed PPA's and packages will already be installed, so you'll need to complete only those steps needed to obtain the desired configuration. And then the new user account could be deleted. This guide is almost totally reliant on copy and pasting commands into gnome-terminal. Why? Quite simply, not all of this can be completed using GUI tools like Ubuntu Tweak or 'gnome-tweak-tool', and installing 'gnome-tweak-tool' results in installing a large number of unneeded packages including 'gnome-shell', and my only concern is getting a “classic w/o effects” desktop environment (DE) running efficiently. Should someone care to use either Ubuntu Tweak or 'gnome-tweak-tool', I have no problem with that, I just prefer the CLI. Also, if I didn't include “sudo” in the command, then it's not needed, and in rare instances may result in changed permissions, so please just copy and paste! Note: If a “step” can be performed using Ubuntu Tweak and/or 'gnome-tweak-tool', I will mention it briefly at the end of that individual step.

Avertissement important : Pas mal des modifications faites ici peuvent casser - et casseront - Unity et je recommande vivement donc de les tester soit sur une machine virtuelle soit sur une machine à multiple amorçage. Personnellement, je préfère un multiple amorçage, mais ce n'est qu'une simple question de choix.

Pour faire des essais en toute sécurité, vous pourriez aussi créer un nouveau compte utilisateur avec les droits d'administrateur ; ainsi, les fichiers de configuration que vous changerez n'affecteront que le nouveau compte. Ensuite, si vous décidez d'appliquer les modifications à votre compte utilisateur original, vous aurez déjà installé les PPA et les paquets dont vous aurez besoin. Il vous faudra alors terminer uniquement les étapes nécessaires pour régler la configuration voulue et, après, vous pourriez supprimer le nouveau compte utilisateur.

L'utilisation de ce guide nécessite l'utilisation de gnome-terminal dans lequel vous devriez coller des commandes que vous aurez copiées. Pourquoi ? Tout simplement parce que vous ne pourriez pas terminer le tout avec des outils à interface graphique tels que Ubuntu Tweak ou « gnome-tweak-tool » et l'installation de « gnome-tweak-tool » entraîne l'installation d'un grand nombre de paquets inutiles y compris « gnome-shell » ; tout ce que je veux c'est créer un environnement de bureau (EB) qui soit « classique sans effets » et qui fonctionne efficacement. Si quelqu'un veut utiliser soit Ubuntu Tweak soit « gnome-tweak-tool », je n'y vois pas d'inconvénient, mais moi, je préfère l'interface en ligne de commande.

Autre chose : si je n'ai pas mis « sudo » dans la commande, il n'y en a pas besoin et, dans quelques rares cas, pourrait entraîner la modification des permissions. Veuillez tout simplement copier et coller !

N.B. Si une étape peut être accomplie avec Ubuntu Tweak et/ou avec « gnome-tweak-tool », j'en parlerai brièvement à la fin de l'étape en question.

First, take a look below at what I ended up with, and then I'll explain how I got there. You'll notice that I prefer only one panel at the bottom. I realize some may want two panels, or one at the top only, it's purely a matter of preference. You also need to know that you must now hold down either Alt key while right-clicking on a panel or applet to be able to edit panel preferences or to add/edit/move/remove more applets. That was an intentional move by the Gnome devs to prevent people from unintentionally breaking things. And you also can't just add application applets by right-clicking them and selecting “add to panel” anymore. You must now open the “add-to-panel” window and select Application Launcher > Forward, then the window changes and you can click on the “bullet” to the left of each category to display and add any app in the menu to the panel: But let’s also look at Panel Properties settings. Note here that in Panel Properties > Background I've found that 'Solid color' > Color > Color name #3F3E39 / Style > Opaque results in vastly improved appearance of the Workspace Switcher, a picture's worth a thousand words: To be perfectly honest, I now forget I'm even using Gnome 3 most of the time other than learning the new keyboard shortcuts which still confuse me. I do know that Ctrl + Alt + T launches gnome-terminal, but even it can be fiddly. I suspect that the new keybindings are truly designed for Gnome Shell, not the “fallback” DE, which I expect to see disappear altogether eventually (hopefully not before the release of Precise Pangolin, though).

Tout d'abord, regardez ci-dessous pour voir le résultat final et, après, j'expliquerai ce que j'ai fait pour y arriver.

Vous remarquerez ma préférence pour un seul panneau ou tableau de bord en bas. Je sais que d'aucuns peuvent en vouloir deux ou, alors, un seul, mais en haut, ce n'est vraiment qu'une question de choix personnel.

Vous aurez aussi besoin de savoir que, dorénavant, il faut appuyer sur l'une des deux touches Alt tout en faisant un clic-droit sur un panneau ou un applet pour pouvoir éditer les préférences du panneau ou ajouter/éditer/déplacer/enlever des applets supplémentaires. Il s'agit d'une manœuvre délibérée faite par les développeurs de Gnome pour empêcher des gens de casser des trucs sans faire exprès. Et vous ne pouvez plus ajouter l'applet d'une application en faisant un clic-droit sur celle-ci et en choisissant « Ajouter au tableau de bord ». Il faut maintenant ouvrir la fenêtre « ajouter au panneau » et sélectionner Application Launcher (lanceur d'applications) > Forward (en avant), puis la fenêtre change et vous pouvez cliquer sur la puce à la gauche de chaque catégorie pour afficher et ajouter au panneau toute appli qui se trouve au menu : Au scribeur - un deux-points, car cela indique la photo en dessous - en anglais

Mais regardons aussi les paramètres des propriétés du panneau (Panel Properties). À savoir dans Panel Properties > Background (Arrière-plan), je trouve que « Couleur unie » > Couleur > Nom de la couleur #3F3E39 / Style > Opaque améliore considérable l'apparence du « Workspace switcher » ; mais étant donné qu'une image vaut mille mots : Au scribeur - idem !!

Pour être honnête, j'oublie maintenant la plupart du temps que je suis en train d'utiliser Gnome 3, outre qu'il me faut apprendre les nouveaux raccourcis clavier qui me gênent encore. Je sais bien que Ctrl + Alt + T lance gnome-terminal, mais même cela peut être capricieux. Je soupçonne que les nouveaux raccourcis clavier ont vraiment été conçus pour Gnome Shell et non pas pour le EB « de recours », qui disparaîtra tout à fait, je pense, à la longue (cependant, espérons-le, pas avant la sortie de Precise Pangolin).

When that is complete, it's time to take your first look at the new “classic” DE by simply logging out, then clicking on the “gear” to the right of your user name on the login screen, selecting Classic (No effects), entering your password, and logging back in. You'll hopefully see this: Now, before continuing, please understand that all of these additional steps are optional. No two people want the exact same look, feel, or function out of a DE! This is just what I wanted. Pick and choose to suit your own desires. Step #3 I quickly realized that the purple background of the terminal was killing my eyes, so, in terminal, I clicked Edit > Profile Preferences > Colors, and unticked the “Use colors from system theme” box. Then, in the same window, I clicked on the color block next to “Background color”, and used the eyedropper to set the background to white. Ahhhh, much easier on the eyes.

Maintenant que vous avez fait tout cela, le moment est venu de regarder le nouveau « classique » environnement de bureau en vous déconnectant, puis en cliquant sur « l'engrenage » à droite de votre nom d'utilisateur sur l'écran de connexion. Vous choisissez Classique (Sans effets), saisissez votre mot de passe et vous vous connectez à nouveau. Vous devriez voir ceci :

Avant de continuer, notez bien que toutes ces étapes supplémentaires sont optionnelles. Il n'y a pas deux personnes qui veulent toute à fait la même apparence, les mêmes sensations ou les mêmes fonctionnalités dans un environnement de bureau ! Celui-ci est exactement ce que moi, je voulais. À vous de choisir selon vos propres souhaits.

Étape n° 3

Je me suis rendu compte rapidement que l'arrière-plan pourpre du terminal me faisait très mal aux yeux et, dans terminal, j'ai donc cliqué sur Édition >Préférences du profil > Couleurs. Là, j'ai décoché « Use colors from system thème » (Utilisez les couleurs du thème système). Ensuite, dans la même fenêtre, j'ai cliqué sur le bloc couleur à côté de « Background color » (Couleur d'arrière-plan)et j'ai utilisé le compte-gouttes pour régler l'arrière plan sur blanc. Ouf ! C'était beaucoup moins dur pour les yeux.

Step #4 I found the screen lock thing very annoying, I live alone and don't like having to enter my password every time the screen-“blanker” activates. So you can just go to System Tools > System Settings > Screen, and select Lock = Off. (I call it a screen-“blanker”, mostly as a joke, because it hardly resembles a screensaver any more). Step #5 Even after setting Lock to Off, I found it annoying to have the screen-“blanker” activate while trying to watch videos or such. In Gnome 2, I used to be able to use 'gnome-inhibit-applet', but it's not available in Gnome 3. No worries, I found a very good replacement, Caffeine: https://launchpad.net/~caffeine-developers/+archive/ppa In my original screenshot, the caffeine applet shows up next to the indicator-applet. I find it to be a sweet replacement for the old 'gnome-inhibit-applet'. Once installed and set up, it allows you to “inhibit” the screen-“blanking”, I think a picture is worth a thousand words - so here: Should you choose to install it you can set up Caffeine by going to Other > Caffeine preferences. Installation is easy: sudo add-apt-repository ppa:caffeine-developers/ppa sudo apt-get update sudo apt-get install caffeine Note: This works equally well in Unity.

Étape n° 4

J'ai trouvé le truc du verrouillage d'écran très agaçant ; je vis seul et n'aime pas devoir donner mon mot de passe chaque fois que le « videur » d'écran s'active. Il suffit d'aller à Outils systèmes > Paramètres système > Écran et de choisir « Lock = Off » (Désactiver le verrouillage). (Je plaisante en l’appelant un « videur » d'écran car il ne ressemble guère plus à un écran de veille).

Étape n° 5

Même après avoir désactivé le verrouillage, l'activation du « videur » d'écran pendant que je regardais des vidéos ou autres films m'irritait profondément. Dans Gnome 2, je pouvais utiliser « gnome-inhibit-applet », mais ce n'est pas disponible dans Gnome 3. Pas de soucis, j'ai trouvé un très bon remplaçant, Caffeine :

https://launchpad.net/~caffeine-developers/+archive/ppa

Dans la capture d'écran initiale, l'applet de caffeine s'affiche à côté de l'indicator-applet. Je le trouve très bien comme remplaçant du vieux « gnome-inhibit-applet ». Une fois installé et configuré, il vous permet d'« inhiber » le « videur » d'écran. Parce que je pense qu'une image vaut mille mots, le voici :

Si vous choisissez de l'installer, vous pouvez configurer Caffeine avec Other > Caffeine preferences. L'installation en est facile :

sudo add-apt-repository ppa:caffeine-developers/ppa

sudo apt-get update

sudo apt-get install caffeine

N.B. Cela fonctionne aussi bien dans Unity.

Step #6 In Unity, the update-notifications now show up in the Launcher, but, without the Launcher, we now get no persistent update notifications. Still, no worries, I got it to show up in either 'indicator-applet' or 'indicator-applet-complete' in gnome-panel by running the command: gsettings set com.ubuntu.update-notifier auto-launch false You can revert that by running: gsettings set com.ubuntu.update-notifier auto-launch true

Étape n° 6

Dans Unity, les notifications de mises à jour apparaissent maintenant dans le Lanceur, mais, sans le Lanceur, nous n'avons plus de notifications de mises à jour persistantes. Mais, là encore, pas de soucis : j'ai réussi à le faire s'afficher soit dans « indicator-applet » soit dans « indicator-applet-complete » dans gnome-panel en exécutant la commande :

gsettings set com.ubuntu.update-notifier auto-launch false

Vous pouvez revenir dessus en exécutant

gsettings set com.ubuntu.update-notifier auto-launch true

Step #7

I really liked using either 'gnome-sensors-applet' or 'computertemp' to display system temps in the panel, but again they're not available with Gnome 3. Again no worries, Hardware Sensors Indicator comes to the rescue:

https://launchpad.net/~alexmurray/+archive/indicator-sensors

More about that here: http://ubuntuforums.org/showpost.php?p=11492701&postcount=4.

To install, just run these three commands:

sudo add-apt-repository ppa:alexmurray/indicator-sensors

sudo apt-get update

sudo apt-get install indicator-sensors

It then shows up in System Tools > Hardware Sensors Indicator. After launching it the first time, you must click on the new “applet” which just says “No active sensors”, and click on Preferences. From there you can select which sensors to display, and other options.

Step #8

It's also sometimes nice to display CPU and memory usage in the panel, so here's System Monitor Indicator: https://launchpad.net/indicator-sysmonitor

More about it here: http://ubuntuforums.org/showpost.php?p=11473552&postcount=208.

To install just run these three commands:

sudo add-apt-repository ppa:alexeftimie/ppa

sudo apt-get update

sudo apt-get install indicator-sysmonitor

It then shows up in Accessories > System monitor indicator. Do not confuse it with System Monitor in System Tools. I think setting it up is almost self explanatory.

Step #9

I found the overlay-scrollbars to be inconsistent and annoying in the classic DE, so I removed them, but that was totally a matter of preference, and this is one of those steps that really seems to somewhat break Unity! Should you want to remove them, run:

sudo apt-get purge liboverlay-scrollbar-0.2-0 liboverlay-scrollbar3-0.2-0 overlay-scrollbar

Note: You'll likely have to reboot for that change to fully take effect.

Step #10

At this point I decided the window-management buttons really needed to be back on the right so I ran:

gconftool-2 –set “/apps/metacity/general/button_layout” –type string “:minimize,maximize,close”

Note: to restore the defaults run:

gconftool-2 –set “/apps/metacity/general/button_layout” –type string “close,minimize,maximize:”

Note: This step (#10) can also be performed using Ubuntu Tweak.

Step #11

At this point, I'm fairly happy, but the scrollbar color is hard on my eyes. It's like trying to differentiate between two shades of white. I'd really prefer having the scrollbars match the dark gray panel or window title-bar with a white background, but I haven't been able to figure that out yet. The best alternative I've found so far is changing the metacity and gtk themes this way:

sudo add-apt-repository ppa:webupd8team/themes

sudo apt-get update

sudo apt-get install shiki-colors-metacity-theme zukitwo-dark-gtk-theme

gconftool-2 -s –type string /apps/metacity/general/theme Shiki-Colors-Metacity

gsettings set org.gnome.desktop.interface gtk-theme Zukitwo-Dark

I found that fairly pleasing to my eyes (it also replaced the drastic orange with a nice grayish-blue, and I like the “retro” look of the window management buttons), but if you should decide to revert to the default Ambiance themes just run:

gconftool-2 -s –type string /apps/metacity/general/theme Ambiance

gsettings set org.gnome.desktop.interface gtk-theme Ambiance

Note: Both Ubuntu Tweak and 'gnome-tweak-tool' can be used for applying themes, but NOT installing themes.

I'm very open to suggestions about theming - this is simply the best combo I've come up with so far.

Step #12

I also dislike the missing menu and button icons, so I run:

gsettings set org.gnome.desktop.interface menus-have-icons true

gsettings set org.gnome.desktop.interface buttons-have-icons true

Note: This step (#12) can also be performed using Ubuntu Tweak.

Step #13

This one is the hardest for me to explain. By default the Oneiric desktop is set to NOT display any icons, but it's possible for the desktop to display any combination of these icons/“actors”:

Computer (computer-icon-visible)

Home (home-icon-visible)

Network (network-icon-visible)

Trash (trash-icon-visible)

Mounted volumes (volumes-visible)

But, to do so, you must first set the “stage” by running:

gsettings set org.gnome.desktop.background show-desktop-icons true

But that only sets the stage for the actors, now you must decide which actors you want on the stage. You're now the director.

After running that command, either reboot, or log out and log back in. When you get back to a blank DE background, decide what you want displayed. (Hint, the “true” or “false” at the end of these commands is the key):

To show the Computer icon run: gsettings set org.gnome.nautilus.desktop computer-icon-visible true

To hide the Computer icon run: gsettings set org.gnome.nautilus.desktop computer-icon-visible false

To show the Home icon run: gsettings set org.gnome.nautilus.desktop home-icon-visible true

To hide the Home icon run: gsettings set org.gnome.nautilus.desktop home-icon-visible false

To show the Network icon run: gsettings set org.gnome.nautilus.desktop network-icon-visible true

To hide the Network icon run: gsettings set org.gnome.nautilus.desktop network-icon-visible false

To show the Trash icon run: gsettings set org.gnome.nautilus.desktop trash-icon-visible true

To hide the Trash icon run: gsettings set org.gnome.nautilus.desktop trash-icon-visible false

To show Mounted Volumes run: gsettings set org.gnome.nautilus.desktop volumes-visible true

To hide Mounted Volumes run: gsettings set org.gnome.nautilus.desktop volumes-visible false

Note: This step can also be performed using either Ubuntu Tweak or 'gnome-tweak-tool'.

Step #14

You may or may not find that you need to disable the Firefox and/or Thunderbird global menu add-ons. It seems to depend on the panel configuration, but I'm not quite sure. To do so in Firefox, just go to Tools > Add-ons > Global Menu Bar integration, and select Disable. You'll then be prompted to restart Firefox. I don't use Thunderbird, so I can't be sure of the specific procedure with it, but I'd think it's similar.

That's it! I hope others will share their favorite Oneiric classic tips and tricks. Maybe someone can even share how they got classic to run with Compiz since that's not my thing.

issue56/tuto1110.1328708297.txt.gz · Dernière modification : 2012/02/08 14:38 de auntiee