Outils pour utilisateurs

Outils du site


issue74:demandez_au_petit_nouveau

Table des matières

1

Hi, everyone! Welcome back to Ask the New Guy! If you have a simple question, and you think Ubuntu Bug #1 is some kind of flying roach, contact me at copil.yanez@gmail.com. Today’s question is: Q: How do I connect to my Ubuntu desktop using my Android phone? A: Right this way, Mr. Bond! Q Branch has been working on some new toys for you. How about this? It’s a combination martini shaker-slash-Taser. No? Well, then, perhaps this combination cufflink-slash-Taser. Or this, it’s a combination Taser-slash-Taser. Not very imaginative, I know. Sorry, sir, we’re a little underfunded right now. Nothing says “I want to be Daniel Craig or Jennifer Garner” like accessing your Ubuntu desktop from your mobile phone. What’s funny is that if Hollywood were doing it, there would be multiple cascading menus and screens along with some kind of eye-tracking digital Heads Up Display and virtual keys you’d have to press in the air like a methed-out orchestra composer.

Salut, tout le monde !

Bon retour dans Demandez au Petit Nouveau !

Si vous avez une question simple et si vous pensez qu'Ubuntu Bug n° 1 est une sorte de cafard volant [Ndt : bug = insecte], contactez-moi à copil.yanez@gmail.com.

La question du jour est :

Q Comment me connecter au bureau de mon ordinateur sous Ubuntu avec mon téléphone Android ?

R Par ici, monsieur Bond ! La Branch Q travaille sur de nouveaux jouets pour vous. Pourquoi pas celui-ci ? C'est un shaker à martini et/ou Taser. Non ? Bien, alors peut-être ce bouton de manchette/Taser. Ou peut-être ceci : c'est un Taser/Taser. Pas très imaginatif, je sais. Désolé, m'sieur, nous sommes un peu sous-financés ces jours-ci.

Rien ne signifie « Je veux être Daniel Craig ou Jennifer Garner » comme accéder à votre bureau Ubuntu à partir de votre mobile. Ce qui est bizarre, c'est que si c'était Hollywood qui le faisait, il y aurait des menus et des écrans en cascades avec un affichage Heads-Up (HUD) coordonné avec le mouvement de vos yeux et des touches virtuelles sur lesquelles il faudrait taper en plein air comme un chef d'orchestre sous amphétamines.

2

Quick detour: why is it that every tinseltown movie shows people working with virtual GUIs suspended in front of them? I get exhausted just lifting my hand to turn off the monitor. Forget about hacking an enemy server, can you imagine typing an email on one of those? Are there NO ergonomics experts in Hollywood? End detour. As usual, Ubuntu’s way is easy and sexy. Not sexy as in actually sexy. Accessing your desktop remotely isn’t likely to get you a date with Halle Berry or Javier Bardem. But it might impress Miss Linux Kernel 2013 and keep stray Luddites from wandering onto your lawn. To access your Ubuntu desktop from your Android phone, you’ll need the following: 1. An Ubuntu PC (I’m on 13.04) - make sure it’s connected to your home network 2. An Android Phone (I used an HTC Droid Incredible II running Gingerbread) 3. Someone to shout “Hallelujah!” when you’re finished (this is key, people, don’t skimp)

Courte digression : pourquoi tous les films hollywoodiens montrent-ils des gens travaillant avec des interfaces graphiques virtuelles suspendues devant eux ? Lever la main pour éteindre mon écran me fatigue énormément. Laisse tomber l'idée de pirater le serveur d'un ennemi, pouvez-vous vous imaginer en train de taper un mail sur un truc comme ça ? N'y a-t-il POINT d'experts en ergonomie à Hollywood ? Fin de la digression.

Comme d'habitude, la façon de faire d'Ubuntu est facile et sexy. Mais pas sexy comme dans vraiment sexy. Accéder à votre bureau à distance ne va pas convaincre Halle Berry ou Javier Bardem de sortir avec vous. Mais ça pourrait impressionner Miss Noyau Linux 2013 et empêcher des technophobes errants de venir fouler votre pelouse.

Pour accéder à votre bureau Ubuntu avec votre téléphone Android, il vous faudra : 1. Un PC sous Ubuntu (j'utilise la 13.04) - assurez-vous qu'il soit connecté à votre réseau domestique. 2. Un téléphone sous Android (je me suis servi d'un HTC Droid Incredible II sous Gingerbread). 3. Quelqu'un qui criera « Alleluia ! » quand vous aurez terminé (c'est très important, les gars, ne lésinez pas).

3

Okeedokee, got everything ready? Good. Go to your PC and click on the Ubuntu symbol to open the Unity search field. Type DESKTOP and you’ll see a Desktop Sharing application. Click on that to open it. Here is how I configured my preferences in order to give external access to my Ubuntu desktop: The Desktop Sharing window asks for a password that must be entered in order for someone to connect from the outside. Use something you can easily remember, like the name of the gaffer on Star Trek II: The Wrath of Khan (Romolo Aquistapace, as if you didn’t know). You’ll notice I left blank the “You must confirm each access to this machine” option. You might want to keep this box checked. It’s never a good idea to leave your machine accessible to the outside world, even if you’re requiring a password. I have it toggled OFF for ease of use, but, honestly, do as I say, not as I do. And, as a general rule, you should never take security advice from someone who revels in his ignorance.

Eh bien, voilà, tout est prêt ? Bon. Allez à votre PC et cliquez sur le symbole Ubuntu pour ouvrir le champ de recherches Unity. Tapez DESKTOP (bureau) et vous verrez une application qui partage votre bureau (a Desktop Sharing application). Cliquez dessus pour l'ouvrir.

Voici comment j'ai configuré mes préférences afin de donner accès à mon bureau Ubuntu à distance :

La fenêtre Partage du bureau (Desktop Sharing) demande un mot de passe qui doit être saisi si quelqu'un veut s'y connecter à distance. Utilisez quelque chose dont vous vous souviendrez facilement, comme le nom du mec qui fait plein de gaffes sur Star Trek II : The Wrath of Khan (Romolo Aquistapace, comme vous n'ignorez pas, non ?).

Vous remarquerez que j'ai laissé l'option « You must confirm each access to this machine » (il faut confirmer chaque accès à cette machine) en blanc. Vous pourriez vouloir cocher cette case. Ce n'est jamais une bonne idée de laisser votre machine accessible de l'extérieur, même si vous demandez un mot de passe. Je l'ai désactivé pour la facilité d'utilisation, mais, vraiment, faites ce que je dis, pas ce que je fais. Et, en règle générale, vous ne devriez jamais accepter les conseils de sécurité de la part de quelqu'un qui se targue de son ignorance.

4

Oh, if you currently have your app bar along the left side of your screen set to auto-hide, change that to the default so that it’s always visible. If the app bar auto-hides, it’s more difficult to access it from your phone. Also, if you have your computer set to sleep after a certain amount of time, you might want to change this setting so that your PC doesn’t go to sleep, and thus disconnect you, in the middle of a connection. You’ll also need your desktop PC’s IP address. Ubuntu makes this dead simple. Just right-click the network icon and click on Connection Information. Note the IP address listed there, you’ll need it in just a second. Okay, now it’s time to get your phone ready. Fire up your Android phone and head over to the Google Play Store. You’re going to need a VNC client. That’s the software that will connect your phone to your PC. I’m not sure what VNC stands for, probably just the initials of the white-haired wizard who captured this sorcery and gave it away on the Internet. I should probably take a moment to explain what a VNC client does. But I’m not gonna. Life’s too short, you know?

Ah, oui, si, actuellement la barre d'applis le long du côté gauche de votre écran est paramétrée en masquage automatique, changez cela pour le rendre toujours visible (par défaut). Si la barre d'applis se masque automatiquement, il est plus difficile d'y accéder à partir de votre téléphone. Et puis, si vous avez configuré votre ordinateur pour se mettre en veille après un certain laps de temps, vous pourriez vouloir changer cela afin d'empêcher la mise en veille de votre PC au milieu d'une connexion. Sinon, vous risqueriez d'être déconnecté.

Vous aurez besoin aussi de l'adresse IP de votre PC. Ubuntu rend cela très facile. Il suffit de faire un clic droit sur l'icône réseau, puis de cliquer sur « Connection Information ». Notez l'adresse IP listée là, car vous en aurez besoin dans à peine une seconde.

Okay… Le moment est venu de préparer votre téléphone.

Allumez-le et allez au Google Play Store. Vous aurez besoin d'un client VNC. Il s'agit du logiciel qui connectera votre téléphone à votre PC. Je ne suis pas certain de ce que signifie VNC, sans doute ce sont juste les initiales du sorcier aux cheveux blancs qui a capturé cette sorcellerie et l'a offerte sur l'Internet.

Je devrais probablement prendre un moment pour expliquer ce que fait un client VNC. Mais je ne vais pas le faire. La vie est trop brève, vous savez ?

5

The VNC client I used is called android-vnc-viewer, and it’s free. Once you’ve downloaded the software, press the icon to run it. You’ll see a window with empty fields. Let’s fill those in and solidify your status as Alpha Nerd/Nerdette among your peers (which, if they mainly consist of villains named Hans with world domination f*tish*s, you should consider ditching). In the Nickname field, type something catchy, like Space Wolf or Super Tramp. You’re being totally badass right now, your nickname should reflect this. Next, type in the password you set up on the Desktop Sharing application. Finally, type in the desktop PC’s IP address. Your screen should look something like that shown on the following page. Ready? Time to see if your Hallelujah shouter is up to the task. Also, if there are any annoying neighbors who keep trying to explain fantasy football to you, invite them over. Payback time!

Le client VNC dont je me suis servi s'appelle android-vnc-viewer et c'est gratuit. Une fois le logiciel téléchargé, appuyez sur l'icône pour le lancer. Vous verrez une fenêtre avec des champs vides. Remplissons-les et confirmons votre statut comme Alpha Nerd/Nerdette parmi vos pairs (qui, si ce sont principalement des méchants nommés Hans ayant des rêves de domination du monde, vous devriez envisager la possibilité de les abandonner).

Dans le champ Surnom, tapez quelque chose d'accrocheur, comme Loup de l'espace ou Sexy au possible. En ce moment vous êtes un méchant complet et votre surnom devrait l'indiquer.

Ensuite, saisissez le mot de passe que vous avez mis dans l'application Desktop Sharing. Enfin, tapez l'adresse IP du PC de bureau. Votre écran devra ressembler à celui montré à la page suivante.

Prêt ? C'est l'heure de voir si votre crieur de Alleluia est à la hauteur. Et puis, aussi, si vous avez des voisins enquiquinants qui essaient sans cesse de vous expliquer le jeu de football fantasy, invitez-les. L'heure de la vengeance a sonné !

6

Click Connect. Hallelujah! Feel free to lift your arms up Moses style and scream “Behold!” In a few moments, your smartphone screen will fill with a lower resolution version of whatever is on your desktop screen. Your phone’s screen will now act like a laptop trackpad. Wherever you move your finger, your cursor follows. Tap the screen on an Ubuntu app icon and watch it open. Pretty cool, right? What can you do with this? The options are endless! You could access your PC and email yourself a file you forgot to put into the cloud. Or click on your webcam and do a quick security check of your home office. Or make people believe you’ve just hacked into a bad guy’s world domination system and are shutting down his nuclear weapons lab with a few keystrokes. Ladies, you’ll be all the rage at the next LAN party! Go ahead, indulge your inner Sydney Bristow or James Bond. Good luck and Happy Ubuntuing!

Cliquer sur Connecter. Alleluia ! N'hésitez pas à lever les bras à la Moïse et à crier « Voyez ! » Dans quelques instants l'écran de votre smartphone se remplira d'une version basse résolution de ce qui est à l'écran de votre PC. L'écran de votre téléphone agira maintenant comme un pavé tactile d'ordinateur de portable. Où que vous bougez votre doigt, le curseur suit. Tapez sur une icône d'appli Ubuntu et regardez-la s'ouvrir.

C'est vraiment génial, non ?

Que pouvez-vous faire avec ? Les possibilités sont illimitées. Vous pourriez accéder à votre PC et vous envoyer par mail un fichier que vous avez oublié de mettre dans le nuage. Ou cliquer sur votre webcam et contrôler la sécurité de votre bureau domestique. Ou faire croire à des gens que vous venez de pirater le système de domination globale d'un méchant et que vous êtes en train de fermer son labo d'armes nucléaires avec quelques frappes. Mesdames, vous serez très en demande à la prochaine soirée LAN !

Allez-y, rendez votre Sydney Bristow ou James Bond intérieur heureux.

Bonne chance et amusez-vous bien avec Ubuntu !

issue74/demandez_au_petit_nouveau.txt · Dernière modification : 2013/11/06 15:37 de andre_domenech