| | 1 | = Installing Red5 on Debian Squeeze = |
| | 2 | |
| | 3 | First, install the necessary applications: |
| | 4 | |
| | 5 | {{{ |
| | 6 | aptitude install openjdk-6-jdk ant red5-server subversion dpkg-dev |
| | 7 | }}} |
| | 8 | |
| | 9 | The problem with the Debian Red5 package is that it does not come with the |
| | 10 | oflaDemo - which is the only webapp we need for video streaming. |
| | 11 | |
| | 12 | So... we have to download the Red5 source pacakge, check out (via svn) the |
| | 13 | source for the Red 5 extras, and then compile and install ofladDemo. |
| | 14 | |
| | 15 | Get the red5 source: |
| | 16 | |
| | 17 | {{{ |
| | 18 | cd /usr/local/src |
| | 19 | mkdir red5 |
| | 20 | cd red5 |
| | 21 | apt-get source red5 |
| | 22 | }}} |
| | 23 | |
| | 24 | Now, check out the red5-examples source: |
| | 25 | |
| | 26 | {{{ |
| | 27 | cd /usr/local/src |
| | 28 | svn co http://red5.googlecode.com/svn/java/example/trunk red5-examples |
| | 29 | }}} |
| | 30 | |
| | 31 | Next, copy the oflaDemo into the red5 source webapps directory (you may need to modify the path of the red5 source directory) |
| | 32 | |
| | 33 | {{{ |
| | 34 | cd /usr/local/src/red5/red5-0.9~svn3968/webapps/ |
| | 35 | cp -r /usr/local/src/red5-examples/oflaDemo . |
| | 36 | }}} |
| | 37 | |
| | 38 | Compile the oflaDemo code: |
| | 39 | |
| | 40 | {{{ |
| | 41 | cd oflaDemo |
| | 42 | export RED5_HOME=/usr/share/red5 |
| | 43 | ant |
| | 44 | }}} |
| | 45 | |
| | 46 | If it builds without a problem - copy the resulting code into the Red 5 package webapps directory: |
| | 47 | |
| | 48 | {{{ |
| | 49 | cp -r www /usr/share/red5/webapps/oflaDemo |
| | 50 | }}} |
| | 51 | |
| | 52 | And lastly, start red5: |
| | 53 | |
| | 54 | {{{ |
| | 55 | /etc/init.d/red5-server start |
| | 56 | }}} |