This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
products:sbc:common:development:setup-tftp-server [2022/07/05 23:46] nick |
products:sbc:common:development:setup-tftp-server [2022/07/08 05:53] (current) frank |
||
|---|---|---|---|
| Line 12: | Line 12: | ||
| Install TFTP packages: | Install TFTP packages: | ||
| - | ```sh | + | ```shell |
| $ sudo apt-get install openbsd-inetd tftpd tftp | $ sudo apt-get install openbsd-inetd tftpd tftp | ||
| ``` | ``` | ||
| Line 32: | Line 32: | ||
| Create and modify permissions on the TFTP root directory: | Create and modify permissions on the TFTP root directory: | ||
| - | ```bash | + | ```shell |
| $ sudo mkdir /srv/tftp | $ sudo mkdir /srv/tftp | ||
| $ sudo chown -R $(whoami) /srv/tftp | $ sudo chown -R $(whoami) /srv/tftp | ||
| Line 39: | Line 39: | ||
| Restart the TFTP Service: | Restart the TFTP Service: | ||
| - | ```sh | + | ```shell |
| $ sudo / | $ sudo / | ||
| ``` | ``` | ||
| Line 47: | Line 47: | ||
| Install additional TFTP packages: | Install additional TFTP packages: | ||
| - | ```sh | + | ```shell |
| $ sudo apt-get install tftp-hpa tftpd-hpa | $ sudo apt-get install tftp-hpa tftpd-hpa | ||
| ``` | ``` | ||
| Line 55: | Line 55: | ||
| As root, edit ''/ | As root, edit ''/ | ||
| - | ```sh | + | ```shell |
| TFTP_DIRECTORY="/ | TFTP_DIRECTORY="/ | ||
| ``` | ``` | ||
| Line 61: | Line 61: | ||
| Change the dir to ''/ | Change the dir to ''/ | ||
| - | ```bash | + | ```shell |
| TFTP_DIRECTORY="/ | TFTP_DIRECTORY="/ | ||
| ``` | ``` | ||
| Create and modify permissions on the TFTP root directory: | Create and modify permissions on the TFTP root directory: | ||
| - | ```sh | + | ```shell |
| $ sudo mkdir /srv/tftp | $ sudo mkdir /srv/tftp | ||
| $ sudo chown -R $(whoami) /srv/tftp | $ sudo chown -R $(whoami) /srv/tftp | ||
| Line 73: | Line 73: | ||
| Restart the TFTP Service: | Restart the TFTP Service: | ||
| - | ```sh | + | ```shell |
| $ sudo service tftpd-hpa restart | $ sudo service tftpd-hpa restart | ||
| ``` | ``` | ||
| Line 148: | Line 148: | ||
| Make sure you have copied the testing file to the TFTF root path: | Make sure you have copied the testing file to the TFTF root path: | ||
| - | ```sh | + | ```shell |
| $ ls / | $ ls / | ||
| / | / | ||