2008年(17)
分类: LINUX
2008-07-25 14:31:56
A) install it
# rpm -ivh tftp-server-0.33-2.i386.rpm
B) check whether installed or not :
# rpm -qa } grep tftp
(you will see some filename with ***tftp*** , that means installation OK)
C) configure :
# vi /etc/xinetd.d/tftp
(you will see this, change to "disable = no")
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 = 1002
flags = IPv4
}
D.1) start up / re-start services :
# /etc/init.d/xinetd start
or
# /etc/init.d/xinetd restart
(you will see :
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ] )
D.2) or
/sbin/chkconfig tftp on
/sbin/chkconfig xinetd on
/sbin/service xinetd start
E) testing :
E.1) image file placed at /tftpboot :
# mkdir /tftpboot
E.2) # touch /tftproot/test.img
E.3) (from other Linux PC)
tftp 192.168.0.1
tftp> get test
tftp> quit
E.4) (from other Win PC)
tftp 192.168.0.1 GET test
Thx !
若用菜单栏里的“添加/删除程序”从光盘安装,则做法如下(这个方法我没试过):
============
*.repo files should be located in /etc/yum.repos.d/ in your Fedora machine. To add/remove software for your PC, there are many ways you could find in the internet. FYR, you may try the following procedures:
1. Under the directory “/etc/yum.repos.d/”, create a folder “temp” (or whatever you like).
2. Move “*.repo” files in to “temp” folder.
3. Create a file named “installcd.repo” and below is the content of the file.
============
#
[installcd]
name=Fedora Core 5 Installation DVD
baseurl=file:///media/disk
enabled=1
gpgkey=file:///media/disk/RPM-GPG-KEY
gpgcheck=1
============
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Searchàxinetdà安装tftp
用于开发,应安装如下程序:
System—
telnet—
tftp—
xinetd—