Skip to content


Switch branches/tags
This branch is up to date with roundware/roundware-server:main.

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time



Roundware is a client-server system. The server runs using Apache HTTP Server and mod_wsgi on Ubuntu Linux 12.04 LTS Precise Pangolin and clients are available for iOS, Android and HTML5 browsers. This document outlines the steps required to setup a basic Roundware server that can be accessed through any of these clients.

For more information about Roundware functionalities and projects that use the platform, please check out:

Basic Installation

Roundware includes an to handle installation of the software and its dependencies. The majority of the process is automated. Further configuration is required for a production system, application specific details are below.

user@server:~ $ git clone
user@server:~ $ cd roundware-server
user@server:~/roundware-server $ sudo ./

The installation process creates a roundware user as project owner. su to that user to load the required virtual environment:

sudo su - roundware


A VagrantFile is included for local development and testing with Vagrant and VirtualBox. Usage:

user@local-machine:~ $ git clone
user@local-machine:~ $ cd roundware-server
user@local-machine:~/roundware-server $ vagrant up
user@local-machine:~/roundware-server $ vagrant ssh
(roundware)vagrant@roundware-server:~$ ./


  • The installation process uses the default vagrant user as project owner.
  • The install script relies on the Vagrant default file share of host:~/roundware-server to vm:/vagrant for installation and development.
  • There are multiple port forwards from the host to the VM:
    • VM:80->host:8080 for Apache hosting the demo "live" environment available at
    • VM:8888->host:8888 for the runserver development webserver available at
    • VM:8000->host:8000 for Icecast.
  • Initialize the test Roundware stream at: then access it with an audio stream player at:
  • Edit the development environment code on your local machine, then refresh to see the changes reflected in the virtual machine.

Code Upgrades exists to update the Apache WSGI production code. Note: It fully replaces any code in /var/www/roundware/static/. So, for example, customizations to roundware/rw/settings/ must be done to the code base the script is run from. To perform a code upgrade:

user@server:~/roundware-server $ git pull
user@server:~/roundware-server $ sudo ./


Roundware uses Icecast to stream audio, much like internet radio stations. If Icecast is manually installed, it will require some configuration to function properly with Roundware. The configuration changes must be in sync with the configured values for Roundware. Sample Icecast config files are included in the distribution in the roundware-server/files directory.

Edit the base Icecast config:

user@machine:$ sudo vim /etc/default/icecast2

Set/verify the enable value to true:


Next, you'll edit the general Icecast config:

user@machine:$ sudo vim /etc/icecast2/icecast.xml

Set passwords (in 3 places) to correspond with what is in the Roundware default configuration, currently set in roundwared/ You may have already been prompted for these passwords during the Icecast install process, in which case you should simply verify that they are in the XML. The default config has the password 'roundice'. Also, set the max number of sources to 100.

    <!-- Sources log in with username 'source' -->
    <!-- Relays log in username 'relay' -->

    <!-- Admin logs in with the username given below -->

Restart Icecast for changes to take effect:

user@machine:$ sudo /etc/init.d/icecast2 restart

To verify that icecast is up and running go to to see the default Icecast admin page.


Roundware uses MySQL and requires a dedicated database with a dedicated user.

You may change the database name and account info to fit your needs, but if you do, be sure to change the Roundware config (/etc/roundware/rw) and the Django settings (roundware-server/roundware/ to reflect your changes.


Apache must be configured to use mod_wsgi to host Roundware. A default config is included at roundware-server/files/apache-config-example-wsgi. If manually installing on a clean 12.04 machine, this file can simply be copied to the Apache configuration directory, though there are several changes that should be made to reflect your environment.

Configure Django, the Python framework Roundware uses.

(roundware)user@machine:~/roundware-server/roundware$ ./ syncdb

Note - this script may prompt for the username and password for your database. If you changed these values from the defaults when creating the Roundware DB, the changes must be reflected here. You'll be asked if you want to create a superuser like so:

You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no):

Answer yes, and provide the default values for username ('round') and password ('round'). Note that any subsequent changes must be reflected in The email address can be anything, and is not currently used.

If you have a fixture data file, you can populate your database with this data by running the Django command:

(roundware)user@machine:~/roundware-server/roundware$ ./ loaddata <path_to_fixture>

The base Roundware install package includes a standard DB fixture file to populate a default database with the basic data you will need to test your installation. That can be installed similarly, if you so choose:

(roundware)user@machine:~/roundware-server/roundware$ ./ loaddata rw/fixtures/base_rw.json

Make some edits to the Django settings file, roundware/

ANONYMOUS_USER_ID = 0 // change this to the proper id for AnonymousUser in database for Guardian
# settings for notifications module - email account from which notifications will be sent

Open a browser and browse to, and verify you see the Django admin page.

You can check the Apache log files for debugging information:

  • /var/log/apache2/access.log
  • /var/log/apache2/error.log

as well as the Roundware log:

  • /var/log/roundware

Roundware Development

Roundware uses separate pip requirements files and Django settings files for development. If you are running Roundware as a development server, you should run:

user@machine:~/roundware-server $ pip install -r requirements/dev.txt

to get the additional requirements for development and testing. You should also edit your ~/.bashrc file (or other method of setting persistent environment variables) to add:


Note also you can use a (not in version control) inside of the roundware/settings/ directory.

Roundware Config

All Roundware specific settings are stored in roundware/settings/

Roundware Testing

Here are some simple browser tests to see if your Roundware installation is functioning properly (substitute your RW server url):


The first two should return JSON objects containing information about your Roundware project. The second two will create and then modify an audio stream. You can verify stream creation in the Icecast admin, but of course, the true verification is by listening.

To run unit and functional tests and see test coverage, you will need the development requirements (see above). To run tests and get a report of test coverage:

(roundware)user@machine:~/roundware-server$ ./


location-based contributory audio platform for art, education and documentary



LGPL-3.0, GPL-3.0 licenses found

Licenses found






  • Python 40.0%
  • HTML 29.1%
  • JavaScript 26.0%
  • CSS 4.1%
  • Other 0.8%