{"id":41,"date":"2001-04-02T16:00:24","date_gmt":"2001-04-02T16:00:24","guid":{"rendered":"http:\/\/www.balajibandi.com\/blog\/?p=41"},"modified":"2017-02-05T17:56:15","modified_gmt":"2017-02-05T17:56:15","slug":"install-configure-and-test-tftp-server-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.balajibandi.com\/?p=41","title":{"rendered":"INSTALL CONFIGURE AND TEST TFTP SERVER IN UBUNTU"},"content":{"rendered":"<p>Install tftpd and related packages in server system<\/p>\n<pre>#apt-get install xinetd tftpd tftp<\/pre>\n<p>Create a file named tftp in \/etc\/xinetd.d\/<\/p>\n<pre>#touch \/etc\/xinetd.d\/tftp<\/pre>\n<p>Edit this file<\/p>\n<pre>#vi \/etc\/xinetd.d\/tftp<\/pre>\n<p>Enter the following content to that file<\/p>\n<pre>service tftp\r\n{\r\nprotocol        = udp\r\nport            = 69\r\nsocket_type     = dgram\r\nwait            = yes\r\nuser            = nobody\r\nserver          = \/usr\/sbin\/<span class=\"skimlinks-unlinked\">in.tftpd<\/span>\r\nserver_args     = \/tftpboot\r\ndisable         = no\r\n}<\/pre>\n<p>Create a folder \/tftpboot \u00a0this should match whatever you gave in server_args. mostly it will be tftpboot<\/p>\n<pre># mkdir \/tftpboot\r\n# chmod -R 777 \/tftpboot\r\n# chown -R nobody \/tftpboot<\/pre>\n<p>Start tftpd through xinetd<\/p>\n<pre>#\/etc\/init.d\/xinetd stop\r\n<code>#\/etc\/init.d\/xinetd start<\/code><\/pre>\n<p>Now tftp server is up and running<\/p>\n<p>Testing the tftp server<\/p>\n<p>Create a file named hello.txt with some content in \/tftpboot path of the tftp server<\/p>\n<pre>#ls -l \/tftpboot\/\r\ntotal 4\r\n-rw-rw-r-- 1 ganesh ganesh 0 Sep 4 12:38 hello.txt\r\n<\/pre>\n<p>Install tfp in a client machine<\/p>\n<pre>#apt-get install  tftp<\/pre>\n<p>Obtain the ip address of the tftp server using ifconfig command, in this example we will consider the ip address as\u00a0192.168.1.2<\/p>\n<p>Now in client system<\/p>\n<pre>#tftp 192.168.1.2\r\ntftp&gt; get hello.txt\r\nSent 159 bytes in 0.0 seconds\r\ntftp&gt; quit\r\n\r\nGood Luck :)<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install tftpd and related packages in server system #apt-get install xinetd tftpd tftp Create a file named tftp in \/etc\/xinetd.d\/ #touch \/etc\/xinetd.d\/tftp Edit this file #vi \/etc\/xinetd.d\/tftp Enter the following content to that file service tftp { protocol = udp port = 69 socket_type = dgram wait = yes user = nobody server = \/usr\/sbin\/in.tftpd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=41"}],"version-history":[{"count":1,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":42,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions\/42"}],"wp:attachment":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}