How to setup your own on ubuntu

This is a step-by-step guide for setting up your own WebRTC Web Portal on an ubuntu 12.04 server.

1) Install required packages

sudo apt-get install python-software-properties git-core curl

2) Create a palava user

sudo adduser palava sudo su palava cd

3) Install Ruby

For example using rvm:

curl -L | sudo bash -s stable rvm requirements rvm install 1.9.3 rvm use 1.9.3 --default

4) Checkout and build portal

Replace the domain with yours.

git clone --recursive cd palava-portal bundle --without development:test --deployment export PALAVA_BASE_ADDRESS="" export PALAVA_RTC_ADDRESS="wss://" bundle exec middleman build

5) Install redis

You need at least version 2.6. You can get it like this:

sudo apt-add-repository -y ppa:rwky/redis sudo apt-get update sudo apt-get install redis-server

Edit in /etc/redis/redis.conf, comment in:


Then restart the redis-server daemon:

sudo service redis-server restart

6) Install and setup the palava machine

gem install palava_machine

Create a new file at /etc/init.d/palava-machine with the folowing content:

Then start the new service:

sudo chmod +x /etc/init.d/palava-machine sudo service palava-machine start

7) Install and configure ngnix

sudo add-apt-repository ppa:nginx/stable sudo apt-get update sudo apt-get install nginx-full sudo touch /etc/nginx/sites-available/palava sudo ln -s /etc/nginx/sites-available/palava /etc/nginx/sites-enabled/palava

In /etc/nginx/sites-available/palava, put the folowing config and edit the marked spots:

sudo service nginx reload

8) Modify the portal

This is all you need to do to setup palava. You might now play around with the portal code and add your own logo and contact details. More on this in a future blog post.

Thank you, please support palava!

Please tell us about your experiences and problems you have working through this guide. You can give us feedback by opening an issue on github or tweeting @palavatv.

Creative Commons Lizenzvertrag