카테고리 없음

[Link] Ubuntu에서 tftp 설정법

벅스바니 2010. 2. 19. 10:07
Link: http://friendlyarm.net/forum/topic/61?lang=en


Installing TFTP on the Linux PC running Ubuntu 9.04The tftp server starts with xinetd on the Linux PC.The tftp client start when you do tftp1. Install tftpd and related packages.	$ sudo apt-get install xinetd tftpd tftp2. 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  = -s /tftpboot		disable  = no	}3. Make /tftpboot directory in root	$ sudo mkdir /tftpboot	$ sudo chmod -R 777 /tftpboot	$ sudo chown -R nobody /tftpboot4. Re-start tftpd through xinetd	$ sudo /etc/init.d/xinetd restart5. Testing. Transfer a file test from 192.168.1.3 (Client using tftp) to192.168.1.3 (Server 192.168.1.3). 	$ chmod 777 /tftpboot/test6. Create a temp directory, chmod and cd to it.	$ sudo mkdir /temp	$ sudo chmod -R 777 /temp	  cd temp7. Get a file from /tftpboot while in /temp on 192.168.1.3	$ tftp 192.168.1.3	tftp> get test	Received 22 bytes in 0.0 seconds	tftp> quit8. Put a file in /temp to /tftpboot on 192.168.1.3	$ tftp 192.168.1.3	tftp> put tftpboot_test	Received 34 bytes in 0.0 seconds	tftp> quit9. Can’t put or get files at the Linux box from/to the FriendlyArm(see comments above in this thread)To GET a file at the FriendlyArm from the Linux PC:from www  # tftp -l dave.txt –r hda.txt –g 192.168.1.3from root  # tftp –l www/dave.txt –r hda.txt –g 192.168.1.3To PUT a file from the FriendlyArm to the Linux PC:from www  # tftp –l index.html –r index.html –p 192.168.1.3from root  # tftp –l www/index.html –r index.html –p 192.168.1.3In order to have a tftpd client running on boot-up in /etc/inetd.conf Iadded the line:tftp  dgram  udp  nowait  root  /usr/bin/tftpd  /usr/bin/tftpd  /files