-
Notifications
You must be signed in to change notification settings - Fork 12
How To Build For Linux
###Jul 26, 2013
-
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
-
Clone the WaveBox repo to your home directory:
cd ~ && git clone https://github.com/einsteinx2/WaveBox.git
-
Build WaveBox:
cd ~/WaveBox && /usr/local/bin/xbuild
-
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/
-
Clone the web repo into the themes directory:
git clone https://github.com/einsteinx2/WaveBoxWebClient.git ~/WaveBox/WaveBox.Server/bin/Debug/themes/wave
-
Install nodejs from here: http://nodejs.org/
-
Install the coffeescript build tools like so:
cd ~/WaveBox/WaveBox.Server/bin/Debug/themes/wave && sudo npm install -g
NOTE: If this fails, try runningsudo npm install -g coffee-script browserify
-
Build the web interface:
cd ~/WaveBox/WaveBox.Server/bin/Debug/themes/wave && cake build
-
Open the web interface by navigating to http://localhost:6500
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 &
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