From fd17c5b523ea829f9c207eb0fdc37fa5cc73390d Mon Sep 17 00:00:00 2001
From: yomguy <>
Date: Fri, 9 Jul 2010 00:03:42 +0000
Subject: [PATCH] fix install
---
conf/etc/apache2/default | 29 ++++++++++++++++-------------
favicon.ico | Bin 0 -> 585 bytes
install.py | 7 ++++++-
3 files changed, 22 insertions(+), 14 deletions(-)
create mode 100644 favicon.ico
diff --git a/conf/etc/apache2/default b/conf/etc/apache2/default
index 40e1bb3..c09339a 100644
--- a/conf/etc/apache2/default
+++ b/conf/etc/apache2/default
@@ -3,7 +3,10 @@
ServerAdmin webmaster@localhost
ServerName telecaster-04.parisson.com
DocumentRoot /var/www/
+
+ # BEGIN TELECASTER
SuexecUserGroup prebarreau prebarreau
+ # END TELECASTER
Options FollowSymLinks
@@ -15,8 +18,8 @@
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
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
@@ -45,16 +48,16 @@
Allow from 127.0.0.0/255.0.0.0 ::1/128
-Alias /telecaster/ /var/www/telecaster/
-
- AllowOverride All
- AddHandler cgi-script cgi py
- Options ExecCGI
- Order allow,deny
- Allow from all
-
-
-Alias favicon.ico /var/www/favicon.ico
-#Alias /telecaster/favicon.ico /var/www/favicon.ico
+ # BEGIN TELECASTER
+ Alias /telecaster/ /var/www/telecaster/
+
+ AllowOverride All
+ AddHandler cgi-script cgi py
+ Options ExecCGI
+ Order allow,deny
+ Allow from all
+
+ Alias favicon.ico /var/www/telecaster/favicon.ico
+ # END TELECASTER
diff --git a/favicon.ico b/favicon.ico
new file mode 100644
index 0000000000000000000000000000000000000000..859b21cd65ce1e7c8d86ba214691eb16bb0b6bab
GIT binary patch
literal 585
zcmZ?wbhEHb6krfwI2OtP1dNP~OiWD7%*O-;?s&8@AiZEbDs?d`q2y^|(QnmTpr
z^y$-Q&YU@K-n{wq=dW0?V&%$}TeoiAv17;1ojZ5!+O>Q4?mc_TOXx^?UJ?c4Y6-Fxuh!Q;n|pFDZ;{Q2`2FJ8QQ_3GWbckkc7
z|M20%*RNl{ef##~$B$pXe*OOa`|sbs{|6c<{$yd~VyI`(0mTF;P8isiHPkmXdF!gE
zsj65t_tfiYc?PaL)&J3
zcd@Okj2zactljl0zRat&gWUu<*cfD*)NNM_gx)k+Equj(HFxk$!_}fqDgo@PrCcm{
zRx30aIZ1B)#^l(nT6pO?~
Mi;vqkGB8*J0Qp2iA^-pY
literal 0
HcmV?d00001
diff --git a/install.py b/install.py
index 8b2f6bb..92ab86e 100644
--- a/install.py
+++ b/install.py
@@ -41,7 +41,7 @@
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)
@@ -62,6 +62,7 @@ if not os.path.exists(init_link):
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']
@@ -72,6 +73,10 @@ for dir in home_dirs:
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.
--
2.39.5