I was having some problems doing this this week, but I think I've finally figured it out! The music I'm listening to right now is proof! I wrote a tutorial on how to do it if anyone's interested:
http://www.sidoh.org/~sidoh/procedures/mounting_nfs.txt :
This tutorial is written for Slackware 10.0 and above.
In order for two Linux computers to communicate with eachother (file exchange), a
technology called NFS (Network Filesystem) is often used. To my knowledge,
Slackware is not installed (by default) with the ability to use this technology.
To enable it, follow these steps:
I will use two machines named deepthought and muaddib in this example.
deepthought is the server, sharing files on its local drives; muaddib is
accessing these files through the mounting of an NFS drive.
First, you'll need to change user to root on both machines:
sidoh@deepthought:~$ su root
password:
root@deepthought:/home/sidoh#
--
sidoh@muaddib:~$ su root
password:
root@muaddib:/home/sidoh#
Next, we need to set up the /etc/hosts.allow and /etc/hosts.deny files on
both machines. To use this, open your favorite text editor and change it to
look something like this on both machines:
/etc/hosts.allow --
nfsd: LOCAL
portmap: LOCAL
This will allow anything on the local network to make use of the NFS and
portmap daemons, both of which are needed to mount a NFS directory.
In order for the NFS daemon to run, you have to have entries in the
/etc/exports file for both computers. Just make a dummy entry on the
computer you don't want to share anything on. I'm not sure if there's a
way around that, but there might be! On the server, type the path to
the directory you wish to share.
Now, we need to start the NFS and Portmap services on both computers.
Slackware has both of these daemons installed by default and has scripts
to start them in the /etc/rc.d directory. As a note -- the portmap
service neets to be running BEFORE the nfs daemon is started.
To start them, do this:
root@deepthought:~# cd /etc/rc.d
root@deepthought:/etc/rc.d# ./rc.portmap start
root@deepthought:/etc/rc.d# ./rc.nfsd start
---
root@muaddib:~# cd /etc/rc.d
root@muaddib:/etc/rc.d# ./rc.portmap start
root@muaddib:/etc/rc.d# ./rc.nfsd start
This should start everything you need. Now, you just need to mount the drive!
root@muaddib:~# mount -t nfs deepthought:/mnt/hdb1/share /mnt/share
Questions, comments, concerns? E-mail: sidoh (at) dark-wire (dot) net
Works pretty well!
sidoh@muaddib:/mnt/media$ ls -l
total 2872
-rwxr-xr-x 1 sidoh 103 140096 2005-09-28 20:05 COMDLG32.OCX*
-rwxr-xr-x 1 sidoh 103 24576 2005-09-28 20:05 DirDlg2.ocx*
drwxr-xr-x 9 sidoh 103 4096 2005-09-28 20:05 Lyrics/
-rwxr-xr-x 1 sidoh 103 1077336 2005-09-28 20:05 MSCOMCTL.OCX*
drwxr-xr-x 141 sidoh 103 4096 2006-01-16 00:20 MUSIC/
-rwxr-xr-x 1 sidoh 103 9217 2005-09-28 20:24 MUSIC.TXT*
drwxr-xr-x 6 sidoh 103 4096 2006-01-27 01:00 Movies/
-rwxr-xr-x 1 sidoh 103 278528 2005-10-15 14:17 Music\ Manager.exe*
drwxr-xr-x 10 sidoh 103 4096 2005-09-28 20:26 Pictures\ from\ dad/
drwxr-xr-x 5 sidoh 103 4096 2005-09-28 20:27 Players/
drwxr-xr-x 4 sidoh 103 4096 2005-09-28 20:27 TV\ Shows/
drwxr-xr-x 3 sidoh 103 4096 2005-09-28 20:27 Upload/
-rwxr-xr-x 1 sidoh 103 581730 2005-09-28 20:27 mm1.9.14b.rar*
-rwxr-xr-x 1 sidoh 103 670009 2005-09-28 20:27 mm1.9.14b.zip*
-rwxr-xr-x 1 sidoh 103 85039 2005-09-28 20:27 settings.rar*
-rwxr-xr-x 1 sidoh 103 100 2005-10-02 17:04 settings.txt*