{"id":324,"date":"2010-06-10T18:11:19","date_gmt":"2010-06-10T18:11:19","guid":{"rendered":""},"modified":"2012-05-30T10:53:05","modified_gmt":"2012-05-30T10:53:05","slug":"funambol-pierwsze-uruchomienie","status":"publish","type":"post","link":"https:\/\/drfugazi.eu.org\/en\/funambol-pierwsze-uruchomienie\/","title":{"rendered":"Funambol &#8211; pierwsze uruchomienie"},"content":{"rendered":"<p><a href=\"https:\/\/www.funambol.com\/\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.funambol.com\/images\/logo.png\" style=\"float: right;\" data-recalc-dims=\"1\" \/><\/a><br \/>\nOK. Zak\u0142adam, \u017ce mamy zainstalowany serwer Funambol, tak jak opisa\u0142em <a href=\"\/en\/content\/funambol-pierwsze-podejscie\">tutaj<\/a>. Nadszed\u0142 czas na uruchomienie serwera. Prosz\u0119 wej\u015b\u0107 do katalogu Funambol (domy\u015blnie: \/opt\/Funambol) i wykonaj polecenie:<br \/>\n<code># .\/bin\/funambol start<\/code><br \/>\nje\u015bli masz szcz\u0119\u015bcie to serwer wystartuje, ale na Solarisie trzeba zmodyfikowa\u0107 skrypty startowe, gdy\u017c prawdopodobnie zobaczysz taki komunikat:<\/p>\n<pre>.\/bin\/funambol: J2EE_HOME=\/opt\/Funambol\/tools\/tomcat: is not an identifier<\/pre>\n<p>i zn\u00f3w &#8211; jest to problem kompatybilno\u015bci pow\u0142ok pomi\u0119dzy Linuxem a Unixem. Osobi\u015bcie uwa\u017cam jednak, \u017ce deweloperzy Funambola powinni poprawi\u0107 to tak, aby dzia\u0142a\u0142o na obu systemach, wystarczy w miejsce:<\/p>\n<pre>export J2EE_HOME=${FUNAMBOL_HOME}\/tools\/tomcat<\/pre>\n<p>wstawi\u0107 co\u015b takiego:<\/p>\n<pre>J2EE_HOME=${FUNAMBOL_HOME}\/tools\/tomcat\r\nexport J2EE_HOME<\/pre>\n<p>to rozwi\u0105zuje powy\u017cszy problem, kolejny to:<\/p>\n<pre>OS=$(uname)<\/pre>\n<p>powinno by\u0107:<\/p>\n<pre>OS=`uname`<\/pre>\n<p>to oczywi\u015bcie jest przyk\u0142ad, bo jest wi\u0119cej wyst\u0105pie\u0144 tego typu polece\u0144 i je\u015bli chcesz, mo\u017cesz je poprawi\u0107, ale ja po prostu zdecydowa\u0142em si\u0119 zmieni\u0107 wywo\u0142anie pow\u0142oki w pierwszych liniach skrypt\u00f3w. Znajd\u017amy zatem skrypty w katalogach <b>bin<\/b> i <b>admin<\/b>:<\/p>\n<pre># find bin admin -type f -exec file {} \\;|grep shell\r\nbin\/xml-to-wbxml:       executable shell script\r\nbin\/admin-passwd:       executable shell script\r\nbin\/inbox-listener:     executable shell script\r\nbin\/funambol-server:    executable shell script\r\nbin\/encrypt-passwords:  executable shell script\r\nbin\/pim-listener:       executable shell script\r\nbin\/patch:      executable shell script\r\nbin\/install:    executable shell script\r\nbin\/funambol:   executable shell script\r\nbin\/hypersonic: executable shell script\r\nbin\/ctp-server: executable shell script\r\nbin\/wbxml-to-xml:       executable shell script\r\nbin\/install-modules:    executable shell script\r\nadmin\/bin\/unix\/funamboladmin:   executable shell script\r\nadmin\/bin\/funamboladmin:        executable shell script\r\nadmin\/platform6\/lib\/nbexec:     executable shell script<\/pre>\n<p>z katalogu <b>admin<\/b> b\u0119dziesz potrzebowa\u0107 tylko <b>admin\/bin\/funamboladmin<\/b>, ale ten skrypt wygl\u0105da dobrze, poza tym b\u0119dziesz prawdopodobnie uruchamia\u0107 go na swoim desktopie, wi\u0119c nie trzeba go zmienia\u0107. Nale\u017cy wi\u0119c poprawi\u0107 skrypty znajduj\u0105ce si\u0119 w katalogu <b>bin<\/b>, a zatem:<\/p>\n<pre>\r\n# find bin -type f -exec file {} \\; | grep shell | cut -d: -f1 > mod.txt\r\n# for a in `cat mod.txt`; do gsed -i \"s\/#\\!\\\/bin\\\/sh\/#\\!\\\/bin\\\/bash\/\" $a; done\r\n# gsed -i \"s\/ sh \/ bash \/g\" bin\/funambol\r\n# gsed -i \"s\/ sh \/ bash \/g\" bin\/funambol-server\r\n<\/pre>\n<p><i>pami\u0119taj, \u017ce <b>gsed = GNU sed<\/b>, je\u015bli nie masz takowego to sugeruj\u0119 rozwa\u017cy\u0107 instalacj\u0119 kilku narz\u0119dzi GNU<\/i><br \/>\nczas aby uruchomi\u0107:<\/p>\n<pre>\r\n# .\/bin\/funambol start\r\n# ps -ef|grep -v grep|grep -i funambol\r\n    root 16346 25522   0 17:55:10 pts\/1       0:03 \/usr\/java\/bin\/java -Dfile.encoding=UTF-8 -Dfunambol.home=\/opt\/Funambol -Djava.n\r\n    root 16378 25522   0 17:55:10 pts\/1       0:03 \/usr\/java\/bin\/java -Dfile.encoding=UTF-8 -Dfunambol.home=\/opt\/Funambol -Dfunamb\r\n    root 16373 25522   0 17:55:10 pts\/1       0:03 \/usr\/java\/bin\/java -Dfile.encoding=UTF-8 -Dfunambol.home=\/opt\/Funambol -Dfunamb\r\n    root 16367 25522   0 17:55:10 pts\/1       0:14 \/usr\/java\/bin\/java -Xmx512M -Dfunambol.debug=false -Dfunambol.home=\/opt\/Funambo\r\n# netstat -an|grep 8080\r\n      *.8080               *.*                0      0 49152      0 LISTEN\r\n<\/pre>\n<p>wygl\u0105da jakby dzia\u0142a\u0142o, dobra robota \ud83d\ude42<br \/>\nTeraz aby zweryfikowa\u0107, \u017ce Us\u0142uga Synchronizacji Danych dzia\u0142a, uruchom przegl\u0105dark\u0119 i wejd\u017a na adres URL http:\/\/nazwa_serwera:8080\/funambol. Powinna si\u0119 pojawi\u0107 strona testowa Us\u0142ugi Synchronizacji Danych. Mo\u017cesz zalogowa\u0107 si\u0119 do Klienta Demo u\u017cywaj\u0105c &#8216;guest&#8217; jako loginu i has\u0142a.<br \/>\nNast\u0119pny etap to uruchomienie Funambol Administration Tool, ja uruchomi\u0142em to narz\u0119dzie z desktopa linuksowego, trzeba wej\u015b\u0107 do katalogu gdzie jest zainstalowany Funambol i uruchomi\u0107:<\/p>\n<pre>% .\/admin\/bin\/funamboladmin<\/pre>\n<p>to wszystko jest opisane w Instrukcji Instalacji i Administracji Funambol \u0142\u0105cznie z obrazkami, wi\u0119c nie b\u0119d\u0119 opisywa\u0142 tutaj.<br \/>\nNast\u0119pn\u0105 rzecz\u0105, kt\u00f3r\u0105 zrobi\u0142em jest opisane w rozdziale <b>14. Uruchomienie testowe &#8220;proof of concept&#8221;<\/b>, ale opisany tam Klient Java Demo nie dzia\u0142a poprawnie jak dla mnie. Pomimo zmiany ustawie\u0144 w File->Configure->Server URL, po pr\u00f3bie synchronizacji (nieudanej), gdy wszed\u0142em ponownie w ustawienia to zasta\u0142em tam domy\u015blne http:\/\/localhost:8080\/funambol\/ds. Po kilku pr\u00f3bach \u015bci\u0105gn\u0105\u0142em klienta dla programu Thunderbird ze strony <a href=\"https:\/\/www.forge.funambol.org\/download\/#desktop\" target=\"_blank\">Desktop Clients<\/a>, zainstalowa\u0142em i skonfigurowa\u0142em pod m\u00f3j serwer. Wtedy pomy\u015blnie zsynchronizowa\u0142em kontakty w ksi\u0105\u017cce adresowej. Synchronizacja kalendarzy nie by\u0142a mo\u017cliwa, gdy\u017c plugin jest (by\u0142) kompatybilny z wersj\u0105 Lightning v0.8, a ja posiadam(\u0142em) nowsz\u0105 wersj\u0119 (v0.9).<br \/>\nNie posiadam jeszcze urz\u0105dzenia BlackBerry, wi\u0119c \u015bci\u0105gn\u0105\u0142em plugin do mojej Nokii z Symbianem s60 ze strony<a href=\"https:\/\/www.forge.funambol.org\/download\/#phone\" target=\"_blank\">Mobile Clients<\/a>. Po zainstalowaniu i skonfigurowaniu pomy\u015blnie zsynchronizowa\u0142em kontakty i kalendarz z moim serwerem Funambol.<br \/>\nTo na razie wszystko, nied\u0142ugo postaram si\u0119 napisa\u0107 o <b>konektorze LDAP dla Funambol<\/b>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><a href=\"https:\/\/www.funambol.com\/\" target=\"_blank\"><img decoding=\"async\" src=\"http:\/\/www.funambol.com\/images\/logo.png\" style=\"float: right;\" \/><\/a><br \/>\nOK. Zak\u0142adam, \u017ce mamy zainstalowany serwer Funambol, tak jak opisa\u0142em <a href=\"\/en\/content\/funambol-pierwsze-podejscie\">tutaj<\/a>. Nadszed\u0142 czas na uruchomienie serwera. Prosz\u0119 wej\u015b\u0107 do katalogu Funambol (domy\u015blnie: \/opt\/Funambol) i wykonaj polecenie:<br \/>\n<code># .\/bin\/funambol start<\/code><br \/>\nje\u015bli masz szcz\u0119\u015bcie to serwer wystartuje, ale na Solarisie trzeba zmodyfikowa\u0107 skrypty startowe, gdy\u017c prawdopodobnie zobaczysz taki komunikat:<\/p>\n<pre>.\/bin\/funambol: J2EE_HOME=\/opt\/Funambol\/tools\/tomcat: is not an identifier<\/pre>\n<p>i zn\u00f3w &#8211; jest to problem kompatybilno\u015bci pow\u0142ok pomi\u0119dzy Linuxem a Unixem. Osobi\u015bcie uwa\u017cam jednak, \u017ce deweloperzy Funambola powinni poprawi\u0107 to tak, aby dzia\u0142a\u0142o na obu systemach, wystarczy w miejsce:<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[],"tags":[],"jetpack_publicize_connections":[],"acf":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7M9Tz-5e","jetpack-related-posts":[{"id":187,"url":"https:\/\/drfugazi.eu.org\/en\/","url_meta":{"origin":324,"position":0},"title":"Funambol &#8211; pierwsze uruchomienie","author":"drfugazi","date":"Thursday June 10th, 2010","format":false,"excerpt":"OK. Zak\u0142adam, \u017ce mamy zainstalowany serwer Funambol, tak jak opisa\u0142em tutaj. Nadszed\u0142 czas na uruchomienie serwera. Prosz\u0119 wej\u015b\u0107 do katalogu Funambol (domy\u015blnie: \/opt\/Funambol) i wykonaj polecenie: # .\/bin\/funambol start je\u015bli masz szcz\u0119\u015bcie to serwer wystartuje, ale na Solarisie trzeba zmodyfikowa\u0107 skrypty startowe, gdy\u017c prawdopodobnie zobaczysz taki komunikat: .\/bin\/funambol: J2EE_HOME=\/opt\/Funambol\/tools\/tomcat: is\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":323,"url":"https:\/\/drfugazi.eu.org\/en\/funambol-pierwsze-podejscie\/","url_meta":{"origin":324,"position":1},"title":"Funambol &#8211; pierwsze podej\u015bcie","author":"","date":"Wednesday June  9th, 2010","format":false,"excerpt":"Funambol to oprogramowanie Open Source, kt\u00f3re dzia\u0142a jako serwer BIS (BlackBerry Internet Server) i umo\u017cliwia synchronizacj\u0119 kontakt\u00f3w, kalendarzy, notatek i poczty z urz\u0105dzeniami wykorzystuj\u0105cymi us\u0142ug\u0119 BlackBerry. Funambol to jednak nie tylko serwer BIS, to tak\u017ce powi\u0105zane projekty takie jak wtyczki do popularnych klient\u00f3w poczty takich jak Outlook czy Tunderbird, oprogramowanie\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":184,"url":"https:\/\/drfugazi.eu.org\/en\/","url_meta":{"origin":324,"position":2},"title":"Funambol &#8211; pierwsze podej\u015bcie","author":"drfugazi","date":"Wednesday June  9th, 2010","format":false,"excerpt":"Funambol to oprogramowanie Open Source, kt\u00f3re dzia\u0142a jako serwer BIS (BlackBerry Internet Server) i umo\u017cliwia synchronizacj\u0119 kontakt\u00f3w, kalendarzy, notatek i poczty z urz\u0105dzeniami wykorzystuj\u0105cymi us\u0142ug\u0119 BlackBerry. Funambol to jednak nie tylko serwer BIS, to tak\u017ce powi\u0105zane projekty takie jak wtyczki do popularnych klient\u00f3w poczty takich jak Outlook czy Tunderbird, oprogramowanie\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":327,"url":"https:\/\/drfugazi.eu.org\/en\/funambol-first-run\/","url_meta":{"origin":324,"position":3},"title":"Funambol &#8211; first run","author":"","date":"Thursday June 10th, 2010","format":false,"excerpt":"OK. I assume that we have installed Funambol, as I described here. It is time to run the server. Go to the Funambol directory (default: \/opt\/Funambol) and run: # .\/bin\/funambol start if you are lucky the server will start, but on Solaris, you need to modify scripts, because you problably\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":186,"url":"https:\/\/drfugazi.eu.org\/en\/","url_meta":{"origin":324,"position":4},"title":"Funambol &#8211; first run","author":"drfugazi","date":"Thursday June 10th, 2010","format":false,"excerpt":"OK. I assume that we have installed Funambol, as I described here. It is time to run the server. Go to the Funambol directory (default: \/opt\/Funambol) and run: # .\/bin\/funambol start if you are lucky the server will start, but on Solaris, you need to modify scripts, because you problably\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":326,"url":"https:\/\/drfugazi.eu.org\/en\/funambol-first-try\/","url_meta":{"origin":324,"position":5},"title":"Funambol &#8211; first try","author":"","date":"Wednesday June  9th, 2010","format":false,"excerpt":"Funambol is Open Source software, which act as a server BIS (BlackBerry Internet Server) and provide contacts, calendars, notes and email synchronization with BlackBery devices. Funambol is not only BIS server - it also provides related projects like plugins to most popular email clients like Outlook or Thunderbird, desktop software\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/posts\/324"}],"collection":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/comments?post=324"}],"version-history":[{"count":0,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/posts\/324\/revisions"}],"wp:attachment":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/media?parent=324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/categories?post=324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/tags?post=324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}