Add New Page: You are not allowed to add pages Select section/namespace. New page title.
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

development_resources:application_server:installing_mediagrid [2013/12/06 17:29] (current)
Line 1: Line 1:
 +====== Installing MediaGrid ======
  
 +This pages gives you instructions for downloading,​ installing, and configuring [[http://​mediagrid.disman.tl|Mediagrid]] (a file-sharing and webchat application) on your server.
 +
 +==== What you need: ====
 +
 +  - Ubuntu (12.04 or later) or Debian Linux installed on your server
 +  - The IP address of your server
 +  - An internet connection
 +  - A willingness to use the command line
 +
 +==== Installation:​ ====
 +
 +Open up a terminal (''​Ctrl''​+''​Alt''​+''​T''​) and run the following commands, line by line, to download the dependencies for MediaGrid:
 +
 +    sudo apt-get update && sudo apt-get install couchdb python python-pip python-dev git gedit -y
 +
 +    sudo pip install couchapp
 +
 +Now that we have the dependencies needed for MediaGrid, we can download the source code for MediaGrid:
 +
 +    cd ~/
 +
 +    git clone git://​github.com/​dismantl/​MediaGrid.git
 +
 +To configure the database used by MediaGrid, we need to modify the ''/​etc/​couchdb/​default.ini''​ file. You can edit this file by running:
 +
 +    sudo gedit /​etc/​couchdb/​default.ini
 +
 +In this file we need to edit the ''​bind_address''​ and ''​timeout''​ lines to be the following:
 +
 +    bind_address = 0.0.0.0
 +
 +    timeout = 86400
 +
 +Save and close this file. Now open the ''/​etc/​couchdb/​local.ini''​ file:
 +
 +    sudo gedit /​etc/​couchdb/​local.ini
 +
 +Add an admin username and password to the bottom of the file, then save and close it:
 +
 +    admin = s3cr3tp4ssw0rd
 +
 +**But create your own username and password, don't use the example above!**
 +
 +Finally, we restart the database to accept our changes:
 +
 +    sudo service couchdb restart
 +
 +The last step is to add the MediaGrid files into the database with the following commands (**remember to use the username and password you set earlier!**):​
 +
 +    couchapp push ~/​MediaGrid/​media http://​admin:​s3cr3tp4ssw0rd@localhost:​5984/​media
 +
 +    couchapp push ~/​MediaGrid/​chat http://​admin:​s3cr3tp4ssw0rd@localhost:​5984/​chat
 +
 +You're all finished! Now anyone on the local network can access your MediaGrid by going to the following URL in their browser (**replacing ''<​server-IP-address>''​ with your server'​s IP address**): [[http://<​server-IP-address>:​5984/​media/​_design/​media/​index.html]].
development_resources/application_server/installing_mediagrid.txt · Last modified: 2013/12/06 17:29 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported