OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: DaveAnderson on January 13, 2005, 12:43:51 pm

Title: Multisync For Cacko
Post by: DaveAnderson on January 13, 2005, 12:43:51 pm
I see Opie libs in the Cacko feed.  Is there any way to get multisync running under Cacko?
Title: Multisync For Cacko
Post by: stupkid on January 13, 2005, 12:55:31 pm
I have used the Opie PIMS and following the Multisync HOWTO for Opie (http://multisync.sourceforge.net/articles.php?do=viewart&id=1&cat=2) had Multisync working with evolution.  I think that the pi-sync apps are much better though.
Title: Multisync For Cacko
Post by: DaveAnderson on January 13, 2005, 12:57:14 pm
I'd really like to keep Evolution on my desktop, though.  But where do I get the multisync software?  I can't seem to find it.
Title: Multisync For Cacko
Post by: stupkid on January 13, 2005, 01:09:34 pm
I run Debian so all I had to do was run:

aptitude install multisync

I don't know where you will find packages for you particular distro.
Title: Multisync For Cacko
Post by: DaveAnderson on January 13, 2005, 01:28:08 pm
Hmmm.  Sorry, this is confusing for me.  To run Debian, you have to do it through X/Qt, right?  There's no way to just run or build multisync for Cacko?
Title: Multisync For Cacko
Post by: acpkendo on January 13, 2005, 02:20:21 pm
Multisync doesn't run on the Zaurus, it just sync's with it.  You install Multisync on whatever distro you use on the desktop--in stupkid's case, this is Debian.  I believe there are versions of multisync in testing (sarge) and unstable (sid).
Title: Multisync For Cacko
Post by: stupkid on January 13, 2005, 02:45:05 pm
The first question for finding how to install multisync on your desktop is to know what OS and version is running on your desktop.
Title: Multisync For Cacko
Post by: DaveAnderson on January 13, 2005, 05:31:41 pm
Okay, I'm getting there guys.  Sorry about my confusion, but this is all new to me.

So I got Multisync up and running under Gentoo.  No problems there.  I had to do some funky things to get the Evolution 2 plugin, but that seems to be installed properly now.

Now, let me see if I follow this.

First Plugin: Opie and Zaurus
Second Plugin: Ximian Evolution 2

That about right?

Oh man, I'll be so excited to get this working.  Now I just need to get my new router going at home and hope that my Z will talk to it.
Title: Multisync For Cacko
Post by: DaveAnderson on January 13, 2005, 07:13:41 pm
Okay, here is where I'm at.

1)  I can FTP and SFTP into my zaurus from my Gentoo box.

2)  I cannot multisync through either FTP or SFTP - using standard ports (21 for FTP and 22 for SFTP).  With QCOP checked, I just get a message (via the log) that the server is unavailable.  With QCOP unchecked, it just hangs at 'Connecting to First Client'.  

login/pass for ftp is zaurus/zaurus

There doesn't seem to be a login/pass for sftp.  

Both login/passwords were tried in conjunction with Multisync - still nothing.

Right now I'm just trying to pull from the Z (first plugin) and dump it into a Backup folder (second plugin).

Any thoughts?
Title: Multisync For Cacko
Post by: stupkid on January 13, 2005, 11:07:43 pm
You need to setup an SSH key pair.  This is explained in the HOWTO I linked to above.  Please read through that HOWTO and then post where you run into problems.
Title: Multisync For Cacko
Post by: DaveAnderson on January 14, 2005, 10:55:55 am
Thanks, stupkid.  The link to SSH is no longer good, but one can access it through archive.org

I now have it setup where I can ssh into my Z without a login prompt at all.  I assume this means I have the keys setup properly.

So now I should be safe to try SFTP on port 22?  I tried this but still got the 'Connecting to first client message'.  I left login/pass blank.  But I'm wondering, must I put 'root' for the password?  Or should I use zaurus/zaurus (login/pass)?  And what is this QCop for?  Should it be checked or unchecked?

I reference the Howto, but it's geared towards Opie, so these final issues are stumbling blocks for me.

I will play around with it more tonight.  I'm at work right now, but just wanted to post where I'm at.  If I get this working, I will created a detailed howto.
Title: Multisync For Cacko
Post by: stupkid on January 14, 2005, 12:01:52 pm
I am trying to make this as clear as possible.

Multisync only works with the OpiePIMs.  It will not work with the Sharp PIMs that Cacko comes with.  If you do not install the Opie PIMs from the feed Multisync is useless.  So, the Opie related parts of the HOWTO are relevant.  It is a pretty good HOWTO overall.

The packages for the Opie PIMs are:

opie-addressbook
opie-datebook
opie-todo

Install the above packages from the feed.  Once the Opie-PIMs are installed on your Z go through the HOWTO.  The HOWTO explains almost all the questions you are asking and yes it applies your Z.  Trust me it works and it is applicable.  Run through the HOWTO and if you have a problem with a specific step explain why you cannot perform that particular task.  Please list the configuration for your Multisync sync pair as well.  

If you have ssh logging into your Z without prompting for a password you have passed the hard part.  The user you should be using for the SFTP configuration should be 'zaurus'.

Hope this helps.
Title: Multisync For Cacko
Post by: DaveAnderson on January 14, 2005, 12:27:52 pm
1)  I read the FAQ completely.

2)  I've already installed the Opie apps.

The only thing that is left is getting the sync to work.  And no, the howto isn't very helpful in that area - such as login/pass.
Title: Multisync For Cacko
Post by: DaveAnderson on January 14, 2005, 05:05:25 pm
Okay, still not working.  Here's where I'm at.

From my gentoo box:

ssh -l root 192.168.1.47 - right to # prompt

sftp -l zaurus 192.168.1.47 - prompts me for password.  Entering 'zaurus' for pw gets me in.

Multisync:

First Plugin - Opie and Zaurus - Options: Protocol: SFTP | IP: 192.168.1.47 | Port 22 | Enable QCop (Unchecked) | Username: zaurus | password: zaurus

Second Plugin - Backup to ~/backup

Click Sync.  Get 'Connecting to First Client' and it just stays there until I cancel it.

Notes:

Opie files have been initialized.
Title: Multisync For Cacko
Post by: acpkendo on January 14, 2005, 05:20:56 pm
FYI, qcop is the protocol that qtopia applications use to talk to each other.  I have no idea if disabling this is why it won't work for you. . . have you tried checking that box?
Title: Multisync For Cacko
Post by: DaveAnderson on January 14, 2005, 05:29:08 pm
Quote
FYI, qcop is the protocol that qtopia applications use to talk to each other.  I have no idea if disabling this is why it won't work for you. . . have you tried checking that box?
With QCop checked, it comes back with: Failed to connect to local: Could not connect to server: No route to host.
Title: Multisync For Cacko
Post by: stupkid on January 14, 2005, 05:31:29 pm
The password field in your Multisync pair should be blank.

You need to put your public key into /home/zaurus/.ssh/.  running the following on your Zaurus as root should do the trick:

cp /home/root/.ssh/* /home/zaurus/.ssh/

You should now be able to 'ssh zaurus@192.168.1.47' into your Zaurus without entering a password.  It will not work until you can log into your Z as the zaurus user without being prompted for a password.
Title: Multisync For Cacko
Post by: DaveAnderson on January 14, 2005, 06:04:29 pm
'ssh zaurus@192.168.1.47' - works w/o entering password now.

The OpenZaurus Plugin Config is now:

Type: Zaurus
Protocol: SFTP
IP: 192.168.1.47
Port: 22
QCop: Unchecked (again tried both)

Username: zaurus
Password: <blank>

Still 'Connecting to first client'

I've been reading through the multisync mailing list on sourceforge.  The only somewhat useful thing I found was this:

Quote
The command we are running is:
 
 "sftp -o Port=22 -o BatchMode=yes
 root@10.42.2.2:Applications/addressbook/addressbook.xml
 /tmp/addressbook.xml"

Now, he was referring to Opie, and this was before the Connection Type of 'Zaurus' was added (though apparently this thread I was in was the reason for the 'Zaurus' type being added).  Anyway, if I run:

dave@p434 dave $ sftp -o Port=22 -o BatchMode=yes zaurus@192.168.1.47:Applications/addressbook/addressbook.xml ~/addressbook.xml
Connecting to 192.168.1.47...
Fetching /home/zaurus/Applications/addressbook/addressbook.xml to /home/dave/addressbook.xml

So it's working for me.  It seems like I'm just a step away from getting it.
Title: Multisync For Cacko
Post by: stupkid on January 14, 2005, 06:15:56 pm
Hmm, I'll check my configuration at home tonight.  I'm not seeing what is missing.
Title: Multisync For Cacko
Post by: stupkid on January 15, 2005, 01:24:57 am
Switch your type to "Opie/Open Zaurus".  That should solve your problem.  The "Zaurus"  type is for the old Sharp PIMs before DTM.  That's the only thing different about our configs that I see.  If that doesn't do it I don't know what will.
Title: Multisync For Cacko
Post by: DaveAnderson on January 15, 2005, 06:59:50 am
Quote
Switch your type to "Opie/Open Zaurus".  That should solve your problem.  The "Zaurus"  type is for the old Sharp PIMs before DTM.  That's the only thing different about our configs that I see.  If that doesn't do it I don't know what will.
Do you have QCop checked or no?
Title: Multisync For Cacko
Post by: stupkid on January 15, 2005, 01:27:26 pm
Qcop is unchecked.
Title: Multisync For Cacko
Post by: DaveAnderson on January 18, 2005, 02:00:59 pm
Quote
Qcop is unchecked.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=62758\"][{POST_SNAPBACK}][/a][/div]

Looks like I've come to a dead end on this.  I'm stuck at the same problem.  Nothing works, and it sucks that it is working from command line.  I'll try to post a note about it on the multisync web site and see where I can get.  I may also give it a try from a Linux box I have here at work.  I've tried both emerged multisync and the latest from CVS (to get Evo2 support, though that's not even an issue just now) - perhaps I have some mixed up files somewhere.  Thanks for your help to this point stupkid.
Title: Multisync For Cacko
Post by: stupkid on January 18, 2005, 05:52:11 pm
Have you looked at this thread:

https://www.oesf.org/forums/index.php?showt...t=0&#entry63002 (https://www.oesf.org/forums/index.php?showtopic=10188&st=0&#entry63002)

It looks as if there is a problem with the portage tree for multisync.
Title: Multisync For Cacko
Post by: DaveAnderson on January 19, 2005, 11:17:28 am
Quote
Have you looked at this thread:

https://www.oesf.org/forums/index.php?showt...t=0&#entry63002 (https://www.oesf.org/forums/index.php?showtopic=10188&st=0&#entry63002)

It looks as if there is a problem with the portage tree for multisync.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=63087\"][{POST_SNAPBACK}][/a][/div]

Dude, you rock.  That was it.  I'll thank the other poster too.

It makes sense, even though I tried CVS.  I didn't spend as much time with CVS and I believe with CVS I didn't have the right login/password setup.  I figured I'd be safe and try the stable version from portage.  Ooops.  I tried the -1 version and BOOM, it worked instantly.  Crazy.

Thanks again for all your help.  I'm so psyched to have this going.  To be able to keep Evolution and use it with my Z is literally a dream come true.
Title: Multisync For Cacko
Post by: petya on January 29, 2005, 05:49:49 am
Hi, i have set up everything just like you guys said, sync semms to work, but the evolution entrys does not apperar on the z. This is a sync in terminal:

Connecting to 192.168.129.201...
Fetching /home/zaurus/Applications/addressbook/addressbook.xml to /tmp/addressbook.xml
/home/zaurus/Applications/addressbook/address 100%  113     0.1KB/s   00:00
Connecting to 192.168.129.201...
Fetching /home/zaurus/Applications/todolist/todolist.xml to /tmp/todolist.xml
/home/zaurus/Applications/todolist/todolist.x 100%   55     0.1KB/s   00:00
Connecting to 192.168.129.201...
Fetching /home/zaurus/Applications/datebook/datebook.xml to /tmp/datebook.xml
/home/zaurus/Applications/datebook/datebook.x 100%   82     0.1KB/s   00:00
Connecting to 192.168.129.201...
Fetching /home/zaurus/Settings/Categories.xml to /tmp/Categories.xml
/home/zaurus/Settings/Categories.xml          100%  164     0.2KB/s   00:00
tasks length msyncid4 0
[evo2-sync] INFORMATION: Done searching for changes. Found 0 changes
tasks length msyncid4 0
[evo2-sync] INFORMATION: Done searching for changes. Found 0 changes
sftp> cd Settings
sftp> put /home/petya/.multisync/4/Categories.xml Categories.xml
Uploading /home/petya/.multisync/4/Categories.xml to /home/zaurus/Settings/Categories.xml
sftp> bye
sftp> cd Applications/addressbook
sftp> put /home/petya/.multisync/4/addressbook.xml addressbook.xml
Uploading /home/petya/.multisync/4/addressbook.xml to /home/zaurus/Applications/addressbook/addressbook.xml
sftp> bye
sftp> cd Applications/todolist
sftp> put /home/petya/.multisync/4/todolist.xml todolist.xml
Uploading /home/petya/.multisync/4/todolist.xml to /home/zaurus/Applications/todolist/todolist.xml
sftp> bye
sftp> cd Applications/datebook
sftp> put /home/petya/.multisync/4/datebook.xml datebook.xml
Uploading /home/petya/.multisync/4/datebook.xml to /home/zaurus/Applications/datebook/datebook.xml
sftp> bye
sync_done

but there is change in evolution. What am i doing wrong?

petya
Title: Multisync For Cacko
Post by: petya on January 29, 2005, 06:02:25 am
there is an entry in evolution task list and an entry in opie todo, but none of them appears on the other side, i am running a gentoo box, and using a new (0.83) multisync with evolution 2.
Title: Multisync For Cacko
Post by: Huinen on February 02, 2005, 12:56:32 pm
I have the same problem too. The evolution entry is into applications/addressbook/addressbook.xml after syncing but does appear when I start the opie-addressbook aplication
Title: Multisync For Cacko
Post by: petya on February 04, 2005, 08:39:58 am
maybe a bug in evo2 plugin? what distribution do you run?
Title: Multisync For Cacko
Post by: DaveAnderson on February 04, 2005, 11:53:20 am
Quote
maybe a bug in evo2 plugin? what distribution do you run?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=65543\"][{POST_SNAPBACK}][/a][/div]

You need to launch the Opie addressbook from the command prompt - be sure to specify path or go to path and run with ./addressbook

Otherwise you are just running the Sharp addressbook.

I posted another thread on this Opie address book issue and the Cacko author responded with some input, but I haven't researched it.
Title: Multisync For Cacko
Post by: petya on February 04, 2005, 01:11:14 pm
I tried to do this with todo list, and i am pretty sure, when i tap todo, the opie, todo starts, by the way, it cannot be good, because the empty xml file i touched got it's headers, but it's empty, but evo has todos in the todo list. If i put a todo on my z, it appears on evolution, i checked in multisync, that i want to see my stuff in both places.
Title: Multisync For Cacko
Post by: Huinen on February 04, 2005, 07:28:58 pm
I use 1.03-1 from cacko feed and evolution 1.4.3-6 from debian stable. Evolution 2 did some extrange things when trying to sync: The contacts appear with a "/" next to the surname. With Evolution 1.4.3 I can sync in both places but i  need to reboot  the addressbok aplication.
Title: Multisync For Cacko
Post by: petya on February 08, 2005, 02:19:21 am
I managed to get forward with this thing, now the sync works. I see my todo entries in evolution, and evolution's todo gets into the todolist.xml file. I thought i succeeded. But not. When i start todo list on my z, it doesn't show the evolution tasks, only those i typed in on the zaurus, but in the xml, there is the evo task. Anybody know anything about this problem? I have got an sl-c760 with cacko 1.22
Title: Multisync For Cacko
Post by: petya on February 08, 2005, 02:28:40 am
Here are the detalis:

before synchronization:

todolist.xml file:
$ cat Applications/todolist/todolist.xml
<!DOCTYPE Tasks>
<Tasks>
<Task Completed="0" HasDate="0" Priority="3" Progress="0" Categories="" Description="" Summary="sample zaurus task" Uid="-1107761051" State="3"   />

the evolution tasks file:
$ cat tasks.ics
BEGIN:VCALENDAR
CALSCALE:GREGORIAN
PRODID:-//Ximian//NONSGML Evolution Calendar//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:/softwarestudio.org/Olson_20011030_5/Europe/Budapest
X-LIC-LOCATION:Europe/Budapest
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=3
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=10
END:STANDARD
END:VTIMEZONE
BEGIN:VTODO
UID:20050208T070002Z-6734-100-1-1@petya
DTSTAMP:20050208T070002Z
CLASS:PUBLIC
PRIORITY:0
SUMMARY:sample evolution task
TRANSP:OPAQUE
SEQUENCE:1
LAST-MODIFIED:20050208T070002Z
END:VTODO
END:VCALENDAR

The multisync syncing:
Connecting to 192.168.129.201...
Fetching /home/zaurus/Applications/addressbook/addressbook.xml to /tmp/addressbook.xml
/home/zaurus/Applications/addressbook/address 100%  113     0.1KB/s   00:00
Connecting to 192.168.129.201...
Fetching /home/zaurus/Applications/todolist/todolist.xml to /tmp/todolist.xml
/home/zaurus/Applications/todolist/todolist.x 100%  182     0.2KB/s   00:00
Connecting to 192.168.129.201...
Fetching /home/zaurus/Applications/datebook/datebook.xml to /tmp/datebook.xml
/home/zaurus/Applications/datebook/datebook.x 100%   82     0.1KB/s   00:00
Connecting to 192.168.129.201...
Fetching /home/zaurus/Settings/Categories.xml to /tmp/Categories.xml
/home/zaurus/Settings/Categories.xml          100%  164     0.2KB/s   00:00
sftp> cd Settings
sftp> put /home/petya/.multisync/1/Categories.xml Categories.xml
Uploading /home/petya/.multisync/1/Categories.xml to /home/zaurus/Settings/Categories.xml
sftp> bye
sftp> cd Applications/addressbook
sftp> put /home/petya/.multisync/1/addressbook.xml addressbook.xml
Uploading /home/petya/.multisync/1/addressbook.xml to /home/zaurus/Applications/addressbook/addressbook.xml
sftp> bye
sftp> cd Applications/todolist
sftp> put /home/petya/.multisync/1/todolist.xml todolist.xml
Uploading /home/petya/.multisync/1/todolist.xml to /home/zaurus/Applications/todolist/todolist.xml
sftp> bye
sftp> cd Applications/datebook
sftp> put /home/petya/.multisync/1/datebook.xml datebook.xml
Uploading /home/petya/.multisync/1/datebook.xml to /home/zaurus/Applications/datebook/datebook.xml
sftp> bye


After sync:
the todolist.xml file:
<?xml version="1.0"?>
<!DOCTYPE Tasks>
<Tasks>
<Task Uid="-1107761051" Completed="0" HasDate="0" Priority="3" Progress="0" Description="" Summary="sample zaurus task" State="3" />
<Task Uid="825919597" Summary="sample evolution task" />

The evolution side:
BEGIN:VCALENDAR
CALSCALE:GREGORIAN
PRODID:-//Ximian//NONSGML Evolution Calendar//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:/softwarestudio.org/Olson_20011030_5/Europe/Budapest
X-LIC-LOCATION:Europe/Budapest
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=3
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=10
END:STANDARD
END:VTIMEZONE
BEGIN:VTODO
UID:20050208T070002Z-6734-100-1-1@petya
DTSTAMP:20050208T070002Z
CLASS:PUBLIC
PRIORITY:0
SUMMARY:sample evolution task
TRANSP:OPAQUE
SEQUENCE:1
LAST-MODIFIED:20050208T070002Z
END:VTODO
BEGIN:VTODO
PRIORITY:5
PERCENT-COMPLETE:0
X-LIC-ERROR;X-LIC-ERRORTYPE=VALUE-PARSE-ERROR:No value for DESCRIPTION
 property. Removing entire property:
SUMMARY:sample zaurus task
UID:20050208T070436Z-6988-100-6820-1@petya
DTSTAMP:20050208T070436Z
LAST-MODIFIED:20050208T070436Z
END:VTODO
END:VCALENDAR


This seems to be ok, on the evolution side, it's ok. But when i start opie-todolist on the zaurus only sample zaurus task shows up. I am using mulktisync 0.83 and evolution 1.4.6 on a gentoo box.
Title: Multisync For Cacko
Post by: petya on February 08, 2005, 04:22:09 am
I discovered az intesting thing, it works after a reboot, but i don't want to reboot my pda after every syncing. Can something like, update datat from xml can be done for pim apps? I would like to create an icon for for example a shell script on the pim tab. Not just todo list produces this, calendar, and contacts too. I am using the opie pim apps, and an other problem is that addressbook runs only in qvga (the magnify screen cannot be unchecked), if i run it from konsole, it is perfect.

Can you recommend anything for the refresh / qvga problem?

petya
Title: Multisync For Cacko
Post by: petya on February 08, 2005, 04:22:44 am
I forgot that i am using cacko 1.22 lite version.
Title: Multisync For Cacko
Post by: Huinen on February 08, 2005, 11:12:03 am
You can kill the addressbook process instead of rebooting.Close the addressbook, go to Settings tab and click on System info. Then open the Process tab and send the SIGKILL signal to the addresbook application. Restart the addressbook.
Also you can open a console and write "killall addresbook" and then restart the program. The contacts should appear now.
Title: Multisync For Cacko
Post by: stupkid on February 08, 2005, 12:07:41 pm
As I recall from when I used Opie PIMs+ Evolution you might have problems with your changes being synced if while syncing:

1.  The opie PIMs are running.
2.  The opie PIMs are fastloaded.

This is because the PIM xml files are opened while the apps are running.  When you sync with Multisync, Multisync just copies xml file saved on flash and syncs it with Evolution and then writes the changed file back.  If the file is opened in the PIM apps they will write back the old version on exit.
Title: Multisync For Cacko
Post by: petya on February 08, 2005, 01:35:22 pm
that's it, fastload will be the problem, how can i disable this in cacko lite? tap and hold thing doesn't work. What about the qvga address book (tap and hold doesn't work)?