Click to See Complete Forum and Search --> : Linux linux sharing files.


ArgPirate
08-15-2004, 09:44 PM
I have a feeling this is retarded but...how does one share files between 2 linux boxes on a network eh? i have a cable connection the 2 boxes are sharing via a router and that works. first of all A cant ping B but A Can ping A. they both of course can ping the router. ive just never done a linux to linux set up before. sorry if this is answered everywhere but ive kinda looked everywhere and i just cant find how exactly to extract a file from one linux box to another. or whatever. thanks

happybunny
08-15-2004, 09:49 PM
couples ways to get you started:

ftp from one to the other -- need to setup vsftpd service

NFS sharing -- /etc/export on either box then simply mount the remote box locally.

Both of these setups have been described to death so just search here or google for them.

come back if you need more help after reading up on those.

good luck

SuperHornet
08-16-2004, 08:31 AM
First thing you will have to figure out is why you cant ping a->b what about a<-b?

Are both boxes the same make/version of linux?

Also see if a firewall is running on A or B.
Assumeing that the firewall is using iptables
do iptables -L if you see anything, you might need to remove the firewall. There might be a script you can run in /etc/rc.d/init.d/ that you could use to unload the firewall like 'iptables stop'.

FTP is the easy way to get things up and running, kinda sux if you want to edit files on the other box in real time. Then you would need NFS which can be a pain to setup but using webmin (http://www.webmin.com) can make things hella easier. Even for your current problem.

Icarus
08-16-2004, 08:51 AM
FTP would work good. I've had problems with NFS being very slow (barely plays mp3 ok), there are some speed up tips for it but I have (so far) been unsuccessfull with it.

Samba is also another posibility to share files between systems, which for me has been good.
FTP for me is not an option since I have my mp3s in a shared directory on server and steam them when I want to play them.

shadov
08-16-2004, 09:18 AM
I usually use SFTP because it comes free with sshd and I'm too lazy to configure and secure anything else. It's the easy and most secure way if you can trust the people you give access to your files. Downside is that it's slower than smb, nfs or ftp.

ArgPirate
08-16-2004, 09:47 PM
Well. It looks like i got that ping stuff sorted out twas the firewall like you suggested. they can all ping eachother. and ive got both machines set up with exports for nfs. im not real sure how to actually mount them...im looking around and i keep reading its just like mounting a hard drive but im having trouble. mainly i suppose because i never have to mount any hard drives. mount is kind of a funny word...

happybunny
08-16-2004, 09:49 PM
mount -t nfs otherservername:/sharefromexports /local/mountpoint

of course substitue otherservername for the real name of the other server, etc etc

ArgPirate
08-17-2004, 10:51 AM
thanks guys. i got it all sorted out. works great.

mrBen
08-17-2004, 11:20 AM
There is also scp (secure copy) - not sure how it compares to sftp, but works fine for me