Installing your own Google Wave Federation Prototype Server

November 3, 2009 § 1 Comment

Ok, first of all, you’re all pretty anxious to get onto google wave. Here are some steps to get your own (albeit a console version) of your own FedOne Server. This process will use OpenFire as the XMPP server, others can be used such as Prosody.

Examples and screenshots have been created on a Mac, but this procedure allows for both OSX and Debian/Ubuntu installations.

Installation of Components

Java 6 – http://developer.apple.com/java/download
OpenFire  – http://www.igniterealtime.org/downloads/index.jsp
Mercurial –  http://mercurial-scm.org/

Openfire is a collaborative server based on XMPP which we will load the Prototype Server (FedOne) as an extension. Just choose your platform and follow the instructions.
For OSX: Just download the dmg and install the package.
For Ubuntu/Debian:
wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3.6.4_all.deb
sudo dpkg -i openfire_3.6.4_all.deb
sudo /etc/init.d/openfire restart

Configuring

Add these paths to your .profile located in /Users/<you>/.profile (For OSX)

export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
export PATH=$JAVA_HOME/bin:$PATH

Navigate to  http://localhost:9090 to setup Openfire which you just installed.
OpenFire Settings:

You will now need to restart OpenFire (hint, it is located in System Preferences)
Linux users:
sudo /etc/init.d/openfire/restart
After you have restarted OpenFire you need to configure it a little more, allowing FedOne to interact with it.
Navigate to http://localhost:9090 once more.
Login with Username: admin Password: whatever you set in the admin setup.
Go to Server ->  Server Settings -> External Components.

Go to Server -> Server  Settings -> Security Settings

Now pull the latest repo to a folder with the mercurial command:

hg clone https://wave-protocol.googlecode.com/hg/ wave-protocol
cd wave-protocol
ant

After you receive BUILD SUCCESSFUL, rename run-config.sh.example to run-config.sh and edit your settings in this file.

# Domain name of the wave server
WAVE_SERVER_DOMAIN_NAME=calvin

# Host name and port the wave server's client frontend listens on
WAVE_SERVER_HOSTNAME=localhost
WAVE_SERVER_PORT=9876

# The version of FedOne, extracted from the build.properties file
FEDONE_VERSION=`grep ^fedone.version= build.properties | cut -f2 -d=`

### Server-specific variables
# These will probably need to be changed
XMPP_SERVER_SECRET=foobar
PRIVATE_KEY_FILENAME=localhost.key
CERTIFICATE_FILENAME_LIST=localhost.cert

# These should be okay to leave alone
CERTIFICATE_DOMAIN_NAME=$WAVE_SERVER_DOMAIN_NAME
XMPP_SERVER_HOSTNAME=$WAVE_SERVER_DOMAIN_NAME
XMPP_SERVER_PORT=5275

# Set XMPP_SERVER_IP to localhost if the XMPP and FedOne servers are
# running on the same host
XMPP_SERVER_IP=$XMPP_SERVER_HOSTNAME

# Set true to disable the verification of signed deltas
WAVESERVER_DISABLE_VERIFICATION=false

# Set true to disable the verification of signers (certificates)
WAVESERVER_DISABLE_SIGNER_VERIFICATION=true

#EOF

We’re almost there.

Now you need a certificate:
Run this in terminal, so it exports in the same wave-protocol folder.
openssl genrsa 1024 | openssl pkcs8 -topk8 -nocrypt -out localhost.key
openssl req -new -x509 -nodes -sha1 -days 365 -key localhost.key -out localhost.cert
Replace localhost if you need for the filenames.

Now run the config:
./run-config.sh

Now to run the server:
./run-server.sh

And run our client:
./run-client-console.sh <username>

Enjoy.

Here are a couple of client commands to mess around with:
/new
/open 0
/add <email>

References:

http://code.google.com/p/wave-protocol/wiki/Installation

About these ads

Tagged: , ,

§ One Response to Installing your own Google Wave Federation Prototype Server

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

What’s this?

You are currently reading Installing your own Google Wave Federation Prototype Server at dekz.

meta

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: