How to share data between Linux&Linux PC

Hello,

please, I need the advice where to start. I ahve tried to find the way how to share data between linux and linux PC but everywhere is written Win and Linux.

Exact situation is I buy RPi and want to share multimedia data from main PC. The connection is done by cable. In PC are two net cards. One for internet, one for inner connection. (i know it is not the best way and router would be better but I am waiting for PC death and after I rebuild my home network :slight_smile: ).

So what service I should use? Samba? NFS? Anything else?
The most I am scared of unauthorised access from outer.

Thanks for showing for what to focuse on :slight_smile:

Thanks,

Martin

NFS is the normal way to export (parts of) the directory tree of one Unix/Linux system to another for ages.

But I wouldn’t advice it over the public Internet. Maybe you can use something like Webdav there.

OK, thank you.

I dont want to have any access from internet…

thanks,

Martin

Sorry, my fult. Indeed you want local access only. Try NFS. Install the packages nfs-kernel-server and yast2-nfs-server on your server system (when they aren’t already). You can then create the exports with YaST > Network services > NFS server. YaST should then also take care of the firewall in the erver (when you have it switched on).

Check if you have the packages nfs-clnet and yast2-nfs-client installed on the client system (most probably they ar already there. Then use YaST > Network services > NFS client to configure the mmount.

Should all be rather straight forward. When you have questions, ask here. We are here to help you.

On Fri, 21 Dec 2012 18:36:01 +0000, atilius wrote:

> So what service I should use? Samba? NFS? Anything else?

NFS is what I use.

> The most I am scared of unauthorised access from outer.

Don’t open the port in your router and forward it from the Internet, and
you’ll stay secure.

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On Fri, 21 Dec 2012 21:58:56 +0000, Jim Henderson wrote:

> On Fri, 21 Dec 2012 18:36:01 +0000, atilius wrote:
>
>> So what service I should use? Samba? NFS? Anything else?
>
> NFS is what I use.
>
>> The most I am scared of unauthorised access from outer.
>
> Don’t open the port in your router and forward it from the Internet, and
> you’ll stay secure.

I should mention that you can/should also use a network address
restriction in the exports defined on the “server”. That will also help
protect you from unauthorised access - though if you keep your internal
network properly secured, this won’t add much to that layer of security.
But good security design is “layered” so if the first line of defense
fails, there’s an additional layer that needs to be overcome.

Jim

–
Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On 2012-12-22 06:07, Jim Henderson wrote:

> I should mention that you can/should also use a network address
> restriction in the exports defined on the “server”. That will also help
> protect you from unauthorised access - though if you keep your internal
> network properly secured, this won’t add much to that layer of security.
> But good security design is “layered” so if the first line of defense
> fails, there’s an additional layer that needs to be overcome.

The other layer is the local firewall; firewalling nfs is not that
simple, because the port changes in the server. IIRC, the trick is
called RPC in the firewall configuration.

This should work:


FW_CONFIGURATIONS_EXT="nfs-client nfs-server"

–
Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))