====== Learnexa Application Installation Steps ====== ===== Install Learnexa Application only ===== * Download the packages required to deploy, make sure that wget/ftp is installed on the host machine with Operating System running CentOS 6.7. cd /opt/ ftp ftp.expertus.com Name (ftp.expertus.com:syba): infrachn 331 Please specify the password. Password: cd learnexa_repo get learnexa_packages.tgz get mysql.tgz * Then follow the steps given in this link : https://wiki.exphosted.com/doku.php/na3setup * You need to update the chat program please follow the steps given in this link : https://wiki.exphosted.com/doku.php/scaling_up_chat#deployment_instructions * To setup Haproxy follow the "SSL_HAPROXY_UPGRADE_FROM_1.4.x_to_1.5.x" section on this Link : https://wiki.exphosted.com/doku.php/haproxy_changes#new_values ==== BigBlueButton Installation ==== * First Install the Big Blue Button Binaries; sudo apt-get -y install language-pack-en sudo update-locale LANG=en_US.UTF-8 sudo apt-get -y install git-core ant openjdk-6-jdk sudo apt-get -y install wget sudo apt-get -y install ant sudo apt-get -y install maven2 sudo apt-get -y install unzip sudo apt-get -y remove ffmpeg sudo apt-get -y install libssl0.9.8 wget http://ubuntu.bigbluebutton.org/bigbluebutton.asc -O- | sudo apt-key add - echo "deb http://ubuntu.bigbluebutton.org/lucid_dev_081/ bigbluebutton-lucid main" | sudo tee /etc/apt/sources.list.d/bigbluebutton.list echo "deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse" | sudo tee -a /etc/apt/sources.list sudo apt-get -y update sudo apt-get dist-upgrade wget http://bigbluebutton.googlecode.com/files/openoffice.org_1.0.4_all.deb sudo dpkg -i openoffice.org_1.0.4_all.deb sudo apt-get -y install python-software-properties sudo apt-add-repository ppa:libreoffice/libreoffice-4-0 sudo apt-get -y update sudo apt-get -y install libreoffice-common sudo apt-get -y install libreoffice wget https://bigbluebutton.googlecode.com/files/ruby1.9.2_1.9.2-p290-1_amd64.deb ### ### ONLY IF YOU ARE UNABLE TO INSTALL RUBY For Ruby to work make sure these libraries are properly installed libffi5 libreadline5 libyaml-0-2 sudo apt-get -y install libreadline-dev libyaml-dev yasm texi2html libvorbis-dev libx11-dev libxfixes-dev zlib1g-dev pkg-config #### sudo dpkg -i ruby1.9.2_1.9.2-p290-1_amd64.deb sudo apt-get -y install -f sudo update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.9.2 500 \ --slave /usr/bin/ri ri /usr/bin/ri1.9.2 \ --slave /usr/bin/irb irb /usr/bin/irb1.9.2 \ --slave /usr/bin/erb erb /usr/bin/erb1.9.2 \ --slave /usr/bin/rdoc rdoc /usr/bin/rdoc1.9.2 sudo update-alternatives --install /usr/bin/gem gem /usr/bin/gem1.9.2 500 sudo gem install hello gem install bundler -v '1.10' gem install gherkin -v '2.2.9' -- --with-cflags=-w ### ###ONLY USE IF YOU ARE UNABLE TO INSTALL BIGBLUEBUTTON cd /tmp wget http://free.nchc.org.tw/ubuntu//pool/main/m/mpfr/libmpfr1ldbl_2.4.2-3ubuntu1_amd64.deb dpkg -i libmpfr1ldbl_2.4.2-3ubuntu1_amd64.deb cd /tmp wget ftp://ftp.gnome.org/mirror/temp/ubuntu-test/pool/main/libf/libffi/libffi5_3.0.9-3ubuntu1_amd64.deb dest=/tmp/libffi5_3.0.9-3ubuntu1_amd64.deb dpkg -i libffi5_3.0.9-3ubuntu1_amd64.deb apt-get install glibgmp3c2 #### #### sudo apt-get -y install bigbluebutton sudo apt-get -y install bbb-demo echo " sudo apt-get -y install build-essential git-core checkinstall yasm texi2html libvorbis-dev libx11-dev libxfixes-dev zlib1g-dev pkg-config LIBVPX_VERSION=1.2.0 FFMPEG_VERSION=2.0.1 if [ ! -d \"/usr/local/src/libvpx-\${LIBVPX_VERSION}\" ]; then cd /usr/local/src sudo git clone http://git.chromium.org/webm/libvpx.git \"libvpx-\${LIBVPX_VERSION}\" cd \"libvpx-\${LIBVPX_VERSION}\" sudo git checkout \"v\${LIBVPX_VERSION}\" sudo ./configure sudo make sudo checkinstall --pkgname=libvpx --pkgversion=\"\${LIBVPX_VERSION}\" --backup=no --deldoc=yes --default fi if [ ! -d \"/usr/local/src/ffmpeg-\${FFMPEG_VERSION}\" ]; then cd /usr/local/src sudo wget \"http://ffmpeg.org/releases/ffmpeg-\${FFMPEG_VERSION}.tar.bz2\" sudo tar -xjf \"ffmpeg-\${FFMPEG_VERSION}.tar.bz2\" cd \"ffmpeg-\${FFMPEG_VERSION}\" sudo ./configure --enable-version3 --enable-postproc --enable-libvorbis --enable-libvpx sudo make sudo checkinstall --pkgname=ffmpeg --pkgversion=\"5:\${FFMPEG_VERSION}\" --backup=no --deldoc=yes --default fi " > install-ffmpeg.sh chmod +x install-ffmpeg.sh ./install-ffmpeg.sh sudo bbb-conf --clean sudo bbb-conf --check * Now add bigbluebutton user account expbbbp with sudo permission to execute any commands * Deploy directory skeleton in /home/expbbbp/ directory. Make sure that you reset permission of the user. cd /home/ ftp ftp.expertus.com Name (ftp.expertus.com:syba): infrachn 331 Please specify the password. Password: cd learnexa_repo get bbb_lite_0.81.tgz bye tar xvf bbb_lite_0.81.tgz * Now follow the steps given below to deploy dev environment using application user account: //**expbbbp**// mkdir -p ~/dev/tools cd ~/dev/tools wget http://bigbluebutton.googlecode.com/files/gradle-0.8.tar.gz tar xvfz gradle-0.8.tar.gz wget http://bigbluebutton.googlecode.com/files/groovy-1.6.5.tar.gz tar xvfz groovy-1.6.5.tar.gz wget https://bigbluebutton.googlecode.com/files/grails-1.3.9.tar.gz tar xvfz grails-1.3.9.tar.gz wget http://fpdownload.adobe.com/pub/flex/sdk/builds/flex4.5/flex_sdk_4.5.0.20967_mpl.zip mkdir -p ~/dev/tools/flex-4.5.0.20967 unzip flex_sdk_4.5.0.20967_mpl.zip -d flex-4.5.0.20967 sudo find ~/dev/tools/flex-4.5.0.20967 -type d -exec chmod o+rx '{}' \; chmod 755 ~/dev/tools/flex-4.5.0.20967/bin/* sudo chmod -R +r ~/dev/tools/flex-4.5.0.20967 ln -s ~/dev/tools/flex-4.5.0.20967 ~/dev/tools/flex mkdir -p flex-4.5.0.20967/frameworks/libs/player/11.2 cd flex-4.5.0.20967/frameworks/libs/player/11.2 wget http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_2.swc mv -f playerglobal11_2.swc playerglobal.swc echo " export GROOVY_HOME=\$HOME/dev/tools/groovy-1.6.5 export PATH=\$PATH:\$GROOVY_HOME/bin export GRAILS_HOME=\$HOME/dev/tools/grails-1.3.9 export PATH=\$PATH:\$GRAILS_HOME/bin export FLEX_HOME=\$HOME/dev/tools/flex export PATH=\$PATH:\$FLEX_HOME/bin export GRADLE_HOME=\$HOME/dev/tools/gradle-0.8 export PATH=\$PATH:\$GRADLE_HOME/bin export JAVA_HOME=/usr/lib/jvm/java-6-openjdk export ANT_OPTS=\"-Xmx512m -XX:MaxPermSize=512m\" " >> ~/.profile source ~/.profile sudo apt-get -y update sudo apt-get dist-upgrade cd ~/dev git clone https://github.com/mconf/bigbluebutton.git cd ~/dev/bigbluebutton cp bigbluebutton-client/resources/config.xml.template bigbluebutton-client/src/conf/config.xml MACHINE_IP="$(ifconfig | grep -A 1 'eth0' | tail -1 | cut -d ':' -f 2 | cut -d ' ' -f 1)" sed -i s/HOST/$MACHINE_IP/g bigbluebutton-client/src/conf/config.xml echo " location /client/LiveEvent.html { root /home/ubuntu/dev/bigbluebutton/bigbluebutton-client; index index.html index.htm; expires 1m; } # BigBlueButton Flash client. location /client { root /home/ubuntu/dev/bigbluebutton/bigbluebutton-client; index index.html index.htm; } " | sudo tee /etc/bigbluebutton/nginx/client_dev ls -al /etc/bigbluebutton/nginx/client.nginx sudo ln -f -s /etc/bigbluebutton/nginx/client_dev /etc/bigbluebutton/nginx/client.nginx ls -al /etc/bigbluebutton/nginx/client.nginx sudo service nginx restart mv ~/dev/bigbluebutton/bigbluebutton-client ~/dev/bigbluebutton/bigbluebutton-client.old cd ~/bin ## ## NOTE CONFIGURE SHARED DRIVE BEFORE MAKING THE BELOW CHANGE make sure that you symlink streams folder as mentioned below ln -sf /streams /usr/share/red5/webapps/video mount /streams /usr/share/red5/webapps/recording (make sure its not sym link but mounted) Streams should have following permission; expdev01/expprodl:red5 streams/uploaded (for this folder alone) For all other files inside streams its red5:red5 Also note that you may have to modify deploybbbclient.sh script MEETING_URL and sed search string for Learnexa APP IP according to ~/dev/bigbluebutton/bigbluebutton-client/src/conf/config.xml, as in "siteBaseUrl". ## ## ./deploybbbclient.sh ./deploy_recorder_server.sh sudo bbb-conf --clean * Then Make changes according to this link : https://wiki.exphosted.com/doku.php/setup_bbb_server?s[]=bigbluebutton#bbb_freeswitch_configuration