2009年6月5日 星期五

ubuntu 安裝 tftp server

1.安裝相關軟件包

apt-get install tftpd tftp xinetd

2.建立配置文件
cd /etc/xinetd.d/
vi tftp
輸入
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
儲存退出

3.建立tftp目錄
sudo mkdir ~/tftpboot

4.重新啟動xinetd
/etc/init.d/xinetd restart

5.測試TFTP Server功能,在/tftpboot 目錄下隨便放個檔案
$tftp x.x.x.x
get 檔案

沒有留言:

 Ubuntu has a mechanism, that is, the installed network card (NIC) will be renamed to another name when the system is booted. Although there...