Chinaunix首页 | 论坛 | 博客
  • 博客访问: 94985
  • 博文数量: 17
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 230
  • 用 户 组: 普通用户
  • 注册时间: 2008-07-24 17:41
文章分类

全部博文(17)

文章存档

2008年(17)

我的朋友

分类: LINUX

2008-07-25 14:31:56

几个月前接触到瑞萨科技SH-4A系列的SH7763开发板,其提供的开发平台是Fedora core 5,而FC5默认没安装tftp server ,所以我把安装方法记录下来,即使现在tftp server 已不是v0.33版本,而且现在的Linux发行版本都会有安装好的tftp server。

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—

阅读(801) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~