Hi list,

I promised a howto some time ago that could be added to the project's 
documentation, thats my way to say "thanks for your help".

Jorge

PS: I send the howto on a single text document attached, and also paste the 
content on this e-mail for easy access from the archives list.

____________________________________________________________________

Liquidsoap on Debian64 etch, HowTo for Dummies

Liquidsoap replaces ices0.4 that lacks of many features and ices2 that only 
support .ogg,

The last version available on sourceforge did not work with my system, so i 
compiled a fresh copy from svn.



BEFORE ANYTHING

Install subversion in order to get the svn

  #aptitude install subversion 


Add the multimedia repository, if not you will not have all codecs

 #nano /etc/apt/sources.list

add at the end:

  deb http://www.debian-multimedia.org etch main

Update your repositories

 #aptitude update


Install the basic dependencies to compile liquidsoap

  #aptitude install ocaml ocaml-base ocaml-base-nox ocaml-tools ocaml-nox 
ocaml-findlib libpcre-ocaml libpcre-ocaml-dev libcamomile-ocaml-dev festival 
wget libxml-dom-perl tetex-extra python-gtk2-dev python python-support 
automake1.9 autoconf make gcc build-essential 


Install optional dependencies

For Alsa:

  #aptitude install libasound-dev libsdl1.2debian-alsa

For Ogg Vorbis:

  #aptitude install libvorbis-dev libvorbis0a libvorbisenc2 libvorbisfile3 
libogg-dev libogg0

For Shout (Ogg streaming):

  #aptitude install libshout3 libshout3-dev

For Lame (MP3 encoding - you need the multiverse APT repository):

  #aptitude install liblame0 liblame-dev lame libtwolame0 toolame twolame

For Mad (MPEG 1 Layer II/III decoding):

  #aptitude install libmad0 libmad0-dev

For AO

  #libao2 libao-dev

For AAC

  #faac libfaac-dev libfaac0

For Samplerate

  #aptitude install libsamplerate0 libsamplerate0-dev samplerate-programs



INSTALL LIQUIDSOAP

Finally get the liquidsoap code from svn

  #cd /directory/where/we/will/work

  #svn co https://svn.sourceforge.net/svnroot/savonet/trunk savonet

It download the svn code into a the "savonet" directory, go to that directory

  #cd savonet

Configure what we want in our compilation

  #nano PACKAGES

This file contains the compilation options, to enable something just uncomment 
it. Only ocaml-jack did not work for me, however this is an svn and could be 
fixed at the time you use it. THERE IS NO NEED TO COMPILE WITH EVERYTHING, JUST 
ENABLE WHAT YOU WANT/NEED

Compile (finally!)

  #./bootstrap

then

  #./configure

then

  #make

and then

  #make install


If you receive an error in one of the last three comands, is normally for 
missing dependencies, make sure you have everything installed 


WORKING WITH LIQUIDSOAP

The next step should be create the scripts where you will define the mount 
points and everything else, however they dont run as root, so we are going to 
create a user called "savonet" (easy to remember)

  #useradd savonet

Create the script

  #nano myscript.liq


and paste this basic header

  #!/usr/local/bin/liquidsoap -v
  set log.dir = "/tmp"
  set socket = false
  #output = ouput.ao
  # Output via libao is the most portable and stable option.
  # You may also be able to use output.alsa.


NOTE: output = ao is used to output the sound using speakers

Refer to http://savonet.sourceforge.net/wiki/LiqQuickstart

To know what else must be added to the script.


Give execution permissions to myscript.liq

  #chmod +x myscript.liq


Start working as user savonet 

  #su savonet


Run the script as user:

  $./myscript.liq




-------------------------------------
Saca tu propia cuenta de email gratis en Colombia entrando a 
http://mail.conexcol.com

Attachment: HowTo for Dummies
Description: Binary data

Reply via email to