Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------{install Jabber-server+modules}-------------------
- apt-get install ejabberd
- apt-get install subversion erlang-dev erlang-xmerl build-essential erlang-tools
- cd /usr/local/src
- svn checkout http://svn.process-one.net/ejabberd-modules/
- cd /usr/local/src
- wget http://ejabberd.jabber.ru/files/contributions/xmlrpc-1.13-ipr2.tgz
- tar -xzf xmlrpc-1.13-ipr2.tgz
- cd xmlrpc-1.13/src
- vi Makefile
- # in Makefile ==>
- # change XMERL_PATH=../../xmerl on XMERL_PATH=/usr/lib/erlang/lib/xmerl-1.2.5
- # and $(XMERL_PATH)/inc on $(XMERL_PATH)/include.
- make
- cd /usr/local/src
- cp -a xmlrpc-1.13 /usr/lib/erlang/lib/
- cd /usr/local/src/ejabberd-modules/ejabberd_xmlrpc/trunk
- ./build.sh
- cp ebin/ejabberd_xmlrpc.beam /usr/lib/ejabberd/ebin/
- cd /usr/local/src/ejabberd-modules/mod_admin_extra/trunk
- ./build.sh
- cp ebin/mod_admin_extra.beam /usr/lib/ejabberd/ebin/
- ------{ Configure Jabber-server }------------
- # https://github.com/ArchipelProject/Archipel/wiki/Ejabberd%3A-Configuration
- cd /etc/ejabberd
- mv ejabberd.cfg ejabberd.cfg.org
- vi ejabberd.cfg
- chown ejabberd.ejabberd ejabberd.cfg
- ------{ Register admin and testing }------------
- ejabberdctl register admin localhost admin
- archipel-testxmppserver -j admin@localhost -p admin
- TEST 2 : INBAND REGISTRATION
- * Trying to register a new dummy XMPP account using in-band registration
- * Registration information sent. Wait for response...
- [ ERROR ] : Unable to register. Be sure '{access, register, [{allow, all}]}.' and '{registration_timeout, infinity}.' are present in ejabberd.cfg
- # chech in /etc/ejabbered/ejabbered.cfg =>
- # %{access, register, [{deny, all}]}.
- # {access, register, [{allow, all}]}.
- /etc/init.d/ejabbered restart
- archipel-testxmppserver -j admin@localhost -p admin
- TEST 4 : PUBSUB CONFIGURATION
- * Trying to configure the pubsub with required info for Archipel...
- [ ERROR ] : Unable to configure the pubsub. Be sure you have '{max_items_node, 1000}' in mod_pubsub configuration in ejabberd.cfg
- # chech in /etc/ejabbered/ejabbered.cfg =>
- # {mod_pubsub, [ % requires mod_caps
- # {access_createnode, pubsub_createnode},
- # {pep_sendlast_offline, false},
- # {last_item_cache, false},
- # {max_items_node, 1000},
- # %%{plugins, ["default", "pep"]}
- # {plugins, ["flat", "hometree", "pep"]} % pep requires mod_caps
- # ]},
- /etc/init.d/ejabbered restart
- archipel-testxmppserver -j admin@localhost -p admin
- TEST 7 : QUICK REGISTRATION/UNREGISTRATION
- * Trying to register a new dummy XMPP account using in-band registration
- * Registration information sent. Wait for response...
- [ ERROR ] : Unable to register. Be sure '{access, register, [{allow, all}]}.' and '{registration_timeout, infinity}.' are present in ejabberd.cfg
- * Trying to unregister the dummy XMPP account using in-band unregistration
- [ ERROR ] : Bad authentication
- * Unregistration information sent. Waiting for response...
- # chech in /etc/ejabbered/ejabbered.cfg =>
- # %%{registration_timeout, 600}.
- # {registration_timeout, infinity}.
- /etc/init.d/ejabbered restart
- archipel-testxmppserver -j admin@localhost -p admin
- TEST 8 : EJABBERD_XMLRPC BASIC OPERATION
- * Trying to connect the ejabberd_xmlrpc module...
- [ ERROR ] : Unable to contact the ejabberd_xmlrpc module: [Errno 111] Connection refused
- # chech in /etc/ejabbered/ejabbered.cfg =>
- # {listen,
- # [
- # {4560, ejabberd_xmlrpc, []},
- archipel-testxmppserver -j admin@localhost -p admin
- your XMPP server should be ready!
- ----------{install Archipel-Agent}-------------------
- apt-get install python-dev python-numpy
- easy-install archipel-agent
- archipel-initinstall
- MESSAGE: Installation initialization started
- MESSAGE: Installing init script to /etc/init.d/archipel
- SUCCESS: Init script installed
- SUCCESS: Init script chmoded
- MESSAGE: Installing configuration to /etc/archipel
- SUCCESS: Config folder installed
- SUCCESS: Config file chmoded
- MESSAGE: Pre-configuring /etc/archipel/archipel.conf:
- MESSAGE: Installing data folder to /var/lib/archipel
- SUCCESS: Lib folder installed
- SUCCESS: Archipel installation complete
- MESSAGE: IMPORTANT NOTE 1: you now need to edit /etc/archipel/archipel.conf top match your informations
- 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
- 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
- ----------{Register Archipel on Jabber-server}-------------------
- archipel-tagnode -j admin@localhost --password=admin --create
- archipel-rolesnode --jid=admin@localhost --password=admin --create
- archipel-adminaccounts --jid=admin@localhost --password=admin --create
- archipel-vmparkingnode --jid=admin@localhost --password=admin --create
- archipel-vmparkingnode --jid=admin@localhost --password=admin -a hypervisor_jid@localhost
- runarchipel
- # ERROR: Bad archipel installation. You need archipel-core and archipel-agent: No module named libvirt
- #easy_install
- apt-get install python-libvirt
- /etc/init.d/archipel start
- * Starting Archipel: [OK]
- ----------{install Archipel-Client}-------------------
- apt-get install apache2
- wget http://updates.archipelproject.org/archipel-gui-beta5.zip
- unzip archipel-gui-beta5.zip
- mv Archipel-Release-b93dae20 /var/www/archipel
- Check http://<your-ip-address>/archipel/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement