Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| computers:tftpmac [2022/05/24 03:30] – jon | computers:tftpmac [2022/05/24 17:49] (current) – jon | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| < | < | ||
| tftp 192.168.x.x | tftp 192.168.x.x | ||
| - | # Switches to tftp | + | </ |
| - | # Prompt | + | Prompt |
| + | <code> | ||
| bin | bin | ||
| # sets tftp to binary mode | # sets tftp to binary mode | ||
| Line 18: | Line 19: | ||
| ===== Server ===== | ===== Server ===== | ||
| - | The server disabled by default. | + | The server |
| - | ### Start TFTP | + | Starting the tftp server |
| + | < | ||
| sudo launchctl load -F / | sudo launchctl load -F / | ||
| + | </ | ||
| - | ### Stop TFTP | + | Stopping the tftp server |
| + | < | ||
| sudo launchctl unload -F / | sudo launchctl unload -F / | ||
| + | </ | ||
| - | ### Check if its running (no process | + | Check the process |
| + | < | ||
| netstat -atp UDP | grep tftp | netstat -atp UDP | grep tftp | ||
| - | The TFTP daemon uses the /private/ | + | </code> |
| - | ### Copy file to tftp folder | + | The tftp server uses / |
| - | cp FILENAME | + | < |
| - | ### Set permissions for the folder | + | cp filename |
| + | </ | ||
| + | |||
| + | Since the folder | ||
| + | < | ||
| chmod -R 766 / | chmod -R 766 / | ||
| + | </ | ||
| + | |||
| There is a gotcha with the TFTP daemon, which is you cant copy a file to the TFTP daemon if that file does not already exist there. | There is a gotcha with the TFTP daemon, which is you cant copy a file to the TFTP daemon if that file does not already exist there. | ||