Last active
February 12, 2018 11:13
-
-
Save directorscut82/8fc6756a4b742ca9b9c79fcd4c1b2f0d to your computer and use it in GitHub Desktop.
[setup TFTP server] #CLI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Installation | |
| sudo apt-get install tftpd-hpa | |
| sudo service tftpd-hpa status | |
| netstat -a | grep tftp | |
| #Configuration | |
| Mkdir /tftp | |
| sudo cp /etc/default/tftpd-hpa /etc/default/tftpd-hpa.ORIGINAL | |
| sudo vi /etc/default/tftpd-hpa | |
| TFTP_DIRECTORY=”~/tftp” | |
| TFTP_OPTIONS=”–secure –create” | |
| TFTP_ADDRESS=”:69″ | |
| #Modify Permissions on TFTP Root Directory | |
| sudo chmod -R 777 ~/tftp | |
| sudo chown -R nobody ~/tftp | |
| service tftpd-hpa restart | |
| #in case of tftp startup error check if port is already used for other process | |
| netstat -lnp | grep 69 | |
| #tests | |
| #linux host @192.168.1.5, stb busybox | |
| #get file 'test' from host (~/tftp/test) | |
| tftp -r test -l testcopy -g 192.168.1.5 69 | |
| #send flashed fsi from stb to host (~/tftp/fsi.bin) | |
| tftp -l /dev/mtd8 -r fsi.bin -p 192.168.1.5 69 | |
| # **extra ** | |
| # setup tftp for windows | |
| # install tftpd32 utility | |
| # open tftpd32 as admin & allow tftp traffic from firewall | |
| # disable DHCP from GLOBAL options | |
| # set ip and dir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment