maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Mounting as mass storage over WiFi? (https://talk.maemo.org/showthread.php?t=27354)

ctennenh 2009-03-07 20:50

Mounting as mass storage over WiFi?
 
Since there is no DropBox, LiveMesh, etc. implementation on Maemo Is there a way to sync a folder on my desktop to my n810 over WiFi? I'm thinking of something like MS's SyncToy, but that requires mounting the IT as mass storage.

What I envision is this: When I join my home network my n810 mounts as mass storage and files are synced or copied automatically. Even if it's just one way, it would be nice to have access to my work files and research papers while away from a wireless access point. If there's already a solution for this I'd love to hear about it.

Laughing Man 2009-03-09 03:49

Re: Mounting as mass storage over WiFi?
 
You can try Conduit. However it's still in development (beta) and I haven't gotten it to work myself (but others have).

Bundyo 2009-03-09 06:31

Re: Mounting as mass storage over WiFi?
 
Unison is a good one, I'm not sure if it has been ported to Maemo.

IanHelgesen 2009-03-09 06:55

Re: Mounting as mass storage over WiFi?
 
You should be able to do this over ssh. Install openssh-server on your tablet, and you can connect to the tablet and mount it as a drive. You may need extra software to do this from Windows (I use Linux, which has the capability built in, so I don't have any recommendations). After that, any software that can sync folders will do the rest.

Conduit would probably be better, but that package is out of date and missing dependancies, and I can't find a new one.

ctennenh 2009-03-09 21:49

Re: Mounting as mass storage over WiFi?
 
It doesn't look like Unison is available for OS2008 (but is for '06), and Conduit doesn't look complete enough to mess with.

SSH seems like a good option. I don't know if it's possible to automatically mount when I'm on my home network, but I could always get it to be a one-click solution. Thanks.

twaelti 2009-03-09 22:00

Re: Mounting as mass storage over WiFi?
 
For Windows users, check ExpanDrive (39$). In combination with OpenSSH on the tablet, this works perfectly.

qole 2009-03-09 22:21

Re: Mounting as mass storage over WiFi?
 
You can use sshfs on the tablet to mount network drives on the tablet, but I haven't really tried it the other way around. I've always seen the tablet as a much better client than server. But there's no reason why you can't use sshfs the other way around on another Linux machine to mount tablet directories.

ctennenh 2009-03-09 22:59

Re: Mounting as mass storage over WiFi?
 
Quote:

Originally Posted by Laughing Man (Post 269967)
You can try Conduit. However it's still in development (beta) and I haven't gotten it to work myself (but others have).

I checked this out and I'm missing python2.5-pygoocanvas. If it was in the repos I'd install it but I'd rather not mess around more than I have to, as I have everything else working pretty well right now.

dschep 2009-03-09 23:40

Re: Mounting as mass storage over WiFi?
 
Conler + rsync sounds like it would handily do the one way sync you described.

Laughing Man 2009-03-10 00:48

Re: Mounting as mass storage over WiFi?
 
Quote:

Originally Posted by ctennenh (Post 270285)
I checked this out and I'm missing python2.5-pygoocanvas. If it was in the repos I'd install it but I'd rather not mess around more than I have to, as I have everything else working pretty well right now.

You can get it through extra-deval. But I haven't tried conduit myself since I can't even get the latest desktop version to work!

Bundyo 2009-03-10 01:23

Re: Mounting as mass storage over WiFi?
 
Okay, quick (or not so) compiled Unison for Maemo. Works, but no program menu item for now so start it from console or with some kind of run (like osso-statusbar-cpu). In time I'll add a menu item and try to hildonize it (which may be problematic since this thing is written in Ocaml+LablGTK). Requires ssh/rsh to run.

Screenshot of a configured two way sync between N800 and my Eee.
http://www.bundyo.org/maemo/unison/unison.png

Console version:
http://www.bundyo.org/maemo/unison/u...57-2_armel.deb
1.3mb

GTK version /can work like console too/:
http://www.bundyo.org/maemo/unison/u...57-2_armel.deb
1.6mb

Have fun :)

P.S. Just to mention to those who don't know - you need installed Unison 2.27.57 on the other side to successfully connect.

P.P.S. On a side note - Tear gave me the chance to save the file instead of sending the request, but it seems that the request was still sent... Maybe the Content-Type of the response confuses it.

fragos 2009-03-10 01:58

Re: Mounting as mass storage over WiFi?
 
Unison need not run on the tablet with a Linux system it only need run on the desktop PC. For example when you connect the tablet via USB both the internal and removeable drive are mounted as folders which Unison should be able to sync with. The main 256KB storage of the tablet wouldn't be available this way. Using WiFi to mount folders may create others issues relating to WiFi power saving and transactions initiated from the PC. You would likely need to disable power saving when performing a synch from the PC. This would still leave open the requirement for NFS on the tablet which may already be available.

Laughing Man 2009-03-10 04:49

Re: Mounting as mass storage over WiFi?
 
Hrm.. I installed Unison in Ubuntu, do I need it on the tablet too? I have a folder called Sync on the laptop and I want it to sync with a folder called Sync on the Nokia n800. But when I try to use the ssh (I have a key with passwordless entry) it just errors out.

Bundyo 2009-03-10 06:26

Re: Mounting as mass storage over WiFi?
 
You should have Unison on both places if you want to sync through ssh. In fact Unison works by logging in through ssh/rsh and running its remote executable to gather and return the remote file stats. Then it probably uses scp/rcp to copy them after you confirm. You can also do the sync automatically, assign specific merger for different files or special action on others. Check its documentation - its a rather powerful tool.

Laughing Man 2009-03-10 18:04

Re: Mounting as mass storage over WiFi?
 
interesting application manager said it is an incompatible package.

ctennenh 2009-03-10 18:48

Re: Mounting as mass storage over WiFi?
 
Nice to see there are options out there.
Does anyone know if there's something like this for bluetooth? In getting BlueMaemo working on my laptop I've found it connects nicely. If there was an automated way to copy or sync files to the tablet then proximity to the laptop would be even better than having to be on the on the home network.

dick-richardson 2009-03-10 18:49

Re: Mounting as mass storage over WiFi?
 
wifi-connection handler and rsync should get the job done.

Bundyo 2009-03-10 19:10

Re: Mounting as mass storage over WiFi?
 
Quote:

Originally Posted by Laughing Man (Post 270491)
interesting application manager said it is an incompatible package.

Probably - it was a direct compile, I forgot to modify the control file.

Laughing Man 2009-03-10 21:21

Re: Mounting as mass storage over WiFi?
 
Quote:

Originally Posted by dick-richardson (Post 270499)
wifi-connection handler and rsync should get the job done.

How would I do two-way sync?

rsync -avz -e ssh user@192.168.1.103:/media/mmc1/Sync/ /home/vforviktor/Sync/

I have that working now, I'm guessing once I get it working I'll just throw it onto a crontab or wifi-connection handler

For example: I have a notecase file on my tablet and my laptop. I want rsync to copy whichever file is newer over to the other one. So if the tablet is newer, copy to laptop. If latpop is newer, copy to tablet.

Edit: And Bundyo could you get Unison working for me? I've been reading up on various literature. Rsync does support multi directional sync in both ways but only by modification date. So if I edit the file on both sides, it still only does it by the latest date with the -u option. Unison on the other hand uses rsync but keeps other data (I guess hash size?) and can tell when both files have been editted. In that case it apparantly asks you what you want to do.

Edit: Got it working (two way rsync...though it's not ideal, it's basically running two rsync commands).

Edit3: Now the question is to get rsync over ssh to work from my tablet to my laptop (say via wifi-connection handler do I need to install openssh server on my laptop?). Or can I do it with the tablet being the server and the client being the laptop?


All times are GMT. The time now is 00:28.

vBulletin® Version 3.8.8