From: yomguy Date: Tue, 13 Jul 2010 14:33:03 +0000 (+0000) Subject: rm bad modules for python2.6, make 'telecaster' the default user X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=935f77fc0da82fcdb43554783a9933d832b04374;p=telecaster-cgi.git rm bad modules for python2.6, make 'telecaster' the default user --- diff --git a/INSTALL b/INSTALL index 50318b3..85f986a 100644 --- a/INSTALL +++ b/INSTALL @@ -14,13 +14,20 @@ or Ubuntu / Kubuntu (>= 10.4). So please install one of these OS before. 2. Install dependencies ======================= +Needed:: + $ sudo aptitude update -$ sudo aptitude install python python-xml python-setuptools icecast2 apache2 apache2-suexec jackd vorbis-tools \ - python-mutagen procps meterbridge fluxbox vnc4server vncviewer \ - swh-plusgins jack-rack python-liblo +$ sudo aptitude install python python-dev python-xml python-libxml2 python-setuptools python-twitter python-liblo python-mutagen \ + icecast2 apache2 apache2-suexec jackd libjack-dev vorbis-tools procps meterbridge fluxbox \ + vnc4server vncviewer swh-plugins jack-rack libshout3 libshout3-dev libmad0-dev libogg-dev g++ + +Optional:: + +$ sudo aptitude install libfaac-dev libmp3lame-dev libflac-dev -2.1. Install edcast-jack + +2.1. Install EdCast-Jack ------------------------ $ cd telecaster-0.4.0/tools/edcast-jack @@ -31,7 +38,8 @@ $ make $ sudo make install -2.2. Install edcast-jack + +2.2. Install DeeFuzzer ------------------------ $ cd telecaster-0.4.0/tools/deefuzzer @@ -50,12 +58,14 @@ $ sudo python install.py 4. Configuration ================ -Edit the following files to setup TeleCaster : +Edit the following files to setup TeleCaster. Please be careful with the XML syntax:: /etc/telecaster/telecaster.xml /etc/telecaster/session.xml /etc/telecaster/deefuzzer.xml +and, + /etc/default/jackd /etc/default/vncserver @@ -66,3 +76,36 @@ Edit the following files to setup TeleCaster : $ sudo /etc/init.d/jackd start $ sudo /etc/init.d/vncserver start + +6. Configure Apache2 +==================== + +Read conf/etc/apache2/default +and copy #TELECASTER lines into your apache local VirtualHost +in /etc/apache2/sites-available/default + +Note that TeleCaster in install in /var/www/telecaster/ by default. + +Reload Apache:: + +$ sudo /etc/init.d/apache2 reload + + +7. Usage +======== + +Browse the TeleCaster web control page:: + +http://localhost/telecaster/telecaster.py + +Fill in the form and start any free recording and broadcasting stream ! + + +8. Contact +========== + +Any questions, suggestions ? Please contact the main developer : + +Guillaume Pellerin + + diff --git a/conf/etc/default/jackd b/conf/etc/default/jackd index 54f0848..f64b557 100644 --- a/conf/etc/default/jackd +++ b/conf/etc/default/jackd @@ -2,8 +2,8 @@ START_DAEMON=yes # The jackd process will run under this user -USER=prebarreau +USER=telecaster # Options to pass to jackd -OPTIONS="-R -P70 -dalsa -r48000 -p1024 -n3 -D -Chw:0,1 -Phw:0,1 " +OPTIONS="-r -dalsa -r48000 -p1024 -n8 -D -Chw:0 -Phw:0 " diff --git a/conf/etc/default/vncserver b/conf/etc/default/vncserver index 1d53129..41409b7 100644 --- a/conf/etc/default/vncserver +++ b/conf/etc/default/vncserver @@ -2,7 +2,7 @@ START_DAEMON=yes # The vncserver process will run under this user -USER=prebarreau +USER=telecaster # The vncserver port (i.e. 2 for 5902) PORT="1" diff --git a/install.py b/install.py index d4f5c68..b86cf85 100644 --- a/install.py +++ b/install.py @@ -46,6 +46,8 @@ if not os.path.exists(install_dir): os.mkdir(install_dir) os.system('cp -ra ./* ' + install_dir + os.sep) +os.system('rm -rf ' + install_dir + os.sep + 'tools/edcast-jack') +os.system('rm -rf ' + install_dir + os.sep + 'tools/deefuzzer') conf_dir = '/etc' if not os.path.exists(conf_dir): diff --git a/tools/xmltodict.py b/tools/xmltodict.py index 90db081..2a58043 100644 --- a/tools/xmltodict.py +++ b/tools/xmltodict.py @@ -5,7 +5,7 @@ # http://www.gmta.info/publications/parsing-simple-xml-structure-to-a-python-dictionary import xml.dom.minidom -import xml.dom.ext +#import xml.dom.ext from xml.sax.saxutils import escape