This shows you the differences between two versions of the page.
tftp_on_ubuntu [2007/03/04 20:53] adam added -s |
tftp_on_ubuntu [2016/11/25 22:38] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Setting up TFTP on Ubuntu ===== | ||
- | |||
- | Taken from [[http:// | ||
- | |||
- | 1. Install tftpd and related packages. | ||
- | |||
- | $ sudo apt-get install xinetd tftpd tftp | ||
- | |||
- | 2. Create / | ||
- | |||
- | service tftp | ||
- | { | ||
- | protocol | ||
- | port = 69 | ||
- | socket_type | ||
- | wait = yes | ||
- | user = nobody | ||
- | server | ||
- | server_args | ||
- | disable | ||
- | } | ||
- | |||
- | 3. Make /tftpboot directory | ||
- | |||
- | $ sudo mkdir /tftpboot | ||
- | $ sudo chmod -R 777 /tftpboot | ||
- | $ sudo chown -R nobody /tftpboot | ||
- | |||
- | 4. Start tftpd through xinetd | ||
- | |||
- | $ sudo / | ||
- | |||
- | 5. Testing. Tranfering file hda.txt from 192.168.1.100 (Client using tftp) to 192.168.1.100 (Server 192.168.1.100). Get an example file to transfer (eg. hda.txt) | ||
- | |||
- | $ touch / | ||
- | $ chmod 777 / | ||
- | $ ls -l /tftpboot/ | ||
- | total 0 | ||
- | -rwxrwxrwx | ||
- | $ tftp 192.168.1.100 | ||
- | tftp> put hda.txt | ||
- | Sent 722 bytes in 0.0 seconds | ||
- | tftp> quit | ||
- | $ ls -l /tftpboot/ | ||
- | total 4 | ||
- | -rwxrwxrwx | ||