| Installing funambol and synchronizing |
|
|
| Written by Brendan Johan Lee | |
| Monday, 16 April 2007 00:00 | |
|
DownloadingThe first step is to download funambol. We will be using funambol v3 for this example as it is stable. # wget http://download.forge.objectweb.org/sync4j/funambol-3.0a.bin InstallingRun the installer. # sh funambol-3.0a.bin When prompted choose to install in the /opt directory. Getting it runningFirst edit the following file: # emacs /opt/Funambol/ds-server/config/Funambol.xml Find this code: <void property="serverURI"> and replace it with this: <void property="serverURI"> Next we create a group and a user for funambol to run with, and set a password: groupadd funambol
Now change the owner and group permissions of the funambol folder: # chown -R funambol:funambol /opt/Funambol Now we want to have funambol automatically start when we boot the server. Create a startup file using your editor of choice: # emacs /etc/init.d/funambol
Enter the following script and save (This is quick and dirty work, if you have made a better version please feel free to let me know and I will post it.) #! /bin/sh Now to get it to start at boot time, run the following command: # update-rc.d funambol defaults
Now start the server: # /etc/init.d/funambol start ConfigureNow we'll start configuring the funambol server. Download the funambol admin application. We chose the windows version: http://download.forge.objectweb.org/sync4j/funambol-admin-3.0.9.exe Install the application and start it. Log on to the server you configured, using username/password admin/sa. Make sure to change the password for the admin account, then log on again with the new password. To do this, double-click on «Users», hit «Search», select the admin account and hit «Edit» Now double-click on «Server settings». Change the «Officer:» option to: com/funambol/server/security/DBOfficer.xml
If you don't do this funambol will auto generate users, devices and principals. We of course want to add these manually. Now we add a user for ourselves. Double-click «Users:» and hit «Add:». Make sure you remember the username and password you enter (duh!) and give use Roles: «User:». Setting up your phoneThis is generally for Symbian 3rd edition phones, and N80ie specifically. Other phones would have similar ways of doing it. On your phone go to «Connect.», «Sync». And select «Options»,«New sync profile». When the phone asks you if you want to copy the existing profile, answer «No». Give the profile any name you like: Enter the «Applications» menu. First select «Contacts», change «Include in sync» to «Yes» and enter «card» in «Remote database»:
Hit «Back». Now select «Calendar», change «Include in sync» to «Yes» and enter «cal» in «Remote database». Hit «Back» twice. Now enter «Connection settings». Enter your «Host address» and «Port». Remember the serverURI we entered while getting funambol running? This is what we are talking about. So in our example we would enter Host address: http://your.server.com/funambol/ds and Port: 8080
Next enter «User name» and «Password». Use the same username and password that you added to funambol earlier. I also choose to change «Accept all sync reqs.» to «Yes» for my own convenience, but this is optional. You can also change the access point to a specific access point if you only want to use one. Leave all other settings alone though. Hit «Back» twice. Now choose «Options», «Synchronize» on the sync profile you just created. You will get an error stating that you have entered an invalid username and password.
Now go back to the funambol admin tool. Double-click on «Devices» and hit «Search». You should now be able to se a device called IMEI: in the list. Double-click on «Principals» and hit «Add». Under the user column hit «Search» and click on the username that you specified earlier. Under the device column hit «Search» and select the IMEI item you found in the last step. Hit «Add Principal» Back on your phone choose «Options», «Synchronize» on the sync profile you created earlier. This time the phone should synchronize properly.
Setting up outlookInstall the funambol outlook plug-in. We chose version 6 beta as it adds Outlook 2007 support: http://download.forge.objectweb.org/sync4j/funambol-outlook-plugin-6.0.7.exe Start outlook. On the menu choose «Funambol», «Options...». Under «Account», «Location» enter the url of your server. (In our example http://your.server.com:8080/funambol/ds) Enter the same username and password that we created earlier and used on our phone.
Under «Sync», «Items» make sure that «Contacts» and «Calendar» are checked.
First hit «Details» next to Contacts and change «Remote name» to card and «Data format» to vCard.
Next hit «Details» next to Calendar and change «Remote name» to cal and «Data format» to iCal. If you like you can also tell outlook to automatically sync. You may also check «Notes» and «Tasks» to be synchronized (nice if you have more than one computer running outlook), but these will not synchronize on your phone. Finally Hit «OK». Now click on the «Sync All» button. You will receive an error message stating that you have entered an invalid username or password.
Go back to the funambol admin tool. Follow the same procedure we used to add a principal between your IMEI and your user account. But this time you should find a device that starts with «fol» or similar. Go back in outlook and hit «Funambol», «Sync All». This time the plug-in should synchronize properly, and all of the contacts and calendar items that were on your phone should be available in outlook. Congratulations! You server is now online and you should be able to sync your outlook and your phone whenever you like. You should also be able to add additional devices by following the procedures we used above. You can also add additional users if you like so that everybody you know (or who works for you) can synchronize their devices. |










