Tested on puppy 4.12, 4.12 retro, 2.12 and 2.02..no additional dependancies should be required.
It is a manual process that requires a little familiarity with the linux and puppy file system so not suitable as a pet package but perhaps in the future a simple gui setup could be made along the lines of the one for pcurlftpfs included with puppy.
There are 2 parts ...the kernel modules and the software to run NFS.
If you are running puppy 2.xx you already have the modules (assuming zdrv is present in some cases)...skip part 1.
Puppy 3 may have the modules, new puppies are going to include as before.
1) For puppy 4.xx download and extract the appropriate archive to '/'.(the 2.6.25.16 modules are now a pet )
Then run 'depmod' in a terminal to register the added modules.
note...the retro modules are from an earlier puppy but load and run ok if the modprobe -f option is used.
2) Download and extract to '/' the 'common' archive.
3) Decide what you wish to share and add to or edit /etc/exports
for example
Code: Select all
/mnt/hda2 192.168.1.3(rw,no_root_squash,no_subtree_check,sync)
http://nfs.sourceforge.net/nfs-howto/ar01s03.html is a good clear resource.
note...files within the unionfs cannot be shared..at least not with puppie's present kernel but 'home' can..use /initrd/mnt/dev_save.
To add machines just add an entry with its ip , space inbetween.
To grant access you must add machines to /etc/hosts.allow. A simple entry could be
Code: Select all
ALL: 192.168.1.3 , 192.168.1.4
Don't forget to include the server machine if you wish to test as a client on it.
4) Open a terminal to load the modules and start the server....these commands can be added to /etc/rc.d/rc.local for automatic running at boot time.
For the server
Code: Select all
modprobe nfsd
Code: Select all
modprobe nfs
Then ....
for the server (and client)
Code: Select all
/etc/rc.d/rc.nfsd
Code: Select all
/etc/rc.d/rc.portmap
Code: Select all
rpcinfo -p localhost
5) Mount your shared files from the client using something like
Code: Select all
mount-FULL -t nfs 192.168.1.2:/mnt/hda2 /root/shares
note that the busybox mount cannot handle NFS
The above could be done at start up or in a script.
Code: Select all
umount-FULL 192.168.1.2:/mnt/hda2
You can set up an NFS server on windows
winnfsd
http://sourceforge.net/projects/winnfsd
freeware and simple...drawback is will only share ntfs drives as it relies on the owner/group info it comes with (took me a while to sus that one).
haneWIN
http://www.hanewin.net/nfs-e.htm
Very easy to setup with control panel applet..only had to add the share .runs as a service automatically...will share any partition type.
Drawback shareware...but from the documentation it will keep running after the 30 days so for home use....This appears to be the case.
For either mounting is similar..note that syntax for mounting say d:\ from 192.168.1.2 is 192.168.1.2:\d (no trailing slash and case matters) otherwise the same rules apply.
mike
edit----now have proper modules for the retro 2.6.21.7 kernel