Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
en:general_information:tftp [2015/08/17 17:11] – external edit 127.0.0.1 | en:general_information:tftp [2022/10/31 15:15] – added nano weinholdo | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== TFTP Server ===== | ||
- | \\ | ||
- | ===== Ubuntu x86 in VMware player ===== | ||
- | Tested with Ubuntu | + | ====== TFTP Server ====== |
- | * 14.04 | + | ===== Setting up TFTP Server in 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 | ||
- | <code bash> | + | Now a new xinetd |
- | user@ubuntu: | + | |
- | user@ubuntu: | + | |
- | user@ubuntu: | + | |
- | user@ubuntu:~$ sudo usermod -a -G tftp < | + | |
- | </ | + | |
- | Finally the server configuration for the TFTP server has to be changed: | + | < |
+ | sudo nano / | ||
+ | </ | ||
- | < | + | Add the following lines of code: |
- | user@ubuntu:~$ sudo nano /etc/default/tftpd-hpa | + | < |
+ | service tftp | ||
+ | { | ||
+ | protocol | ||
+ | port = 69 | ||
+ | socket_type | ||
+ | wait = yes | ||
+ | user = nobody | ||
+ | server | ||
+ | server_args | ||
+ | disable | ||
+ | } | ||
</ | </ | ||
- | Change | + | After setting up everything properly, |
< | < | ||
- | TFTP_DIRECTORY="/ | + | sudo service xinetd restart |
</ | </ | ||
- | To restart the TFTP server type: | + | ===== Further applicable links ===== |
+ | \\ | ||
+ | [[en:general_information: | ||
+ | |||
+ | |||
- | <code bash> | ||
- | user@ubuntu: | ||
- | </ | ||
- | To test the server copy some file to the server and get it back with | ||
- | <code bash> | ||
- | user@ubuntu: | ||
- | </ |