Active Topics

 


Reply
Thread Tools
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#11
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.


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.

Last edited by Bundyo; 2009-03-10 at 07:01.
 
fragos's Avatar
Posts: 900 | Thanked: 273 times | Joined on Aug 2008 @ Fresno CA USA
#12
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.
__________________
George Fragos
Internet Coach & Writer
Maemo Mapper HowTo
Personal Blog -- 3 Joe's Blog


N810 -- 5.2010.33-1
 
Posts: 4,556 | Thanked: 1,624 times | Joined on Dec 2007
#13
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.
__________________
Originally Posted by ysss View Post
They're maemo and MeeGo...

"Meamo!" sounds like what Zorro would say to catherine zeta jones... after she slaps him for looking at her dirtily...
 
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#14
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.
 
Posts: 4,556 | Thanked: 1,624 times | Joined on Dec 2007
#15
interesting application manager said it is an incompatible package.
__________________
Originally Posted by ysss View Post
They're maemo and MeeGo...

"Meamo!" sounds like what Zorro would say to catherine zeta jones... after she slaps him for looking at her dirtily...
 
Posts: 66 | Thanked: 11 times | Joined on Feb 2009
#16
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.
 
Posts: 174 | Thanked: 71 times | Joined on Aug 2007
#17
wifi-connection handler and rsync should get the job done.
 
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#18
Originally Posted by Laughing Man View Post
interesting application manager said it is an incompatible package.
Probably - it was a direct compile, I forgot to modify the control file.
 
Posts: 4,556 | Thanked: 1,624 times | Joined on Dec 2007
#19
Originally Posted by dick-richardson View Post
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?
__________________
Originally Posted by ysss View Post
They're maemo and MeeGo...

"Meamo!" sounds like what Zorro would say to catherine zeta jones... after she slaps him for looking at her dirtily...

Last edited by Laughing Man; 2009-03-10 at 22:31.
 
Reply

Tags
wifi mounting sync


 
Forum Jump


All times are GMT. The time now is 02:06.