I love Ubuntu Touch and have been using it on a LG Nexus 4 for a couple of months.
Now that my real Ubuntu phone has arrived in the shape of a BQ Aquaris 4.5 Ubuntu Edition, it is time to properly connect it to my address book and calendars which I have on ownCloud (thanks to Eliwan).
Ubuntu is a great operating system for the smartphone. One of the extra attractions is the ability to be avoid disclosing private information to one of big IT companies like Apple, Google or Microsoft.
Unfortunately though, there is no user interface (should I say ‘app’) yet to enter the necessary configuration. You have to do this using the shell at this moment.
- From the configuration app select ‘About this phone’ and then (at the bottom) ‘Developer mode’. Switch it on.
- From a Ubuntu PC, run “adb shell”. If adb is not available it will tell you how to install it. If you don’t have a Ubuntu PC you can run the commands below from the shell app.
- Create your ownCloud connection:
syncevolution --configure --template WebDAV username=yourUserName password=yourPassWord syncURL=https://me.eliwan.net/cloud/remote.php/ keyring=no target-config@owncloud
Replace ‘yourUserName’ with your username and ‘yourPassword’ with your password. The ‘https://me.eliwan.net/cloud’ should be replaced by your ownCloud root.
- To sync your contacts:
syncevolution --configure database=https://me.eliwan.net/cloud/remote.php/carddav/addressbooks/yourUserName/contacts backend=carddav target-config@owncloud myaddressbook syncevolution --configure --template SyncEvolution_Client sync=none syncURL=local://@owncloud username= password= owncloud syncevolution --configure sync=two-way backend=addressbook database= owncloud myaddressbook syncevolution --sync slow owncloud myaddressbook
Replace ‘yourUserName’ with your username. The ‘https://me.eliwan.net/cloud’ should be replaced by your ownCloud root.
- To sync your personal calendar:
syncevolution --configure \ database=https://me.eliwan.net/cloud/remote.php/caldav/calendars/yourUserName/calendarName/ \ backend=caldav \ target-config@owncloud calendar-calendarName syncevolution --configure sync=two-way backend=calendar database= owncloud calendar-calendarName syncevolution --sync slow owncloud calendar-calendarName
You can verify the link using the chain icon (CalDAV link) in the user interface.
Replace ‘calendarName’ with the name of your calendar and ‘yourUserName’ with your username. The ‘https://me.eliwan.net/cloud’ should be replaced by your ownCloud root. - To create and sync additional calendars, you have to make sure an extra calendar is created and linked:
syncevolution --configure \ database=https://me.eliwan.net/cloud/remote.php/caldav/calendars/yourUserName/calendarName/ \ backend=caldav \ target-config@owncloud calendar-calendarName syncevolution --create-database backend=calendar database=LocalName syncevolution --configure backend=calendar database=LocalName @default LocalName syncevolution --configure sync=two-way backend=calendar database=LocalName owncloud calendar-calendarName syncevolution --sync slow owncloud calendar-calendarName
‘LocalName’ needs to be replaced with the name you want for the calendar in the calendar app.
You can verify the link using the chain icon (CalDAV link) in the user interface.
Replace ‘calendarName’ with the name of your calendar and ‘yourUserName’ with your username. The ‘https://me.eliwan.net/cloud’ should be replaced by your ownCloud root.
There is one minor glitch I see at this moment. The ‘all-day events’ are currently visible in the calendar in both the day itself and the following day.
If you want to add the calendar app to the launcher which is displayed when swiping from the left you should open the app, then swipe from the left (all across the screen) to make sure the launcher stays on screen. With the calendar open the calendar icon should be there. Now indicate and hold the calendar item. This should display a little menu with the item ‘pin shortcut’. Select that.
Presto.