View Single Post
Posts: 22 | Thanked: 9 times | Joined on Aug 2010
#31
Hey all n900 lovers!

First of all i would like to say that im a Noob so this little "how to" comes with no guarrantee. But it worked allright for me I have looked for different solutions of sync folders on my n900 and windows 7, windows xp, and linux machines. Im sure there are many solutions for different needs but this was best for me. I think Unison is a very good program since you can modify the syncing process in detail, and the chance of destroying somthing is not that great as with other solutions..

A big thanks to all people who have contributed in different ways on blogs, forum etc to this.


This outline comes from different sources and i have installed it on a windows 7 64bit PC along with my n900 and it is SSH password enabled.

My n900 has PR1.2, OpenSSH server, titans Power kernel v37 installed.

On the n900:

First read through this post (wich we are in) http://talk.maemo.org/showthread.php?t=27426

grab this from bundyo to your n900: http://www.bundyo.org/maemo/unison/u...57-2_armel.deb

I installed it via xterm:

Code:
sudo gainroot 
dpkg -i unison-gtk_2.27.57-2_armel.deb
(you can learn more here: http://blaise.ca/blog/2010/05/06/how...oy-with-unison/)

I did not and I repeat I did NOT find any icon to start unison in app manager.

Start unison from xterm with simply typing:

Code:
unison-gtk
You should get a GUI started where you follow instructions. A manual for Unison for further reading is here:
http://www.cis.upenn.edu/~bcpierce/u...57-manual.html

Here you can get some screenshoots and also how to use Putty with it. I did NOT use Putty:
http://www.minezone.org/wiki/MVance/FileSyncingHowTo

my settings were:
local directory (n900) /home/user/MyDocs/.documents

second directory (W7) c:\n900
filled in SHH
Hos= ip address tom my W7 PC
user left blank
I left out port = blank


I actually dont know (since im a Noob ) if setting up unison-gtk is required in this manner at N900 side, still i did this way.

Then start OpenSSH server on n900


On Windows 7 PC:

Unison binaries for windows was hard to find at least for me. And im not into compiling.
Via this thread (http://marc.info/?l=unison-users&m=120153269217850&w=2) I found a compiled version of Unison for windows who was the same version as for n900, so grab this version:

http://alan.petitepomme.net/projets/....27.57-Gtk.zip

then grab GTK runtime (as mentioned in same thread)
http://sourceforge.net/projects/pidg...b.exe/download

Install GTK runtime first.
Then unpack Unison-2.27.57-Gtk.zip
copy "Unison-2.27.57 Gtk+.exe" to runtime folder and make a shortcut to it on desktop.
Runtime folder should be somthing like C:\Program Files (x86)\Common Files\GTK\2.0\bin

Now you need SSH support. In my case to get Password for openSSH to work i did this:

First i tried ssh.exe(http://www.wischik.com/lu/programmer/unison-ssh.html) but this SSH.exe had not support for password.
But in the commentaries of the same page there was a solution.
I downloaded: ftp://ftp.ox.ac.uk/pub/comp/security...ient-3.2.9.exe
and istalled. In the installation folder i took SSH2.exe and copied it to C:\Program Files (x86)\Common Files\GTK\2.0\bin
and renamed it to ssh.exe

You might have to run this like they suggest once to sort keys out like this
Code:
ssh root@192.168.x.x(ip on n900)
in Windows 7 open a cmd as administrator (ctrl+shift+enter) go to folder and execute the above. Mind to let traffic trough your firewall.

Now run Unison-GTK from desktop and you will have the same options as with n900
local directory: is on PC for me c:\n900
second directory: would be on n900 /home/user/MyDocs/.documents
host: the ip to your n900 (this will work over your local wifi net, via your GPRS distributor i dont know)
user:root
port: i left it blank
SSH is marked



When you run it there will be a black console in the background where tou type the password to your OpenSSH server on n900.
And voila! There you go synchronisations starts!

Im sure there are questions on various parts on this but im not the right guy to ask, but there are several people on this forum who have very good knowledge so if you want to change or modify these instructions feel completly free to do so in the benifit of other users.
I love my n900 and i hope you do too )
 

The Following 5 Users Say Thank You to Mebore For This Useful Post: