Skip to content

How To Build For Linux

Ben Baron edited this page Jul 27, 2013 · 3 revisions

###Jul 26, 2013

Server

  1. Unfortunately, Mono 3 for Linux must be built manually, however it's not difficult:

    a. First make sure you have build tools installed. On Ubuntu, running apt-get install build-essential should do it, but on other systems you'll need to do something slightly different.

    b. Clone the Mono repo: cd /tmp && git clone --recursive https://github.com/mono/mono.git

    c. Build Mono: cd /tmp/mono && ./autogen.sh --prefix=/usr/local && make && sudo make install

  2. Clone the WaveBox repo to your home directory: cd ~ && git clone https://github.com/einsteinx2/WaveBox.git

  3. Build WaveBox: cd ~/WaveBox && /usr/local/bin/xbuild

  4. To enable transcoding, download and place the ffmpeg binary: cd /tmp && wget https://s3-us-west-2.amazonaws.com/com.einsteinx2.wavebox/ffmpeg_linux.zip && unzip ffmpeg_linux.zip && mv ffmpeg ~/WaveBox/WaveBox.Server/bin/Debug/

Web interface

  1. Clone the web repo into the themes directory: git clone https://github.com/einsteinx2/WaveBoxWebClient.git ~/WaveBox/WaveBox.Server/bin/Debug/themes/wave

  2. Install nodejs from here: http://nodejs.org/

  3. Install the coffeescript build tools like so: cd ~/WaveBox/WaveBox.Server/bin/Debug/themes/wave && sudo npm install -g NOTE: If this fails, try running sudo npm install -g coffee-script browserify

  4. Build the web interface: cd ~/WaveBox/WaveBox.Server/bin/Debug/themes/wave && cake build

  5. Open the web interface by navigating to http://localhost:6500

Run WaveBox

cd ~/WaveBox/WaveBox.Server/bin/Debug && /usr/local/bin/mono --debug WaveBox.exe

Or to start it up to run in the background (terminal output appended to nohup.log in the Debug folder, which you can read in real time using tail -f nohup.log): cd ~/WaveBox/WaveBox.Server/bin/Debug && nohup /usr/local/bin/mono --debug WaveBox.exe &

Updates

Now any time you want to update WaveBox, do the following and then restart WaveBox: cd ~/WaveBox && git checkout . && git pull && /usr/local/bin/xbuild

Any time you want to update the web interface do the following: cd ~/WaveBox/WaveBox.Server/bin/Debug/themes/wave && git checkout . && git pull && cake build

Clone this wiki locally