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)

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:26.

vBulletin® Version 3.8.8