Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:tftp [2011/11/27 20:54] – created petz | en:tftp [2025/01/28 11:17] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | |||
| ====== TFTP Server ====== | ====== TFTP Server ====== | ||
| - | ===== Used version | + | ===== Ubuntu 14.04/16.04 x86 in vmware player |
| - | * Ubuntu 10.04 x86 in vmware player | + | |
| + | First you have to install xinetd tftp | ||
| + | |||
| + | < | ||
| + | sudo apt-get install xinetd tftpd tftp | ||
| + | </ | ||
| + | |||
| + | |||
| + | create the file **/ | ||
| + | |||
| + | < | ||
| + | service tftp | ||
| + | { | ||
| + | protocol | ||
| + | port = 69 | ||
| + | socket_type | ||
| + | wait = yes | ||
| + | user = nobody | ||
| + | server | ||
| + | server_args | ||
| + | disable | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Then create a tftp folder and restart xinetd. | ||
| + | < | ||
| + | sudo mkdir /tftpboot | ||
| + | sudo chmod -R 777 /tftpboot | ||
| + | sudo chown -R nobody /tftpboot | ||
| + | sudo / | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ===== Ubuntu 12.04 x86 in vmware player ===== | ||
| + | |||
| + | The default TFTP suite is tftp-hpa. To install the following step is needed: | ||
| + | |||
| + | <code bash> | ||
| + | user@ubuntu: | ||
| + | </ | ||
| + | |||
| + | The TFTP default directory is / | ||
| + | |||
| + | Change the following line in ''/ | ||
| + | |||
| + | < | ||
| + | TFTP_DIRECTORY="/ | ||
| + | </ | ||
| + | |||
| + | |||
| + | To restart the TFTP server type: | ||
| + | |||
| + | <code bash> | ||
| + | user@ubuntu: | ||
| + | </ | ||
| + | |||
| + | To test the server copy some file to the server and get it back with | ||
| + | |||
| + | <code bash> | ||
| + | user@ubuntu: | ||
| + | </ | ||
| + | |||
| + | ===== Ubuntu 10.04 x86 in vmware player | ||
| - | ===== Installation | + | ==== Installation ==== |
| <code bash> | <code bash> | ||
| user@ubuntu: | user@ubuntu: | ||
| </ | </ | ||
| - | ===== Configuration | + | ==== Configuration ==== |
| To cofigure TFTP the file ''/ | To cofigure TFTP the file ''/ | ||
| < | < | ||
| Line 25: | Line 91: | ||
| </ | </ | ||
| - | <note> | + | <WRAP round info> |
| The directory requires at least the access authorisation "'' | The directory requires at least the access authorisation "'' | ||
| - | </note> | + | </WRAP> |
| - | <note> | + | <WRAP round info> |
| After the configuration was changed the server should be restarted: | After the configuration was changed the server should be restarted: | ||
| <code bash> | <code bash> | ||
| user@ubuntu: | user@ubuntu: | ||
| </ | </ | ||
| - | </note> | + | </WRAP> |
| - | ==== Firewall & port forwarding ==== | + | ===== Firewall & port forwarding |
| TFTP uses port 69 UDP. This port must be opened. How to configure port forwarding on a Windows-XP host system is described here: [[vm# | TFTP uses port 69 UDP. This port must be opened. How to configure port forwarding on a Windows-XP host system is described here: [[vm# | ||
| - | ===== Sources | + | ===== Further applicable links |
| + | \\ | ||
| + | [[en: | ||
| + | |||
| + | ==== Sources | ||
| * http:// | * http:// | ||
| * http:// | * http:// | ||
| + | * http:// | ||