<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>n00tz.net &#187; Firmware</title>
	<atom:link href="http://n00tz.net/tag/firmware/feed/" rel="self" type="application/rss+xml" />
	<link>http://n00tz.net</link>
	<description>so you think you&#039;re savvy? reviews.ramblings.references</description>
	<lastBuildDate>Wed, 04 Jan 2012 04:20:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Building a TFTPD Server</title>
		<link>http://n00tz.net/2010/07/tftpd/</link>
		<comments>http://n00tz.net/2010/07/tftpd/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 20:50:32 +0000</pubDate>
		<dc:creator>n00tz</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[atftp]]></category>
		<category><![CDATA[atftpd]]></category>
		<category><![CDATA[DRAC-III]]></category>
		<category><![CDATA[Firmware]]></category>
		<category><![CDATA[Lucid Lynx]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Step-By-Step]]></category>
		<category><![CDATA[TFTP]]></category>
		<category><![CDATA[tftpd]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VMWare ESXi]]></category>

		<guid isPermaLink="false">http://n00tz.net/?p=6528</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Trivial_File_Transfer_Protocol" target="_blank">TFTP, or Trivial File Transfer Protocol</a> is a relatively lightweight protocol used for transferring single files at a time<a href="http://n00tz.net/files/atftp.png"><img class="alignright size-full wp-image-6665" title="atftp" src="http://n00tz.net/files/atftp.png" alt="" width="247" height="187" /></a>without 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&#8217;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&#8217;ll undoubtedly need in the coming months as my home infrastructure grows.</p>
<p>After some searching across the web I found that there wasn&#8217;t a very good write up on the step by step procedure to enable a TFTP daemon on Ubuntu (my choice for linux servers). <span id="more-6528"></span>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 <a href="http://packages.ubuntu.com/search?keywords=atftp&amp;searchon=names&amp;suite=all&amp;section=all" target="_blank">&#8216;atftp&#8217; and &#8216;atftpd&#8217; packages</a> available in <a href="http://packages.ubuntu.com/" target="_blank">Ubuntu&#8217;s universe repositories</a> due to more adoption in instructions that were available. In what I&#8217;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&#8217;ve been able to determine, is that the server (daemon) only makes the files available. The client (program) does all of the &#8220;work&#8221; 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.</p>
<p>So that you have a baseline of expectations, I&#8217;ll be open with the specs and configuration of the server I&#8217;m using:</p>
<ul>
<li>Ubuntu Server 10.4 Lucid Lynx x86 (32 bit)</li>
<li>Dual 1.4Ghz Pentium3 CPUs</li>
<li>512MB RAM</li>
<li>Running as Guest OS on VMWare ESXi 3.5 Update5</li>
</ul>
<p>Now, let&#8217;s get atftpd installed.</p>
<ol>
<li>Get Root.
<ol>
<blockquote>
<li>sudo -i</li>
</blockquote>
</ol>
</li>
<li>Install atftpd.
<ol>
<blockquote>
<li>apt-get install atftpd</li>
</blockquote>
</ol>
</li>
<li>Edit atftpd&#8217;s configuration.
<ol>
<blockquote>
<li>pico -w /etc/default/atftpd</li>
<li>change &#8220;USE_INETD=true&#8221; to &#8220;USE_INETD=false&#8221;</li>
<li>ctrl+x, enter, y</li>
</blockquote>
</ol>
</li>
<li>Start atftpd.
<ol>
<blockquote>
<li>invoke-rc.d atftpd start</li>
</blockquote>
</ol>
</li>
<li>Add the tftp directory.
<ol>
<blockquote>
<li>cd /srv</li>
<li>mkdir tftp</li>
<li>chmod 777 tftp</li>
<li>chown nobody:nogroup tftp</li>
</blockquote>
</ol>
</li>
<li>Restart atftpd.
<ol>
<blockquote>
<li>/etc/init.d/atftpd restart</li>
</blockquote>
</ol>
</li>
<li>Install the client (program).
<ol>
<blockquote>
<li>apt-get install atftp</li>
</blockquote>
</ol>
</li>
<li>Done!</li>
</ol>
<p>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!</p>
<p>Thanks for visiting, if you have any questions feel free to comment below and I&#8217;ll do my best to reply and help you out.<script type="text/javascript"><!--
google_ad_client = "ca-pub-8560919435827269";
/* Content banner 1 */
google_ad_slot = "4219269169";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://n00tz.net/2010/07/tftpd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

