Advertisement
mightyroot

Cloud-virt Archipel Setup

Sep 5th, 2012
669
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.47 KB | None | 0 0
  1. ----------{install Jabber-server+modules}-------------------
  2. apt-get install ejabberd
  3. apt-get install subversion erlang-dev erlang-xmerl build-essential erlang-tools
  4. cd /usr/local/src
  5. svn checkout http://svn.process-one.net/ejabberd-modules/
  6. cd /usr/local/src
  7. wget http://ejabberd.jabber.ru/files/contributions/xmlrpc-1.13-ipr2.tgz
  8. tar -xzf xmlrpc-1.13-ipr2.tgz
  9. cd xmlrpc-1.13/src
  10. vi Makefile
  11.  
  12. # in Makefile ==>
  13. # change XMERL_PATH=../../xmerl on XMERL_PATH=/usr/lib/erlang/lib/xmerl-1.2.5
  14. # and $(XMERL_PATH)/inc on $(XMERL_PATH)/include.
  15.  
  16. make
  17. cd /usr/local/src
  18. cp -a xmlrpc-1.13 /usr/lib/erlang/lib/
  19. cd /usr/local/src/ejabberd-modules/ejabberd_xmlrpc/trunk
  20. ./build.sh
  21. cp ebin/ejabberd_xmlrpc.beam /usr/lib/ejabberd/ebin/
  22. cd /usr/local/src/ejabberd-modules/mod_admin_extra/trunk
  23. ./build.sh
  24. cp ebin/mod_admin_extra.beam /usr/lib/ejabberd/ebin/
  25.  
  26. ------{ Configure Jabber-server }------------
  27. # https://github.com/ArchipelProject/Archipel/wiki/Ejabberd%3A-Configuration
  28. cd /etc/ejabberd
  29. mv ejabberd.cfg ejabberd.cfg.org
  30. vi ejabberd.cfg
  31. chown ejabberd.ejabberd ejabberd.cfg
  32.  
  33. ------{ Register admin and testing }------------
  34. ejabberdctl register admin localhost admin
  35. archipel-testxmppserver -j admin@localhost -p admin
  36. TEST 2 : INBAND REGISTRATION
  37.  * Trying to register a new dummy XMPP account using in-band registration
  38.  * Registration information sent. Wait for response...
  39.    [ ERROR ] : Unable to register. Be sure '{access, register, [{allow, all}]}.' and '{registration_timeout, infinity}.' are present in ejabberd.cfg
  40.  
  41. # chech in /etc/ejabbered/ejabbered.cfg =>
  42. #   %{access, register, [{deny, all}]}.
  43. #   {access, register, [{allow, all}]}.
  44.  
  45. /etc/init.d/ejabbered restart
  46. archipel-testxmppserver -j admin@localhost -p admin
  47.  
  48.  TEST 4 : PUBSUB CONFIGURATION
  49.  * Trying to configure the pubsub with required info for Archipel...
  50.    [ ERROR ] : Unable to configure the pubsub. Be sure you have '{max_items_node, 1000}' in mod_pubsub configuration in ejabberd.cfg
  51.  
  52. # chech in /etc/ejabbered/ejabbered.cfg =>
  53. # {mod_pubsub,   [ % requires mod_caps
  54. #                 {access_createnode, pubsub_createnode},
  55. #                 {pep_sendlast_offline, false},
  56. #                 {last_item_cache, false},
  57. #                 {max_items_node, 1000},
  58. #                 %%{plugins, ["default", "pep"]}
  59. #                 {plugins, ["flat", "hometree", "pep"]}  % pep requires mod_caps
  60. #                ]},
  61.  
  62. /etc/init.d/ejabbered restart
  63. archipel-testxmppserver -j admin@localhost -p admin
  64.  
  65.  TEST 7 : QUICK REGISTRATION/UNREGISTRATION
  66.  * Trying to register a new dummy XMPP account using in-band registration
  67.  * Registration information sent. Wait for response...
  68.    [ ERROR ] : Unable to register. Be sure '{access, register, [{allow, all}]}.' and '{registration_timeout, infinity}.' are present in ejabberd.cfg
  69.  * Trying to unregister the dummy XMPP account using in-band unregistration
  70.    [ ERROR ] : Bad authentication
  71.  * Unregistration information sent. Waiting for response...
  72.  
  73. # chech in /etc/ejabbered/ejabbered.cfg =>
  74. #   %%{registration_timeout, 600}.
  75. #   {registration_timeout, infinity}.
  76.  
  77.  /etc/init.d/ejabbered restart
  78.  archipel-testxmppserver -j admin@localhost -p admin
  79.  
  80.  TEST 8 : EJABBERD_XMLRPC BASIC OPERATION
  81.  * Trying to connect the ejabberd_xmlrpc module...
  82.    [ ERROR ] : Unable to contact the ejabberd_xmlrpc module: [Errno 111] Connection refused
  83.  
  84. # chech in /etc/ejabbered/ejabbered.cfg =>
  85. # {listen,
  86. #  [
  87. #   {4560, ejabberd_xmlrpc, []},
  88.  
  89. archipel-testxmppserver -j admin@localhost -p admin
  90. your XMPP server should be ready!
  91.  
  92. ----------{install Archipel-Agent}-------------------
  93. apt-get install python-dev python-numpy
  94. easy-install archipel-agent
  95. archipel-initinstall
  96.  
  97. MESSAGE: Installation initialization started
  98. MESSAGE: Installing init script to /etc/init.d/archipel
  99. SUCCESS: Init script installed
  100. SUCCESS: Init script chmoded
  101. MESSAGE: Installing configuration to /etc/archipel
  102. SUCCESS: Config folder installed
  103. SUCCESS: Config file chmoded
  104. MESSAGE: Pre-configuring /etc/archipel/archipel.conf:
  105. MESSAGE: Installing data folder to /var/lib/archipel
  106. SUCCESS: Lib folder installed
  107. SUCCESS: Archipel installation complete
  108. MESSAGE: IMPORTANT NOTE 1: you now need to edit /etc/archipel/archipel.conf top match your informations
  109. MESSAGE: IMPORTANT NOTE 2: If you have used --name=auto and/or --xmpp-server=auto, please check values for xmpp_server and hypervisor_xmpp_jid
  110. MESSAGE: IMPORTANT NOTE 3: if this is not already done, you need to run archipel-tagnode, archipel-rolesnode, archipel-adminaccount, archipel-vmparkingnode and archipel-vmrequestnode
  111.  
  112. ----------{Register Archipel on Jabber-server}-------------------
  113. archipel-tagnode -j admin@localhost --password=admin --create
  114. archipel-rolesnode --jid=admin@localhost --password=admin --create
  115. archipel-adminaccounts --jid=admin@localhost --password=admin --create
  116. archipel-vmparkingnode --jid=admin@localhost --password=admin --create
  117. archipel-vmparkingnode --jid=admin@localhost --password=admin -a hypervisor_jid@localhost
  118.  
  119. runarchipel
  120. # ERROR: Bad archipel installation. You need archipel-core and archipel-agent: No module named libvirt
  121.  
  122. #easy_install
  123.  
  124. apt-get install python-libvirt
  125. /etc/init.d/archipel start
  126.  * Starting Archipel: [OK]
  127.  
  128. ----------{install Archipel-Client}-------------------
  129. apt-get install apache2
  130. wget http://updates.archipelproject.org/archipel-gui-beta5.zip
  131. unzip archipel-gui-beta5.zip
  132. mv Archipel-Release-b93dae20 /var/www/archipel
  133.  
  134. Check http://<your-ip-address>/archipel/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement