Funambol

From Jon's Wiki

Install the Funambol server

Go to the Funambol downloads page: https://www.forge.funambol.org/download/ and download the Server and the Admin tool. Run the server installer and install it to /opt when it asks:

sudo bash funambol-8.0.0.bin

Edit the Funambol config file:

sudo vi /opt/Funambol/config/Funambol.xml

Find the serverURI setting and add your Funambol server URL (to change the port, you'll need to tweak the Tomcat config):

<void property="serverURI">
  <string>http://yourserver:8080/funambol/ds</string>
</void> 

Create the funambol group and user:

sudo groupadd funambol
sudo useradd -c "Funambol sync user" -g funambol -m funambol
sudo passwd funambol 
sudo chown -R funambol:funambol /opt/Funambol

Set up the /etc/init.d/funambol script with the following:

#! /bin/sh
set -e

FUNAMBOLPATH='/opt/Funambol'

case "$1" in
start)
    echo -n "Starting funambol server"
    start-stop-daemon --start --quiet --chuid funambol --exec $FUNAMBOLPATH/bin/funambol start
    echo "."
;;

stop)
    echo -n "Stopping funambol server"
    kill -9 `ps -ef|grep funambol|grep -v grep|awk '{print $2}'`
    echo "."
;;

reload|force-reload)
    echo -n "Reloading funambol server"
    kill -9 `ps -ef|grep funambol|grep -v grep|awk '{print $2}'`
    start-stop-daemon --start --quiet --chuid funambol --exec $FUNAMBOLPATH/bin/funambol start
    echo "."
;;

restart)
    echo -n "Reloading funambol server"
    kill -9 `ps -ef|grep funambol|grep -v grep|awk '{print $2}'`
    start-stop-daemon --start --quiet --chuid funambol --exec $FUNAMBOLPATH/bin/funambol start
    echo "."
;;

*)
    echo "Usage: /etc/init.d/ssh {start|stop|reload|force-reload|restart}"
    exit 1
esac

exit 0

Start the service:

sudo update-rc.d funambol defaults
sudo /etc/init.d/funambol start 

Configure using the admin tool

Unzip the admin tool somewhere and run it:

cd /opt
sudo tar -zxf funambol-admin-8.0.0.tgz
export JAVA_HOME=/usr/lib/jvm/java-6-sun
sudo /opt/Funambol/admin/bin/funamboladmin

Continue on from part 3 of the HOWTO here: http://www.gsmblog.net/installing-funambol-and-synchronizing/part3

References