From news.csie.nctu.edu.tw!bbsroute!crosspost Mon Apr 18 11:52:42 1994
Path: news.csie.nctu.edu.tw!bbsroute!crosspost
From: SunSun.bbs@bbs.cis.nctu.edu.tw (╰─☉╮╭☉─╯)
Newsgroups: tw.bbs.comp.linux
Subject: 中文 PC-NFS HOw-TO
Date: 16 Apr 1994 05:31:04 GMT
Organization: 交大資科_BBS
Lines: 143
Message-ID: <M.766474262.A@Linux.cis_nctu.bbs.z>
NNTP-Posting-Host: news@gopher.csie.nctu.edu.tw
X-Newsgroups: csie.bbs.linux


閒來無事寫一下這個 希望各位喜歡 若有誤請包涵一下

PC-NFS

 1 甚麼是 pcnfs 呢
    PC-NFS 是 NFS (Network File System)的一種 它的主要
   特色是將 server(提供 data 的機器)上的一個目錄(或多個)
   變為你 pc(client)上的一個(或多個) driver 如 e: 如此可讓你
   直接在 pc 上讀寫資料 或 run程式(將程式 load 到你的 pc
   memory 然後執行)

 2.優點 : 可讓你的 packages(如 windows) 只存在一台 server
          上 然後可在許多台 pc上讀取 如此管理上較為方便
          且不用一個軟體需裝在好幾台 而浪費硬碟空間

 3. how to install (我以 linux , nfs024-w 安裝)
      Server : Unix OS as SunOS , Linux ....
      Client : PC DOS , PCNFS, nfs024(shareware)

    (1) Server : login as root
      <1>   Edit /etc/rc.d/rc.inet2
          找下面的片段 然後把 # 去掉成為如下 :
            .....
            ...
           # Start the SUN RPC Portmapper.
                if [ -f ${NET}/rpc.portmap ]
                then
                  echo -n " portmap"
                  ${NET}/rpc.portmap
                fi
           ......
           ...
          # # Start the various SUN RPC servers.
           if [ -f ${NET}/rpc.portmap ]
           then
          #  if [ -f ${NET}/rpc.ugidd ]
          #  then
          #   echo -n " ugidd"
          #   ${NET}/rpc.ugidd -d
          #  fi
            if [ -f ${NET}/rpc.mountd ]
            then
             echo -n " mountd"
             ${NET}/rpc.mountd
            fi
            if [ -f ${NET}/rpc.nfsd ]
           then
            echo -n " nfsd"
            ${NET}/rpc.nfsd
            fi
          #  # Fire up the PC-NFS daemon(s).
            if [ -f ${NET}/rpc.pcnfsd ]
            then
             echo -n " pcnfsd"
             ${NET}/rpc.pcnfsd ${LPSPOOL}
            fi
          #  if [ -f ${NET}/rpc.bwnfsd ]
          #  then
          #   echo -n " bwnfsd"
          #   ${NET}/rpc.bwnfsd ${LPSPOOL}
          #  fi
           fi

          echo

          # Done!


      <2> edit /etc/exports
         如
#
# exports       This file describes which parts of the local file
#               system are available for mounting by other systems
#               with the NFS system.  It is used by "mountd".
#
# Version:      @(#)/etc/exports        2.00    04/30/93
#
# Author:       Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
#

/home/msdos     mypc_hostname(rw)

# End of exports.

      <3> 造一個目錄 /home/msdos (名稱根據你上一個步而定)
      <4> 重新開機
-------------------------------------------------------------------
   (2) Client : 取得 nfs024-w.zip 解壓縮在適當目錄 ( as C:\net\nfs)
            <1>  Edit wattcp.cfg
                 如下 (我以交大資科為例)
                 my_ip=140.113.???.???    <---你 pc 的 ip
                 nameserver=140.113.23.1
                 netmask=255.255.255.0
                 gateway=140.113.???.???
                 hostname="mypc_hostname"        <-- 你 pc 的名字
                 domainslist="cis.nctu.edu.tw"   <-- 這是交大資科的domainname

            <2> Edit fstab
                如下 :
                Server:/home/msdos e: auth=pcnfsdv2,0/tcp readwin=8

                (寫一行即可 , Server 寫你主機的 ip 或 hostname
                 詳細請看fstab 裡面說明 )

    (3) 開使執行
           <1> run network driver (as de220pd)
           <2> lh C:\net\nfs\nfsdrvr
           <3> set ETCDIR=C:\net\nfs
           <4> mount -a
           <5> E:
           <6> 開使在 e: 存東西
   (4) 問題
         <1> 當你run了 pc-nfs 又要 Telnet
             你需裝像 Pktmux 的程式
             方法如下 :
                 run 完 network driver (de220pd) 後
                 run lh pktmux
                 run lh pktdrv   \
                 run lh pktdrv    | 看你要 同時 run 幾個 network API
                 run lh pktdrv   /  如 pc-nfs , telnet ,novell -->So 3 time
                 run lh nfsdrvr
                 ...........

        <2> nfs024-w 為 Shareware Beta版

  (5) PC 軟體何處拿呢 ?
        pktmuxh.zip
        nfs024-w.zip
        均可在 polyslo.calpoly.edu:/pub/mdurkin 拿到
        或者看誰能 upload to ftp site並把它公開



    -------------------------------------------------------------------
     Computer Information Science  NCTU TAIWAN

                Cuang-Liang Dai

                    Email : daicl@kaidy.cis.nctu.edu.tw or
                            gis82541@cis.nctu.edu.tw



