Outils pour utilisateurs

Outils du site


issue152: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, UUID’s 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’. I often have to deal with Dell support, and my time zone puts me over to India. I am an HP certified tech, IBM certified tech, Lenovo certified tech, Siemens, etc, but I often get up against that Dell service agent wall. (I will not log a call if there is nothing wrong, my time is more valuable to me). I have also been in the business long enough to have experience. So it is quite a frustration to me when call-centre agents treat you like an end user. “Have you tried turning it off and on again?” To which I reply: “No, as the power supply is broken, this is not possible”. This is usually followed by that fake politeness, “Yes sir, I hear what you are saying, but I am going to need you to reboot it”. I will log a call for a dead hard drive on a server, then get the runaround, where they do not want to do anything until you put the drive back in the server, reboot the server, and give the error code. “But the drive does not spin up, I am telling you what the problem is as I cannot just willy-nilly reboot the server”. Up comes the wall: “but Sir, I cannot be helping you if I do not have that code”… grrrr. But Since India is 3 hours out, I wait until it is 5pm in India before logging the call. That way, I get service from someone elsewhere who is not a robot. Sometimes you need to get a little crafty in IT.

Bon retour parmi nous pour cette nouvelle édition de Questions et Réponses ! Dans cette rubrique, nous essayons de répondre à vos questions sur Ubuntu. Assurez-vous de nous donner les détails concernant votre système d'exploitation et votre matériel. J'essaierai d'enlever de vos questions tout ce qui pourrait vous identifier personnellement, mais il vaut mieux ne pas inclure des éléments comme des numéros de série, UUID ou adresses IP. Si votre question n'est pas publiée tout de suite, c'est parce qu'il y en a beaucoup et j'y réponds selon le principe de « premier arrivé, premier servi ».

Je dois souvent traiter avec l’assistance de Dell et mon fuseau horaire me dirige vers l’Inde. Je suis un technicien HP certifié, un technicien IBM certifié, un technicien Lenovo certifié, Siemens, etc. Mais je me trouve souvent devant le mur d’un agent du service Dell. (Je n’appellerais pas si tout va bien, car mon temps m'est trop précieux.) De plus, je fais cela depuis assez longtemps pour avoir de l’expérience. Ainsi, c’est très frustrant quand des agents de centres d’appel me traitent comme un utilisateur final. « Avez-vous essayé de l’arrêter et de le redémarrer ? » Ma réponse est « Non, puisque l'alimentation est cassée, c’est impossible. » En général, cela est suivi par cette politesse factice bien connue, « Oui, monsieur, je vous entends, mais vous devez le redémarrer. » J’appellerais pour un disque dur qui a rendu l’âme sur un serveur, puis j’aurais la même réponse évasive, où ils ne veulent rien faire avant que vous mettiez le disque à nouveau dans le serveur, redémarriez le serveur et donniez le code de l’erreur. « Mais le disque ne tourne pas et je vous décris le problème car je ne peux pas redémarrer le serveur n’importe comment. » Et le mur se lève : « mais, monsieur, je ne peux pas vous aider si je n’ai pas le code »… grrrr. Toutefois, puisque l'Inde est en avance de trois heures, j’attends 17 h heure indienne pour appeler. Comme ça, je suis servi par quelqu’un ailleurs qui n’est pas un robot. Il faut parfois savoir biaiser un peu en informatique.

Errata: In FCM#150, I answered Komal incorrectly. This was pointed out by Michael, and indeed, when I updated my Ubuntu I could no longer use .jnlp files either. (This is not the first .jnlp file question we had, so guys take note). “In issue 150 you had a question regarding jnlp files not working (search for 'N-Able'). I think you will find that support for jnlp was withdrawn from Java. JavaWs and Iced Tea are not included in the V.11 and above. This is an extract from https://www.oracle.com/technetwork/java/java-se-support-roadmap.html: The Web Deployment Technology bundled with the Oracle JRE, consisting of the Java Plugin and Java Web Start has a shorter support lifecycle: only five years of Premier Support. The deployment stack was marked as deprecated, and flagged for removal in Java SE 9 and Java SE 10. Oracle Java SE 11 and later versions do not include the Deployment Stack.”

D’abord, une erreur : Dans le numéro 150, ma réponse à Komal était mauvaise. Cela m’a été signalé par Michael et, c’est vrai, quand j’ai mis mon Ubuntu à jour, tout comme Komal, je ne pouvais plus utiliser les fichiers .jnlp. (Ce n’est pas la première question sur le fichier .jnlp que nous avons eue, alors souvenez-vous-en, les gars.)

« Dans le numéro 150, vous avez eu une question concernant des fichiers .jnlp qui ne fonctionnaient pas (la recherche de « N-Able »). Je pense que vous trouverez que la prise en charge de jnlp a été supprimée de Java. JavaWs et Iced Tea ne sont pas inclus dans la V.11 et supérieure.

« Voici un extrait de https://www.oracle.com/technetwork/java/java-se-support-roadmap.html:

« Le cycle de vie du support de la technologie de déploiement Web fournie avec le JRE d'Oracle, composé d’un greffon Java et Java Web Start, est plus court - uniquement cinq ans de Support Premier. La pile de déploiement a été étiquetée obsolète et devait être enlevée dans Java SE 9 et Java SE 10. Oracle Java SE 11 et les versions ultérieures ne comprennent pas le Deployment Stack. »

Q: This question might be beneath your level, but how do I search for a package? A: Full Circle Magazine is all for the N00bs! We will not leave you hanging. You can use “apt search” or “apt list” eg. ‘apt search nano’ or ‘apt list nano’ - you can also use wildcards. Q: Hey, my computer is having a problem with the network port. I have been told to update the BIOS to version A17, but how do I know what it is now? A: Two ways come to mind. One – when booting your computer, pay attention to the first screen that pops up. It will either be at the top or at the bottom, very seldom in the centre or surrounds. Two, open a terminal window and type: sudo dmidecode -s bios-version

Q : Cette question pourrait être en dessous de votre niveau, mais comment rechercher un paquet ?

R : Le magazine Full Circle est très favorable aux débutants ! Nous ne vous laisserons pas sans aide. Vous pouvez utiliser « apt search » ou « apt list », par exemple apt search nano ou apt list nano ; vous pouvez également utiliser des jokers.

Q : Salut, mon ordinateur a un problème avec le port réseau. On m’a dit de mettre à niveau le BIOS à la version A17, mais comment connaître sa version actuelle ?

R : Je pense à deux façons : la première serait de noter attentivement le premier écran qui s’affiche quand votre ordinateur démarre. La version du BIOS sera, soit en haut, soit en bas, rarement au centre ou aux bords de l’écran. La deuxième serait d’ouvrir une fenêtre de terminal et saisir :

sudo dmidecode -s bios-version

Q: I can’t seem to delete a cron entry off my server that points to pastebin. Obviously, it is reading it from somewhere else and keeps replacing it. I am too much of a newbie to Linux to know where, can you please assist me? I have just started web programming and need my server for a project. A: Did something not work correctly and you changed permissions to 777? You have malware my friend. You can remove it, but my advice is copy your data off and reinstall. Once a server is compromised and you are new to Linux, finding and shutting all the holes may be a long process for you. You can read up here: https://askubuntu.com/questions/1150346/crypto-miner-malware. Q: So help me. I want to be a programmer, but where should I start. I mean c++ is what everyone uses, right, but I heard Python is easy. But I don’t want to learn something I can’t get a job for. Must I learn Java? What is the fastest? A: Your reasoning is flawed. Programming is not like cars, it doesn’t matter if you have a Ferrari when the roads you can drive on allow only 40mph. I suggest finding the Harvard CS50 channel on YouTube and learn along that path. Start with ‘scratch’ if you have no idea. Once you can program, and do it well in any language, it should not be hard to transition to another.

Q : Je n’arrive vraiment pas à supprimer une entrée cron sur mon serveur qui pointe vers pastebin. Manifestement, il la lit de quelque part ailleurs et continue à la remplacer. Linux m’est trop nouveau pour que je puisse savoir où il la lit ; pouvez-vous m’aider, je vous prie ? Je viens de commencer la programmation Web et j’ai besoin du serveur pour un projet.

R : Est-ce que quelque chose ne fonctionnait pas correctement vous incitant à changer les permissions à 777 ? Vous avez un maliciel, mon ami. Vous pouvez l’enlever, mais je vous conseille de copier vos données et de faire une nouvelle installation. Quand un serveur est compromis et vous ne connaissez pas bien Linux, trouver et fermer tous les trous vous prendrait très longtemps. Vous pouvez consulter ceci : https://askubuntu.com/questions/1150346/crypto-miner-malware

Q : Aidez-moi. Je veux être programmeur, mais où devrais-je commencer ? Je veux dire que C++ est utilisé par tout le monde, non, mais j'ai entendu dire que Python est facile. Mais je ne veux rien apprendre qui ne m'aide pas à trouver du boulot. Faut-il apprendre Java ? Qu'est-ce qui est le plus rapide ?

R : Votre raisonnement est erroné. La programmation n'est pas comme des voitures : peu importe si vous avez une Ferrari quand les routes sur lesquelles vous pouvez conduire ne permettent que 60 km/h. Je vous suggère de trouver le canal Harvard CS50 sur YouTube et de suivre ce chemin pour apprendre. Commencez par « scratch » (à partir de zéro, si vous n'avez aucune idée). Une fois que vous saurez programmer et le faire bien dans n'importe quel langage, il ne devrait pas être difficile de transitionner vers un autre.

Q: How can I debloat Ubuntu and have just what I want ? A: I do not know about “bloat” but you can uninstall anything you do not like. The other option is to come from the other side and install Ubuntu core and add only the packages you want?. Q: I tried to install focuswriter on a shared computer, but it won’t install. Every time I try to install it, it says that I don't have authorisation. Is there any other way to do it? A: As a user, you have your user folder to yourself. You can download the AppImage of Focuswriter in your user profile and run it from there.

Q : Comment déballonner Ubuntu et n’avoir que ce que je veux ?

R : Je ne sais pas pour les ballonnements, mais vous pouvez désinstaller tout ce qui ne vous plaît pas. L’autre possibilité serait d’inverser les choses en installant Ubuntu Core et en ajoutant uniquement les paquets qui vous intéressent.

Q : J’ai essayé d’installer Focuswriter sur un ordinateur partagé, mais sans succès. Chaque fois que j’essaie de l’installer, il me dit que je n’ai pas l’autorisation. Y a-t-il une autre façon de le faire ?

R : En tant qu’utilisateur, votre dossier personnel vous appartient. Vous pouvez télécharger l’AppImage de Focuswriter dans votre profil utilisateur et le lancer à partir de là.

Q: I want to use Rambox as a portable app, rather than installing it, as I want it to run off my USB stick so that I can plug it into any of the computers and run it from there. A: As per my reply above, have you tried downloading the AppImage and running it from your thumb drive? Q: I went thrift-store bargain hunting and picked up a sony vaio laptop for $5. Everything worked fine with Ubuntu 19.10, but today the wifi is just gone. I can’t enable it at all. A: The Vaio, iirc, had a hardware switch on the side. Just slide it completely to the “on” position.

Q : Je veux utiliser Rambox comme appli portable plutôt que de l’installer, car je veux pouvoir la lancer à partir de ma clé USB, afin de pouvoir la brancher à n’importe lequel des ordinateurs et l’exécuter à partir de là.

R : Regardez la réponse ci-dessus : avez-vous essayé de télécharger l’AppImage et de l’exécuter à partir de votre clé USB ?

Q : Je suis allé à la chasse aux bonnes affaires dans une friperie et j’ai récolté un portable Sony Vaio pour 5 $. Tout fonctionnait très bien sous Ubuntu 19.10, mais aujourd’hui le WiFi a complètement disparu. Je ne peux point l’activer.

R : Le Vaio, iirc, a un interrupteur matériel sur le côté. Il suffit de le glisser complètement vers la position « on ».

Q: Ubuntu is eating too much ram on my laptop. What to do? A: As you have given me very little to go on, I am going to assume you have vanilla Gnome installed. If you have 2GB of memory, the usage may seem a tad high, you can switch to another variant like Kubuntu that will use less. Q: I was wondering how do I put the new Chrome snap into firejail? I am using Ubuntu 19.10. On an i5 with 8GB of RAM. A: As far as I know, snap packages are already sandboxed, but I may be wrong. I do not use snaps, and I do not see anything on the internet, maybe one of our readers has the answer?

Q : Ubuntu dévore trop de RAM sur mon portable. Que faire ?

R : Puisque vous ne m’avez pas donné beaucoup de renseignements, je vais supposer que le Gnome standard est installé. Si vous avez 2 Go de mémoire, l’usage peut sembler un peu élevé ; vous pouvez changer pour une autre variante comme Kubuntu qui en utilisera moins.

Q : Je me demandais comment mettre un nouveau snap Chrome dans le firejail ? J’utilise Ubuntu 19.10 sur un i5 avec 8 Go de RAM.

R : À ma connaissance, les paquets snap se trouvent déjà dans un bac à sable, mais je me trompe peut-être. Je n’utilise pas de snaps et je n’envoie rien sur le Net ; un de nos lecteurs connaît-il la réponse ?

Q: I really liked the screenshots of this program - https://github.com/eNkru/electron-xiami . My problem is that it is all in Chinese. How can I make this program in English for my Ubuntu 18.04? If I try Google translate on the page, it won’t translate the page, saying that it is already in English. A: You can try the standard make routine. Nevermind. Try this: https://www.appimagehub.com/p/1323201/ - while I am on the subject. Q: Guys, I follow https://www.youtube.com/watch?v=In9tvv_ge9I for my Xubuntu. It is not working in Xubuntu 18.04. This is a problem for me. A: I had a look and tested it the way they did it, and can confirm it does not work. A much easier way would be to edit your launcher to read: env GTK_THEME=Adwaita:dark geany %F (You can do this as the video suggests, or in your whisker menu launcher, which does not require root permissions.)

Q : J’ai vraiment aimé les captures d’écran de ce programme : https://github.com/eNkru/electron-xiami Le problème, c’est que tout est en chinois. Comment rendre ce programme en anglais pour Ubuntu 18.04 ? Si j’essaie la traduction de Google sur la page, il ne la traduit pas, me disant que c’est déjà en anglais.

R : Vous pouvez essayer la routine make standard. Passons. Puisque j’en parle, essayez ceci : https://www.appimagehub.com/p/1323201/

Q : Les gars, je regarde https://www.youtube.com/watch?v=In9tvv_ge9I pour mon Xubuntu. Il ne marche pas dans Xubuntu 18.04 et cela me pose problème.

R : J’y ai jeté un œil et l’ai testé de leur façon et je peux confirmer que cela ne fonctionne pas. Ce serait beaucoup plus facile d’éditer votre lanceur comme suit :

env GTK_THEME=Adwaita:dark geany %F

(Vous pouvez le faire comme la vidéo le suggère, ou dans le lanceur du menu whisker, qui ne nécessite pas des permissions root.)

Q: How come Ubuntu doesn’t need antivirus? A: Many will disagree with me, but I reckon it does. Viruses are *usually* written for Windows as it has like 80% of the desktop market. (Not being able to walk into a shop and buying a machine with Linux or getting refunded if you do not want Windows has a lot to do with it). However! Linux malware is becoming more prevalent as most users do not have antivirus software. Q: My system freezes randomly. Full freeze. I dual-boot with Windows 10. It is a ‘cheap as chips’ laptop, with a Celeron CPU and 2GB of memory. HP, but I can’t find the model number. I use Ubuntu 16.04 still, as my apps don’t run on 18.04. Since it freezes, I can’t even see dmesg output. A: Freezing can be multiple issues. Try this first: https://askubuntu.com/questions/803640/system-freezes-completely-with-intel-bay-trail

Q : Pourquoi Ubuntu n’a-t-il pas besoin d’antivirus ?

R : Beaucoup ne seront pas d’accord, mais, moi, je pense que si. En général, les virus sont écrits pour Windows parce qu'il possède environ 80 % du marché des ordinateurs de bureau. (Ne pas pouvoir entrer dans un magasin pour acheter une machine avec Linux ou être remboursé si vous ne voulez pas Windows y est pour beaucoup.) Cependant ! Les maliciels Linux deviennent un peu plus courants puisque la plupart des utilisateurs n’ont pas d’antivirus.

Q : Mon système plante de façon aléatoire. Il gèle complètement. Je suis en double amorçage avec Windows 10. C’est un portable extrêmement bon marché avec un processeur Celeron et 2 Go de mémoire. C’est un HP, mais je ne trouve pas le numéro du modèle. J’utilise encore Ubuntu 16.04, car mes applis ne tournent pas sur la 18.04. Du fait qu’il plante, je ne peux même pas voir le résultat de dmesg.

R : Les plantages peuvent être dus à de nombreux problèmes. Pour commencer, essayez ceci : https://askubuntu.com/questions/803640/system-freezes-completely-with-intel-bay-trail

Q: Can my Voyager (XUBUNTU 14.04) run 4k video? A: If your hardware supports it, yes. Q: Help me. I did something stupid. I copied all of American horror stories series to my hard drive and it became 100% full. Now I can’t use it. Ubuntu can’t start Gnome. A: You will have to free up some space. Try this: https://www.omgubuntu.co.uk/2016/08/5-ways-free-up-space-on-ubuntu

Q : Mon Voyager (sous Xubuntu 14.04) peut-il lire des vidéos 4k ?

R : Si votre matériel les prend en charge, oui.

Q : Aidez-moi. J’ai fait une grosse bêtise. J’ai copié la totalité de la série américaine des histoires d’horreur sur mon disque dur et il est devenu plein à 100 %. Je ne peux plus l’utiliser. Ubuntu ne peut pas lancer Gnome.

R : Vous allez devoir libérer de l’espace. Essayez ceci : https://www.omgubuntu.co.uk/2016/08/5-ways-free-up-space-on-ubuntu

: I am booting Ubuntu from my lexar usb drive with high read/write speed. Sometimes it is fast, and sometimes it is slow, on my Lenovo G50. I have persistent space, so I can load drivers. This is my first foray into desktop linux. This fast/slow nonsense is nowhere to be found on Google. Thank you for your time. A: Some laptops like the G50 series have many USB-2 and only one USB-3 port. The USB-3 port should have a blue interface. See: https://www.lenovo.com/us/en/laptops/lenovo/g-series/g50/ Q: Erm. My lubuntu shows my swap file is in 100% use. How do I fix that? A: Find the problem, use top or htop. Browsers like eating lots of memory. Run the command: free -h - to see if your main memory is full.

Q : Je démarre Ubuntu à partir de ma clé USB Lexar avec une vitesse élevée de lecture/écriture. Sur mon Lenovo G 50, parfois c’est rapide, parfois c’est lent. J’ai un espace persistant afin de pouvoir charger des pilotes. C’est ma première expérience avec Linux desktop. Je ne trouve rien nulle part sur Google à propos de ce non-sens rapide/lent. Merci pour votre temps.

R : Certains ordinateurs portables comme la série G50 ont beaucoup de ports USB-2 et un seul port USB-3. Le port USB-3 devrait avoir une interface bleue. Voir https://www.lenovo.com/us/en/laptops/lenovo/g-series/g50/

Q : Erm. Mon Lubuntu indique que le fichier swap est utilisé à 100 %. Comment y remédier ?

R : Pour connaître le problème utilisez top ou htop. Les navigateurs sont très gourmands en mémoire. Lancez la commande : free -h pour voir si la mémoire principale est pleine.

Q: Okay, my Ubunto dock is showing only on my laptop display and not my external display. Can I have it on there too? I don’t want to crane my neck all the time between the two screens. A: Yes, you actually just need to set that in the settings under “dock”. Q: I don’t use bluetooth at all, but it is on in Ubuntu 18.04, all the time. I have to keep turning it off. If I use the wifi switch, it comes back on with wifi. I just want it to stay off. A: Turn it off in your BIOS and it will not bother you any more.

Q : Okay, le dock d’Ubuntu ne montre que l’affichage de mon portable et pas l’écran externe. Peut-il y figurer aussi ? Je ne veux pas devoir toujours me tordre le cou entre les deux écrans.

R : Oui, en fait il suffit de régler cela dans les paramètres sous « dock ».

Q : Je n’utilise jamais le Bluetooth, mais il est toujours activé dans Ubuntu 18.04. Je dois le désactiver sans cesse. Si j'utilise l’interrupteur du WiFi, il s’allume en même temps. Je veux tout simplement qu’il ne s’allume jamais.

R : Désactivez-le dans le BIOS et il ne vous dérangera plus.

Q: Can you help me out? I switched to Ubuntu Studio 19.10 and everything is great. However, I have noticed that since updating, I can’t scrobble any more. I use Clementine and VLC, but neither scrobble. LastFM shows I scrobbled months ago, but I listen almost every day. <removed> is me on LastFM. <image> <image> This is my setup.

A: I have not used Clementine or VLC in years, but I can try to point you in the right direction. Disconnect Clementine on LastFM and get a new api key. Then run your songs through MusicBrainz Picard, and allow it to rename your files. A good rule of thumb is when a thing does not work across multiple applications, it is the thing. Try another application like Banshee / Amarok, and, if it does not work, take a common American song, named correctly, tagged correctly, and play it. If it scrobbles, your file names and tags may need attention. (Things often change in the background, scrobbling may need a better filename than you have there). You can also fire up nethogs in a terminal, and see if your players actually try to contact LastFM.

Q : Pouvez-vous m’aider ? J’ai changé pour Ubuntu Studio 19.10 et tout est parfait. Toutefois, j’ai remarqué que, depuis la dernière mise à jour, je ne peux plus scrobbler. J’utilise Clementine et VLC, mais aucun ne scrobble. LastFM montre que j’ai scrobblé il y a des mois, mais je l’écoute presque tous les jours. <enlevé> , c’est moi sur LastFM. <image><image> Voici ma configuration.

R : Je n’ai utilisé ni Clementine ni VLC depuis des années, mais je peux essayer de bien vous aiguiller. Déconnectez Clementine sur LastFM et récupérez une nouvelle clé api. Puis passez vos chansons par MusicBrainz Picard et laissez-le renommer vos fichiers. Une bonne règle de base est que, quand quelque chose ne marche pas sur de multiple applications, le problème vient de la chose en question. Essayez une autre application comme Banshee/Amarok et, s’il ne marche pas, prenez une chanson américaine courante, nommée correctement, étiquetée correctement et jouez-la. Si elle scrobble, ce sont peut-être les noms de vos fichiers et les étiquettes qui sont fautifs. (Souvent, des choses changent en arrière-plan et scrobbler peut nécessiter de meilleurs noms de fichier que ceux que vous avez actuellement.) Vous pouvez également lancer nethogs dans un terminal pour voir si vos lecteurs essaient vraiment de contacter LastFM.

Q: Is there a better way to display uname -a to show the distribution details? There is no ‘pipe for’ column, but I am a newbie to the terminal. A: It depends on what you mean and what info you require. Have you considered, lsb_release -crid ?? Otherwise there is inxi, or even neofetch, or screenfetch, to do that for you. Q: I sort of understand what apt-fast does, but I am not clear on the details. Can you help me? A: Look here: https://askubuntu.com/questions/52243/what-is-apt-fast-and-should-i-use-it

Q : Y a-t-il une meilleure façon d’afficher uname -a pour montrer les détails de la distribution ? Il n’y a pas de colonne « pipe for », mais je ne connais pas bien le terminal.

R : Cela dépend de ce que vous voulez dire et les informations dont vous avez besoin. Avez-vous pensé à lsb_release -crid ? Autrement, il y a inxi, ou même neofetch ou screenfetch qui le ferait pour vous.

Q : Je comprends plus ou moins ce que fait apt-fast, mais les détails ne sont pas clairs pour moi. Pouvez-vous m’aider ?

R : Regardez ceci : https://askubuntu.com/questions/52243/what-is-apt-fast-and-should-i-use-it

issue152/q._et_r.txt · Dernière modification : 2019/12/31 15:22 de andre_domenech