I am looking for information on hown to sync Ubuntu Touch calendars and contacts with a caldav/carddav server.
Thanks
v.Caine
If you use google it has this built in and easy to setup up
Otherwise owncloud is a great solution
On the device use syncevolution to sync calendars and contacts
Impossible using it for all that plus my documents
Impossible just going to sort my contacts today then add cron scripts to automate the sync on nexus 5 and 7
Thundebird does this easily using sogo plugin
Sent from my awesome Ubuntu Touch device using the Forum Browser app
wayneward said:
On the device use syncevolution to sync calendars and contacts
Click to expand...
Click to collapse
How exectly are syncing your calendars and contacts? can you send me information on how to do that?
wayneward said:
Impossible just going to sort my contacts today then add cron scripts to automate the sync on nexus 5 and 7
Click to expand...
Click to collapse
How can I setup those cron scripts and what exactly are they for?
Thanks for your help!
About syncing...
I can't post links (i'm newby) but search in google
ubuntu touch sync caldav
And go to askubuntu link (3d result). And then, in askubuntu post, the 4th answer.
Basically:
-----
First I added the certificate of my site to the folder /usr/share/ca-certificates and updates the ca-cert database, since it is self-signed:
sudo mount /dev/loop0 / -o remount,rw
sudo cp /home/phablet/Downloads/server.crt /usr/share/ca-certificates
Add a star to the new certificate while running the configuration
sudo dpkg-reconfigure ca-certificates
Add the syncevolution configuration:
syncevolution --keyring=no --configure --template webdav username=<USERNAME> password=<PASSWORD> syncurl="in-its.de/owncloud" [email protected]
syncevolution --configure --template SyncEvolution_Client sync=none syncURL=local://@owncloud username= password= peerIsClient=1 owncloud
syncevolution --configure database=https://<SERVER>/owncloud/remote.php/carddav/addressbooks/<USERNAME>/contacts backend=carddav [email protected] contacts
syncevolution --configure sync=two-way backend=contacts database="Persönlich" owncloud contacts
Run sync:
syncevolution --sync slow owncloud contacts
That made all my Owncloud contacts available on my Ubuntu Phone.
And CalDAV works similar:
syncevolution --configure database=https://<SERVER>/owncloud/remote.php/caldav/calendars/<USERNAME>/personal backend=caldav [email protected] calendar
syncevolution --configure sync=two-way backend=events database="Persönlich" owncloud calendar
And then sync it:
syncevolution --sync slow owncloud calendar
------
And about cron... it's easy, search in google about creating cron job and create a job with above parameter
Related
Hi there!
Who know how to export contact list into ubuntu touch.
As far as I know its work through sqlite. I have spent lot of time to find a way to uploading data.
I have tried
Code:
manage-address-books.py create
but its looks like they have removed this options from new images.
I believe they have removed the option at this point... Or rather the option no longer works under current configuration since they flipped the container.
UT, hopefully, will implement PIM via Google accounts before it goes live as a public release.
RumoredNow said:
I believe they have removed the option at this point... Or rather the option no longer works under current configuration since they flipped the container.
UT, hopefully, will implement PIM via Google accounts before it goes live as a public release.
Click to expand...
Click to collapse
You can sync with Google by doing this on the terminal (through the app, SSH or adb shell):
syncevolution --configure --sync-property "username=YOUR-EMAIL-ADDRESS" --sync-property "password=YOUR-EMAIL-PASSWORD" Google_Contacts
then, to load 50 contacts :
syncevolution --sync refresh-from-server Google_Contacts addressbook
then, if you have more than 50, complete with this one :
syncevolution --sync one-way-server Google_Contacts addressbook
(as you can see, contacts work with syncevolution, try to play with it if you want
eagleofdeath13 said:
You can sync with Google by doing this on the terminal (through the app, SSH or adb shell):
syncevolution --configure --sync-property "username=YOUR-EMAIL-ADDRESS" --sync-property "password=YOUR-EMAIL-PASSWORD" Google_Contacts
then, to load 50 contacts :
syncevolution --sync refresh-from-server Google_Contacts addressbook
then, if you have more than 50, complete with this one :
syncevolution --sync one-way-server Google_Contacts addressbook
(as you can see, contacts work with syncevolution, try to play with it if you want
Click to expand...
Click to collapse
I have tried use syncevolution through UT terminal -its returned many errors.
Looks like I need wait until official release(
eagleofdeath13 said:
You can sync with Google by doing this on the terminal (through the app, SSH or adb shell):
syncevolution --configure --sync-property "username=YOUR-EMAIL-ADDRESS" --sync-property "password=YOUR-EMAIL-PASSWORD" Google_Contacts
then, to load 50 contacts :
syncevolution --sync refresh-from-server Google_Contacts addressbook
then, if you have more than 50, complete with this one :
syncevolution --sync one-way-server Google_Contacts addressbook
(as you can see, contacts work with syncevolution, try to play with it if you want
Click to expand...
Click to collapse
vairkz said:
I have tried use syncevolution through UT terminal -its returned many errors.
Looks like I need wait until official release(
Click to expand...
Click to collapse
It just worked for me yesterday... Contacts anyway... I'm still working on Calendar...
I used almost exactly what eagleofdeath13 typed and put it in terminal on the device...
For the purposes of this demo I will use a phony email address and password so you will see the form as it should go in raw. The quotation marks (") don't actually get used
Code:
syncevolution --configure --sync-property [email protected] --sync-property password=CanNotWait Google_Contacts
After hitting enter, you will get some confirmations scrolling on the screen. Then use
Code:
syncevolution --sync refresh-from-server Google_Contacts addressbook
OR
Code:
syncevolution --sync one-way-server Google_Contacts addressbook
Syncevolution is included in Ubuntu Touch now... For more info read here: https://syncevolution.org/
You didn't used quote? (i used them (because where i've read it, they where used)).
But Syncevolution seems not to work today for me too (i've reset my phone, but without the NoBackup param, maybe that's the problem, i'll try with -no-backup ^^
Note : you need to be in RW to do that
$ adb shell
$ mount /dev/loop0 / -o remount,rw
eagleofdeath13 said:
You didn't used quote? (i used them (because where i've read it, they where used)).
But Syncevolution seems not to work today for me too (i've reset my phone, but without the NoBackup param, maybe that's the problem, i'll try with -no-backup ^^
Note : you need to be in RW to do that
$ adb shell
$ mount /dev/loop0 / -o remount,rw
Click to expand...
Click to collapse
It failed for me with quotes... I seem to remember when it first hit in March(?) I struggled to implement the sync and ended up with no quotes then as well. I never got it working again via my Ubuntu Box, including now. So glad we got terminal on the device.
On the cdimage-touch side there is a new version today: http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/ but I'm not getting any OTA for ubuntu-system since 20 August so I don't know if reflashing via Ubuntu Box gets you anything with
Code:
phablet-flash ubuntu-system --channel saucy --no-backup
except for a wipe of your data...
I am trying to sync my gmail addressbook.
I am doing this drom the terminal as su
syncevolution --sync refresh-from-server Google_Contacts addressbook
and
syncevolution --sync one-way-from-server Google_Contacts addressbook
both give me the following error:
First ERROR encountered: GLib-GObject: g_object_unref: assertion
'G_IS_OBJECT (object)' failed
Solved - gmail addressbook sync issue
OldGaf said:
I am trying to sync my gmail addressbook.
I am doing this drom the terminal as su
syncevolution --sync refresh-from-server Google_Contacts addressbook
and
syncevolution --sync one-way-from-server Google_Contacts addressbook
both give me the following error:
First ERROR encountered: GLib-GObject: g_object_unref: assertion
'G_IS_OBJECT (object)' failed
Click to expand...
Click to collapse
I fixed this by switching from root to phablet ...
Hi all
first post for me here, i apologize if im posting in the wrong section,
im developing an application on .net to automatically upload and sync a .vcf file into any android device (tablet, phone ..)
currently im trying to use ADB to do that however all the methods i found cannot be scripted or are very slow which can takesometime to import a 1000 numbers
for example ( woks but very slow )
the code is something like
Code:
am start -a android.intent.action.INSERT -t vnd.android.cursor.dir/contact -e name 'Donald Duck' -e phone 555-1234")
input keyevent 3;
can anyone please point me in the right direction to directly dump the .vcf file in the contacts2.db
Cheers
Hi, I recently purchased the ZTE Open C and want to synchronize its calendar with my own Caldav server.
Firefox rejects the connection tough, because the server has an invalid (self signed) certificate.
So i tried adding my certificate to firefox.
I found this guide:
http : // wiki . mozfr . org / Adding_CA_to_FirefoxOS
(Sorry for inserted spaces, won't let me post a link in first post.)
However I fail in the very first steps.
Code:
adb shell ls /data/b2g/mozilla/
Returns: /data/b2g/mozilla/: Permission denied
This means I dont have reading rights in this directory.
How do I get those rights, or alternativeley is there a better way to achieve my Caldav-Server goal?
Mathews123 said:
Hi, I recently purchased the ZTE Open C and want to synchronize its calendar with my own Caldav server.
Firefox rejects the connection tough, because the server has an invalid (self signed) certificate.
So i tried adding my certificate to firefox.
I found this guide:
http : // wiki . mozfr . org / Adding_CA_to_FirefoxOS
(Sorry for inserted spaces, won't let me post a link in first post.)
However I fail in the very first steps.
Code:
adb shell ls /data/b2g/mozilla/
Returns: /data/b2g/mozilla/: Permission denied
This means I dont have reading rights in this directory.
How do I get those rights, or alternativeley is there a better way to achieve my Caldav-Server goal?
Click to expand...
Click to collapse
You cannot use that method unless your phone is rooted, BUT...
I had the same problem and solved it a lot easier. Just launch the browser and input your server's URL. Then you will be warned about the not valid cert, add a permanent exception and that's all, now calendars should sync over HTTPS.
BTW this worked for me until FFOS v1.4. Today I updated to FFOS 2.1 and this trick stopped working, so you have been warned.
Thank you for the suggestion.
I am not running v2.0, so I tried it.
I could add the certificate.
However, when trying to connect, I get:
"Unknown Error. Please try again later."
Any way to figure out what's wrong now?
Seems to be a problem with the server I used. (Baikal)
Using a different one (Owncloud - sadly quite a lot bigger), it works with your tip.
So thanks for the help.
to ged rid of the "unknown error" in Caldav (etc.?)
doragasu said:
I had the same problem and solved it a lot easier. Just launch the browser and input your server's URL. Then you will be warned about the not valid cert, add a permanent exception and that's all, now calendars should sync over HTTPS.
Click to expand...
Click to collapse
thank you so much :victory:
I am trying to sync the following repo
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
and then
repo sync
my problem is that repo sync stuck at fetching projects 99 percent. After a lot of searching, I found It want to download prebuilt package(~1.3G); however my internet connection interrupt repeatedly.
Bad news is that download resume for this package is not supported. Good news is that I found git save all temporary file in a Packfile internally. In addition, temporary files save in projects/prebuilt.git/objects/pack/ .
is there anybody to know how I can recover incomplete download?
a "repo" consists of 176 "projects", some of them are very large (>100k of objects)
you can only resume sync if some projects are fully downloaded, but others are not.
but you cannot resume an interrupted sync of one big project. here's, a Git manual quote:
"When cloning a large repository (such as KDE, Open Office, Linux kernel) there is currently no way to restart
an interrupted clone. It may take considerable time for a user on the end of a small pipe to download the data, and if the clone is interrupted in the middle the user currently needs to start over from the beginning and try again. For some users this may make it impossible to clone a large repository."
So, if you really want to transfer these files to your machine - you'd better get access to some shell out of your network, transfer files there, and then sync your local PC and that remote shell with some restartable method, such as RSync.
Or even remotely compress all that things in one big archive, and download it to your machine with your favourite download manager.