Поиск по этому блогу

среда, 16 октября 2013 г.

SyncML funambol server install on Ubuntu 10,04 server

Версия установленной ОС >> file /sbin/init
Установка Java 

sudo add-apt-repository ppa:sun-java-community-team/sun-java

sudo apt-get update
sudo aptitude install sun-java6-bin sun-java6-jre 

Далее по инструкции

for the 32 bit version: 
~$ wget http://software.rachaelbond.com/funambol-8.5.2.bin 

or for the 64 bit version: 
~$ wget http://software.rachaelbond.com/funambol-8.5.2-x64.bin 

Install the software using: 
~$ sudo sh funambol-8.5*.bin 

and then delete the installation file: 
~$ sudo rm funambol-8.5*.bin 

By default Funambol will be installed in /opt/Funambol.
A different directory may be selected but for the rest of this article I will assume that the default location has been used. 

Next edit this file: 
~$ sudo nano /opt/Funambol/bin/funambol 

and insert these two lines at the head of the file directly beneath the first line (“#!/bin/sh”): 

export JAVA_HOME=”/usr/lib/jvm/java-6-sun”
export JRE_HOME=$JAVA_HOME 

Change the following lines to read as shown: 

line 18: export JAVA_HOME=$FUNAMBOL_HOME/tools/jre-1.6.0/jre
line 21: export JAVA_HOME=$FUNAMBOL_HOME/tools/jre-1.6.0/jre
line 45: COMED=false 

and save the new version of the file. 

The change to line 45 stops Funambol from trying to use a Hypersonic database since Ubuntu uses MySQL.

As it’s not now required Funambol’s Hypersonic directory may be removed: 
~$ sudo rm -rf /opt/Funambol/tools/hypersonic 

Remove Funambol’s inbuilt Java: 
~$ sudo rm -rf /opt/Funambol/tools/jre* 

and replace with a symlink to Ubuntu’s own Java runtime: 
~$ sudo ln -s /usr/lib/jvm/java-6-sun /opt/Funambol/tools/jre-1.6.0 

Change into this directory: 
~$ cd /usr/lib/jvm/java-6-sun/jre/lib/ext 

and download the Funambol MySQL connector from here or by using: 
~$ wget http://software.rachaelbond.com/mysql-connector-java-5.1.7-bin.jar 

To tell Funambol to use MySQL edit this file: 
~$ sudo nano /opt/Funambol/ds-server/install.properties 

and change line 24 to read: 
dbms=mysql 

Uncomment lines 55-59 and comment out lines 63-67.

Create a MySQL database and change lines 55-59 as needed. 
For my installation this is: 
jdbc.classpath=/opt/Funambol/tools/jre-1.6.0/jre/lib/ext/mysql-connector-java-5.1.7.bin.jar
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost/MYSQL_DATABASE_NAME
jdbc.user=MYSQL_DATABASE_USER
jdbc.password=MYSQL_DATABASE_PASSWORD 

Save the file. 

If Tomcat is already installed on the server change the port on which Funambol’s inbuilt Tomcat 5.5 listens. 

Edit the file: 
~$ sudo nano /opt/Funambol/tools/tomcat/conf/server.xml 

and change line 68 to any port other than 8080, for example: 

Ensure that the new port is open in the server’s firewall. 

The setup may be completed by running: 
~$ sudo /opt/Funambol/bin/install 

Answer “Y” to every question unless your MySQL database is already populated with data, in which case answer “N”. 

The installation may now be checked by opening a web browser and going to: http://YOUR_SERVER:8080 or http://YOUR_SERVER:8181 if you have changed the Tomcat port. 
If Funambol has been installed on a local machine then YOUR_SERVER is “localhost”. 

Hopefully everything will be running smoothly! 

To prevent conflicts in Evolution with the Ubuntu One server remove this package: 
~$ sudo aptitude remove evolution-couchdb 

and replace it with: 
~$ sudo aptitude install syncevolution-evolution sync-ui 

Plugins for other email clients can be downloaded from Funambol here, while apps for mobile phones may be found here. 


Источник http://blog.rachaelbond.com/funambol/ и другие

Комментариев нет:

Отправить комментарий