did not managed to make it work for now
This commit is contained in:
35
Tp2.md
35
Tp2.md
@@ -623,6 +623,41 @@ Using ethernet@f0028000 device
|
||||
host 192.168.1.240 is alive
|
||||
```
|
||||
|
||||
On peut maintenant communiquer avec la board via ethernet.
|
||||
|
||||
## Setup TFTP
|
||||
|
||||
Sur la machine hôte on peut installer le package `sduo apt install tftp-hpa`
|
||||
|
||||
Ensuite on peut aller changer la config de notre serveur tftpd dans le fichier /etc/default/tftpd-hpa
|
||||
|
||||
Exemple
|
||||
|
||||
```bash
|
||||
TFTP_USERNAME="tftp"
|
||||
TFTP_DIRECTORY="/home/moi/shared_tfpt"
|
||||
TFTP_ADDRESS=":69"
|
||||
TFTP_OPTIONS="--secure"
|
||||
```
|
||||
|
||||
J'ai changé le TFTP_DIRECTORY en /home/moi comme demandé dans l'énoncé
|
||||
|
||||
pour appliquer les changements `sudo systemctl restart tftpd-hpa`
|
||||
|
||||
Pour tester je me suis mis dans un autre repertoire et j'ai fait un
|
||||
|
||||
`tftp localhost`
|
||||
|
||||
ensuite dans l'invite de commande de tftp j'ai fait un
|
||||
|
||||
`get test.txt` test.txt étant un fichier de test que j'ai créé pour l'occasion
|
||||
|
||||
Et quand je sors de l'invite de commande tftp on peut bien voir que le fichier a été copié vers mon repertoire courant avec le bon contenu à l'interieur.
|
||||
|
||||
## [Q13] Comment pouvez-vous vous assurer que votre serveur TFTPD est bien en attente de connexions (indice : ss. . . ) ?
|
||||
|
||||
Alors honnêtement aucune idée de ce que ce ss veut dire :/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user