Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revisionBoth sides next revision | ||
en:general_information:tftp [2015/06/18 17:53] – created liedmann | en:general_information:tftp [2020/11/19 10:12] – [Sources] liedmann | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== TFTP Server ===== | ||
- | \\ | ||
- | ===== Ubuntu x86 in VMware player ===== | ||
- | Tested with : | + | ====== TFTP Server ====== |
- | * Ubuntu | + | ===== Setting up TFTP Server in Ubuntu |
- | * Ubuntu 12.04 | + | |
- | The following guide desribes how to install and setup a tftp server under Ubuntu, the default | + | TFTP (Trivial File Transfer Protocol) is a simplified version of FTP (File Transfer Protocol),running on port 69. It can be setup with very litte effort.\\ |
- | To install the following step is needed: | + | For example |
+ | \\ | ||
+ | \\ | ||
+ | The first thing is to install | ||
- | < | + | < |
- | user@ubuntu: | + | sudo apt-get install xinetd tftpd tftp |
</ | </ | ||
- | The TFTP default directory | + | The next step is to create folder to act as TFTP root, the files for e.g. firmware updates on the Starterkit must be stored here .\\ |
+ | Typically this folder | ||
+ | < | ||
+ | sudo mkdir /tftpboot | ||
+ | sudo chmod -R 777 /tftpboot | ||
+ | sudo chown -R nobody | ||
+ | </ | ||
- | * Creation of a new directory for the server | ||
- | * setting the ownership for the tftp user | ||
- | * add user to the tftp group to have rights to the tftpd dirctory | ||
- | < | + | Now a new xinetd tftp serivce has to be configured by creating the file **/ |
- | user@ubuntu: | + | |
- | user@ubuntu:~$ sudo chown tftp: | + | < |
- | user@ubuntu: | + | service tftp |
- | user@ubuntu: | + | { |
+ | protocol | ||
+ | port = 69 | ||
+ | socket_type | ||
+ | wait = yes | ||
+ | user = nobody | ||
+ | server | ||
+ | server_args | ||
+ | disable | ||
+ | } | ||
</ | </ | ||
- | Finally | + | After setting up everything properly, |
+ | |||
+ | < | ||
+ | sudo sudo service xinetd restart | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Ubuntu 12.04 x86 in vmware player ===== | ||
+ | |||
+ | The default | ||
<code bash> | <code bash> | ||
- | user@ubuntu: | + | user@ubuntu: |
</ | </ | ||
- | Change the following line to point to the new created | + | The TFTP default directory is / |
+ | |||
+ | Change the following line in ''/ | ||
< | < | ||
- | TFTP_DIRECTORY="/ | + | TFTP_DIRECTORY="/ |
</ | </ | ||
Line 52: | Line 76: | ||
user@ubuntu: | user@ubuntu: | ||
</ | </ | ||
+ | |||
+ | ===== Ubuntu 10.04 x86 in vmware player ===== | ||
+ | |||
+ | ==== Installation ==== | ||
+ | <code bash> | ||
+ | user@ubuntu: | ||
+ | </ | ||
+ | |||
+ | ==== Configuration ==== | ||
+ | To cofigure TFTP the file ''/ | ||
+ | < | ||
+ | service tftp | ||
+ | { | ||
+ | socket_type | ||
+ | protocol | ||
+ | wait = yes | ||
+ | user = root | ||
+ | server | ||
+ | server_args | ||
+ | per_source | ||
+ | cps = 100 2 | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | <WRAP round info> | ||
+ | The directory requires at least the access authorisation "'' | ||
+ | </ | ||
+ | |||
+ | <WRAP round info> | ||
+ | After the configuration was changed the server should be restarted: | ||
+ | <code bash> | ||
+ | user@ubuntu: | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== Firewall & port forwarding ===== | ||
+ | TFTP uses port 69 UDP. This port must be opened. | ||
+ | |||
+ | |||
+ | ===== Further applicable links ===== | ||
+ | \\ | ||
+ | [[en: | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ |