Outils pour utilisateurs

Outils du site


issue168:q._et_r

Welcome back to another edition of Questions and Answers! In this section, we will endeavour to answer your Ubuntu questions. Be sure to add details of the version of your operating system and your hardware. I will try to remove any personally identifiable strings from questions, but it is best not to include things like serial numbers, UUIDs or IP addresses. If your question does not appear immediately, it is just because there is such a lot, and I do them, first-come-first-served. NOTE: Guys, with the latest Google hack, my Gmail accounts are all in limbo, if you sent me any messages there, I will get to those only when it unfreezes again.

Bienvenue de retour dans un autre épisode de Q. ET R. ! Dans cette rubrique, nous essayerons de répondre à vos questions sur Ubuntu. Assurez-vous d’ajouter des détails de la version de votre système d’exploitation et votre matériel. J’essaierai d’enlever de vos questions toutes chaînes qui pourraient vous identifier personnellement, mais il vaut mieux ne pas inclure des choses comme des numéros de série, des UUID ou des adresses IP. Si votre question n’apparaît pas tout de suite, ce n’est que parce qu’il y en a beaucoup et je les fais sur la base de premier venu, premier servi.

NOTA : Les gars, à cause du dernier piratage de Google, mes comptes Gmail se trouvent tous dans les limbes ; si vous m’avez envoyé des messages sur un de ces comptes, je ne les recevrai que lors du dégel.

I was once chased from a customer’s premises by a manager who had no clue about privacy. He was one of those people who expected everything to be instantaneous. No lead time; you get a PC and it must be ready for the user in 10 minutes. They used Skype to chat among themselves. From an IT point of view, we installed Skype for them, with all their other applications. and the user would create their own account with their cellphone number as username. We usually take no part in this, because if you set it up for them, you get endless phone calls asking “What is my password?” Also, it is a privacy issue, as IT should not know your passwords. (Someone could threaten their supervisor with death threats and then you are involved - yes it has happened before! Long story…). His argument was, how can we expect them to make their own Skype account, it was OUR jobs!! You don’t contact your solicitor and get him/her to sign your lease agreement. Imagine screaming at him/her that it was his/her job as it was a legal matter. Imagine shouting at your doctor for not providing pills as you don’t want to go to the pharmacy? It is the doctor’s job!! So why do we allow this kind of thing in the IT industry? This is probably why Windows is still the top choice as a desktop for business. People don’t want to think for themselves and, in the end, they have only themselves to blame. Technology is not infallible. Privacy is a real thing. As Linux people, you are probably a LOT smarter than you give yourselves credit for. You have learned to do your own thing. You have discovered the joy of thinking for yourselves. I salute you!

Une fois,j'ai été chassé des locaux d’un client par un cadre qui n’avait aucune idée du respect de la vie privée. C’était un de ces individus qui s’attendent à ce que tout soit instantané. Pas de délai possible ; on vous donne un PC qui doit être prêt pour l’utilisateur dans 10 minutes. Ils se servaient de Skype pour chatter entre eux. Du point de vue informatique, nous leur avons installé Skype avec toutes les autres applications et l’utilisateur créait son propre compte avec son numéro de téléphone portable comme nom d’utilisateur. En général, on n'y participe pas, car, si c’est vous qui le paramétrez à leur place, vous recevez des appels incessants demandant « Quel est mon mot de passe ? » De plus, il s’agit d’un problème de protection de la vie privée, car l’équipe informatique ne devrait pas connaître vos mots de passe. (Quelqu’un pourrait menacer de mort leur superviseur et vous êtes alors impliqué – oui, c’est déjà arrivé ! C’est une longue histoire…) Son raisonnement était : comment pouvons-nous nous attendre à ce qu’ils configurent leur propre compte Skype, c’était NOTRE boulot !! Vous ne contactez pas votre avocat(e) pour qu’il/elle signe votre contrat de location. Imaginez-le poussant une gueulante pour dire que c’était son boulot puisqu’il s’agissait d’une question juridique. Imaginez-le hurlant chez votre médecin parce qu'il ne fournissait pas vos médicaments et que vous ne vouliez pas aller à la pharmacie ? C’est le boulot du médecin !! Alors, pourquoi permettons-nous ce genre de chose dans l’industrie d’informatique ? C’est sans doute la raison pour laquelle Windows reste le premier choix pour les ordinateurs de bureau en entreprise. Les gens ne veulent pas prendre leurs propres décisions et, finalement, ils n’ont qu’eux-mêmes à blâmer. La technologie n’est pas infaillible. La protection de la vie privée est bien réelle. En tant que Linuxiens, vous êtes probablement BEAUCOUP plus intelligents que vous ne le pensez. Vous avez appris à agir seuls. Vous avez découvert le plaisir de réfléchir tout seuls. Je vous salue !

Q: Hey guys, I have a frustrating problem. I transfer files from work to home via USB stick. At work, we have Sophos, and other junk, that constantly keep the USB busy, so I just unplug. “The drive is busy and cannot be ejected” message never seems to go away. Life is too short and I blame Windows 10. The thing is, when I get home and want to use it in Ubuntu, I can read from it, but not write. I have to plug / unplug like a lot of times and sometimes that seems to work. Is there another way to do this, other than going to my wife’s Pc and doing a Windows repair on the USB stick? A: There is a way, simply open the “disks” utility on your Ubuntu machine, hit the “stop” icon and select the repair option from the gear icon. Once done, click the “play” icon and you should be good. Q: My uncle donated me HP Laserjet P1102w. I do not have a CD. How can I install HP Laserjet P1102w on Ubuntu 14? CUPS see printer, but not printing. A: Usually the issue is related to hplip, if you don’t have it installed, install it, if you do, reinstall it. Once done run hp-setup again.

Q : Salut les gars, un problème m’agace. Je transfère des fichiers du boulot à la maison sur une clé USB. Au bureau, nous avons Sophos, et d’autres machins, qui monopolisent l’USB ; je les débranche. Le message « Le périphérique est en cours d’utilisation et ne peut pas être éjecté » ne semble jamais disparaître. La vie est trop courte et je pense que Windows 10 est fautif. Le truc c’est que, quand j’arrive chez moi et veux l’utiliser sous Ubuntu, je peux la lire, mais pas écrire dessus. Je dois la brancher/débrancher maintes fois et parfois, cela semble fonctionner. Y a-t-il une autre façon de procéder, outre aller sur le PC de ma femme et faire une réparation de la clé avec Windows ?

R : Oui, il suffit d’ouvrir l’utilitaire « disques » sur la machine sous Ubuntu, appuyer sur l’icône « arrêter » et sélectionner l’option de réparation à partir de l’icône d’un engrenage. Une fois fait, cliquez sur l’icône « utiliser » et cela devrait fonctionner.

Q : Mon oncle m’a donné un HP Laserjet P1102w. Je n’ai pas de CD. Comment installer HP Laserjet P1102w sur Ubuntu 14 ? CUPS reconnaît l’imprimante, mais ne veut pas imprimer.

R : Habituellement, le problème concerne hplip ; s’il n’est pas installé, installez-le ; si c’est installé, ré-installez-le. Une fois terminé, exécuter hp-setup à nouveau.

Q: New to this stuff, man, how do i get a .bin file to work? A: First be sure you DO want to run it. Then right-click the file and go to “properties”, then the “permissions” tab, and allow executing. Otherwise open a terminal and use: chmod +x <file> Q: I have loaded Ubuntu 20.04 in WSL on my Windows machine, but it is taking up all my memory. It is worse than Chrome. Why is that? A: Linux treats memory in a different way than Windows. That is one of the reasons it runs better on old hardware. If you want to constrain Ubuntu, you need to tell Windows that. Make a .wslconfig file with the amount of memory you want to give it.

Q : Je débute, mec, comment faire fonctionner un fichier .bin ?

R : D’abord, assurez-vous réellement que vous voulez VRAIMENT l’exécuter. Puis faites un clic droit sur le fichier, allez à Propriétés, puis l’onglet Permissions et permettre l’exécution. Sinon, il suffit d’ouvrir un terminal et utiliser : chmod +x <fichier>

Q : J’ai chargé Ubuntu 20.04 dans WSL sur ma machine Windows, mais cela accapare toute ma mémoire. C’est pire que Chrome. Pourquoi ?

R : Linux gère la mémoire différemment de Windows. C’est l’une des raisons pour laquelle il tourne mieux sur du vieux matériel. Si vous voulez limiter Ubuntu, il faut le dire à Windows. Créez un fichier .wslconfig contenant la quantité de mémoire que vous voulez lui attribuer.

Q: Here goes, if I install an app via the terminal with sudo apt-get install, and I later remove it with sudo apt-get remove I find leftovers in my home folder in hidden files. It reminds me of the Windows registry that just keeps junk. How can I keep my Ubuntu clean? I am on an old Ubuntu that I like and I don’t want to mess it up. A: I am not sure what you are asking but if you use apt-get purge instead of remove, it should purge all the configuration files too. Q: My current Ubuntu install is on a 128GB Seagate SSD. I have just got a 256GB Samsung SSD. I want to copy it across without losing everything that took so long to set up. I realize I can just install Ubuntu 20.04 on the new drive and copy my /home folder, but I am scared I will lose something that stored its configuration elsewhere. What is my best option? A: Get a bootable copy of Macrium reflect (it is free) and boot with it. Clone your old drive to the new one and use the entire new drive. Look here: https://www.youtube.com/watch?v=ogwACNeyz2g - it is for Windows, but the principle is the same.

Q : Bon. Allons-y : si j’installe une appli via le terminal avec sudo apt-get install et si je l’enlève plus tard avec sudo apt-get remove, j’en trouve des restes dans les fichiers cachés de mon dossier personnel. Cela me rappelle le registre de Windows où des machins ne sont pas supprimés. Comment garder mon Ubuntu propre ? J’utilise une vieille distribution Ubuntu qui me plaît et je ne veux pas le chambouler.

R : Je ne suis pas certain d’avoir compris votre question, mais si vous utilisez apt-get purge au lieu de remove, cela devrait éliminer aussi tous les fichiers de configuration.

Q : Mon installation actuelle d’Ubuntu se trouve sur un SSD Seagate de 128 Go. Je viens d’obtenir un SSD Samsung de 256 Go sur lequel je voudrais tout copier de l’autre disque sans perdre les configurations qui m'ont pris beaucoup de temps. Je sais bien que je peux tout simplement réinstaller Ubuntu 20.04 sur le nouveau disque, puis y copier mon dossier /home, mais j’ai peur de perdre quelque chose qui aurait stocké sa configuration ailleurs. Quelle est la meilleure option pour moi ?

R : Obtenez un exemplaire amorçable de Macrium reflect (c’est gratuit) et démarrez dessus. Clonez votre vieux disque vers le nouveau en utilisant tout le disque. Regardez ici : https://www.youtube.com/watch?v=ogwACNeyz2g - c’est pour Windows, mais le principe est le même.

Q: I just installed Ubuntu 18.04 on my son’s computer. It is a sale item from work where they have removed Windows and everything on the hard drive. I want to install Secret Maryo Chronicles for him, but even adding the PPA, I can’t get it to install. I get: smc no such package. I feel rather stupid at this point. Can you help? A: You are actually the third person to ask in a short while. Secret Maryo Chronicles has been discontinued. Don’t bother. You can let him play the clone of the clone on gamejolt in HTML5. Keep your peepers peeled and I will do an article in the magazine for you guys. Q: I am new to all this Ubuntu stuff. I wanted to install Clementine via the software center, but I see more than one Clementine. Is one like SD and one HD or something? Or is one just newer than the other? A: You will usually see more than one if you installed another store like Flathub or the Snap store. Just look carefully and it will tell you which is which.

Q : Je viens d’installer Ubuntu 18.04 sur l’ordinateur de mon fils. L’ordi est une occasion venant de mon travail où ils ont enlevé Windows et tout ce qu’il y avait sur le disque dur. Je voudrais y installer Secret Maryo Chronicles, mais, même en ajoutant le PPA, je n’y arrive pas. Le message d’erreur est « smc no such package » (pas de paquet smc). Je me sens actuellement très bête. Pouvez-vous m’aider ?

R : En fait, vous êtes la troisième personne à me poser la question en très peu de temps. Secret Maryo Chronicles a été abandonné. Ne vous inquiétez pas. Vous pouvez le laisser jouer au clone du clone sur gamejolt en HTML5. Gardez l’œil ouvert, car je ferai un article dans la revue pour vous.

Q : Je débute avec Ubuntu et tout ça. Je voulais installer Clementine via le Centre de logiciels, mais je vois plus d’un Clementine. Est-ce que l’un serait SD et l’autre HD ou quelque chose come ça ? Ou est-ce que l’un est tout simplement plus récent que l’autre ?

R : Vous en verrez généralement plus d’un si vous avez installé un autre « magasin » comme Flathub ou le Snap store. Regardez-les attentivement et il vous sera indiqué ce dont il s’agit.

Q: hai. I am using Xubuntu and somehow my icons have become corrupt. How to fix? A: Switch to a different icon set, reboot, and switch back. IF it does not work, come back to me. (Settings→Appearance→icons). Q: I was trying to make a truth table for uni in LibreOffice calc. The thing that drives me wild is when I type true, it immediately changes to TRUE. I did not capitalize it, it does it on its own. I am on Ubuntu Gnome 20.04. Someone said I should put a `-thingy in there, but I just want true, not with the thingy. A: Like most spreadsheets, you need to prefix anything that changes with a single quotation mark. (Not a backtick).

Q : Bonjour, j’utilise Xubuntu et, d’une manière ou d’une autre, mes icônes se sont corrompues. Comment corriger ?

R : Changez pour un autre ensemble d’icônes, redémarrez puis revenez à l’ancien ensemble. SI cela ne fonctionne pas, revenez vers moi. (Paramètres → Apparence → icônes).

Q : J’essayais de créer une table de vérité pour uni dans LibreOffice calc. Ce qui me rend fou c'est que, quand je tape true, cela change tout de suite en TRUE. Je ne l’a pas mis en majuscules, il le fait tout seul. J’ai Ubuntu Gnome 20.04. Quelqu’un m’a dit de mettre une quote inverse dedans, mais je ne veux que true, pas avec la quote inverse.

R : Comme c’est le cas de la plupart des tableurs, il faut faire précéder tout ce qui change d’une apostrophe (pas d’une quote inverse).

Q: I have a bit of a problem. I am using Ubuntu 18.04 with gravit designer. My friend gave me a design she made, but when I open it, it says replace fonts, then everything is messed up. How can I open it without replacing the fonts? If I choose no, then they disappear. A: First, replace the fonts, then ask your friend which font it was. You need to download that font and install it on your machine. Then, you need to import it inside of Gravit Designer, under system fonts. Once you have the fonts installed, open the document she gave you again. If you already saved it, highlight the fonts and replace them. Q: I recently switched to Windows 10 from Ubuntu 16.04. (I had Windows 8 before). I have been noticing that Windows 10 now just randomly disconnects my Wifi. Sometimes it still shows connected, but isn’t, then I have to disable and re-enable the card to work. Could it be that Ubuntu damaged my Wifi card? A: Nope. Windows 10 is just garbage. I have the same issue with a Windows laptop that never saw Ubuntu.

Q : J’ai un petit problème. J’utilise Ubuntu 18.04 avec gravit designer. Une amie m’a donné un dessin qu’elle a créé, mais quand je l’ouvre, il me dit de remplacer les polices, puis tout est chamboulé. Comment l’ouvrir sans remplacer les polices ? Si je choisis non, elles disparaissent.

R : D’abord, remplacez les polices, puis demandez à votre amie de quelle police il s’agissait. Vous devez télécharger cette police-là et l’installer sur votre machine. Ensuite, il faut l’importer dans Gravit Designer, sous polices système. Une fois les polices installées, ouvrez à nouveau le document qu’elle vous a donné. Si vous l’avez déjà enregistré, surlignez les polices et remplacez-les.

Q : J’ai récemment migré vers Windows 10 d’Ubuntu 16.04. (J’avais Windows 8 auparavant). Je remarque depuis la migration que Windows déconnecte mon WiFi de façon aléatoire. Parfois, il s’affiche toujours connecté, mais ne l’est pas, puis il me faut désactiver et réactiver la carte pour que cela fonctionne. Est-ce que Ubuntu aurait pu endommager la carte WiFi ?

R : Que nenni. Windows 10 n’est que de la daube. J’ai le même problème avec un portable Windows qui n’a jamais vu Ubuntu.

Q: Hello. I have two laptops, HP with 1366×768 display, and a Dell with 1920×1080 display. The Dell has a small SSD and the HP has a 1TB drive. I want to play a movie from my HP to my Dell with HDMI. The movie is in 1080p. I just can’t get it to work. Is it because one is Ubuntu 18.04.5 and the other is Ubuntu 20.04? A: I am 99% sure it is because laptops have only HDMI out, not in. It has nothing to do with the OS. Rather stream it over the network to the Dell with VLC. Q: I am using Ubuntu studio on my laptop since January. When I open the lid to continue where I left off, Firefox asks me for my master password. This never happened with Windows. I am not sure what is causing this but I hope I don’t have some virus. A: You possibly have a tab in Firefox that is requesting a password. You can simply say no. If in doubt, decline.

Q : Bonjour. J’ai deux portables, un HP avec un affichage de 1366 x 768 et un Dell avec un affichage de 1920 x 1080. Le Dell a un petit SSD et le HP, un disque de 1 To. Je voudrais lire un film venant du HP sur mon Dell via un câble HDMI. Le film est en 1080 p. Je n’arrive pas du tout à le faire fonctionner. L’un est sous Ubuntu 18.04.5 et l’autre est sous Ubuntu 20.04 – est-ce le problème ?

R : Je suis certain à 99 % que c’est parce que les portables n’ont qu’une sortie HDMI et pas d’entrée. Cela n’a rien à voir avec l’OS. Il faudrait plutôt l’envoyer sur le réseau vers le Dell avec VLC.

Q : Depuis janvier, j’utilise Ubuntu Studio sur mon portable. Quand je l'ouvre pour continuer mon travail, Firefox me demande le mot de passe maître. Cela n’arrivait jamais sous Windows. Je n’en connais pas la cause, mais j’espère que je n’ai pas un virus.

R : Il est possible qu’un onglet de Firefox demande un mot de passe. Vous avez le droit de dire non, tout simplement. Dans le doute, refusez.

Q: Thanks for your help last time, I learned a lot. I have another question. I just need to add a disclaimer to the end of a bunch of text files. Instead of me opening each one in Kate and copy-paste each time, is there a better way, maybe batch edit? A: I do not know about batch editing, I would script something to just append it to each file in the folder. See: https://techstop.github.io/redirect-append-to-file/ Q: I have customized my Ubuntu quite a lot. I want to make my own .iso of my custom install to write to CD. Almost like a respin. Is there some online app or website to do this or can I do it at home on my own PC? A: I suggest looking at Cubic. I’ll give you a link, it’s a bit dated, but should guide you through: https://askubuntu.com/questions/741753/how-to-use-cubic-to-create-a-custom-ubuntu-live-cd-image/741770#741770

Q : Merci pour votre aide de la dernière fois ; j’ai appris beaucoup de choses. J’ai une autre question : je dois ajouter une clause de non-responsabilité à la fin de tout un ensemble de fichiers texte. Y a-t-il une meilleure façon de faire que d’ouvrir chacun dans Kate, pour faire un copier-coller à chaque fois ? Peut-être l’édition par lot ?

R : Je ne sais pas pour l’édition par lot. J’écrirais un script à ajouter à chaque fichier dans le dossier. Regardez : https://techstop.github.io/redirect-append-to-file/

Q : J’ai beaucoup personnalisé mon Ubuntu. Je voudrais faire une .iso de mon installation personnalisée pour l’écrire vers un CD. Presque comme un respin. Y a-t-il une appli en ligne ou un site Web où je pourrais le faire ou pourrais-je le faire chez moi sur mon propre PC ?

R : Je vous suggère de regarder Cubic. Voici un lien qui est un peu vieux, mais qui devrait vous guider : https://askubuntu.com/questions/741753/how-to-use-cubic-to-create-a-custom-ubuntu-live-cd-image/741770#741770

Q: I just can’t get a straight answer and it is annoying me. I tried to install pygame on Ubuntu 18.04. I open Thonny and execute: import pygame as p. I get ‘pygame not found’. I have installed stuff from tutorials left and right, but nothing seems to work. I even installed it like Windows, but the error is there regardless, but if I run pygame aliens, I get stuff happening. So it looks like I should do everything in sudo? A: This is a tough one, as I see on their github, there is advice, but it only sort of applies to you. Have you checked Thonny’s options → interpreter and chose python3? (Choose your version of Python 3). Q: This is the fourth time Windows has uninstalled all my software. I am done. Done, I tell you! I need to get Ubuntu on, but keep my files and applications, how do I do that? A: There are two ways, one, shrink your drive and make a new partition, and copy your data there before installing Ubuntu on the other partition, but it is more advanced. Two, back your data up to an external device and install Ubuntu using the entire drive. One word of caution – not all Windows applications have Linux installs, so you may need alternatives. Check your applications on https://alternative.to - and filter by Linux. Q: Ishmael, [03.02.21 19:20] Hey guy, you advice succ. A: Successful? Succeed? Succinct? I try my best. ;)

Q : Je n’arrive pas à avoir une réponse simple et directe et cela m’agace. J’ai essayé d’installer pygame sur Ubuntu 18.04. J’ouvre Thonny et exécute : import pygame as p. Le message est « pygame not found ». J’ai installé un tas de trucs venant de tutoriels ici et là, mais rien ne fonctionne. Je l’ai même installé comme Windows, mais l’erreur est là quoi qui je fasse. Toutefois, si je lance, pygame aliens, des trucs se passent. Dois-je conclure qu’il faudrait tout faire avec sudo ?

R : Celle-ci est difficile, car je vois sur leur GitHub qu’il y a des conseils, mais ceux-ci ne s’appliquent que partiellement à votre cas. Avez-vous vérifié les options dans Thonny → interpréter et choisir python3 ? (Choisir votre version de Python 3.)

Q : C’est la quatrième fois que Windows a désinstallé tous mes logiciels. J’en ai assez. Assez, je vous dis ! Il faut que j’installe Ubuntu tout en gardant mes fichiers et applications. Comment faire ?

R : Il y a deux façons de faire. La première serait de réduire votre disque, créer une nouvelle partition et copier vos données là avant d’installer Ubuntu sur l’autre partition, mais c’est assez complexe. La deuxième est de sauvegarder vos données sur un dispositif externe et d’installer Ubuntu en utilisant tout le disque. Un petit avertissement : toutes les applications Windows n’ont pas de version Linux et vous pourriez avoir besoin d’alternatives. Vérifier les applications sur https://alternative.to en filtrant par Linux.

Q : Ishmael, [03.02.21 19:20] Mec, vos conseils sont merdiques [Ndt : succ, en fait sucks, donc merdiques, mais Erik est astucieux!]

R : Un succès ? Réussissent ? Succincts ? Je fais de mon mieux. ;)

issue168/q._et_r.txt · Dernière modification : 2021/05/07 16:22 de andre_domenech