Outils pour utilisateurs

Outils du site


issue137:q._et_r

Ceci est une ancienne révision du document !


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 une nouvel article de notre section Questions et Réponses. S'il vous plait, n'essayez pas d'être trop vague quand vous posez une question. Nous nous efforçons de vous aider, mais nous ne lisons pas dans vos têtes.

Ils l'ont fait : il n'y a pas si longtemps, nous avons eu un client qi est sorti des ses gonds et il 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, quoiqu'il fasse, j'utilise htop pour trouver le coupable. Aussi, j'ai noté une chose : chaque fois que mon CPU fait ne pointe dans la rangée « tâches », la seconde colonne (qui est pour « thr ») passe à son maximum. Ainsi, je veux savoir ce que signifie ce « thr » ?

R : Linux adore les raccourcis : « thr » est le raccourci 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 en 18.04. Maintenant, mes sites Web sont cassés. Aidez-moi, s'il vous plait.

R : Salut, Tenmil; Ceci est beaucoup trop vaste, avec beaucoup 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 deviez 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 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 à créer des revenus à beaucoup de gens qui font 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 autoriser le cache ? Suivez-vous le principe du KISS ? 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 DS pointe vers un nouveau Nameserver (serveur de noms) personnalisé. Termineé le cache et tout le reste. Je peux accéder au serveur par son IP mais pas par le domaine. J'ai trouvé l'erreur « 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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.

issue137/q._et_r.1539067605.txt.gz · Dernière modification : 2018/10/09 08:46 de d52fr