Monday, August 26, 2013

Using Mountain Lion's built in TFTP server


 It's finally clear to me why Macs are better. Because there's a TFTP server built in, of course! This feature is obviously built in for all those more-creative-than-thou types who disdain Windows computers because there isn't a glowing piece of fruit embedded into the chassis. Because those kind of people need a TFTP server, right?

So how do you use Mac OS X Mountain Lion's built in TFTP server? Well, like all things Mac, it's as user friendly as all get out...

1. Turn off the Mac firewall: System Preferences>Security and Privacy>Firewall

2. Copy the file you want to provide to TFTP clients to the default TFTP directory /private/tftpboot/ by using a command like: sudo cp /Users/jdoe/Documents/file.tar /private/tftpboot/file.tar

3. Disable any antivirus/firewall software you may be running (doubtful)

4. Grant read/write permissions on the file to everyone with this command:
sudo chmod 777 /private/tftpboot/[filename]

5. Start the TFTP daemon with these commands:
sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist
sudo launchctl start com.apple.tftpd


See? I told you Apple makes everything easy and straightforward on a Mac! So you trendy types be sure to get you a post-it-note with these commands placed on your monitor for easy reference!

No comments:

Post a Comment

Spammy/foul language comments or those with an explicit avatar will be tossed in a 55 gallon drum and a match thrown in after them. (Oooo, now I can warm my hands!!)