You are not logged in.

#1 2008-12-28 18:50:48

playdafunkimuzic
Member
Registered: 2008-10-25
Posts: 220

Best way to share files between two linux machines

Hi,

Both my desktop and laptop are running on the same network, both using arch. What's the easiest way to share files between them? ftp? samba? etc? thanks!

Offline

#2 2008-12-28 18:54:49

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Best way to share files between two linux machines

I use ssh for everything, though if I wanted to have a dedicated file server or something like that I'd probably use something more specialized (i.e. samba or nfs) for that.

Offline

#3 2008-12-28 18:55:07

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: Best way to share files between two linux machines

I'd go for rsync. I think it's very convenient because it keeps track of what has been transferred between sessions.

EDIT: nevermind, I misread the thread title for some reason. I thought you wanted to transfer files rather than share them. For simple file transfer I would still use rsync though.


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#4 2008-12-28 18:58:53

playdafunkimuzic
Member
Registered: 2008-10-25
Posts: 220

Re: Best way to share files between two linux machines

i want to be able to send files back and forth to each computer. and/or have a folder on each computer that can be accessed from either box

Offline

#5 2008-12-28 19:00:48

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,920
Website

Re: Best way to share files between two linux machines

Try Dropbox quick easy to set up ...


Mr Green I like Landuke!

Offline

#6 2008-12-28 19:06:47

playdafunkimuzic
Member
Registered: 2008-10-25
Posts: 220

Re: Best way to share files between two linux machines

How could I set up a simple ftp server to share files?

Offline

#7 2008-12-28 19:09:43

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

Re: Best way to share files between two linux machines

+1.
dropbox is very nice. lots of tricks possible with it (for example an exchange server like setup by putting the mail folders in dropbox)

Offline

#8 2008-12-28 19:18:38

playdafunkimuzic
Member
Registered: 2008-10-25
Posts: 220

Re: Best way to share files between two linux machines

Is there a how-to around on how to setup ssh so I can send files back and forth?

Offline

#9 2008-12-28 19:25:48

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: Best way to share files between two linux machines

Simply set up a ssh server on both machines. You can use nautilus, for example, to browse other systems through the ssh protocol (i.e. using scp).


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#10 2008-12-28 19:31:56

string
Member
Registered: 2008-11-03
Posts: 286

Re: Best way to share files between two linux machines

Try this:

$ man ssh{,_config,d{,_config}}
$ man scp sftp

Better than any howto ;-)

Offline

#11 2008-12-28 19:41:53

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

Re: Best way to share files between two linux machines

oh and you can mount a remote folder using sshfs. very handy.

Offline

#12 2008-12-28 20:18:59

playdafunkimuzic
Member
Registered: 2008-10-25
Posts: 220

Re: Best way to share files between two linux machines

Okay, I started the server on the "server machine" i tried to get int through nautilus on the client, it asks for password, where do I set this?

Offline

#13 2008-12-28 20:21:11

playdafunkimuzic
Member
Registered: 2008-10-25
Posts: 220

Re: Best way to share files between two linux machines

Okay, I'm able to get in through nautilus. How do you get in through command line??

Offline

#14 2008-12-28 21:21:30

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: Best way to share files between two linux machines

ssh [-p PORT#] user@host

Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#15 2008-12-29 01:16:57

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 835
Website

Re: Best way to share files between two linux machines

playdafunkimuzic wrote:

i want to be able to send files back and forth to each computer. and/or have a folder on each computer that can be accessed from either box

A 192.168.0.1
B 192.168.0.2

A /etc/exports
/home/user/shared    192.168.0.2(rw,subtree_check,sync)
#/home/user/shared    192.168.0.2(rw,subtree_check,sync,all_squash,anonuid=1000,anongid=1000)

B /etc/exports
/home/user/shared    192.168.0.1(rw,subtree_check,sync)
#/home/user/shared    192.168.0.1(rw,subtree_check,sync,all_squash,anonuid=1003,anongid=1003)

A man exports

A, B /etc/rc.d/nfsd start
A, B mount -t nfs 192.168.0.X:/home/user/shared /mnt/nfs
A, B automounting or setup autofs

Last edited by anrxc (2008-12-29 01:27:21)


You need to install an RTFM interface.

Offline

Board footer

Powered by FluxBB