How To Install TFTP Server In Linux

RegisterLogin
How To Install TFTP Server In Linux
Post Description: How To Install TFTP Server In Linux
Tags: How, To, Install, TFTP, Server, In, Linux
This Post Was Posted On Sep 16, 2008 By Webune #934
ok, if you are reading this post, you're probably wondering how you can install TFTP server on your linux server? well i will show you step by step in this short tutorial, it will show you the installation steps you need to take to install and run a TFTP server.

so what is TFTP and what it stands for? i will explain, TFTP means Trivial File Transfer Protocol. Trivial File Transfer Protocol (TFTP) is a very simple file transfer protocol, with the functionality of a very basic form of FTP; it was first defined in 1980. It was used to boot up computer back in the old days. Summary: The server for the Trivial File Transfer Protocol (TFTP) Description: The Trivial File Transfer Protocol (TFTP) is normally used only for booting diskless workstations. The tftp-server package provides the server for TFTP, which allows users to transfer files to and from a remote machine. TFTP provides very little security, and should not be enabled unless it is expressly needed. The TFTP server is run from /etc/xinetd.d/tftp, and is disabled by default on Red Hat Linux systems.

The first thing you need to consider is if you are using a firewall in your network. if you are. make sure you have PORT 69 unblocked in your firewall.

All the dedicated server we install have Linux Red Hat Fedora Core 7

1. the first step is to login as root in your linux server

2. next send this command:
yum install tftp-server


3. once the installation completes, send this command
nano /etc/xinetd.d/tftp
NOTE: im using nano as my text editor. you can substitute VI if you want. whatever works for you

4. when you open this file it will look like this:
# default: off
# description: The tftp server serves files using the trivial file transfer 
#       protocol.  The tftp protocol is often used to boot diskless 
#       workstations, download configuration files to network-aware printers, 
#       and to start the installation process for some operating systems.
service tftp
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /tftpboot
        disable                 = yes
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}


5. change disable = yes to disable = no to enable the tftp server

6. not that your server is enabled, its time to start it. use this command to start running the TFTP server:
/sbin/service xinetd start


7. you will see:
Starting xinetd:                                           [  OK  ]


8. now your TFTP server is up and running. you want to find out where is your TFTP root directory is located. usually the path of the root directory is at /tftpboot so type this command:
ls /


9. you will see it in the root directory. now we create a test file to make sure it works. so send this command to create a test file:
touch /tftpboot/test


10. now that you created the file, you can connect to your FTFP server with this command:
tftp localhost
tftp> get test
tftp> quit


11. Ok, how about if you want to connect to your server remotely from another computer. so lets say i am at home and i want to connect remotely to my server using my PC. my PC has windows XP on it. well you can. just open a DOS console/terminal and enter this command:
tftp 172.16.20.1 GET test
NOTE: Make sure if you are going to connect remotely behind a firewall, you open PORT 69. otherwise you will have problems/trouble connecting remotely.
172.16.20.1 is the IP Adress of my remote TFTP server. change it to yours

DONE

Hope this helps you
sap
#9289 1
Great tutorial! thanks for posting it.
Dec 19, 2011 Reply Report abuse
sander
#9228 2
very informative. i am new to linux and this helped alot
Nov 26, 2011 Reply Report abuse
mike
#5499 3
excellent tutorial
Oct 05, 2011 Reply Report abuse
nick
#5485 4
thanks man, legend.
Oct 01, 2011 Reply Report abuse
Fizer
#5403 5
it is very useful.
Aug 23, 2011 Reply Report abuse
BALLY
#5254 6
thanks for the help.
really appreciate
Jun 09, 2011 Reply Report abuse
Dilip
#5083 7
thanks a ton!! this was really simple to set up! cheers
May 03, 2011 Reply Report abuse
Ramu
#4876 8
it is very useful..
thank you.
Mar 03, 2011 Reply Report abuse
kasanawajp
#4450 9
linux tftpd  インストール
Sep 17, 2010 Reply Report abuse
Priyansh
#4442 10
that was really very useful
thanx alot
Sep 16, 2010 Reply Report abuse
fearve
#4157 11
how can i login remotely to a linux server which is behind cisco router
Jul 14, 2010 Reply Report abuse
Classic_Tarang
#3920 12
thanks its a very simple explanation to implement.
May 04, 2010 Reply Report abuse
TD
#3581 13
can you please explain each term of tftp file.
i am looking to change the timeout value for tftp server
Mar 09, 2010 Reply Report abuse
jason
#3526 14
followed the instruction and it wasnt working (timeouts). after a little wireshark (packet analyzer) realized that tftp client was trying to use ipv6, so started used "tftp -4 localhost" instead to force the client to use ipv4.
Feb 27, 2010 Reply Report abuse
lopz
#3184 15
i have windows seven, how to connect to a tftp server from windows 7 for my cisco router conifgs?
Jan 06, 2010 Reply Report abuse
View More Comments
Leave Your Comments...
©2011 Webune Forums - Mon Dec 19, 2011 4:56 pm
Powered by: Webune Forums V3