Outils pour utilisateurs

Outils du site


issue67:demandez_au_petit_nouveau

Ceci est une ancienne révision du document !


Intro

Hi, everyone! Welcome back to Ask the New Guy! If you have a simple question, and want an answer that doesn’t require grad school, contact me at copil.yanez@gmail.com. Today’s question comes to us from anonymous poster Schmopil Schmanyez who asks: Q: How do I make my desktop look like a Terminator’s heads-up display? A: Good question, Schmopil! And may I add that I can tell by your question you are one handsome devil. If you’re reading my column, then you’re either an Ubuntu neophyte like me, or you’re just a masochist who loves seeing the English language butchered in novel ways. If you’re the former, and using Ubuntu is a relatively new experience, then you might not understand the appeal of tweaking your desktop to make it look like it’s been taken over by the ghost of TRON. But you will, trust me. See, using Ubuntu is like playing a video game. The main campaign is usually fun and exciting, but there are also achievements to be unlocked along the way.

Salut à tous ! Bon retour dans Demandez au petit nouveau !

Si vous avez une question simple et ne voulez pas de réponse trop complexe, vous pouvez me contacter à copil.yanez@gmail.com.

La question actuelle est venu d'un anonyme, Schmopil Schmanyez qui demande :

Q : Comment rendre l’apparence de mon bureau pareil à l'affichage « heads-up » (HUD) d'un Terminator ?

R : Bonne question, Schmopil ! Et permettez-moi d'ajouter que votre question me fait penser que vous êtes d'une beauté diabolique. [Ndt : Schmopil = Copil et Schmanyez = Yanez ; l'auteur parle de lui-même.]

Si vous lisez ma rubrique, alors soit, comme moi, vous êtes nouveau dans Ubuntu, soit vous n'êtes qu'un masochiste qui aime voir massacrer une langue avec ingénuité. Si vous êtes dans le premier cas et que vous ne connaissez pas trop l'utilisation d'Ubuntu, vous pourriez ne pas comprendre pourquoi on voudrait fignoler son bureau pour qu'il ressemble à quelque chose accaprée par le fantôme de TRON.

Mais, faites-moi confiance, vous allez comprendre. En fait, utiliser Ubuntu est comme jouer à un jeu vidéo. La campagne principale est habituellement amusante et passionnante, mais il y a aussi des énigmes à résoudre le long de votre chemin.

Installation

The first achievement to unlock is, of course, installing Ubuntu. Hopefully this magazine, and the plentiful resources online, have shown you how drop-dead simple installation can be. Let’s put it in Manspective (the uniquely male point of view that is three parts action movie, one part porn, zero parts reality): installing Ubuntu is akin to showering before a date. Yes, it takes a little bit of time. Yes, most people proceed in a similar fashion (hair, pits, ugly bits). And. yes, the process can go horribly wrong if you’re not careful. Instead of coming out smelling like an Irish hillside, and looking like a well-kept arboretum, you can come out covered in your own blood and begging for death. I hear you saying, “That will. Never. Happen. To me.” Well, I thought the same thing until this morning. Just sayin’. Once that main achievement is unlocked, the vast majority of first-time users proceed like a dragon-hunter in Skyrim. Learn The Way of the Voice? Check. Gain Elder Knowledge? Check. Defeat Alduin? Check and done. Ubuntu is the same way. Install Ubuntu? Check. Compose Mail? Check. Open Browser? Check and done. Unless you have a problem with a scanner, or can’t print, your Ubuntu campaign will be worry-free, and you’ll have no reason to check in with the forums or ask questions of barely literate columnists in otherwise outstanding magazines.

La première énigme à résoudre est, bien entendu, l'installation d'Ubuntu. Espérons que cette revue et les très nombreuses ressources en ligne, vous auront montré combien celle-ci peut être simple. Mettons-le en Hommespective (le point de vue unique d'un mâle, dont trois parties film d'action, une partie pornographie et zéro parties réalité) : l'installation d'Ubuntu est un peu comme la prise d'une douche avant un rendez-vous. Oui, il faut un peu de temps. Oui, la plupart des gens le font de façon similaire (les cheveux, les aisselles, les parties laides). Et, oui, le processus peut se passer très mal si l'on n'est pas prudent. Au lieu d'en sortir avec l'odeur d'une colline irlandaise et l'apparence d'un arboretum bien entretenu, il est possible d'en sortir couvert de votre sang et souhaitant votre achèvement. Je vous entend qui dites, « Cela ne. M'arrivera. Jamais. » Eh ben, je pensais la même chose jusqu'à ce matin. Histoire de le dire.

Une fois cette énigme résolue, la grande majorité de néophytes agissent comme le chasseur de dragons dans Skyrim. Apprendre la voie de la voix ? Fait. Apprendre les connaissances des anciens ? Fait. Vaincre Alduin ? Fait et terminé. C'est la même chose pour Ubuntu. Installer Ubuntu ? Fait. Écrire un mail ? Fait. Ouvrir le navigateur. Fait et terminé.

À moins de rencontrer un problème avec un scanner ou une imprimante, votre campagne Ubuntu sera sans heurts et vous n'aurez aucune raison de vérifiez des trucs sur les forums ou de poser des questions à des chroniqueurs qui savent à peine lire dans des revues qui sont normalement excellentes.

Eye candy for desktop

But just off the main campaign, there are less-traveled avenues to explore, backcountry roads where the local dialect is spoken in banjo, and moonshine is the coin of the realm. In the Skyrim example, the side-quests let you get married, build a house or adopt a child. (A quick note: Skyrim’s side-quests are what happens when you leave forty-year-old programmers unchecked. I half expect there to be a quest to maximize my retirement holdings.) Ubuntu has its own hidden achievements; side-quests that take advantage of your growing skill. Schmopil is asking about one of the most popular unlockable achievements in Ubuntu: the customized desktop. You can find examples all over the web. You can also see some amazing desktops just by turning to the “My Desktop” pages of this magazine. Look at those beauties! There’s so much eye candy I want to stick myself with an insulin pen! But what’s really amazing is how easy it is to do some basic tweaking that will make your friends and family think you’ve secretly joined an evil society bent on world domination, and your humble desktop is the command center.

Mais, un peu en dehors de la campagne principale, il y a d'autres chemins moins empruntés à explorer, des pistes d'arrière-pays où la dialecte locale est parlée en banjo et la « bagosse » est la monnaie du royaume. Dans l'exemple Skyrim, les quêtes auxiliaires vous permettent de vous marier, de construire une maison ou d'adopter un enfant.

(Une brève remarque : les quêtes auxiliaires dans Skyrim sont ce qui arrive quand vous laissez des programmeurs de quarante ans à eux-mêmes. Je m'attends presque à ce qu'il y ait une quête pour maximiser ma pension de retraite.)

Ubuntu a ses propres énigmes cachées ; des quêtes additionnelles où vous pouvez utiliser vos compétences croissantes. La question de Schmopil concerne l'une des plus populaires énigmes qui puissent être résolues dans Ubuntu : le bureau personnalisé.

Vous en trouverez des exemples un peu partout sur le Web. Vous pouvez également voir des bureaux fantastiques en tout simplement allant à la rubrique « Mon bureau » dans ce magazine. Admirez-les ! Il y a tant d'agréables douceurs pour les yeux, que j'ai envie de me piquer avec un stylo à insuline !

Mais ce qui est vraiment étonnant est la facilité avec laquelle vous pouvez faire des ajustements de base qui convaincront vos amis et votre famille que vous venez d'adhérer à une société maléfique dont l'objectif est de dominer le monde et que votre simple bureau en est le centre de contrôle.

How to tweak

Here’s how. First, let’s show you a “Before” image of my desktop (right). Look at it. All sad and boring like me in high school. But not to worry, we’re about to give this bad boy a Silkwood shower! First, let’s add a more interesting background, one worthy of the souped up, practically sentient operating system we’re working with. Go online and find an image you like. It can be anything. Maybe you’re really into cars. Or rocket ships. Or dinosaurs. This is no time to censor your inner kindergartner, go ahead and have fun. The best part is that you can always change it to something else later. Found something you like? Good, save it to your Pictures folder.

Voici comment.

D'abord, je veux vous montrer une image de mon bureau « avant » (à droite).

Regardez-la. Tout triste et ennuyeux comme moi au lycée. Mais ne vous inquiétez pas, nous sommes sur le point de donner une douche à la Silkwood à ce vilain garçon.

D'abord, ajoutons un plus intéressant fond d'écran, quelque chose à la hauteur du système d'exploitation survitaminé et pratiquement vivant avec lequel nous travaillons.

Connectez-vous au Net et trouvez une image qui vous plaît. Ça peut être n'importe quoi. Peut-être que vous vous intéressez vraiment aux voitures. Ou aux vaisseaux spatiaux. Ou aux dinosaures. Ce n'est pas le moment de censurer l'enfant qui est en vous ; allez-y et amusez-vous bien. Et ce qu'il y a de mieux est que vous pouvez toujours le changer pour autre chose plus tard.

Vous avez trouvez quelque chose qui vous plaît ? C'est bien. Sauvegardez-la dans votre dossier Images.

Adding wallpaper

Now go to your desktop and right click. A window pops up in Ubuntu 12.10 giving you the option to Change Desktop Background. Click that. In the new window, click on the pull-down that says Wallpapers and select your Pictures folder. Find the image you want and select it. Boom! You just customized your background. You can play with the pull down that says Zoom and see how that affects your wallpaper. Once you’ve found a look you like, click on the Behavior tab at the top of that window. One of the fun things about Ubuntu is that you can go for a really slick, uncluttered look. Under Behavior, you can tell Ubuntu to hide the icon strip on the left side of your screen when you’re not using it. To do this, just switch the button next to Auto-Hide Launcher from Off to On. The Launcher disappears but is available at any time by simply moving your cursor all the way to the left side of your screen. Neat, right? Okay, close the window and take a look at your handiwork. Here’s mine: Aw, HELLS YEAH! My computer just locked the pod bay doors, Dave!

Maintenant, allez sur votre bureau et faites-y un clic droit. Sous Ubuntu 12.10, une fenêtre s'affiche vous présentant l'option de Changer le fond d'écran du bureau. Cliquez dessus. Dans la nouvelle fenêtre cliquez sur le menu déroulant appelé « Fonds d'écran » et sélectionnez votre dossier Images. Trouvez l'image que vous souhaitez utiliser et sélectionnez-la. Pow ! Vous venez de personnaliser l'arrière-plan de votre bureau. Vous pouvez vous amuser avec le menu appelé Zoom pour voir les effets sur votre fond d'écran. Une fois que vous aurez trouvé quelque chose qui vous plaît, cliquez sur l'onglet « Comportement » (Behavior) en haut de cette fenêtre-là.

Une des choses vachement chouettes dans Ubuntu est que vous avez la possibilité de choisir une apparence dépouillée et stylée. Sous l'onglet Comportement, vous pouvez dire à Ubuntu de masquer la bande d'icônes sur le gauche de votre écran quand vous ne l'utilisez pas. Pour ce faire, il suffit de basculer le bouton à côté de Masquer lanceur automatiquement (Auto-Hide Launcher) en « Activer » (on) au lieu de « Désactiver » (Off). Le lanceur disparaît, mais reste disponible à n'importe quel moment si vous mettez votre curseur tout à fait à gauche de votre écran.

Pas mal, non ?

OK. Fermez la fenêtre et regardez votre création. Voici la mienne :

WOUAH, OUAIS !! L'ordinateur vient de verrouiller la porte des pods, Dave ! [Ndt : CF HAL dans le film culte 2001]

Conky

Amazing how just a tiny bit of tweaking can give your computer a whole new look and feel. In my case, the look and feel of a psychotic artificial intelligence. Next, we’re going to add some bling that will not only make your desktop look like it just stepped out of the Matrix, but will also give you useful information about what’s going on under the hood. One of the neatest little gems in the Ubuntu mine is a program called Conky (http://conky.sourceforge.net/). The description says it’s a system monitor. But that’s like saying Louboutins are shoes. There’s so much more to it than that. By tweaking Conky’s configuration file (which is just a fancy way of saying, “Telling Conky what to do”), you can bring your desktop to glorious life. First let’s install Conky. Do it from the terminal so you maximize your Ubuntu bad-assery. Press CTRL-ALT-T to open a terminal window, and type: sudo apt-get install conky-all Once you enter your password and Conky finishes installing, run it by typing: conky A display appears on your desktop, sitting over whatever wallpaper you chose. Below is what the default Conky setup looks like on my desktop. Holy guacamole, I’m actually starting to fear my desktop. Awesome!

Étonnant, non ? Le fait que juste un chouïa d'ajustement peut donner à votre ordinateur une apparence et des sensations tout à fait nouvelles. Dans mon cas précis, c'est l'apparence et les sensations d'une intelligence artificielle psychotique.

Maintenant, nous allons ajouter du clinquant qui va non seulement faire ressembler votre bureau à quelque chose tout juste sortie de Matrix, mais vous donnera en prime des renseignements utiles sur ce qui se passe sous le capot.

L'un des bijoux les plus cool dans la mine d'Ubuntu est un programme appelé Conky (http://conky.sourceforge.net/). Le descriptif indique que c'est un moniteur du système. Mais c'est à peu près la même chose que dire que des Louboutins sont des chaussures. Il y en a tellement plus que cela.

Vous pouvez faire vivre votre bureau en technicolor en faisant des ajustements au fichier de configuration de Conky (ce qui tout simplement veut dire « Indiquer à Conky ce qu'il faut faire »).

Tout d'abord, installons Conky. Faites-le dans le terminal pour maximiser votre expérience forte et solide d'Ubuntu Appuyez sur CTRL-ALT-T pour ouvrir le terminal et tapez :

sudo apt-get install conky-all

Une fois que le mot de passe fourni et l'installation de Conky terminée, exécutez-le en tapant :

conky

Quelque chose s'affiche sur votre bureau, par dessus votre nouveau fond d'écran. Ci-dessous vous voyez la configuration par défaut de Conky sur mon bureau.

C'est choquant : en fait, mon bureau commence à m’effrayer.

Génial !

What Conky does

Conky gives you real-time updates about how much memory you’re using, the programs you’re running, how hard your computer is working, etc. This is NOT the machine you take to the nursing home where you volunteer to help the residents check email. It’s the machine you take to your high school bully’s house to show him how hard you got over the years. If we did nothing else, we’d still have the most intimidating desktop on the block. But remember that configuration file thingy I mentioned? You can tweak the settings that tell Conky what to display and how to display it. By changing the config file, you can get some of the incredible desktops shown in FCM: “My Desktop”. Let’s see if we can’t have some fun. The first thing we want to do is have Conky start whenever you boot up your computer. To do this, click on the Dash Home and type Start into the search field. You’re looking for an Application called Startup Applications. Click on that. In the window that comes up, click Add. Where it says Name, type conky. Where it says Command, type conky. Yeah, I know this is complicated stuff; try to keep up. Click Add and then close the window. Now, whenever you start your computer, Conky starts up as well.

Conky vous donne des informations en temps réel concernant la quantité de mémoire que vous utilisez, les programmes qui s'exécutent, jusqu'à quel point votre ordinateur travaille, etc. Ce N'est PAS la machine que vous amenez à la maison de retraite ou vous faites du bénévolat en aidant les résidents à vérifier leurs mails. C'est celle que vous amenez à la maison du tyran de votre lycée pour lui montrer combien vous aussi vous êtes devenu dur depuis. S'il ne s'agissait de rien d'autre, on aurait toujours le bureau le plus intimidant du quartier.

Mais vous vous souvenez du truc concernant le fichier de configuration que j'ai mentionné ? Vous pouvez fignoler les paramètres qui indiquent à Conky ce qu'il faut afficher et comment. En changeant le fichier de config, vous pouvez arriver à avoir quelques-uns des bureaux incroyables publiés dans le FCM : « Mon bureau ». Amusons-nous un peu.

La première chose que nous voulons faire est de dire à Conky de démarrer chaque fois que l'ordinateur démarre. Pour ce faire, cliquez sur le Home du Dash et taper Démarrer dans le champ de recherches. Vous voudrez une application qui s'appelle Applications au démarrage (Startup Applications).

Cliquez dessus. Dans la fenêtre qui s'affiche, cliquez sur Ajouter. Dans la case Nom (Name), tapez conky. Dans la case Commande, tapez conky. Oui, je sais, c'est très compliqué ; essayez de tout comprendre.

Cliquez sur Ajouter, puis fermez la fenêtre. Maintenant, quand vous démarrez l'ordinateur, Conky démarre aussi.

Conky config file

Time to play with that config file. Start with a fresh new terminal window and a clean prompt by typing SHIFT-CTRL-T. At the prompt, type cd /etc/conky/ We’re telling Ubuntu to Change Directory to the Conky folder. Now type: ls You should see a list of files including one called conky.conf. In that file are all the commands that control how Conky looks and what it displays. We’re going to play with that file and see how it affects our Conky window. Before we do that, let’s copy the file and create a backup in case we bork the whole thing and need to get back to our original setup. To do this, type: sudo cp conky.conf conkybackup.conf We just told Ubuntu to Copy the file conky.conf and name the new file conkybackup.conf. Now we can tweak the original file but restore the defaults if we get in trouble (I’ll show you how later).

Playing with config

Time to play. To open up the Conky configuration file, type gksudo gedit conky.conf Gedit is a standard text editor (you can use whatever you prefer), and we’re telling it to open the conky.conf file. By using sudo, and entering your password when prompted, you are giving yourself permission to change the conky.conf file. Scroll through the conky.conf file. Any line that starts with a # is ignored by Conky. When you see something like ‘alignment top_left’ you can probably guess what that does. Let’s live on the edge and change ‘alignment top_left’ to ‘alignment top_right’ and see what happens. Click Save and close the gedit window. Back in your terminal, type: conky If you restart your computer at this point, the changes to the conky.conf file will take effect and you will see only one Conky window at the top right. But don’t restart yet. You can make even more radical changes to the conky.conf file – and then restart once you’re happy with how everything looks.

More with Conky

Let’s go back to playing. Get the conky.conf file open again by typing: gksudo gedit conky.conf What can we put in there? You can find some fun examples here (http://ubuntuforums.org/showthread.php?t=281865&highlight=desktop+screenshot). That thread has over TWO THOUSAND PAGES of custom Conky config files you can use! I picked the first one, copied the code and pasted it over the text in my conky.conf file. You can do the same. From the following link, copy and paste the lines of code into your conky.conf file (make sure you get all of it and completely replace what was already in the file): http://pastebin.com/Bda2V62Q Click save and close gedit. Open a new Terminal window and type: killall conky Then type: conky Killall terminates the original conky session so you can run it again with the new setup. If everything went to plan, you should see something like this Now how cool is that?! The correct answer is ALL. All cool.

Conclusion

This is just the beginning! There are ways to tell Conky to display weather, use pretty graphics, display data horizontally, etc. You can even call up multiple Conky windows and place them in different areas on your screen! Go grapenuts! There’s a TON of resources for making Conky look incredible but also give you useful updates. Start with this Ubuntu community page (https://help.ubuntu.com/community/SettingUpConky) and then look around for interesting desktops. By the way, you’ll see references to a .conkyrc file. Creating a .conkyrc file works just as well as what I did here. I prefer backing up the conky.conf file and then tweaking it directly just because it keeps me in the same directory as my backup in case I mess up. I’m less likely to get confused that way. But do whatever works for you. Have fun making your computer look like Hal from 2001! But just, you know, hang on to a spare set of keys for the pod bay.

issue67/demandez_au_petit_nouveau.1356701472.txt.gz · Dernière modification : 2012/12/28 14:31 de auntiee