LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-12-2004, 05:17 AM   #1
mchitrakar
Member
 
Registered: Mar 2004
Posts: 93
Blog Entries: 1

Rep: Reputation: 15
how to share files between two linux machines


How do we share files between two linux questions?
 
Old 08-12-2004, 05:27 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
Quote:
How do we share files between two linux questions?
You mean 2 linux machines .
The simplest way is to do scp. Alternatively use a ftpserver on both. Or run NFS.
 
Old 08-12-2004, 06:56 AM   #3
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Rep: Reputation: 30
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
 
Old 08-12-2004, 07:07 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
Yes, samba too is an option... but then.. they are both linux machines so why give it a M$ twist.
 
Old 08-12-2004, 07:24 AM   #5
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I share my printer with Windows machines? unzari Fedora 1 07-21-2005 05:18 PM
New to networking, have 2 Mandrake 9.2 machines... want to share files Fear58 Linux - Networking 2 06-29-2004 01:27 AM
how to share linux files on LAN btwn other linux boxes shakeeb Linux - Networking 9 02-04-2004 02:10 PM
I want to share files between win PC and linux easily caucci Linux - General 9 12-29-2003 07:05 PM
Having 2 Linux computers share files with each other? Seph64 Linux - Networking 7 03-29-2003 09:10 PM


All times are GMT -5. The time now is 06:55 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration