Installing TFTP server in Linux
Installing and Testing TFTPD Server in Ubuntu
You will find many instances where you need to install TFTP server in your Test bed Machines and this guide would come in great handy. Just set up a TFTP server and thats it, no hassles of searching for Pen drives etc.
1. Install following packages.
$ sudo apt-get install xinetd tftpd tftp
2. Create /etc/xinetd.d/tftp and put this entry
service tftp { protocol = udp port = 69 socket_type = dgram wait = yes user = nobody server = /usr/sbin/in.tftpd server_args = /tftpboot disable = no }
3. Create a folder /tftpboot this should match whatever you gave in server_args. mostly it will be tftpboot
$ sudo mkdir /tftpboot $ sudo chmod -R 777 /tftpboot $ sudo chown -R nobody /tftpboot
4. Restart the xinetd service.
$ sudo /etc/init.d/xinetd stop $ sudo /etc/init.d/xinetd start
Now our tftp server is up and running.
Testing our tftp server
5. Create a file named test with some content in /tftpboot path of the tftp server
$ ls / > /tftpboot/test $ sudo chmod -R 777 /tftpboot $ ls /tftpboot/test -lh -rw-r--r-- 1 pavan pavan 159 2010-03-05 20:48 test
Obtain the ip address of the tftp server using ifconfig command, in this example we will consider the ip address as 192.168.1.2
6. Now in some other system follow the following steps.
$ tftp 192.168.1.2 tftp> get test Sent 159 bytes in 0.0 seconds tftp> quit $ ls test -lh -rw-r--r-- 1 pavan pavan 159 2010-03-05 20:48 test
Thats it. Our tftp server is working fine.
Note:
You might not be able to upload to this tftp server.
Note:
You might not be able to upload to this tftp server.
Hi, i feel that if you can start the topic with a generic problem statement and then give an solution in a very general way then i would say a lot of people might benifit from this as right now only people with required skill set and working knowledge would be able to relate. thanks
ReplyDelete