n00tz.net
so you think you're savvy? reviews.ramblings.references
  • Home
  • About
  • Amateur Radio
  • Lifestream

Building a TFTPD Server

Software Add comments

TFTP, or Trivial File Transfer Protocol is a relatively lightweight protocol used for transferring single files at a timewithout the bulk of the massive capabilities of FTP. TFTP is used most often with embedded devices for firmware updates, or VoIP phones to get the latest configuration. Today, I ran into the desire to upgrade some firmware on the DRAC-III device in my Dell PowerEdge 1650 that I just bought on EBay. After gaining access to the embedded web server’s firmware update page I found that it required a tftpd server to pull firmware images from. So, I began to deploy one here at the house for firmware updates I’ll undoubtedly need in the coming months as my home infrastructure grows.

After some searching across the web I found that there wasn’t a very good write up on the step by step procedure to enable a TFTP daemon on Ubuntu (my choice for linux servers). I had actually messed around with the tftpd package, but in the little bit I was able to find I determined I wanted to use the ‘atftp’ and ‘atftpd’ packages available in Ubuntu’s universe repositories due to more adoption in instructions that were available. In what I’ve been able to determine, both the server daemon (atftpd) and the client program (atftp) are necessary on the server (computer). The reasoning, as best as I’ve been able to determine, is that the server (daemon) only makes the files available. The client (program) does all of the “work” in negotiating connections between each other, so a client (program) is necessary on both the server (computer) and the client (computer). I hope that made sense.

So that you have a baseline of expectations, I’ll be open with the specs and configuration of the server I’m using:

  • Ubuntu Server 10.4 Lucid Lynx x86 (32 bit)
  • Dual 1.4Ghz Pentium3 CPUs
  • 512MB RAM
  • Running as Guest OS on VMWare ESXi 3.5 Update5

Now, let’s get atftpd installed.

  1. Get Root.
    1. sudo -i
  2. Install atftpd.
    1. apt-get install atftpd
  3. Edit atftpd’s configuration.
    1. pico -w /etc/default/atftpd
    2. change “USE_INETD=true” to “USE_INETD=false”
    3. ctrl+x, enter, y
  4. Start atftpd.
    1. invoke-rc.d atftpd start
  5. Add the tftp directory.
    1. cd /srv
    2. mkdir tftp
    3. chmod 777 tftp
    4. chown nobody:nogroup tftp
  6. Restart atftpd.
    1. /etc/init.d/atftpd restart
  7. Install the client (program).
    1. apt-get install atftp
  8. Done!

At this point, use your favorite SCP client (program) to upload any firmware files to the /srv/tftp folder. Once it is uploaded, point the tftp location in your firmware update process to your newly deployed tftpd server. Easy enough!

Thanks for visiting, if you have any questions feel free to comment below and I’ll do my best to reply and help you out.

Be Sociable, Share!
  • Tweet
  • Share this:
  • Reddit
  • Facebook

Tags: atftp, atftpd, DRAC-III, Firmware, Lucid Lynx, server, Step-By-Step, TFTP, tftpd, Ubuntu, VMWare ESXi


July 23rd, 2010 |

Tags: atftp, atftpd, DRAC-III, Firmware, Lucid Lynx, server, Step-By-Step, TFTP, tftpd, Ubuntu, VMWare ESXi


One Response to “Building a TFTPD Server”

  1. Garrett Bartley
    July 24th, 2010 at 10:43 pm

    Here’s an easier way:
    1. Install http://kin.klever.net/pumpkin/

    Of course, that’s assuming you really only want to to one-off TFTP’ing every now and then. Just a pretty simple one-shot and go. I think the last time I personally used a TFTP server was about 7-8 years ago.


Leave a Reply

  • Meet Your Blogger

    profile092008square When not spending time behind a computer screen bringing you his latest blog posts; you might catch him playing video games on his PC; eating/cooking something in the kitchen of his house in Northwest Georgia; watching movies from his Netflix queue; volunteering for the Boy Scouts of America; fueling his wilderness interests by hiking, camping, backpacking, rafting, kayaking; sustaining his established hobbies in Amateur Radio, videography, photography, or music; running his DJ business with his brother as a partner; or hanging out with his friends doing any number of fun activities. Find out more...
  • Paying the Bills

  • Lifestream

    • Listened to Rock N' Roll [Will Take You To The Mountain] - Skrillex.
      — January 4th via Last.fm
    • Listened to Mixtress - J. Hazen Remix - DJ Baby Anne.
      — January 4th via Last.fm
    • Listened to Cinema feat. Gary Go - Skrillex Remix - Benny Benassi.
      — January 4th via Last.fm
  • Blogroll

    • Garrett Bartley
    • Molly Locklear
    • Nathaniel Foster
    • Paul Stamatiou
    • Robert Sloan
  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

  • Mint Investing and Personal Finance
Copyright © 2012 n00tz.net All Rights Reserved
RSS XHTML CSS Log in
Wp Theme by n Graphic Design
Powered by Wordpress