Personal tools
  • Log in
You are here: Home Support HowTo Install Red5 and components
 

Install Red5 and components

Installing Ant, Java, and Red5

Install Ant
    Let's start off by getting some dependencies we'll need.
        apt-get install dpkg-dev debhelper dh-make devscripts fakeroot
    Download and extract the tarball
        wget http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.tar.gz
        tar xzvf apache-ant-1.7.1-bin.tar.gz
    Move the directory, set the user path, and create a sybolic link
        mv apache-ant-1.7.1 ant
        sudo mv ant /opt
        export ANT_HOME=/opt/ant
        sudo ln -s /opt/ant/bin/ant /usr/bin/ant

Install Java
    Edit your /etc/apt/sources.list and add this line
        deb http://backports.org/debian/ etch-backports main contrib non-free
    Update your repositories and install the new packages
        apt-get update
        apt-get install sun-java6-jdk debian-backports-keyring libmysql-java
    And set the java path in your user environment
       export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.07/

Installing Red5
    Checkout the latest code from subversion
        svn co http://svn1.cvsdude.com/osflash/red5/java/server/trunk red5
        ant prepare
        ant ivyclear dist
        Edit the red5/conf/red5.properties file and replace host with your domain name
        screen
        sh red5.sh &
        Ctrl+A then type d This will detach the session that is running red5.
        If you need to restart or shut the server down you can type screen -R

Document Actions