SyncML server

Tell us your most wanted features from QNAP products.
svn
Getting the hang of things
Posts: 63
Joined: Mon Oct 20, 2008 3:24 am

Re: SyncML server

Post by svn »

Ok, for everybody who wants to run Funambol on a ARM device (you need at least 256 MB ram, I doubt if that works, better have 512 MB) i've done the following:

1 INSTALL JAVA

* place the file ejre-1_6_0_10-fcs-b42-linux-armv5-sflt-eabi-headless-10_jun_2010.tar.gz in the Public directory
* instal JRE 6 QPKG for ARM on the NAS
* enable the JRE QPKG from the NAS admin console

2 INSTALL FUNAMBOL

* Change the administration port number from 8080 to 8090 (funambol uses 8080)
* Copy the funambol bin file to the QNAP Pubilc folder
* login to your nas with telnet or ssh
* go to the MD0_DATA share (on TS219p): # cd /share/MD0_DATA
* Make an opt directory: # mkdir opt
* Install funambol (note: there could be a new version): # /share/Public/funambol-8.0.2.bin
* You will see a License agreement, agree to the license terms.
* modify the install directory to: /share/MD0_DATA/opt
* Funambol starts to install the server, you may get an error message about a checksum, ignore it.
* It finally asks if you want to run the server, answer no
* Copy the startup script: # cp /share/MD0_DATA/opt/Funambol/bin/funambol /etc/init.d/
* Modify the startup script: # vi /etc/init.d/funambol
* Change line 4 to, FUNAMBOL_HOME=/share/MD0_DATA/opt/Funambol
* Exit vi: (ESC) :wq
* Now you can start and stop the server
* To start: # sh /etc/init.d/funambol start
* You can check if the service is running by typing 'ps -a | grep funam', you will see something like this:
[/share] # ps -a | grep funam
1454 admin 528 R grep funam
24214 admin 27960 S /usr/local/jre/bin/java -Dfile.encoding=UTF-8 -Dfunam
24242 admin 69824 S /usr/local/jre/bin/java -Xmx512M -Dfunambol.debug=fal
24254 admin 30852 S /usr/local/jre/bin/java -Dfile.encoding=UTF-8 -Dfunam
24269 admin 29404 S /usr/local/jre/bin/java -Dfile.encoding=UTF-8 -Dfunam
* You can download and install funambol admin for windows to manage the funambol server
* To stop the service: # sh /etc/init.d/funambol stop

3 START FUNAMBOL AT BOOT
well, this part wasn't working for me.. so please help :)

If you want the server to start at boot, you need to add some lines at the end in /etc/config/qpkg.conf :

[Funambol]
Name = Funambol
Version = 8.0.2
Enable = TRUE
Shell = /share/MD0_DATA/opt/Funambol/bin/funambol

An funambol icon will show in the QPKG admin page!

As you can see I merged the instructions for installing JRE and Tobbe's instruction. For running funambol in the background I still have no sollution. I see the icon in de QPKG admin page, but after boot Funambol isn't running :'(
svn
Getting the hang of things
Posts: 63
Joined: Mon Oct 20, 2008 3:24 am

Re: SyncML server

Post by svn »

Hi guys!

I'm getting pretty desperate by now. I'm out of ideas, the solution by adding the funambol script to the qpkg.conf is not working for me, I guess because you have to give "start" command and I'm not sure if this is done. so I tried the following:

- add a line to the autorun.sh (not working):
sh /share/MD0_DATA/opt/Funambol/bin/funambol start

- tried to use daemon_mgr:
/sbin/daemon_mgr funambol start "/share/MD0_DATA/opt/Funambol/bin/funambol start &"

the last one seems to do someting, it starts funambol directly and puts a daemon in the /etc/daemon_mgr.conf. But as soon as I exit the ssh session, funambol also goes down.... AAAARGH!!! I'm about to burst in tears!!! Can someone tell what I'm doing wrong???


Best regards, Sven
pilzinho
First post
Posts: 1
Joined: Wed Mar 03, 2010 5:14 am

Re: SyncML server

Post by pilzinho »

i finally got funambol to work on my 219p and thought i post my approach here since i too encountered lots of the problems mentioned here in the forums.
since the "simple groupware" is mentioned as a prerequisite i went over to there web site:
http://www.simple-groupware.de/cms/
and there one can find very good documentation about installing simple groupware as well as the integration with funambol :)

start here: http://www.simple-groupware.de/cms/Installation
there's a point: "Installation with Linux (e.g. Debian 4/5)". that's what you wanna do.
copy the 'sgs_installer.php' file to <QWeb>/sgs and open the file in your browser. make sure that the directory is writeable.
i then got an error message like this: "Error: file-check [2]".
if it happens to you too just open the 'sgs_installer.php' file in an editor and search for 'file-check'.
then uncomment the file size check like this:
if (!file_exists($source) /*or filesize($source) < 5*1024*1024*/)
like mentioned in this forum post:
http://groups.google.com/group/simple-g ... 1fbb1c8962
after all that everything should install just fine and simple groupware is up and running.

then head over to the syncml server installation guide:
http://www.simple-groupware.de/cms/InstallationSyncML
there's a point called "Installation with Linux and MySQL (Funambol v7/v8)". just follow these instructions.
download the newest linux server bundle from funambol.
install it like described by svn two posts back.
then follow the instructions on the simple groupware page again.
make sure to set the same mysql porperties (especially the database) for funambol as you did for simple groupware.

and all that finally did it for me. i already synced my contacts from thunderbird to the server and now trying
to get it to work on my ipod touch.
connector programs as well as further documentation can be found on the funambol website.

for further info on funambol its best do download the "Funambol Installation and Administration Guide" from here:
https://www.forge.funambol.org/download ... #runserver
tacitus
New here
Posts: 7
Joined: Sun Dec 25, 2011 6:42 pm

Re: SyncML server

Post by tacitus »

Hi there!

I installed funambol (new version 10.0.3) on my qnap 419p... it works fine... till I log out with the ssh- shell, then the funambol server stopped :(
I have to login with ssh again and start the server ...and so on.
Are there any solutions to keep the server running?!

Thanks a lot!

Tacitus
ththth000
First post
Posts: 1
Joined: Mon Dec 26, 2011 3:45 pm

Re: SyncML server

Post by ththth000 »

add a line to the autorun.sh (not working):
sh /share/MD0_DATA/opt/Funambol/bin/funambol start

http://www.lv000tw.com
tacitus
New here
Posts: 7
Joined: Sun Dec 25, 2011 6:42 pm

Re: SyncML server

Post by tacitus »

OK... where can in access this autorun.sh? (and I thought this is not working?!)

...and maybe you missunderstood me: My problem is not to start the server after reboot, but to keep funambol running after I closed the ssh- session.
So I login with ssh, start funambol (sh /etc/init.d/funambol start) and funambol is working. When I close the ssh funambol did NOT keep running?! :(

Thanks for help!

...meanwhile I installed the Simple Groupware Server... this works really fine!
tacitus
New here
Posts: 7
Joined: Sun Dec 25, 2011 6:42 pm

Re: SyncML server

Post by tacitus »

...solved

To run funambol after closing ssh:

1) you nee nohup:
after installing ipkg thru QPKG
Login with ssh:
# ipkg install coreutils

2) # nohup sh /etc/init.d/funambol start

3) close ssh

...funambol is still running (til next reboot :))
tacitus
New here
Posts: 7
Joined: Sun Dec 25, 2011 6:42 pm

Re: SyncML server

Post by tacitus »

Hi!

Maybe this is a solution to start and stop funambol automaticly (written in German for Qnap 419p):

http://www.apaulsen.de/technik-programm ... oppen.html

Tacitus
Post Reply

Return to “Features Wanted”