Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Connecting 2 PCs, and file sharing

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
GeordieJedi
LXF regular


Joined: Thu Jun 14, 2007 11:36 pm
Posts: 335
Location: North East England

PostPosted: Thu Apr 11, 2013 7:21 pm    Post subject: Connecting 2 PCs, and file sharing Reply with quote

Hi all.

Ok, I'm wanting to share files between my two PCs.
(However, I reckon I've now overthought this. And I'm thinking round in circles).

For example,

I have 2 PCs (1 x desktop 1 x laptop). My laptop has become my main machine however, my
desktop has most of my data on it (music and photos in particular).

I would like to know the best way to connect and transfer files between the two machines
(preferably via a GUI).

E.G. I have new photos on my laptop and I'd like to transfer them to the desktop PC.
But I need to do this visually so that I can compare the two directories and just copy
what I need to across.

1.How do I connect my two PCs and and share my files ?
Can I use my router (downstairs) via wifi to connect both machines together ?

2.How do I transfer my files between my two PCs ?
Samba, SSH, remote desktop ? Ethernet cable ?


Useful Info

2 PCs both running Ubuntu 12.04 + KDE
1 x laptop
1 x desktop

Both PCs are located upstairs (next to each other), and use wifi to connect to the
internet via a (router which is downstairs).

Both PCs are not connected to one another.



Thanks in advance for any help.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8456
Location: Warrington, UK

PostPosted: Thu Apr 11, 2013 7:39 pm    Post subject: Reply with quote

If they are both connected to the router, they re potentially connected to one another. You could set up NFS or Samba to share directories, but for your needs, Unison may be a simpler option.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
bobthebob1234
LXF regular


Joined: Thu Jan 03, 2008 9:38 pm
Posts: 1369
Location: A hole in a field

PostPosted: Thu Apr 11, 2013 10:34 pm    Post subject: Reply with quote

If they can ping each other then happy days

I just install ssh (server) on all my machines then I can just use sftp://hostname and boom i'm in. Access any file and no faffing with samba or the like.
_________________
For certain you have to be lost to find the places that can't be found. Elseways, everyone would know where it was
Back to top
View user's profile Send private message
GregS



Joined: Thu Aug 03, 2006 4:54 am
Posts: 97
Location: Oz

PostPosted: Thu Apr 11, 2013 11:41 pm    Post subject: Re: Connecting 2 PCs, and file sharing Reply with quote

GeordieJedi wrote:
Hi all.

Ok, I'm wanting to share files between my two PCs.
(However, I reckon I've now overthought this. And I'm thinking round in circles).

For example,

ave 2 PCs (1 x desktop 1 x laptop). My laptop has become my main machine however, my
desktop has most of my data on it (music and photos in particular).

I would like to know the best way to connect and transfer files between the two machines
(preferably via a GUI).

I have seen advertised a USB crossover cable that makes a second PC appear as a removable drive on the host PC. For a one-off connection you appear to want, that may be the less complex solution.
Back to top
View user's profile Send private message
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2431

PostPosted: Fri Apr 12, 2013 12:34 am    Post subject: Reply with quote

But he has to spend money, whereas the earlier solution is free Razz

Anyway, given that both run Linux, connecting via NFS isn't a major obstacle. And configuring NFS isn't that difficult, using Webmin Wink (even I can manage that Razz)
Back to top
View user's profile Send private message
dandnsmith
LXF regular


Joined: Fri Apr 15, 2005 11:01 am
Posts: 308
Location: Berks, UK

PostPosted: Fri Apr 12, 2013 9:41 am    Post subject: Reply with quote

With Ubuntu 12.04, wouldn't CIFS be the easiest - there isn't really anything to set up (unlike there used to be for SAMBA)?
_________________
Derek
Back to top
View user's profile Send private message
wyliecoyoteuk
LXF regular


Joined: Sun Apr 10, 2005 11:41 pm
Posts: 3444
Location: Birmingham, UK

PostPosted: Fri Apr 12, 2013 12:38 pm    Post subject: Reply with quote

CIFS is Samba.
_________________
The sig between the asterisks is so cool that only REALLY COOL people can even see it!

*************** ************
Back to top
View user's profile Send private message
dandnsmith
LXF regular


Joined: Fri Apr 15, 2005 11:01 am
Posts: 308
Location: Berks, UK

PostPosted: Sat Apr 13, 2013 8:17 am    Post subject: Reply with quote

Apologies for my lack of understanding - caused by moderately recent use of the term CIFS instead of SAMBA, as if they were different. I should have researched it.
_________________
Derek
Back to top
View user's profile Send private message
wyliecoyoteuk
LXF regular


Joined: Sun Apr 10, 2005 11:41 pm
Posts: 3444
Location: Birmingham, UK

PostPosted: Sat Apr 13, 2013 10:57 am    Post subject: Reply with quote

No Probs.
CIFS is the new name for the SMB protocol.
Blame Microsoft. Smile
_________________
The sig between the asterisks is so cool that only REALLY COOL people can even see it!

*************** ************
Back to top
View user's profile Send private message
purplepenguin
LXF regular


Joined: Wed Oct 05, 2011 3:19 pm
Posts: 121
Location: Blissfully at the Command Line

PostPosted: Mon Apr 15, 2013 5:14 pm    Post subject: Reply with quote

I like sshfs.

When I was new to Linux I was terrified by NFS/samba. I found sshfs to be really easy and stuck with it. It connects my XBMC to my mediaserver.
_________________
Debian Testing 64bit KDE i5 CPU 8GB RAM

Firefox 29 wont let me move the Reload and Back buttons. It's my computer Mozilla not yours.
Back to top
View user's profile Send private message
GeordieJedi
LXF regular


Joined: Thu Jun 14, 2007 11:36 pm
Posts: 335
Location: North East England

PostPosted: Mon Apr 15, 2013 9:39 pm    Post subject: Reply with quote

So can I get the (remote ?) HDD's/directories to show up like an external drive or a regular old HDD partition ?
(via a GUI). How would I achieve that ?

When I use network manager on my machines, they each see the SSID of the router.
Do I need to get the IP address of the machine that I want to connect to and then try to connect that way ?
Using what programme ?

Also, I had read (in an old LXF special) that NFS wasn't the best solution nower-days as it's insecure ??
Which seems a shame, as it looks like a good solution.


Thanks for the help so-far.
Back to top
View user's profile Send private message
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2431

PostPosted: Mon Apr 15, 2013 11:27 pm    Post subject: Reply with quote

Yes, NFS is inherently insecure (hence the existence of sshfs) but on a local network (with decent, modern router) still a viable option... (I use it too Razz)

Basic steps:

  • edit the file /etc/exports on the server (the machine where the shared folder resides) and allow export of the directory to named clients, or all clients.
  • edit the file /etc/fstab on the client (where the directory is to show up) to add the NFS share like a partition. The mount point for this "partition" needs to exist!
  • reboot both.
  • Double-click the Computer icon (on Debian, may have a different name in other distro's) and then double-click the icon for the NFS share. It now opens in a new window.


Read the man-page for NFS for studying various options.
Code:
man nfs
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast