The ClassX Installation Guide for DevelopersAuthor: Boris (bajdin@mpi-inf.mpg.de) Edited by: Derek Pang (dcypang@stanford.edu) This instruction is written for Ubuntu Linux distribution, but should in principle work for any Debian based Linux. Root priviledges are required for some tasks, so make sure you are a user which is added to the 'sudo' group. Only use root priviledges where indicated with a 'sudo' command! Warning: The user guide might be out-of-date and contain errors. Please feel free to email us (classxteam@gmail.com) if you found any. 1. Prepare the installation:1.1 Update the system and get compiling tools:
sudo apt-get update
sudo apt-get install emacs
2. Install apache2 web server:
sudo apt-get install apache2
sudo apt-get install apache2-threaded-dev
cd ~
cd ~/mod_h264_streaming-2.2.7
Edit file /etc/apache2/httpd.conf as root and add the following two lines (if the
lines are already present then the module has been already installed):
sudo /etc/init.d/apache restart
sudo apt-get install php5 libapache2-mod-php5 3. ClassX installation preparation:3.1 System preparation
sudo apt-get install build-essential checkinstall git libfaac-dev libjack-jackd2-dev \
cd ~ 4. ClassX encoder installation4.1 Install x264 codec
cd ~/classx/classXEncoder/x264
cd ~/classx/classXEncoder/ffmpeg
cd ~/classx/classXEncoder 5. ClassX slide recognition installation5.1 Install prerequisits
sudo apt-get install cmake imagemagick pkgconfig libbz2-1.0 libbz2-dev libgtk2.0-dev python-dev \
cd ~
cd ~/classx/slideRecognition 6. Final steps6.1 Copy folder ClassXWebSystem to /var/www
cd ~/classx
cd slideRecognition
cd /var/www/ClassXWebSystem In order to be able to upload large files we need to change the size limit set by php. To do that run
sudo emacs /etc/php5/apache2/php.ini
post_max_size =
sudo /etc/init.d/apache2 restart Tip: to search for a line in emacs you can do the following: CTRL+S 7. The Admin PageImmediately after you finish running configure.pl, you must visit your admin page because your admin login will be created on the first visit. The admin page will be at http://your.server.name/ClassX/admin. It will allow you to add and remove publishers from the system. 8. System Walkthrough and supportThe file "WALKTHROUGH.pdf" contains instructions which will familiarize you with many aspects of the ClassX system. If you are facing any trouble with the setup and use of ClassX, please send us an email at classxteam@gmail.com 9. Troubleshooting9.1 Problem configuring ffmpeg If ./configure command for ffmpeg from step 4.2 does not work (complaining that libx264 was not found):
- If it is a 64-bit machine and gcc is not recognizing it then every time a ./configure is run it should
be run as: |