Outils pour utilisateurs

Outils du site


issue137:q._et_r

Welcome back to another edition of our questions and answers section. Please do try not to be too vague when asking a question. We endeavour to help, but we cannot read minds. They are out there: Not too long ago, we had a customer fly off the handle and he demanded free internet glue or a new windows package. He was quite irate and not open to discussion. Not knowing what this “internet glue” was, I stopped by the customer's home - on my way home. Somehow, his taskbar got unpinned and was now at the top of his screen. I “glued” his taskbar back in place at the bottom and went home.

Bienvenue dans un nouvel article de notre rubrique Questions et Réponses. S'il vous plaît, ne soyez pas trop vague quand vous posez une question. Nous nous efforçons de vous aider, mais nous ne lisons pas dans vos pensées.

Ils l'ont fait : il n'y a pas si longtemps, nous avons eu un client qui est sorti de ses gonds et qui demandait une colle internet gratuite ou un nouveau paquet Windows. Il était particulièrement irrité et pas ouvert à la discussion. Ne sachant pas ce qu'était cette « colle Internet », je me suis arrêté au domicile de ce client sur mon trajet de retour à la maison. En fait, sa barre de tâches n'était pas épinglée et était, à ce moment-là, en haut de son écran. J'ai « recollé » la barre de tâches à sa place en bas de l'écran et je suis rentré à la maison.

Q: Ok, here is my problem: my server is crashing (100% CPU usage), and whenever it does, I use htop to find the culprit. So one thing I noticed is whenever my CPU spikes in the 'Tasks' row, the second column (which is for 'thr') goes to the maximum. So I want to know what does this 'thr' mean? Tasks : 91 , 107 thr, 94 kthr,: 6 running A: Linux loves to shorten things; “thr” is short for threads. “kthr” is short for kernel threads.

Q : Bon, voici mon problème : mon serveur plante (100 % d'usage du CPU) et, quand ça arrive, j'utilise htop pour trouver le coupable. Aussi, j'ai noté une chose : chaque fois que mon CPU fait une pointe dans la rangée « Tasks » (tâches), la seconde colonne (qui est pour « thr ») passe à son maximum. C'est pourquoi je veux savoir ce que signifie ce « thr » ?

R : Linux adore les raccourcis : « thr » est l'abréviation de « threads » (processus unitaires). « kthr » est le raccourci de « kernel threads » (processus du noyau).

Q: Hello, I upgraded my Ubuntu 16.04 server to the 18.04. now my websites are broken. Please help me. A: Hi, Tenmil; this is much too broad with too many variables and no data. I would suggest by starting to uninstall and reinstall whatever the websites depend on, be it Ruby, PHP, or whatever. If you should change versions, be sure that your code is still compatible. Use a systematic approach, don't go updating willy-nilly, look at things like Apache logs before making rash decisions.

Q : Bonjour, j'ai mis à jour mon serveur Ubuntu 16.04 vers la 18.04. Maintenant, mes sites Web sont cassés. Aidez-moi, s'il vous plaît.

R : Salut, Tenmil. Ceci est beaucoup trop vaste, avec trop de variables et aucune donnée. Je vais vous proposer de commencer par désinstaller et réinstaller ce dont les sites Web dépendent, que ce soit Ruby, PHP ou autre. Si vous devez changer de version, assurez-vous que votre code est encore compatible. Utilisez une approche systématique, ne faites pas les mises à jour n'importe comment, regardez des choses comme les logs Apache avant de prendre des décisions irréfléchies.

Q: I have Wordpress on Ubuntu 16.04. Why is my Wordpress site so slow? What can I do? Is Wordpress bad? A: No, Wordpress is not bad, it has helped hundreds of people to create websites, and created incomes for many people making plugins and themes. Speed in Wordpress is influenced by images, videos, and badly written code. Are your images and videos optimised for web pages? Have you double-checked your Java code? Is caching enabled? Did you follow the KISS principle? If you answered yes to all the above, it may be hardware that needs upgrading.

Q : J'ai Wordpress sur Ubuntu 16.04. Pourquoi mon site Wordpress est-il si lent ? Que puis-je faire ? Est-ce que Wordpress est mauvais ?

R : Non, Wordpress n'est pas mauvais ; il a aidé des centaines de gens à créer des sites Web et il a généré des revenus pour beaucoup de gens qui réalisent des modules et des thèmes. La vitesse de Wordpress est influencée par les images, les vidéos et le code mal écrit. Vos images et vidéos sont-elles optimisées pour des pages Web ? Avez-vous fait une double vérification de votre code Java ? Avez-vous autorisé le cache ? Suivez-vous le principe du KISS [Ndt : Keep It Simple, Stupid, ou Recherchez la simplicité, idiot] ? Si vous répondez oui à toutes ces questions, c'est votre matériel qui a besoin d'une mise à niveau.

Q: My DNS is pointing to a new custom Nameserver. Cleared the cache and everything. I can access the server via IP, but not domain. I get the error “cannot establish secure connection” and the DNS starts with ‘https://’. I don't have a ssl certificate installed. A: I would advise you to have a look at this website https://certbot.eff.org/docs/install.html#running-with-docker or here, if it is not in Docker: https://certbot.eff.org/lets-encrypt/ubuntuxenial-nginx.html. It is all free of charge.

Q : Mon DNS pointe vers un nouveau Nameserver (serveur de noms) personnalisé. Il a vidé le cache et tout. Je peux accéder au serveur par son IP, mais pas par le domaine. Le message d'erreur est « cannot establish secure connection » (impossible d'établir une connexion sécurisée) et le DNS démarre avec « https: ». Aucun certificat ssl n'est installé. R : Je vous invite à regarder ce site Web : https://certbot.eff.org/docs/install.html#running-with-docker, ou ici, si vous n'êtes pas dans Docker : https://certbot.eff.org/lets-encrypt/ubuntuxenial-nginx.html. C'est gratuit. Q: I created a non-root user to give to someone for uploading pictures to the web server, but I can only sftp into my server with the root user. I use a key for logging in with the root, but I have a password set up for the non-root user. When I try that user it just says “access denied” A: Enable password auth in sshd config. Q : J'ai créé un utilisateur sans droits administratifs pour le donner à quelqu'un en vue de téléverser des images sur un serveur Web, mais je ne peux accéder à mon serveur qu'avec sftp et l'utilisateur root. J'utilise une clé pour m'identifier comme root, mais j'ai paramétré un mot de passe pour l'utilisateur non-root. Quand j'essaie cet utilisateur, je lis « access denied » (accès refusé). R : Activez l'autorisation des mots de passe dans sshd. Q: I installed VNC on my raspberry pi (raspbian), and the VNC chrome extension in chromium. When I try to connect, I get GLX and GL errors, and inputs and lots of numbers that don't mean anything to me. How to make it work? A: You don't need to install VNC in Raspbian, simply enable it. You can also download the client from realvnc.com, and try that instead of chrome. Chrome extensions may interfere with the Plugin. Make sure Raspbian has VNC enabled (you should see the Icon in the taskbar). Q : J'ai installé VNC sur mon raspberry pi (raspian), et l'extension VNC de chrome dans chromium. Quand j'essaie de me connecter, j'ai des erreurs GLX et GL, ainsi que des informations et beaucoup de chiffres qui ne veulent rien dire pour moi. Comment le faire fonctionner ? R : Vous n'avez pas besoin d'installer VNC dans Raspian, activez-le simplement. Vous pouvez aussi télécharger le client depuis realvnc.com et l'essayer à la place de chrome. Les extensions de chrome peuvent interférer avec le module additionnel. Assurez-vous que VNC est activé (vous devriez voir l'icône dans la barre de tâches). Q: After a power failure during update, my system appears to be behaving badly. I've discovered so far that network and logind at least are failing. Apache and MySQL seem fine, just problems with access because networking is down. I have tried rebooting – to no avail. Same problems. I tried starting the network, and it has hung there for many minutes. A: Do an apt-get clean and force a disk check at boot. cd / sudo touch /forcefsck Then, reboot. Q : Après une coupure électrique pendant une mise à jour, mon système paraît mal se comporter. Jusqu'ici, j'ai constaté qu'au moins network et logind sont en échec. Apache et MySQL semblent corrects, avec simplement des problèmes d'accès puisque le réseau est hors service. J'ai essayé de redémarrer, mais en vain. Mêmes problèmes. J'ai essayé de démarrer le réseau, mais il est resté figé pendant de longues minutes. R : Faites le ménage avec apt-get clean et forcez une vérification du disque au démarrage. cd/ sudo touch /forcefsck Puis, redémarrez. Q: How do I remove “Welcome to nginx!” from website homepage? A: Another broad question, it usually means you made a configuration mistake along the line. I would suggest you look here: https://vpsfix.com/community/server-administration/welcome-to-nginx-landing-page-issue/ Q : Comment puis-je supprimer « Welcome to nginx! » (Bienvenue dans nginx !) de la page d'accueil de mon site Web ? R : Vaste question. Habituellement, cela signifie que, quelque part, vous avez fait une erreur de configuration. Je vous propose de regarder ici : https://vpsfix.com/community/server-administration/welcome-to-nginx-landing-page-issue/ Q: How to connect MYSQL remotely? A: By default, remote access to the MySQL database server is disabled for security reasons. That said, you can follow this tutorial: https://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html Q : Comment me connecter à distance à MySQL ? R : Par défaut, l'accès à distance au serveur de la base de données MySQL est désactivé pour des raisons de sécurité. Cela dit, vous pouvez suivre ce tutoriel : https://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.htm Q: When I use Filezilla to connect to my Ubuntu 16.04 server via SFTP, it works fine, but not with Forklift. Any ideas? A: The last time I used Forklift was on OSX Leopard. You need to change a few things via terminal on your Mac. Look at: https://binarynights.com/manual#remote_connections. You do not need to change any configuration on Ubuntu server. Q : Quand j'utilise Filezilla pour me connecter à mon serveur Ubuntu 16.04 via SFTP, ça marche bien, mais pas avec Forklift. Une idée ? R : La dernière fois que j'ai utilisé Forklift, c'était avec OSX Leopard. Vous avez besoin de changer certaines choses via un terminal sur votre Mac. Regardez : https://binarynights.com/manual#remote_connections. Vous n'avez aucunement besoin de changer la configuration sur le serveur Ubuntu. Q: I got stuck during the update, now have Kernel Panic - Not syncing : VFS: unable to mount root fs on unknown-block (0,0). A: You will have to boot into recovery mode and roll back to an earlier kernel. If you don't have one, you will have to reinstall the kernel. Q : J'ai eu un plantage pendant une mise à jour, et maintenant c'est « Kernel Panic - Not syncing : VFS: unable to mount root fs on unknown-block (0,0) » (Erreur généralisée - Pas de synchro : VFS : incapable de monter le système de fichier root sur un bloc inconnu 0,0). R : Vous devrez démarrer en mode de récupération et revenir à un noyau antérieur. Si vous n'en avez pas, vous devrez réinstaller le noyau. Q: When I try to access my website: www.xxxxxxxxxxxx.com, I get an error: “ the page you are trying to view cannot be shown because the authenticity of the received data could not be verified. Please contact the website owners to inform them of this problem”. It has been working fine for a whole year, now it does not work? A: Renew your domain. Q : Quand j'essaie d'accéder à mon site Web : www.xxxxxxxxxxxx.com, j'ai une erreur : « The page you are trying to view cannot be shown because the authenticity of the received data could not be verified. Please contact the website owners to inform them of this problem » (La page que vous essayez de voir ne peut pas être affichée car l'authenticité des données reçues ne peut pas être vérifiée. Contactez les propriétaires du site Web pour les informer du problème). Il a bien marché pendant toute une année, et maintenant il ne fonctionne plus ? R : Renouvelez votre domaine. Q: I set up a lab server with mail setup from howtoforge.com. My mail ends up as SPAM in my Gmail account. What can I do? A: Your mails are likely to go to spam when sending to Google or Outlook because your mail server does not have a good enough reputation according to Google/Microsoft. This takes time. Q : J'ai paramétré un serveur de labo avec le paramétrage d'une boîte mail chez howtoforge.com. Mon mail se retrouve en SPAM dans mon compte Gmail. Que puis-je faire ? R : Vos mails semblent aller dans les spams quand vous les envoyez à Google ou à Outlook car votre serveur de mails n'a pas une assez bonne réputation d'après Google/Microsoft. Ceci prend du temps. Q: What do I need to set up CS:GO server? A: Since you did not give me anything to work with, I am going to point you here: https://www.reddit.com/r/GlobalOffensive/comments/2zkq2q/server_requirements_to_host_a_csgo_server/ Q : De quoi ai-je besoin pour paramétrer un serveur CS:GO ? R : Comme vous ne me donnez aucune information pour répondre, je vous dirige vers ceci : https://www.reddit.com/r/GlobalOffensive/comments/2zkq2q/server_requirements_to_host_a_csgo_server/ Q: I don't have GPARTED installed but I NEED to change a new drive. How to accomplish? A: Hi, I assume you are trying to format or change the partitions of a new drive. Just run the “disks” app in Ubuntu and you can change the partitions. On the command line, your options are: fdisk, cfdisk and parted. Always double-check that you have the correct drive selected! Q : GPARTED n'est pas installé, mais j'ai VRAIMENT BESOIN de modifier un nouveau disque. Comment le faire ? R : Salut. Je suppose que vous essayez de formater ou de modifier les partitions d'un nouveau disque. Lancez simplement l'appli « disks » dans Ubuntu et vous pourrez changer les partitions. En ligne de commande, vos options sont fdisk, cfdisk et parted. Vérifiez toujours deux fois que vous avez sélectionné le bon disque ! Q: Netbeans wants Java Development Kit -jdk installed. What is the best tutorial for it? A: Open a terminal and type: sudo apt-get install openjdk-11-jdk There are many tutorials on Java jdk out there, but use the “safe” option from the repositories. Q : Netbeans demande l'installation de Java Development Kit -jdk. Quel est le meilleur tutoriel pour ça ? R : Ouvrez un terminal et saisissez : sudo apt-get install openjdk-11-jdk De nombreux tutoriels existent sur Java Jdk, mais utilisez l'option « sure » à partir des dépôts. Q: There are so many tutorials on Ruby and Rails, what is the best way to install ruby and rails. A: Though I followed an example that I had Googled, Ruby and Rails can simply be installed with apt. apt install ruby apt install rails Q : Beaucoup de tutoriels existent sur Ruby et Rails ; quelle est la meilleure façon d'installer ruby et rails ? R : Bien que j'aie suivi un exemple trouvé en cherchant dans Google, Ruby et Rails peuvent être installés simplement avec apt. apt install ruby apt install rails Q: Unity is freezing after the splash screen on Ubuntu 18.04. A: This was all I could find: https://forum.unity.com/threads/linux-build-crashes-on-ubuntu-18-04-if-return-is-pressed.543692/ Q : Unity est gelé après l'écran de démarrage sur Ubuntu 18.04. R : Voici tout ce que j'ai pu trouver : https://forum.unity.com/threads/linux-build-crashes-on-ubuntu-18-04-if-return-is-pressed.543692/ Q: I try to install the pylint for python 2.7 in ubuntu 18.04, but it errors badly. A: The short answer is pylint is not for Python 2.7. The support for Python 2.7 will end soon, try to use Python 3. Q : J'essaie d'installer pylint pour python 2.7 sur Ubuntu 18.04, mais j'ai plein d'erreurs. R : La réponse courte est que pylint n'est pas pour python 2.7. Le support de Python 2.7 se terminera bientôt ; essayez d'utiliser Python 3. Q: Did you receive my mail? A: Yes, “Dave”, “Joe”, “Sindy”, “Viktor” - but since it was all spam, we deleted them. Now please stop sending “did you get my mail” emails. Q : Avez-vous reçu mon mail ? R : Oui, « Dave », « Joe », « Sindy », « Viktor », mais, comme ce sont tous des spams, nous les avons effacés. Maintenant, merci d'arrêter d'envoyer des mails « avez-vous reçu mon mail ? ».

issue137/q._et_r.txt · Dernière modification : 2018/10/12 15:30 de auntiee