Saturday, March 31, 2007

Synchronizing Sony Ericsson K320i Calendar with Evolution Calendar

Sorry for the long absence, I'm quite busy with my studies and project works .. well its that time of the semester again .. *sigh

As promised , here is a simple howto for synchronizing Sony Ericson K320i with Ximian Evolution

Step 1: Getting the packages

  • multisync

  • libsyncml

  • bluez-utils

  • libopensync-plugin-evolution2

  • libopensync-plugin-syncml


All of these packages can be acquired from Fedora repositories except for libopensync-plugin-syncml which you can follow this guide to install it or until somebody push it into the repositories. If you would like a GUI for multisync, yum for multisync-gui. In this guide, however, I'll cover the console based set-up only.

Step 2: Setting up a multisync group

First, create a multisync group that will contain a member from evolution2 plugin and a member from syncml plugin. In this example I name the group SyncMe

msynctool --addroup SyncMe
msynctool --addmember SyncMe evo2-sync
msynctool --addmember SyncMe syncml-obex-client


Step 3: Configuring the SyncML plugin

Now to configure the SyncML plugin. You will need 2 informations for this.
  • You phone's Bluetooth MAC address

  • The channel where SyncML OBEX Client is listening on you phone


Getting you phone's MAC address

Turn on Bluetooth discovery on your phone. From the PC use hcitool to scan for your phone's MAC.

$ hcitool scan
Scanning ...
xx:xx:xx:xx:xx:xx K320i


The xx:xx:xx:xx:xx:xx is your phone's MAC address. Copy it and paste it somewhere.

Getting the SyncML OBEX Client Channel

$ sdptool browse xx:xx:xx:xx:xx:xx


From the output, find the block that look similar like this

Service Name: OBEX SyncML Client
Service RecHandle: 0x00000
Service Class ID List:
UUID 128: 00000000-0000-0000-0000-0000ee000000
Protocol Descriptor List:
"L2CAP" (0x0000)
"RFCOMM" (0x0000)
Channel: 11
"OBEX" (0x0000)


Take the channel number and remember/paste it somewhere.

Configuring the plugin

Run this to open a Vi session for editing the SyncML plugin config

msynctool --configure SyncMe 2


Edit the config. Put your phone's MAC address into the bluetooth_address tag and the SyncML OBEX Client channel into bluetooth_channel tag.

Set also the wbxml tag to the value 1 and the type tag to 2. For the calendar tag, change the value from calendar to agenda.

You configuration should look somehow like this after editing

<?xml version="1.0"?>
<config>
<!-- (Only for blue) The bluetooth address if the bluetooth mode is selected -->
<bluetooth_address>xx:xx:xx:xx:xx:xx</bluetooth_address>

<!-- (Only for blue) The bluetooth channel to use (usualy the 11) [x] -->
<bluetooth_channel>11</bluetooth_channel>

<!-- (Only for USB) The usb interface number of the SYNCML-SYNC target. use syncml-obex-client -u (as root!) to find it. -->
<interface>0</interface>

<!-- The string that the plugin will use to identify itself. Some devices need a special string here. -->
<identifier></identifier>

<!-- The syncml version to use: 0 for 1.0, 1 for 1.1 and 2 for 1.2 -->
<version>1</version>

<!-- if the plugin should use wbxml -->
<wbxml>1</wbxml>

<!-- The username to use. Leave empty to not require a username -->
<username></username>

<!-- the password for the username -->
<password></password>

<!-- sets the connection type to use. 5 means obex over usb, 2 means obex over bluetooth -->
<type>2</type>

<!-- If wbxml is enabled, defines wether the wbxml should use string tables -->
<usestringtable>0</usestringtable>

<!-- Never send ADD command, but send REPLACE (not needed normally) -->
<onlyreplace>0</onlyreplace>

<!-- Sets the maximum allowed size in bytes of incoming messages (some device need this option set). Example: 10000 -->
<recvLimit>0</recvLimit>

<maxObjSize>0</maxObjSize>

<!-- The name of the contacts db. Must be the same as the phones sends -->
<contact_db>contacts</contact_db>

<!-- The name of the calendar db. Must be the same as the phones sends -->
<calendar_db>agenda</calendar_db>

<!-- The name of the note db. Must be the same as the phones sends -->
<note_db>notes</note_db>
</config>


Synchronizing

Now that the configuration is done, you can sync your phone's calendar with Evolution's calendar by running this command.

msynctool --sync SyncMe


Done~. Your calendars should be synchronized after that.

Btwm there are some problems I'm facing with the sync process. For the contact sync, your contacts might be duplicated a lot of times (which annoys me and made me disable contact syncing altogether). Another problem is that the TODO sync doesnt work, and I get write error sometimes.

If anybody got a workaround for this , please tell me kay :D.

References
http://en.opensuse.org/OpenSync/SyncML-OBEX-Client
http://www.gentoo.org/doc/en/bluetooth-guide.xml
http://www.harald-hoyer.de/linux_and_syncml_multisync_with_nokia_6280
http://blog.dukanovic.com/?p=5

Tuesday, March 20, 2007

SonyEricsson k320i

I just got myself a sony Ericsson k320i last sunday. My old phone was seriously out-of-shape and I think its time for me to change it.

With a price tag of RM438, heres what I got

- Bluetooth
- Java support
- IRda support
- 15MB storage
- USB connectivity
- GPRS/MMS support
- VGA camera
- MP3 player

More information about the phone here

I just succeeded syncing it with Evolution, I'll be posting a howto for it in my next post.

Saturday, March 10, 2007

Mugshot : A Social Network For FOSS User

Fedora users might have heard about it, but not other FOSS users. I think I'm going to help them with some promotion :D

Heres the link to Mugshot Website.


Mugshot makes it easy to show off what you're doing online and keep track of what your friends are up to. Learn more about what you can do with Mugshot at the features page.

Mugshot is designed and developed in the context of an open source community project. For information on how you can contribute, visit our developer site and our blog.


So, what do it offers?
  • A place where you can view Blog, Digg, YouTube, Myspace, (and much more) activities of your friends all in one page.

  • Desktop integration with Mugshot's Desktop Stacker

  • some more fancy stuff


For the list of features, go here -> http://mugshot.org/features

There are 2 things that I love in mugshot. One is the Desktop Stacker, and the other one, which I just discovered, a group chatroom!! Below are a screenshot for each

Mugshot Desktop Stacker


Mugshot Group ChatRoom


Musghot also provide a Flash widget for your blog or website. And here's mine (I couldnt get it to fit my blog navbars)






So, feel interested?. Come and Sign Up NOW!

Friday, March 09, 2007

Sun Tech Days : University World Tour

My Object Oriented Programming class had a field trip to Sun Tech Day's University World Tour yesterday. It was quite fun for me (considering its free + got a lot of freebies + a free transport home for the mid-sem break).

There was 5 topics on the event
  • What you need to know as a student today: The Next 10 years - by Matt Thompson
    Quite okay talks about what students should grasp in the OpenSource world. How open source fast development can benefit students etc what the web offers for future developers. Nothing much new to me because I'm already in the Free/OpenSource world. Another point of interest was the info about parallel programming will be more important in the future because processors wont go faster but instead it will be denser. And thats something extremely important for future developers.

  • Java and NetBeans Demo's You Shouldn't miss - by Angela Caicedo
    This one was fun to watch. Some demos of Java on non-PC platforms (a.k.a toys). I has been taking Java as a bulky language that eat lots of processor power but after looking at the demo, I think I'll take that back .. haha .. but still .. one of the program she shown (a server program that control a remote buggy bot) hog her processor.. The demo of Looking Glass is also a little bit lagging - Compiz/Beryl is better :P.

  • OpenSolaris for beginners - Peter Karlson
    Considering I'm a linux user, this session is quite fun for me as I got to know another *nix. The demo of Branded Zone was impressive and interesting to me. And I got a Solaris Express DVD from Peter (I was curious about BrandZ and asked some questions about it from Peter).

  • Java Puzzles: If only all learning could be as much fun! - Michael Li
    Some quizzes on finding errors in a Java code, its fun, informative, and fun :P. The quizzes were not that hard if you've been programming Java/C++/Python for a while because they are mostly OOP concepts. I got a free T-shirt in this session (wee~~)

  • Enhancing Employability: The Power Of Sun - Gerald Ng
    Erm .. how to put it .. this session was boring .. haha .. I dont listen to it much ..


Overall the event was fun and informative, however , as Aizat Faiz pointed out, they should give more attention to Free Software and the community around it. Local FOSS groups/developers should also be given chance to talk in the event.

The freebies I got:
  • A Sun Microsystem ballpoint pen - with green lights!!

  • T-Shirts
    • A white T-Shirt - got after messing around during the Duke mascot joke session

    • A black Sun T-Shirt - From the Java Puzzles

    • An orange University World Tour T-Shirt - Everyone got it


  • DVDs
    • Open Solaris Starter Kit
      • I-learn DVD - contains Nexenta OS , Belenix , SchilliX liveCDs

      • I-Install DVD - contains Solaris Express Community Release b54, Nexenta OS Alpha 6 Install, OpenSolaris Source, Sun Studio 11.

    • Solaris Express Developer Edition - Thanks Peter!


On a sidenote, I got to meet my childhood friend from Shah Alam UiTM there. Haven't see her for quite a while considering I've been studying away from home since 4 years ago and when I'm at home I seldom goes out. I also met with Aizat Faiz not long after our session ended but not for long considering he still had more talks to join.

Tuesday, March 06, 2007

Just created a Fedora Account

I just created an account in FedoraProject today ... Still thinking on what group to join for contributions ... Anybody want to give suggestion?

Friday, March 02, 2007

What do I see in the Fedora LiveCD-Creator project

I have been playing around with livecd-creator for a while now. And these are some possibilities that I can see from the project + the custom distro project.

  • Flexibility in creating customized liveCD (obvious)
  • A lot of Live distros based on Fedora will be emerging in the OpenSource world
  • Fedora will become a root for possibly a distro that can succeed in market more that itself
  • and best of all - the LiveDistros won't be needing to host ISOs!!


Flexibility in creating a customized liveCD

This is the most obvious reason of all. The livecd-creator script uses a simple and easy to understand config file (which actually is a bash script - and theres a plan to move to kickstart) to generate the liveCD. Basically any user who have experience installing gentoo from stage1/stage2 or installing fedora into chroot can get the hang it in no time. The config also is not that hard to understand if you are a newbie. Its quite easy to customize it if you know bash/sh scripting.

A lot of Live distros based on Fedora will be emerging in the OpenSource world

Easy to do = lots of people will play with it

Fedora will become a root for possibly a distro that can succeed in market more that itself

Day by day I see Fedora growing in term of code maturity and community. With the right tools and the right person to lead the way, we might be able to see children of Fedora that can make their parent proud.

LiveDistros won't be needing to host ISOs!!

Ok, now this is what I love so much when playing around with livecd-creator. The livecd-creator script stores the configs and customization stuff for the LiveCD inside a RPM package. Therefore, new distributors can simply host that RPM package, and let users who interested to use it to generate the LiveCD themselves .. with latest packages and updates!!!!

Imagine this, a student who just started to get into distro development has created a LiveCD using the livecd-tools. He dont have enough money to find hosting for the ISO images. He just upload the RPM into his blog, and interested users can simply get his liveCD by generating it themselves!!

The distributor also does not need to worry about getting sources of all the packages he/she used for his distro to meet with GPL requirement. He/she only created and distributed the config that define the distro, other packages are fetch directly from online repositories (which already have the sources) by the user/person who generate the ISO image. So, considering the distributor does not distribute the other packages, he/she does not need to provide their sources. Providing the source for the config RPM is enough to fulfill the requirement. (I might be wrong in this opinion, please correct me if I am)

=======

I enjoy seeing this development, and it makes me happy becoming a Fedora user. To the Fedora Team , good job!! . And thanks a lot for giving me a GREAT distro!. <(^-^)>