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 [2017/12/14 16:30] – schmid | 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 is / | + | 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 is located at the root level and named **tftpboot** | |
- | * Creation of a new directory for the server | + | < |
- | * setting | + | sudo mkdir /tftpboot |
- | | + | sudo chmod -R 777 /tftpboot |
- | + | sudo chown -R nobody /tftpboot | |
- | < | + | |
- | user@ubuntu: | + | |
- | user@ubuntu: | + | |
- | user@ubuntu: | + | |
- | user@ubuntu: | + | |
</ | </ | ||
- | Finally the server configuration for the TFTP server has to be changed: | ||
- | <code bash> | + | Now a new xinetd tftp serivce has to be configured by creating the file **/etc/xinetd.d/tftp** |
- | user@ubuntu: | + | |
- | </ | + | |
- | + | ||
- | Change the following line to point to the new created directory: | + | |
< | < | ||
- | TFTP_DIRECTORY=" | + | sudo nano /etc/xinetd.d/ |
</ | </ | ||
- | + | Add the following lines of code: | |
- | To restart | + | < |
- | + | service | |
- | < | + | { |
- | user@ubuntu: | + | protocol |
+ | port = 69 | ||
+ | socket_type | ||
+ | wait = yes | ||
+ | user = nobody | ||
+ | server | ||
+ | server_args | ||
+ | disable | ||
+ | } | ||
</ | </ | ||
- | To test the server copy some file to the server and get it back with | + | After setting up everything properly, |
- | < | + | < |
- | user@ubuntu: | + | sudo service xinetd restart |
</ | </ | ||
Line 57: | Line 54: | ||
\\ | \\ | ||
[[en: | [[en: | ||
+ | |||
+ | |||
+ | |||
+ | |||