ServerAdmin webmaster@localhost
ServerName telecaster-04.parisson.com
DocumentRoot /var/www/
+
+ # BEGIN TELECASTER
SuexecUserGroup prebarreau prebarreau
+ # END TELECASTER
<Directory />
Options FollowSymLinks
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
- # in /apache2-default/, but still have / go to the right place
- RedirectMatch ^/$ /telecaster/telecaster.py
+ # in /apache2-default/, but still have / go to the right place
+ RedirectMatch ^/$ /telecaster/telecaster.py
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
-Alias /telecaster/ /var/www/telecaster/
-<Directory /var/www/telecaster>
- AllowOverride All
- AddHandler cgi-script cgi py
- Options ExecCGI
- Order allow,deny
- Allow from all
-</Directory>
-
-Alias favicon.ico /var/www/favicon.ico
-#Alias /telecaster/favicon.ico /var/www/favicon.ico
+ # BEGIN TELECASTER
+ Alias /telecaster/ /var/www/telecaster/
+ <Directory /var/www/telecaster>
+ AllowOverride All
+ AddHandler cgi-script cgi py
+ Options ExecCGI
+ Order allow,deny
+ Allow from all
+ </Directory>
+ Alias favicon.ico /var/www/telecaster/favicon.ico
+ # END TELECASTER
</VirtualHost>
import os, sys
import platform
-install_dir = '/usr/share/telecaster'
+install_dir = '/var/www/telecaster'
if not os.path.exists(install_dir):
os.mkdir(install_dir)
os.system('ln -s /etc/init.d/vncserver ' + init_link)
user = raw_input('Give a user to use the TeleCaster system : ')
+os.system('chown -R ' + user + ':' + user + ' ' + install_dir)
home = os.sep + 'home' + os.sep + user + os.sep
home_dirs = ['fluxbox', 'vnc']
os.system('cp ' + conf_dir + os.sep + 'telecaster/home/' + dir + '/* ' + home_dir)
os.system('chown -R ' + user + ':' + user + ' ' + home_dir)
+#var_dir = '/var/www/telecaster'
+#if not os.path.exists(var_dir):
+# os.system('ln -s ' + install_dir + ' ' + var_dir)
+
print """
Installation successfull !
Now configure your apache VirtualHost to get TeleCaster in your browser.