Difference between revisions of "Dev ejabberd"

From SME Server
Jump to navigationJump to search
 
(2 intermediate revisions by the same user not shown)
Line 56: Line 56:
 
either you use your sme in server and gateway and you don't have to trick your dns server, or you have to adjust your dns server (generally in your router) to translate 'im.mycompany.fr' to the IP of your server which host the contribs.
 
either you use your sme in server and gateway and you don't have to trick your dns server, or you have to adjust your dns server (generally in your router) to translate 'im.mycompany.fr' to the IP of your server which host the contribs.
  
in anyway if you do  
+
in anyway if you do on a computer on your network
 
  # dig any im.mycompany.fr
 
  # dig any im.mycompany.fr
 
you should see something which gives the IP of your server
 
you should see something which gives the IP of your server
  ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.23.rc1.el6_5.1 <<>> any im.mycompany.fr
+
  ; <<>> DiG 9.9.5-4-Debian <<>> any im.mycompany.fr
 
  ;; global options: +cmd
 
  ;; global options: +cmd
 
  ;; Got answer:
 
  ;; Got answer:
  ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39533
+
  ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9748
  ;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0
+
  ;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
 
   
 
   
 
  ;; QUESTION SECTION:
 
  ;; QUESTION SECTION:
Line 69: Line 69:
 
   
 
   
 
  ;; ANSWER SECTION:
 
  ;; ANSWER SECTION:
  im.mycompany.fr. 2560 IN SOA sme9b3dev64.mycompany.fr. hostmaster.im.mycompany.fr. 1411226654 16384 2048 1048576 2560
+
  im.mycompany.fr. 0 IN A 192.168.12.240
im.mycompany.fr. 259200 IN NS sme9b3dev64.mycompany.fr.
 
im.mycompany.fr. 86400 IN MX 0 sme9b3dev64.mycompany.fr.
 
im.mycompany.fr. 86400 IN A 192.168.xx.240
 
 
   
 
   
  ;; Query time: 89 msec
+
  ;; Query time: 1 msec
  ;; SERVER: 192.168.12.240#53(192.168.12.240)
+
  ;; SERVER: 192.168.12.1#53(192.168.12.1)
  ;; WHEN: Sat Sep 20 23:41:46 2014
+
  ;; WHEN: Sat Sep 20 23:57:25 CEST 2014
  ;; MSG SIZE  rcvd: 138
+
  ;; MSG SIZE  rcvd: 49
 
 
  
 
===Drafts_TODO===
 
===Drafts_TODO===
Line 85: Line 81:
 
* see what is better, either do a reverse proxy (https://im.host.xx/admin) like now or use a port redirection  (https://ip:5280/admin)to reach the ejabberd_webadmin
 
* see what is better, either do a reverse proxy (https://im.host.xx/admin) like now or use a port redirection  (https://ip:5280/admin)to reach the ejabberd_webadmin
 
* see if needed to remove all traces of the rpm once removed (db settings, mysql DB....)
 
* see if needed to remove all traces of the rpm once removed (db settings, mysql DB....)
* more db setting directly in the panel of server-manager
+
* more db setting directly in the panel of server-manager, it was like that the panel setting of the olde contribs was done
 
     WelcomeSubject=
 
     WelcomeSubject=
 
     WelcomeText=
 
     WelcomeText=
 
     WebAdmin=enabled
 
     WebAdmin=enabled
 
     ...
 
     ...
 +
* Actually the contribs  is translated in french and english, need more languages
 +
 +
==Version of RPM==
 +
 +
actual version of rpm used (epel and fws repo)
 +
Installed:
 +
  smeserver-IM.noarch 9:0.2.16-1.el6.sme                                                                                                                                                                         
 +
 +
Dependency Installed:
 +
  SDL.x86_64 0:1.2.14-3.el6                                atk.x86_64 0:1.30.0-1.el6                        cairo.x86_64 0:1.8.8-3.1.el6                    ejabberd.x86_64 0:2.1.13-1.el6                     
 +
  ejabberd-modules.x86_64 0:0.1-2.el6.fws                  erlang.x86_64 0:R14B-04.3.el6                    erlang-appmon.x86_64 0:R14B-04.3.el6            erlang-asn1.x86_64 0:R14B-04.3.el6                 
 +
  erlang-common_test.x86_64 0:R14B-04.3.el6                erlang-compiler.x86_64 0:R14B-04.3.el6          erlang-cosEvent.x86_64 0:R14B-04.3.el6          erlang-cosEventDomain.x86_64 0:R14B-04.3.el6       
 +
  erlang-cosFileTransfer.x86_64 0:R14B-04.3.el6            erlang-cosNotification.x86_64 0:R14B-04.3.el6    erlang-cosProperty.x86_64 0:R14B-04.3.el6      erlang-cosTime.x86_64 0:R14B-04.3.el6               
 +
  erlang-cosTransactions.x86_64 0:R14B-04.3.el6            erlang-crypto.x86_64 0:R14B-04.3.el6            erlang-debugger.x86_64 0:R14B-04.3.el6          erlang-dialyzer.x86_64 0:R14B-04.3.el6             
 +
  erlang-diameter.x86_64 0:R14B-04.3.el6                  erlang-docbuilder.x86_64 0:R14B-04.3.el6        erlang-edoc.x86_64 0:R14B-04.3.el6              erlang-erl_docgen.x86_64 0:R14B-04.3.el6           
 +
  erlang-erl_interface.x86_64 0:R14B-04.3.el6              erlang-erts.x86_64 0:R14B-04.3.el6              erlang-esasl.x86_64 0:0.1-5.el6                erlang-et.x86_64 0:R14B-04.3.el6                   
 +
  erlang-eunit.x86_64 0:R14B-04.3.el6                      erlang-examples.x86_64 0:R14B-04.3.el6          erlang-gs.x86_64 0:R14B-04.3.el6                erlang-hipe.x86_64 0:R14B-04.3.el6                 
 +
  erlang-ic.x86_64 0:R14B-04.3.el6                        erlang-inets.x86_64 0:R14B-04.3.el6              erlang-inviso.x86_64 0:R14B-04.3.el6            erlang-jinterface.x86_64 0:R14B-04.3.el6           
 +
  erlang-kernel.x86_64 0:R14B-04.3.el6                    erlang-megaco.x86_64 0:R14B-04.3.el6            erlang-mnesia.x86_64 0:R14B-04.3.el6            erlang-observer.x86_64 0:R14B-04.3.el6             
 +
  erlang-odbc.x86_64 0:R14B-04.3.el6                      erlang-orber.x86_64 0:R14B-04.3.el6              erlang-os_mon.x86_64 0:R14B-04.3.el6            erlang-otp_mibs.x86_64 0:R14B-04.3.el6             
 +
  erlang-parsetools.x86_64 0:R14B-04.3.el6                erlang-percept.x86_64 0:R14B-04.3.el6            erlang-pman.x86_64 0:R14B-04.3.el6              erlang-public_key.x86_64 0:R14B-04.3.el6           
 +
  erlang-reltool.x86_64 0:R14B-04.3.el6                    erlang-runtime_tools.x86_64 0:R14B-04.3.el6      erlang-sasl.x86_64 0:R14B-04.3.el6              erlang-snmp.x86_64 0:R14B-04.3.el6                 
 +
  erlang-ssh.x86_64 0:R14B-04.3.el6                        erlang-ssl.x86_64 0:R14B-04.3.el6                erlang-stdlib.x86_64 0:R14B-04.3.el6            erlang-syntax_tools.x86_64 0:R14B-04.3.el6         
 +
  erlang-test_server.x86_64 0:R14B-04.3.el6                erlang-toolbar.x86_64 0:R14B-04.3.el6            erlang-tools.x86_64 0:R14B-04.3.el6            erlang-tv.x86_64 0:R14B-04.3.el6                   
 +
  erlang-typer.x86_64 0:R14B-04.3.el6                      erlang-webtool.x86_64 0:R14B-04.3.el6            erlang-wx.x86_64 0:R14B-04.3.el6                erlang-xmerl.x86_64 0:R14B-04.3.el6                 
 +
  fontconfig.x86_64 0:2.8.0-3.el6                          gtk2.x86_64 0:2.20.1-4.el6                      hicolor-icon-theme.noarch 0:0.11-1.1.el6        jappix.noarch 0:1.1.1-1.el6.fws                     
 +
  jasper-libs.x86_64 0:1.900.1-15.el6_1.1                  libICE.x86_64 0:1.0.6-1.el6                      libSM.x86_64 0:1.2.1-2.el6                      libXcomposite.x86_64 0:0.4.3-4.el6                 
 +
  libXcursor.x86_64 0:1.1.13-6.20130524git8f677eaea.el6    libXdamage.x86_64 0:1.1.3-4.el6                  libXext.x86_64 0:1.3.1-2.el6                    libXfixes.x86_64 0:5.0-3.el6                       
 +
  libXft.x86_64 0:2.3.1-2.el6                              libXi.x86_64 0:1.6.1-3.el6                      libXinerama.x86_64 0:1.1.2-2.el6                libXrandr.x86_64 0:1.4.0-1.el6                     
 +
  libXrender.x86_64 0:0.9.7-2.el6                          libXxf86vm.x86_64 0:1.1.2-2.el6                  libgsasl.x86_64 0:1.4.0-4.el6                  libntlm.x86_64 0:1.0-3.el6                         
 +
  libthai.x86_64 0:0.1.12-3.el6                            mesa-dri-drivers.x86_64 0:9.2-0.5.el6_5.2        mesa-dri-filesystem.x86_64 0:9.2-0.5.el6_5.2    mesa-dri1-drivers.x86_64 0:7.11-8.el6               
 +
  mesa-libGL.x86_64 0:9.2-0.5.el6_5.2                      mesa-libGLU.x86_64 0:9.2-0.5.el6_5.2            mesa-private-llvm.x86_64 0:3.3-0.3.rc3.el6      openssl-perl.x86_64 0:1.0.1e-16.el6_5.15           
 +
  pam_cas.x86_64 0:2.0.11-1.el6.fws                        pango.x86_64 0:1.28.1-7.el6_3                    perl-WWW-Curl.x86_64 0:4.09-3.el6              php-pear-CAS.noarch 0:1.3.3-1.el6                   
 +
  pixman.x86_64 0:0.26.2-5.1.el6_5                        smeserver-jappix.noarch 0:0.2.2-1.el6.fws        smeserver-pam_cas.noarch 0:0.2.0-1.el6.fws      smeserver-webapps-common.noarch 0:0.2.11-1.el6.fws 
 +
  tcl.x86_64 1:8.5.7-6.el6                                tk.x86_64 1:8.5.7-5.el6                          unixODBC.x86_64 0:2.2.14-12.el6_3              wxBase.x86_64 0:2.8.12-1.el6                       
 +
  wxGTK.x86_64 0:2.8.12-1.el6                              wxGTK-gl.x86_64 0:2.8.12-1.el6

Latest revision as of 22:58, 20 September 2014

Warning.png Work in Progress:
This page is a Work in Progress. The contents off this page may be in flux, please have a look at this page history the to see list of changes.


About

This page holds all sorts of information about the development of the ejabberd contrib. You are most welcome to add, test and improve this page. We will appreciate your input.


Status

Status SME8: RELEASED

http://wiki.contribs.org/newcontrib


Status SME9: IN PROGRESS


TBA

HOWTO

The contrib is holding at http://mirror.de-labrusse.fr/Sme-Server/smeserver-IM/ For history it is 'inspired' (copied) from ipasserelle-im, itself inspired from smeserver-ejabberd. The contrib is called smeserver-IM but the name can change.

the source of work is here https://github.com/stephdl/smeserver-IM/tree/sme9_ejabberd_alone

in order to install (adjust name if needed). Normally you don't care if your server is 64 or 32 bit

wget http://mirror.de-labrusse.fr/Sme-Server/smeserver-IM/smeserver-IM-0.2.16-2.el6.sme.noarch.rpm
yum install smeserver-IM-0.2.16-2.el6.sme.noarch.rpm --enablerepo=epel,fws -y
config setprop ejabberd WebAdmin enabled access public status enabled
signal-event post-upgrade; signal-event reboot

at the reboot you have these db available settings and a panel in the server-manager

# config show ejabberd 
ejabberd=service
   Archives=disabled
   DbName=ejabberd
   DbPassword=hbwQ3bEBuCdxYAvV1vmsLYqtCPcR3+97D5p4swnf5Bt992I014BqqSTXcxNDP+Fzaq1SXfJyNhmcZbGX
   DbUser=ejabberd
   Domain=mycompany.fr
   HTTPBind=enabled
   LogChat=disabled
   TCPPorts=5222,5223,5269
   WebAdmin=enabled
   WelcomeSubject=
   WelcomeText=
   access=public
   status=enabled

The admin page is reachable at im.your_sme_domain.xx/admin Here for example it will be im.mycompany.fr/admin

the login : admin@mycompany.fr (use the value of Domain)

password : your admin password


either you use your sme in server and gateway and you don't have to trick your dns server, or you have to adjust your dns server (generally in your router) to translate 'im.mycompany.fr' to the IP of your server which host the contribs.

in anyway if you do on a computer on your network

# dig any im.mycompany.fr

you should see something which gives the IP of your server

; <<>> DiG 9.9.5-4-Debian <<>> any im.mycompany.fr
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9748
;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;im.mycompany.fr.		IN	ANY

;; ANSWER SECTION:
im.mycompany.fr.	0	IN	A	192.168.12.240

;; Query time: 1 msec
;; SERVER: 192.168.12.1#53(192.168.12.1)
;; WHEN: Sat Sep 20 23:57:25 CEST 2014
;; MSG SIZE  rcvd: 49

Drafts_TODO

  • a link to the admin page directly in the server-manager
  • see what is better, either do a reverse proxy (https://im.host.xx/admin) like now or use a port redirection (https://ip:5280/admin)to reach the ejabberd_webadmin
  • see if needed to remove all traces of the rpm once removed (db settings, mysql DB....)
  • more db setting directly in the panel of server-manager, it was like that the panel setting of the olde contribs was done
   WelcomeSubject=
   WelcomeText=
   WebAdmin=enabled
   ...
  • Actually the contribs is translated in french and english, need more languages

Version of RPM

actual version of rpm used (epel and fws repo) Installed:

 smeserver-IM.noarch 9:0.2.16-1.el6.sme                                                                                                                                                                           

Dependency Installed:

 SDL.x86_64 0:1.2.14-3.el6                                atk.x86_64 0:1.30.0-1.el6                        cairo.x86_64 0:1.8.8-3.1.el6                    ejabberd.x86_64 0:2.1.13-1.el6                       
 ejabberd-modules.x86_64 0:0.1-2.el6.fws                  erlang.x86_64 0:R14B-04.3.el6                    erlang-appmon.x86_64 0:R14B-04.3.el6            erlang-asn1.x86_64 0:R14B-04.3.el6                   
 erlang-common_test.x86_64 0:R14B-04.3.el6                erlang-compiler.x86_64 0:R14B-04.3.el6           erlang-cosEvent.x86_64 0:R14B-04.3.el6          erlang-cosEventDomain.x86_64 0:R14B-04.3.el6         
 erlang-cosFileTransfer.x86_64 0:R14B-04.3.el6            erlang-cosNotification.x86_64 0:R14B-04.3.el6    erlang-cosProperty.x86_64 0:R14B-04.3.el6       erlang-cosTime.x86_64 0:R14B-04.3.el6                
 erlang-cosTransactions.x86_64 0:R14B-04.3.el6            erlang-crypto.x86_64 0:R14B-04.3.el6             erlang-debugger.x86_64 0:R14B-04.3.el6          erlang-dialyzer.x86_64 0:R14B-04.3.el6               
 erlang-diameter.x86_64 0:R14B-04.3.el6                   erlang-docbuilder.x86_64 0:R14B-04.3.el6         erlang-edoc.x86_64 0:R14B-04.3.el6              erlang-erl_docgen.x86_64 0:R14B-04.3.el6             
 erlang-erl_interface.x86_64 0:R14B-04.3.el6              erlang-erts.x86_64 0:R14B-04.3.el6               erlang-esasl.x86_64 0:0.1-5.el6                 erlang-et.x86_64 0:R14B-04.3.el6                     
 erlang-eunit.x86_64 0:R14B-04.3.el6                      erlang-examples.x86_64 0:R14B-04.3.el6           erlang-gs.x86_64 0:R14B-04.3.el6                erlang-hipe.x86_64 0:R14B-04.3.el6                   
 erlang-ic.x86_64 0:R14B-04.3.el6                         erlang-inets.x86_64 0:R14B-04.3.el6              erlang-inviso.x86_64 0:R14B-04.3.el6            erlang-jinterface.x86_64 0:R14B-04.3.el6             
 erlang-kernel.x86_64 0:R14B-04.3.el6                     erlang-megaco.x86_64 0:R14B-04.3.el6             erlang-mnesia.x86_64 0:R14B-04.3.el6            erlang-observer.x86_64 0:R14B-04.3.el6               
 erlang-odbc.x86_64 0:R14B-04.3.el6                       erlang-orber.x86_64 0:R14B-04.3.el6              erlang-os_mon.x86_64 0:R14B-04.3.el6            erlang-otp_mibs.x86_64 0:R14B-04.3.el6               
 erlang-parsetools.x86_64 0:R14B-04.3.el6                 erlang-percept.x86_64 0:R14B-04.3.el6            erlang-pman.x86_64 0:R14B-04.3.el6              erlang-public_key.x86_64 0:R14B-04.3.el6             
 erlang-reltool.x86_64 0:R14B-04.3.el6                    erlang-runtime_tools.x86_64 0:R14B-04.3.el6      erlang-sasl.x86_64 0:R14B-04.3.el6              erlang-snmp.x86_64 0:R14B-04.3.el6                   
 erlang-ssh.x86_64 0:R14B-04.3.el6                        erlang-ssl.x86_64 0:R14B-04.3.el6                erlang-stdlib.x86_64 0:R14B-04.3.el6            erlang-syntax_tools.x86_64 0:R14B-04.3.el6           
 erlang-test_server.x86_64 0:R14B-04.3.el6                erlang-toolbar.x86_64 0:R14B-04.3.el6            erlang-tools.x86_64 0:R14B-04.3.el6             erlang-tv.x86_64 0:R14B-04.3.el6                     
 erlang-typer.x86_64 0:R14B-04.3.el6                      erlang-webtool.x86_64 0:R14B-04.3.el6            erlang-wx.x86_64 0:R14B-04.3.el6                erlang-xmerl.x86_64 0:R14B-04.3.el6                  
 fontconfig.x86_64 0:2.8.0-3.el6                          gtk2.x86_64 0:2.20.1-4.el6                       hicolor-icon-theme.noarch 0:0.11-1.1.el6        jappix.noarch 0:1.1.1-1.el6.fws                      
 jasper-libs.x86_64 0:1.900.1-15.el6_1.1                  libICE.x86_64 0:1.0.6-1.el6                      libSM.x86_64 0:1.2.1-2.el6                      libXcomposite.x86_64 0:0.4.3-4.el6                   
 libXcursor.x86_64 0:1.1.13-6.20130524git8f677eaea.el6    libXdamage.x86_64 0:1.1.3-4.el6                  libXext.x86_64 0:1.3.1-2.el6                    libXfixes.x86_64 0:5.0-3.el6                         
 libXft.x86_64 0:2.3.1-2.el6                              libXi.x86_64 0:1.6.1-3.el6                       libXinerama.x86_64 0:1.1.2-2.el6                libXrandr.x86_64 0:1.4.0-1.el6                       
 libXrender.x86_64 0:0.9.7-2.el6                          libXxf86vm.x86_64 0:1.1.2-2.el6                  libgsasl.x86_64 0:1.4.0-4.el6                   libntlm.x86_64 0:1.0-3.el6                           
 libthai.x86_64 0:0.1.12-3.el6                            mesa-dri-drivers.x86_64 0:9.2-0.5.el6_5.2        mesa-dri-filesystem.x86_64 0:9.2-0.5.el6_5.2    mesa-dri1-drivers.x86_64 0:7.11-8.el6                
 mesa-libGL.x86_64 0:9.2-0.5.el6_5.2                      mesa-libGLU.x86_64 0:9.2-0.5.el6_5.2             mesa-private-llvm.x86_64 0:3.3-0.3.rc3.el6      openssl-perl.x86_64 0:1.0.1e-16.el6_5.15             
 pam_cas.x86_64 0:2.0.11-1.el6.fws                        pango.x86_64 0:1.28.1-7.el6_3                    perl-WWW-Curl.x86_64 0:4.09-3.el6               php-pear-CAS.noarch 0:1.3.3-1.el6                    
 pixman.x86_64 0:0.26.2-5.1.el6_5                         smeserver-jappix.noarch 0:0.2.2-1.el6.fws        smeserver-pam_cas.noarch 0:0.2.0-1.el6.fws      smeserver-webapps-common.noarch 0:0.2.11-1.el6.fws   
 tcl.x86_64 1:8.5.7-6.el6                                 tk.x86_64 1:8.5.7-5.el6                          unixODBC.x86_64 0:2.2.14-12.el6_3               wxBase.x86_64 0:2.8.12-1.el6                         
 wxGTK.x86_64 0:2.8.12-1.el6                              wxGTK-gl.x86_64 0:2.8.12-1.el6