Outils pour utilisateurs

Outils du site


issue148:tutoriel1

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
issue148:tutoriel1 [2019/09/06 07:06] d52frissue148:tutoriel1 [2019/09/06 08:25] (Version actuelle) auntiee
Ligne 55: Ligne 55:
 **Next, become root (using the su or sudo commands), and navigate to the directory /lib/systemd/system. Here, we will need to create a new service file. It can have any name we choose, but it is best to use a name we will remember easily. For instance, let us call it ttyUSB0.service, and edit it with the following contents:** **Next, become root (using the su or sudo commands), and navigate to the directory /lib/systemd/system. Here, we will need to create a new service file. It can have any name we choose, but it is best to use a name we will remember easily. For instance, let us call it ttyUSB0.service, and edit it with the following contents:**
  
-Ensuite, passez en  « root » (en utilisant les commandes su ou sudo), et naviguez vers le répertoire /lib/systemd/system. Ici, nous devons créer un nouveau fichier pour configurer le service. Il peut porter n'importe quel nom, mais il est préférable d'utiliser un nom dont nous nous souviendrons facilement. Par exemple, appelons-le ttyUSB0.service, et créons-le avec le contenu suivant : +Ensuite, passez en  « root » (en utilisant la commande suou sudo), et naviguez vers le répertoire /lib/systemd/system. Ici, nous devons créer un nouveau fichier pour configurer le service. Il peut porter n'importe quel nom, mais il est préférable d'utiliser un nom dont nous nous souviendrons facilement. Par exemple, appelons-le ttyUSB0.service, et créons-le avec le contenu suivant : 
  
 [Unit] [Unit]
Ligne 67: Ligne 67:
 **The main line here is the one beginning with “ExecStart”. In this, we invoke getty with the correct device and line speed; we will thus need to get it right. Substitute your real device name here, it may or not be ttyUSB0, depending on your precise setup. As for line speed, most devices will run along happily at 115200 baud (bits / second). If yours does not, try lowering the speed to 28800 or even 9600 for testing purposes.** **The main line here is the one beginning with “ExecStart”. In this, we invoke getty with the correct device and line speed; we will thus need to get it right. Substitute your real device name here, it may or not be ttyUSB0, depending on your precise setup. As for line speed, most devices will run along happily at 115200 baud (bits / second). If yours does not, try lowering the speed to 28800 or even 9600 for testing purposes.**
  
-La ligne principale ici est celle qui commence par « ExecStart ». Ici, nous invoquons getty avec le bon dispositif et la vitesse correcte de transmission ; nous devrons donc le faire scrupuleusement. Donnez ici le nom réel de votre dispositif, peut-être ttyUSB0 ou pas, en fonction de votre configuration/distribution. Concernant la vitesse de transmission, la plupart des dispositifs fonctionneront à merveille à une vitesse de 115 200 bauds (bits/seconde). Si ce n'est pas le cas, essayez de réduire la vitesse à 28 800 ou même à 9 600 à des fins de test.+La ligne principale ici est celle qui commence par « ExecStart ». Ici, nous invoquons getty avec le bon dispositif et la vitesse correcte de transmission ; nous devrons donc le faire scrupuleusement. Donnez ici le nom réel de votre dispositif, ça peut être ttyUSB0 ou pas, en fonction de votre configuration/distribution. Concernant la vitesse de transmission, la plupart des dispositifs fonctionneront à merveille à une vitesse de 115 200 bauds (bits/seconde). Si ce n'est pas le cas, essayez de réduire la vitesse à 28 800 ou même à 9 600 à des fins de test.
  
 **Once we are happy with our configuration, let us save the file and reload the daemon. This will force systemd to re-examine its configuration files, and hopefully detect the presence of the new file we just created.** **Once we are happy with our configuration, let us save the file and reload the daemon. This will force systemd to re-examine its configuration files, and hopefully detect the presence of the new file we just created.**
Ligne 88: Ligne 88:
 **Once our getty service is up and running, let us turn to the client computer from which we intend to connect to the server. On a GNU/Linux system, there are very many serial terminal programs available. One that should already be installed is screen:** **Once our getty service is up and running, let us turn to the client computer from which we intend to connect to the server. On a GNU/Linux system, there are very many serial terminal programs available. One that should already be installed is screen:**
  
-Une fois notre service getty opérationnel, tournons-nous vers l'ordinateur client à partir duquel nous avons l'intention de nous connecter au serveur. Sur un système GNU/Linux, il existe de très nombreux programmes de terminaux " série " disponibles. Un qui devrait déjà être installé est screen : +Une fois notre service getty opérationnel, tournons-nous vers l'ordinateur client à partir duquel nous avons l'intention de nous connecter au serveur. Sur un système GNU/Linux, il existe de très nombreux programmes de terminaux « série » disponibles. Un qui devrait déjà être installé est screen : 
  
 $ screen /dev/ttyUSB0 115200 $ screen /dev/ttyUSB0 115200
Ligne 121: Ligne 121:
 **Similar connections should be rather easy to set up on clients with a Mac OS or a Microsoft operating system, using the appropriate tools in either case. Even a very old or low-spec computer should be well up to the task of working as a serial terminal – even one with a rather ancient Intel 80386 to Pentium IV processor. If you still have one lying around, it could even come with a serial port on the motherboard known in the BIOS or MS-DOS as COM1: or COM2:, and in Linux as /dev/ttyS0 or /dev/ttyS1 . These can easily be found by examining the rear panel of the computer body for a 9-pin connector: see (a) in the following image. In such a case, you will not even need to acquire a USB dongle.**  **Similar connections should be rather easy to set up on clients with a Mac OS or a Microsoft operating system, using the appropriate tools in either case. Even a very old or low-spec computer should be well up to the task of working as a serial terminal – even one with a rather ancient Intel 80386 to Pentium IV processor. If you still have one lying around, it could even come with a serial port on the motherboard known in the BIOS or MS-DOS as COM1: or COM2:, and in Linux as /dev/ttyS0 or /dev/ttyS1 . These can easily be found by examining the rear panel of the computer body for a 9-pin connector: see (a) in the following image. In such a case, you will not even need to acquire a USB dongle.** 
  
-Des connexions similaires devraient être assez faciles à mettre en place sur des clients avec un système d'exploitation Mac ou Microsoft, en utilisant les outils appropriés dans les deux cas. Même un ordinateur très ancien devrait être capable de fonctionner comme un terminal série - même avec un processeur Intel 80386 Pentium IV assez ancien. Si vous en avez encore un, il peut même être doté d'un port série sur la carte mère connu au niveau du BIOS ou de MS-DOS sous le nom de COM1 : ou COM2 :, et sous Linux c’est /dev/ttyS0 ou /dev/ttyS1 . Ces ports " série " sont facilement reconnaissables en examinant le panneau arrière du boîtier d’un ordinateur pour trouver un connecteur à 9 broches : voir (a) dans l'image suivante. Dans ce cas, vous n'aurez même pas besoin d'acquérir un dongle USB-Série. +Des connexions similaires devraient être assez faciles à mettre en place sur des clients avec un système d'exploitation Mac ou Microsoft, en utilisant les outils appropriés dans les deux cas. Même un ordinateur très ancien devrait être capable de fonctionner comme un terminal série - même avec un processeur Intel 80386 ou Pentium IV assez ancien. Si vous en avez encore un, il peut même être doté d'un port série sur la carte mère connu au niveau du BIOS ou de MS-DOS sous le nom de COM1: ou COM2: sous Linuxc’est /dev/ttyS0 ou /dev/ttyS1 . Ces ports « série » sont facilement reconnaissables en examinant le panneau arrière du boîtier d’un ordinateur pour trouver un connecteur à 9 broches : voir (a) dans l'image suivante. Dans ce cas, vous n'aurez même pas besoin d'acquérir un dongle USB-Série. 
  
 **Enjoy!** **Enjoy!**
  
 Amusez-vous bien ! Amusez-vous bien !
issue148/tutoriel1.1567746387.txt.gz · Dernière modification : 2019/09/06 07:06 de d52fr