Outils pour utilisateurs

Outils du site


issue172:tutoriel1

Latex will return next month. Website: https://eternalterminal.dev/ Github: https://github.com/MisterTea/EternalTerminal So my eye caught an article (https://ostechnix.com/eternal-terminal-remote-shell-automatically-reconnects-without-interrupting-session/) It is like MOSH, but with scrolling. I was looking up persistent SSH connections for hand held scanners – a big problem we have at work – and I thought it may be fun to try it out. However, the article above seemed a little Arch Linux oriented and terse, so I thought you may like an Ubuntu beginners version: Installation on Ubuntu is as simple as adding a PPA. For those of you that don’t like PPA’s, you can build it from scratch too.

LaTeX sera de retour le mois prochain.

Site Web : https://eternalterminal.dev/

Github : https://github.com/MisterTea/EternalTerminal

Bon, un article a attiré mon attention (https://ostechnix.com/eternal-terminal-remote-shell-automatically-reconnects-without-interrupting-session/) C’est comme MOSH, mais avec le défilement.

Je cherchais des connexions SSH persistantes pour des scanners à main – c’est un gros problème au travail – et je pensais que ce serait peut-être amusant de l’essayer. Toutefois, l’article ci-dessus semblait un peu trop orienté Arch Linux et un peu laconique ; aussi, je pensais que vous voudriez peut-être une version Ubuntu pour les débutants.

L’installation sous Ubuntu est aussi simple que l’ajout d’une PPA. Ceux qui n’aiment pas les PPA peuvent aussi le compiler à partir de zéro.

sudo add-apt-repository ppa:jgmath2000/et sudo apt update sudo apt install et The catch is that it requires et to be installed on BOTH sides, client and server. To check if it is running on your server simply type: systectl status et

sudo add-apt-repository ppa:jgmath2000/et

sudo apt update

sudo apt install et

Le hic, c’est qu’il doit être installé des DEUX côtés, client et serveur. Pour vérifier qu’il s’exécute sur le serveur, il suffit de taper :

systectl status et

Tip: By default Eternal Terminal uses port 2022, so be sure it is open. SSH must be installed, working and running. You use et the same way that you use SSH. The syntax of the command is et username@<ip address>:{port] . To connect to a remote machine, you only need to provide the port number if you changed the default. If no user name is provided, the tool uses the current user name on the host machine to connect with the remote server. To terminate your connection, the same as with SSH, just press CTRL + d.

Astuce : Par défaut Eternal Terminal utilise le port 2022 ; il faut donc vous assurer que celui-ci est ouvert. SSH doit être installé et en fonction.

Vous utilisez « et » de la même façon que SSH.

La syntaxe de la commande est : et nom_d’utilisateur@<adresse IP>:{port] .

Pour se connecter à une machine à distance, il suffit de fournir le numéro de port si vous avez changé celui par défaut. Si aucun nom d’utilisateur n’est fourni, l’outil utilise le nom d’utilisateur actuel sur la machine hôte pour se connecter au serveur à distance.

Pour mettre fin à votre connexion, tout comme avec SSH, il suffit d’appuyer sur CTRL + d.

How it works You connect to the remote machine via SSH in the background and once you have a connection, you continue as normal. Now, when the connection drops, the terminal no longer echo’s what you type. If you did not look when this happened, the keystrokes you typed are kept in a buffer until the connection resumes, so not all hope is lost. There is no saving grace should your power trip though, so it is not a magic bullet. Because et tries it’s level best to keep that connection, if something happens on your side, you need to kill that connection and start over. The way to do it is with -x. Specifically: et -x username@<ip address>:{port] This will kill those background processes and start your connection fresh.

Comment cela fonctionne

Vous vous connectez à la machine à distance via SSH en arrière-plan et, une fois la connexion établie, vous continuez normalement. Quand la connexion est coupée, le terminal ne répète plus ce que vous tapez. Si vous ne regardiez pas quand cela est arrivé, les touches sur lesquelles vous avez appuyé sont gardées dans un tampon jusqu’à la reprise de la connexion. Ainsi, l’espoir n’est pas perdu. Il n’y a cependant pas de sauvegarde si l’alimentation s’éteint ; ce n’est donc pas une solution miracle.

Puisque « et » essaie au maximum de garder votre connexion, si quelque chose arrive de votre côté, vous devrez terminer cette connexion-là et recommencer. Vous le faites avec -x. Pour être précis :

et -x nom_d’utilisateur@<adresse ip>:{port]

Cela terminera les processus en arrière-plan et démarrera votre connexion à nouveau.

This is handy if you have somewhere you need to connect where the WiFi is bad, like in a warehouse or area with a lot of interference. Though many of you may ask, why would you need it, if you have SSH TMUX and screen? The problem with those three, is that, when you start to drop packets like it is nobody’s business, they will hang. On a stable connection, the above trifecta will work flawlessly. Now for the testing The scanners we have are a mixed bag, going back as far as Windows XP CE up to Honeywell android and then everything in between. The testing ended abruptly as et was not considered to be mature enough, even though the project has been around for four years. (and thus not allowed on the network) However, we did go ahead and test it on a different network with a test server and an Ubuntu PC. Simulating a bad network, by turning the output on the router to its lowest possible setting and moving the PC out of range, I am happy to report that it did work, even recording all our scans from the USB hand-held scanner we used for input.

C’est utile s’il y a un endroit où le WiFi est mauvais (comme un entrepôt ou une zone pleine d’interférences), mais où vous devez vous connecter malgré tout. Toutefois, beaucoup de lecteurs demanderaient pourquoi en avez-vous besoin si vous avez SSH TMUX et un écran ? Le problème de ces trois-là, c’est que, quand vous commencez à rapidement perdre des paquets, ils planteront. Le trio ci-dessus fonctionnera sans problème avec une connexion stable.

L’heure des tests est arrivée 

Les scanners que nous avons sont un mélange bizarre : ils vont aussi loin en arrière que Windows XP CE et en avant jusqu’à Honeywell Android, puis tout ce qu’il y a entre les deux.

Les tests se sont terminés brusquement, car « et » n’était pas considéré comme assez mature, bien que le projet existe depuis quatre ans. (Ainsi, en principe, il n’avait pas le droit d’aller sur le réseau.)

Cependant, nous l’avons testé sur un autre réseau avec un serveur test et un PC sous Ubuntu. En réglant le routeur au plus bas et en plaçant le PC hors de portée, nous avons simulé un mauvais réseau. Ainsi, je suis heureux d’annoncer que cela a bel et bien fonctionné et a même enregistré tous les scans faits à partir du scanner à main sur USB que nous avons utilisé pour les entrées.

To the developers, great work! We need an android-compatible version please. We did not test an IP change, time caught up to us, but that is what the application was designed for, so it should work. Here is basically all you need to know, so I will not rehash it. https://eternalterminal.dev/howitworks/ And more reading for those of you who would like to know the differences of the products mentioned above: https://grassfedcode.medium.com/what-could-be-better-than-ssh-e69561ec1b83 Did we make a mistake? Tell us on misc@fullcirclemagazine.org

Aux développeurs, chapeau ! Prière de faire une version compatible avec Android.

Nous n’avons pas testé un changement d’IP, car il n’y avait pas assez de temps, mais c’est pour cela que l’application fut conçue, et cela devrait fonctionner.

Voici, essentiellement, tout ce que vous devez savoir et je ne vais donc pas le répéter. https://eternalterminal.dev/howitworks/

Et plus de lecture pour ceux d’entre vous qui aimeraient connaître les différences entre les produits mentionnés ci-dessus : https://grassfedcode.medium.com/what-could-be-better-than-ssh-e69561ec1b83

Y a-t-il une erreur ? Dites-le-nous sur misc@fullcirclemagazine.org

issue172/tutoriel1.txt · Dernière modification : 2021/09/01 16:05 de d52fr