LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to share files between two linux machines (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-share-files-between-two-linux-machines-216596/)

mchitrakar 08-12-2004 05:17 AM

how to share files between two linux machines
 
How do we share files between two linux questions?

ppuru 08-12-2004 05:27 AM

Quote:

How do we share files between two linux questions?
You mean 2 linux machines :D.
The simplest way is to do scp. Alternatively use a ftpserver on both. Or run NFS.

citrus 08-12-2004 06:56 AM

you can mount shares using samba

set up samba on both machines

edit the smb.conf for your shares TONS OF TUTORIALS OUT THERE!!
and then you can mount the shares on each computer so whenever you go into a certain mount ie /mnt/2ndcomputer you will see the other computers files

smbmount //ipofothercomputer/sharename /mnt/dironhdtomountoo

ppuru 08-12-2004 07:07 AM

Yes, samba too is an option... but then.. they are both linux machines so why give it a M$ twist.

amosf 08-12-2004 07:24 AM

Because I had a mixed network here I always ran samba on the server and then all the win boxes could see the file and play the mp3's etc. If the boxes were in linux they used linneighbourhood or whatever to access the files (this is mostly the kids playing mp3's)...

Now the kids are all using linux pretty much and I said - what the heck, this is nuts... So I set up nfs, which is a lot better and heaps easier... I still have the samba set up too, just in case someone is using windows, but nfs is the best choice for permanent file sharing between linux boxes.

Like on my box I want to share the media directory, so I put in /etc/exports

/media1 (ro)

(have nfsd running and have nfs support, etc, on the machines of course)

Then on my daughters box I add this to the fstab:

192.168.1.1:/media1 /mnt/media1 nfs user,noauto,soft 0 0

finished - well, except for a dektop link perhaps :)


All times are GMT -5. The time now is 11:26 AM.