Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Sharing files

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
Deblib
Posts: 119
Joined: 2016-05-14 14:41

Sharing files

#1 Post by Deblib »

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.

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: Sharing files

#2 Post by Bulkley »

SSH maybe?

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Sharing files

#3 Post by debiman »

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.

Deblib
Posts: 119
Joined: 2016-05-14 14:41

Re: Sharing files

#4 Post by Deblib »

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

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: Sharing files

#5 Post by Dai_trying »

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.

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: Sharing files

#6 Post by Segfault »

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.

User avatar
alan stone
Posts: 269
Joined: 2011-10-22 14:08
Location: In my body.

Re: Sharing files

#7 Post by alan stone »

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.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Sharing files

#8 Post by debiman »

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
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Sharing files

#9 Post by pylkko »

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.

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: Sharing files

#10 Post by Segfault »

NFSv3 over internet is not a good idea, use NFSv4 if you have no static HTTP server option available.

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Sharing files

#11 Post by pylkko »

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
alan stone
Posts: 269
Joined: 2011-10-22 14:08
Location: In my body.

Re: Sharing files

#12 Post by alan stone »

This perhaps: Autofs and sshfs? See also here.

Post Reply