Buddycloud

(Diferença entre revisões)
Ir para: navegação, pesquisa
(Criou página com 'In order to create a testing environment for Buddycloud you can do: OS: Ubuntu 11.04 x86 # Install an XMMP Server.. I tried Prosody (http://prosody.im). I followed their instal…')
 
Linha 3: Linha 3:
 
OS: Ubuntu 11.04 x86
 
OS: Ubuntu 11.04 x86
  
# Install an XMMP Server.. I tried Prosody (http://prosody.im). I followed their installation instruction and it worked like a charm.  
+
1) '''Install an XMMP Server'''.. I tried Prosody (http://prosody.im). I followed their installation instruction and it worked like a charm.  
* See http://prosody.im/doc/install
+
See http://prosody.im/doc/install
# Install Node.js ans Node package manager..  
+
2) '''Install Node.js ans Node package manager'''..  
* Install any dependencies you should need.. In my case I just installed libssl-dev
+
Install any dependencies you should need.. In my case I just installed libssl-dev
 
  sudo apt-get install libdev-ssl
 
  sudo apt-get install libdev-ssl
* Then you can use this script.. create a file, like "node-and-npm_installer.sh", give it +x and run it.
+
Then you can use this script.. create a file, like "node-and-npm_installer.sh", give it +x and run it.
 
  echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
 
  echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
 
  . ~/.bashrc
 
  . ~/.bashrc
Linha 19: Linha 19:
 
  curl http://npmjs.org/install.sh | sh
 
  curl http://npmjs.org/install.sh | sh
  
# Configure Prosody
+
3) '''Configure Prosody'''
 
Add these lines in /etc/prosody/prosody.cfg.lua (or something like that considering your network/dns configuration)
 
Add these lines in /etc/prosody/prosody.cfg.lua (or something like that considering your network/dns configuration)
 
  Component "buddycloud.kalakuta.nes.it"
 
  Component "buddycloud.kalakuta.nes.it"
 
  component_secret = "123456"
 
  component_secret = "123456"
  
# Install Buddycloud channel-server  
+
4) '''Install Buddycloud channel-server'''
npm install channel-server
+
npm install channel-server
  
# Install Couchdb, change in '''http://localhost:5984/_utils/config.html''' reduce_limit to false, and create a db  
+
5) '''Install Couchdb''', change in '''http://localhost:5984/_utils/config.html''' reduce_limit to false, and create a db  
 
  sudo apt-get install couchdb
 
  sudo apt-get install couchdb
  
# Configure Buddycloud channel-server  
+
6) '''Configure Buddycloud channel-server'''
 
Copy config.js.example in config.js and than change according to your needs.. mine is like this
 
Copy config.js.example in config.js and than change according to your needs.. mine is like this
  
Linha 54: Linha 54:
 
     poolSize: 4
 
     poolSize: 4
 
  };
 
  };
 +
7) Run it
 +
node main.js
 +
 +
8) Test it .. Working on this..

Edição das 10h50min de 19 de julho de 2011

In order to create a testing environment for Buddycloud you can do:

OS: Ubuntu 11.04 x86

1) Install an XMMP Server.. I tried Prosody (http://prosody.im). I followed their installation instruction and it worked like a charm. See http://prosody.im/doc/install 2) Install Node.js ans Node package manager.. Install any dependencies you should need.. In my case I just installed libssl-dev

sudo apt-get install libdev-ssl

Then you can use this script.. create a file, like "node-and-npm_installer.sh", give it +x and run it.

echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl http://npmjs.org/install.sh | sh

3) Configure Prosody Add these lines in /etc/prosody/prosody.cfg.lua (or something like that considering your network/dns configuration)

Component "buddycloud.kalakuta.nes.it"
	component_secret = "123456"

4) Install Buddycloud channel-server

npm install channel-server

5) Install Couchdb, change in http://localhost:5984/_utils/config.html reduce_limit to false, and create a db

sudo apt-get install couchdb

6) Configure Buddycloud channel-server Copy config.js.example in config.js and than change according to your needs.. mine is like this

/**
 * XMPP Component connection
 */
exports.xmpp = { jid: 'buddycloud.kalakuta.nes.it', 
		 password: '123456', 
		 host: 'kalakuta.nes.it',
		 port: 5347
	       };

/**
 * Enable & configure one of the following backends.
 */

// CouchDB backend
exports.modelBackend = 'couchdb';
exports.modelConfig = {
    host: 'kalakuta.nes.it',
    port: 5984,
    database: 'buddycloud',
    poolSize: 4
};

7) Run it

node main.js

8) Test it .. Working on this..

Ferramentas pessoais
Espaços nominais
Variantes
Ações
Navegação
Ferramentas
Rede Mocambos