LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-24-2004, 05:25 PM   #1
mike74
Member
 
Registered: Jan 2004
Location: Mtl, Canada
Distribution: Ubuntu 5.10
Posts: 39

Rep: Reputation: 15
filesharing with 2 Linux boxes


Here's my prob.
I have 2 linux boxes both running Mandrake 9.2.

They're both hooked up to the same router.
How do I mount one pc onto the other in order to be able to share files and stuff???

Sorry about the basic question but with win*** it was easily done through the W*****-browser.
Pls, help.
Mike
 
Old 02-24-2004, 06:10 PM   #2
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
You need to be clear about which files you wish to share. This can be a powerful technique if given some thought, or a nightmare if you have to keep tweaking it forever as your needs change.

1)It is trivial to share directories and have the "vortex" appear on two desktops. With Linux, you would create a directory on PC A. You could make it as a link or icon on your desktop for convenience. Using NFS or Samba, you can make that directory sharable with PC B. On PC B, you would have an entry in your /etc/fstab to mount that directory at boot (if both machines are sure to be running) in the filesystem on PC B. Whatever files A or B puts in or removes will be apparent on both machines. With a highspeed network, this method can be used to expand storage on B which can run short. You buy the 120 gB for A and B gets to use space on it... A very interesting application is putting your /home/yourself directory in a share. Then you login on any machine and crunch on the same old files. If you have a few users, do this with /home

2)You can also set up a webserver that would share files on one machine with others on the LAN. This is useful even if you have only one machine, just because hypertext, etc. is so wonderfully useful. You can use upload scripts to go from the client to the server, too.

3)You can set up an FTP server allowing FTP access through browsers or FTP clients.

So, there are at least four ways of sharing files readily available. With a little practice, one or the other can be set up in a few minutes. Samba can be used with LinNeighborhood which would be very familiar to users of that other OS.

Pick a method. MDK has wizards for most, if not all methods. The stuff that runs in the background doing this sharing and serving are called servers and daemons. When you can put these to work, you will feel the power. Do not be surprised when you find that these things run several times faster than with that other OS. Remember, those other guys sell features, not performance.
 
Old 02-25-2004, 10:17 AM   #3
mike74
Member
 
Registered: Jan 2004
Location: Mtl, Canada
Distribution: Ubuntu 5.10
Posts: 39

Original Poster
Rep: Reputation: 15
Thanks!

Option #1 is the one I was looking for.
Any suggestions how to set it up?
I went through tons of pages, but could not find any hint..... :-(
Any help is greatly appreciated!
Mike
 
Old 02-25-2004, 10:48 AM   #4
needamiracle
Member
 
Registered: Apr 2002
Location: North Attleboro, MA
Distribution: RH 7.3
Posts: 106

Rep: Reputation: 15
NFS...quick easy, mostly stable. Use SSH Tunnels if you want to encrypt the traffic between the boxes.
 
Old 02-25-2004, 08:04 PM   #5
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
For Linux boxes, NFS is a natural.

In Mandrake, you can set up NFS this way:

via gui , with Mandrake Control Centre:
http://doc.mandrakelinux.com/Mandrak...untpoints.html

CLI:
in /etc/exports on the machine that has the directory to be shared on its hard drive:

/home/vortex nameofothermachine(rw,root_squash)
see man exports for all kinds of options.
start nfsd
#service nfs status (to see what nfs is doing)
#service nfs start or reload

in /etc/fstab on the machine that you want vortex to be available via NFS:
#mkdir /home/vortex
nameoffirstmachine:/home/vortex /home/vortex nfs auto,rw

The first machine has to be up and running, but this will cause the second machine to magically mount the first machine's directory in the second machine's file structure. You need to set appropriate permissions. You can restrict access to the share, too. see man nfs, man fstab, man mount

I am writing this with reference to MDK docs, but I am not currently using Mandrake, so you may have to play around a bit. Good Luck.
ps This is great fun at 100 base T or better. The sharing can be as fast as a hard drive.
 
Old 02-25-2004, 08:07 PM   #6
condurre
LQ Newbie
 
Registered: Mar 2003
Location: San Ramon, CA
Distribution: Slackware
Posts: 20

Rep: Reputation: 0
Check this link out.

http://shfs.sourceforge.net/
 
Old 02-25-2004, 08:28 PM   #7
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
That looks interesting. NFS is notoriously insecure, but it should be quite efficient on an isolated network or one behind a good firewall so that the wrong people do not make connections. You can get some protection by authorizing only specific machines or IP addresses to use NFS services (see man hosts.allow and hosts.deny). Other approaches are https:// which tends to be one-way, though, ssh as it is and scp, or even encrypting everything that goes into the vortex with gpg.

Isn't it great to have choices?
 
Old 02-26-2004, 09:33 AM   #8
mike74
Member
 
Registered: Jan 2004
Location: Mtl, Canada
Distribution: Ubuntu 5.10
Posts: 39

Original Poster
Rep: Reputation: 15
Thanks guys.
I appreciate the help!
Got the nfs to work.
Later.
Mike
 
  


Reply



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
Linux Windows Filesharing meander Linux - Networking 15 01-29-2005 02:20 PM
FileSharing Program For Linux? RichardSimmons Linux - Software 6 04-06-2004 11:52 PM
filesharing between Linux and XP stilez Linux - Networking 5 03-05-2004 06:30 AM
Best filesharing program for linux? philmcneal Linux - Software 2 09-03-2003 04:02 AM
linux p2p filesharing bennyp Linux - Software 17 04-30-2003 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:36 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration