OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: diesel1 on August 03, 2004, 07:33:57 pm
-
Hello all,
Does anyone have a script for automating rsync with a destop linux box, in particular for use with KoPi?
I run Linux everywhere™ [don't know who, maybe me! ] but am not experienced with scripting/programming.
I am using C860 <-> Mandrake10.
I have networking set up with my Lan, can ssh/vnc etc. between all machines.
Thanks in advance,
Simon.
C860-pdaXrom1.05-PocketWorkstation.DoH! (D ebian o n H andhelds!)
DLinkAir660WCF-256Mb/64MbIntegralSD-256Mb/64MbIntegralCF
SL550-OZ3.6.6pre1/OPIE1.1.4
-
Why rsync? Just use the built in sync betwen KO/Pi and KOrganizer!
My settings (Menu, Synchronize, Configure)
I created a new profile named KOrg Mdk.
Sync preferences * Force: Take local entry always
* Show summary after sync
* Write back file
Profile kind
* Remote file (w/ download/upload command)
Presync command
scp user@my.pc.domain.net:/home/<user>/.kde/share/apps/korganizer/mycalendar.ics /home/tmp/mycalendar.ics
Local temp file
/home/temp/mycalendar.ics
Postsync command
scp /home/tmp/mycalendar.ics user@my.pc.domain.net:/home/<user>>/.kde/share/apps/korganizer/mycalendar.ics /home/tmp/mycalendar.ics
I have KOrganizer on my desktop (Mandrake 10.1 Cooker) defined to use "mycalendar.ics" as its resource.
You have to have generated ssh keys on the Zaurus and the desktop so they can connect without needing password via scp.
-
Ok, that sounds good.
Any tips on generating keys?
Simon.
-
Ok, that sounds good.
Any tips on generating keys?
Simon.
There is a detailed ssh howto available at
http://oek.fbl.fh-wiesbaden.de/zaurus/ (http://oek.fbl.fh-wiesbaden.de/zaurus/)
-
There is a detailed ssh howto available at
http://oek.fbl.fh-wiesbaden.de/zaurus/ (http://oek.fbl.fh-wiesbaden.de/zaurus/)
Thanks zautrix!
I was going to suggest "man ssh".
....and I can only hold one hand at a time....
-
Thankyou, I'm right on it.
Of course I should RTFM and RTFManPage!!
Simon.
-
Hello again,
I can sync kopi by using a terminal to start kopi on the zaurus and then typing my password in the terminal when nescessary.
When I use the automatic password option in kopi I get a refusal from the desktop box.
I am a little confused what to do to fully automate this procedure, the link provided was very informative but was not clear/simple/understandable to me.
I will use it this way until I get it licked........of course I tried to RTFM and did a little RTFManPaging.......but I just aint getting it.
Simon.
-
The general procedure to set up ssh so you don't need to enter a password is:
1. Generate key DSA pairs on each system (ssh-keygen -d)
2. Put the contents of id_dsa.pub on one machine into the authorized_keys2 file on the other machine (and vice versa if required).
3. You should now be able to ssh/scp into the machine you put the public key onto
NB# all the files are located in ~/.ssh
NB# don't set a password when prompted while generating key pairs
NB# you will probably have to create the authorized_keys2 file
NB# if for some reason you want to use RSA instead of DSA, RTFM
NB# you may have to play around with which keys go on which machine
a few times until you get it right and understand how it all works
-
Thankyou very much that worked right out of the box.
I thought it should be as simple as that.
Simon.