Derek Jennings wrote:
On Thursday 13 October 2005 23:12, Ricardo Rodriguez wrote:
<snip>
Is is hard? do I need to create some kind of Domain or Workgroup for my
boxes to see each other?
There are three ways (probably more) to share files between Linux computers
samba - works with Windows too
nfs- linux only and relatively hard to set up so I will ignore it.
fish - linux only and dead easy to set up
<snip>
I beg to differ with you about your saying that nfs is relatively hard
to set up. Unfortunately, with Mandr*, it is not well supported in the
Mandrake Control Centre, so I suppose from a pure point and click
perspective it's "more difficult".
HOWEVER, NFS is much less complicated that Samba, and probably more
secure too, if you use its security features, but for the purposes of
this posting I shall not deal with those.
To get your two machines to "share" files, all that is necessary for one
of the machines to act as a "server" and the other to act as a "client".
Both can be clients and servers simultaneously, but that isn't necessary
for file sharing.
To share a directory or a file system on the "server" machine, simply,
(using the text editor of your choice), create a file called
"/etc/exports", or edit it if it exists.
(Make sure you are "root".)
In the exports file, insert a line containing the directory which you
would like to make accessible to the "client".
For example, assuming that you want to make the "/u" directory
available, then the /etc/exports file will look like this:
/u
After you have edited the file and saved it, then either run "service
nfsd restart" or "exportfs -a".
Go to your "client" machine, make sure you have an entry for the
"server" machine in "/etc/hosts" and then you can use Mandrake Control
Centre to set up a mount point, etc.
Effectively, it is less of a problem to create a mount point for the
remote directory manually and place an entry in the /etc/fstab file so
that it can be mounted by name:
mkdir -p /directory/path/for/mounting/remote/directory
or for e.g. "mkdir -p /mnt/machine-A/u"
First of all, test your "mount":
mount machine-A:/u /mnt/machine-A/u
If it mounts, then you can put an entry into /etc/fstab:
machine-A:/u0 /u0 nfs defaults 0 0
Once this entry exists, you can fiddle around with various options such
as soft mounting, etc., from within Mandrake Control Centre.
cheers
Duncan
___________________________________________________________
How much free photo storage do you get? Store your holiday
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
____________________________________________________
Want to buy your Pack or Services from Mandriva?
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________