Monday, January 21, 2008

Installing Tftp-server on linux(Centos-5.1)

First install the xinetd service using command
#yum install xinetd

Then
#wget ftp://rpmfind.net/linux/redhat/9/en/os/i386/RedHat/RPMS/tftp-server-0.32-4.i386.rpm
#rpm -ivh tftp-server-0.32-4.i386.rpm

Edit file(Make it like given below)
#vi /etc/xinetd.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -c -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}

Save and exit the file

Then create directory
#mkdir /tftpboot
#chown nobody:nobody /tftpboot

Then start the tftp-server
#/etc/rc.d/init.d/xinetd start