Basically you'd install nfs-server (on Mageia the package is called nfs-utils) on computer A, and add the filesystem /home1 to /etc/exports, then start nfs-server service there (which will also run exportfs -a which exports the content of /etc/exports via NFS) .
On the other box, you'd need to also install nfs-utils and check if the NFS export can be seen via
- Code: Select all
showmount -e IP.of.computer.A
and then either manually mount it via
- Code: Select all
mount -t nfs IP.of.computer.A:/home1 /mnt/somewhere/on/computer/B
and if that works you can add this mount to /etc/fstab in a similar manner. If the former doesn't work, then probably because rpcbind (also called portmapper) is not running yet on computer B, e.g.
- Code: Select all
rpcinfo -p IP.of.computer.A
should show portmapper on port 111 and nfs on port 2049, among some others.
More details can be configured, like access restrictions (e.g. making sure the NFS export is only exported to your local subnet) or user mapping and such, but this is the most basic stuff.
There's a section in MCC for doing all this, but from reading other threads and some bugreports it does not work sometimes, possibly due to missing firewall entries or because the hostnames are not resolvable in both directions and people try to use hostnames without covering proper name resolution between each participating box beforehand.