Moosic Box Tutorial By Jayson Cofell Version: .8 A.K.A. If I think or get suggestions of more to add I will. REQUIREMENTS Linux (I am using Slackware) At least 1 Soundcard Alsa sound system (should be fairly standard) Moosic - Latest version recommended Audio Programs to play MP3s - Sox, MPG123 or MPG321, or another favorite console player Apache (any version) PHP 4 or higher Python 2.3 or higher Libtagedit *for ogg support you need the libogg and libvorbis development libraries **for flac support you need libflac development libraries Step 1. Install Moosic Find the latest version at http://www.nanoo.org/moosic # wget http://www.nanoo.org/moosic/moosic-1.5.1.tar.gz # gunzip moosic-1.5.1.tar.gz # tar xvf moosic-1.5.1.tar # cd moosic-1.5.1 Then Make and install moosic # ./setup.py build # ./setup.py install Step 2. Install Libogg and libvorbis dev # wget http://www.vorbis.com/files/1.0.1/unix/libogg-1.1.tar.gz # gunzip libogg-1.1.tar.gz # tar xvf libogg-1.1.tar Then Make and install the libraries # ./configure If there are problems finding the ogg libraries with lib vorbis then try: # export LD_LIBRARY_PATH="INSERT PATH TO OGG LIBRARY HERE" Step 3. install LibFLAC # wget http://umn.dl.sourceforge.net/sourceforge/flac/flac-1.1.2.tar.gz Then Make and install the libraries # ./configure && make && install Step 4. install SIP # wget http://www.river-bank.demon.co.uk/download/sip/sip-4.2.1.tar.gz # python configure.py # make && make install Step 5. install libtagedit if problems finding libvorbis' package file # export PKG_CONFIG_PATH="INSERT PATH TO ogg.pc HERE : INSERT PATH TO vorbisfile.pc HERE" if problems finding libFLAC it is most likely /usr/local/lib # export LD_LIBRARY_PATH="INSERT PATH to libFLAC* HERE" # cd python-bindings # python ./configure.py # make && make install TEST IT # python >>import tageditor press control-D if an error comes up, then you will have to reinstall and make sure your steps are right Step . Install Apache I am using Apache 2 # wget http://apache.intissite.com/httpd/httpd-2.0.53.tar.gz Then make and install # ./configure && make && make install Step 6. Install PHP I have downloaded PHP 5, but 4 is also just fine. configure PHP to have apache module support ./configure --with-apxs2filter=/usr/local/apache2/bin/apxs then make and install # make && make install copy the php ini file # cp php.ini-dist /usr/local/lib/php.ini If php5 is installed make sure this line is in your httpd.conf LoadModule php5_module libexec/libphp5.so if you're using php 4 then this line should be there LoadModule php4_module libexec/libphp4.so Add these lines to httpd.conf AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps Step If you need it. Install kernel I enjoy to install the latest kernel I can get my hands on generally, Thus this is an obvious step. 2.6's sound support is better than 2.4 in my opinion anyway. If for some reason you don't want the 2.6 kernel you will need to install the alsa drivers instead. Step 7. Install Alsa Libraries and Tools As of the latest Kernels, AKA 2.6, The sound system used is most likely 1.0.8; Which at the time of this writing is the latest ALSA Driver. # cd alsa-lib-1.0.8 && ./configure && make && make install # cd alsa-tools-1.0.8 && ./configure && make && make install Step 8. Install SOX I felt like using SOX and needed to install it. Needed for Sox alsa support with the 2.6 kernel # export CFLAGS="-I/usr/src/linux/include" # export CPPFLAGS="-I/usr/src/linux/include" # wget http://umn.dl.sourceforge.net/sourceforge/sox/sox-12.17.7.tar.gz # ./configure make sure there is alsa and ogg support # make && make install Step . Install mpg123 # make linux # make install Step 9. Install OGG123 first, get libcurl, libao, and POSIX threads libraries if you need them chances are you have the threads libraries, but you may need to install the others. # wget http://www.vorbis.com/files/1.0.1/unix/vorbis-tools-1.0.1.tar.gz # ./configure If there is a problem with finding the libOGGFLAC library, try reconfiguring flac and reinstalling it. # make && make install Step 10. Configure Moosic Enter your home folder and the .moosic folder within open up config in your favorite editor (Vi for me) # vi config Make sure that the appropriate programs are installed and what you want to use for the given filetypes At this point all you have to do is install Sine, start apache ( /usr/local/apache2/bin/apachectl start), and enjoy your new moosic box.