Sharing files

Everything about X, Gnome, KDE, ... and everything running on it

Sharing files

Postby Deblib » 2017-12-06 05:50

Hi, I wanted to ask your opinion on a matter. I live on horseback between two cities. In my habitual residence I have an external hard disk with movies, files, etc. and I would like to be able to use those files in my second residence without physically transporting the hard disk and without having my pc connected in the first residence all the time I am in the second one. What would be the best solution you can think of? In both residences I use Debian 9. Oh, thank you.
Deblib
 
Posts: 58
Joined: 2016-05-14 14:41

Re: Sharing files

Postby Bulkley » 2017-12-06 06:05

SSH maybe?
Bulkley
 
Posts: 5365
Joined: 2006-02-11 18:35

Re: Sharing files

Postby debiman » 2017-12-06 09:50

Deblib wrote:without having my pc connected in the first residence all the time I am in the second one.

that won't be possible.
how else is the second computer supposed to get at the files in the first computer?

anyhow, yes, ssh.
sshd on the server, ssh (and sshfs) on the client.
maybe also NFS.
there's more possible solutions.
User avatar
debiman
 
Posts: 1619
Joined: 2013-03-12 07:18

Re: Sharing files

Postby Deblib » 2017-12-06 11:24

Are there network disks that work connected to the router independently of a PC? It would be a good solution ...
Deblib
 
Posts: 58
Joined: 2016-05-14 14:41

Re: Sharing files

Postby Dai_trying » 2017-12-06 14:44

Many routers have a usb slot for hosting a shared device but it's something I haven't needed to use and I would imagine different manufacturers would have different implementations. If you connect your external drive to the router and go to your router settings there should be some options available.
Also another option would be to use cloud storage, something like Dropbox or similar would give you global access.
Dai_trying
 
Posts: 338
Joined: 2016-01-07 12:25

Re: Sharing files

Postby Segfault » 2017-12-06 15:35

There are lightweight web servers, like webfs, great for serving static content, even password based authentication is available. You still need at least a RPi to connect this hard drive to.
Segfault
 
Posts: 546
Joined: 2005-09-24 12:24

Re: Sharing files

Postby alan stone » 2017-12-06 16:01

debiman wrote:
Deblib wrote:without having my pc connected in the first residence all the time I am in the second one.

that won't be possible.
how else is the second computer supposed to get at the files in the first computer?

Intel ME/vPro perhaps? Or AMD's equivalent? Or thru an NSA connection? Could ask here how to proceed.:mrgreen:

EDIT: added an alternative.
Debian 8.9 32bit, WM: Openbox
Computers are like air conditioners. They work fine until you start opening windows. - Author Unknown
Programming is like sex. One mistake and you have to support it for the rest of your life. - Michael Sinz
User avatar
alan stone
 
Posts: 220
Joined: 2011-10-22 14:08
Location: In my body.

Re: Sharing files

Postby debiman » 2017-12-07 19:53

Deblib wrote:Are there network disks that work connected to the router independently of a PC? It would be a good solution ...

yes, i think so.
i think you have to set it up through your router and it has nothing to do with debian (unless the router is running straight debian - very unlikely).
User avatar
debiman
 
Posts: 1619
Joined: 2013-03-12 07:18

Re: Sharing files

Postby pylkko » 2017-12-07 21:09

I have done exactly what you want to do. I have placed flash media on my roouter's USB port and shared that with NFS on the WRT(Linux os) running on it. Then ran openvpn on the router, so VPN in and then it is like I was on the local network.

because the simple MIPS processor on the router is kind of slow for some workloads (Anything else than passing data along for which.it has specialized hardware) I have also, at times, attached cheap ARM boards on the network as they can be kept running with an incredibly small amount of electricity.
User avatar
pylkko
 
Posts: 1213
Joined: 2014-11-06 19:02

Re: Sharing files

Postby Segfault » 2017-12-08 03:59

NFSv3 over internet is not a good idea, use NFSv4 if you have no static HTTP server option available.
Segfault
 
Posts: 546
Joined: 2005-09-24 12:24

Re: Sharing files

Postby pylkko » 2017-12-08 05:25

Well, I don't know if allowing VPN access to a local network with a local NFS server can or should be considered "NFS over internet" in any case?
User avatar
pylkko
 
Posts: 1213
Joined: 2014-11-06 19:02

Re: Sharing files

Postby alan stone » 2017-12-08 08:42

This perhaps: Autofs and sshfs? See also here.
Debian 8.9 32bit, WM: Openbox
Computers are like air conditioners. They work fine until you start opening windows. - Author Unknown
Programming is like sex. One mistake and you have to support it for the rest of your life. - Michael Sinz
User avatar
alan stone
 
Posts: 220
Joined: 2011-10-22 14:08
Location: In my body.


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable