From: Guillaume Pellerin Date: Tue, 10 Jan 2023 14:28:18 +0000 (+0100) Subject: goto bullseye debian env X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=487dac206772c7ca09f431ea6a7a9dad0762d9d4;p=telecaster-instance.git goto bullseye debian env --- diff --git a/requirements-old.txt b/requirements-old.txt new file mode 100644 index 0000000..c5ef459 --- /dev/null +++ b/requirements-old.txt @@ -0,0 +1,77 @@ +DeeFuzzer==0.6.3 +Django==1.4.5 +mysqlclient +pillow +PyICU==1.1 +PyYAML==3.10 +Pygments==1.4 +South==0.8.1 +TimeSide==0.4.4 +argparse==1.1 +chardet==2.0.1 +command-not-found==0.2.44 +configobj==4.7.2 +distribute==0.6.26 +django-extensions==1.1.1 +django-json-rpc==0.6.1 +django-markup-mixin==0.1.0 +django-notes==0.2.2 +django-pagination==1.0.7 +django-registration==1.0 +django-timezones==0.2 +docutils==0.7 +foolscap==0.6.1 +httplib2==0.7.4 +iotop==0.4.3 +ipython==0.10.2 +jockey==0.9.4 +keyring==0.9.2 +kiwi==1.9.22 +lazr.restfulclient==0.11.2 +lazr.uri==1.0.2 +lxml==2.3 +mutagen==1.20 +numpy==1.5.1 +nvidia-common==0.0.0 +oauth==1.0.1 +oauth2==1.5.211 +paramiko==1.7.7.1 +pathtools==0.1.2 +pexpect==2.3 +psutil==2.1.3 +py-rrdtool==0.2.1 +pyOpenSSL==0.12 +pyasn1==0.0.11a +pycrypto==2.3 +pycups==1.9.59 +pycurl==7.19.0 +pyliblo==0.9.1 +pyserial==2.5 +pysmbc==1.0.10 +python-apt==0.8.0ubuntu9 +python-dateutil==1.4.1 +python-debian==0.1.20ubuntu2 +python-ebml==0.2 +python-shout==0.2 +python-twitter==0.8.2 +pytz==2013b +pyudev==0.12 +pyxdg==0.19 +reportlab==2.5 +scipy==0.9.0 +simplejson==2.5.0 +six==1.3.0 +sorl-thumbnail==11.12 +synaptiks==0.7.0 +telecaster-server==0.8 +ufw==0.30.1-2ubuntu1 +unattended-upgrades==0.1 +usb-creator==0.2.23 +wadllib==1.2.0 +watchdog==0.7.0 +wsgiref==0.1.2 +wxPython==2.8.11.0 +wxPython-common==2.8.11.0 +xkit==0.0.0 +xlwt==0.7.5 +zope.interface==3.6.1 diff --git a/settings-tc.py b/settings-tc.py new file mode 100644 index 0000000..c1f92a8 --- /dev/null +++ b/settings-tc.py @@ -0,0 +1,200 @@ +# -*- coding: utf-8 -*- +# Django settings for sandbox project. + +import os +import sys +from django.core.urlresolvers import reverse_lazy + +sys.dont_write_bytecode = True + +DEBUG = True +TEMPLATE_DEBUG = DEBUG + +ADMINS = ( + ('Guillaume Pellerin', 'webmaster@parisson.com'), + ('Lists', 'lists@parisson.com'), +) + +MANAGERS = ADMINS + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. + 'NAME': 'teleforma', # Or path to database file if using sqlite3. + 'USER': 'teleforma', # Not used with sqlite3. + 'PASSWORD': 'Lashjium5', # Not used with sqlite3. + 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. + 'PORT': '', # Set to empty string for default. Not used with sqlite3. + } +} + +# Local time zone for this installation. Choices can be found here: +# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name +# although not all choices may be available on all operating systems. +# On Unix systems, a value of None will cause Django to use the same +# timezone as the operating system. +# If running in a Windows environment this must be set to the same as your +# system time zone. +TIME_ZONE = 'Europe/Paris' + +# Language code for this installation. All choices can be found here: +# http://www.i18nguy.com/unicode/language-identifiers.html +#LANGUAGE_CODE = 'fr_FR' +LANGUAGES = [ ('fr', 'French'), + ('en', 'English'), +] + +SITE_ID = 1 + +# If you set this to False, Django will make some optimizations so as not +# to load the internationalization machinery. +USE_I18N = True + +# If you set this to False, Django will not format dates, numbers and +# calendars according to the current locale +USE_L10N = True + +# Absolute path to the directory that holds media. +# Example: "/home/media/media.lawrence.com/" +MEDIA_ROOT = '/home/telecaster/archives/' + +# URL that handles the media served from MEDIA_ROOT. Make sure to use a +# trailing slash if there is a path component (optional in other cases). +# Examples: "http://media.lawrence.com", "http://example.com/media/" +MEDIA_URL = 'http://192.168.1.65:8040/' + +# Absolute path to the directory static files should be collected to. +# Don't put anything in this directory yourself; store your static files +# in apps' "static/" subdirectories and in STATICFILES_DIRS. +# Example: "/home/media/media.lawrence.com/static/" +STATIC_ROOT = '/var/www/static/' + +# URL prefix for static files. +# Example: "http://media.lawrence.com/static/" +STATIC_URL = '/static/' + +# Additional locations of static files +STATICFILES_DIRS = ( + # Put strings here, like "/home/html/static" or "C:/www/django/static". + # Always use forward slashes, even on Windows. + # Don't forget to use absolute paths, not relative paths. +) + +# List of finder classes that know how to find static files in +# various locations. +STATICFILES_FINDERS = ( + 'django.contrib.staticfiles.finders.FileSystemFinder', + 'django.contrib.staticfiles.finders.AppDirectoriesFinder', + 'django.contrib.staticfiles.finders.DefaultStorageFinder', +) + +# Make this unique, and don't share it with anybody. +SECRET_KEY = 'a8l7%06wr2k+3=%#*#@#rvop2mmzko)44%7k(zx%lls^ihm9^5' + +# List of callables that know how to import templates from various sources. +#TEMPLATE_LOADERS = ( +# ('django.template.loaders.cached.Loader', ( +# 'django.template.loaders.filesystem.Loader', +# 'django.template.loaders.app_directories.Loader', +# )), +#) + + +MIDDLEWARE_CLASSES = ( + 'django.middleware.common.CommonMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.locale.LocaleMiddleware', + 'pagination.middleware.PaginationMiddleware', +) + +ROOT_URLCONF = 'urls' + +TEMPLATE_DIRS = ( + # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". + # Always use forward slashes, even on Windows. + # Don't forget to use absolute paths, not relative paths. + '/usr/local/lib/telecaster/teleforma/teleforma/templates' +) + +INSTALLED_APPS = ( + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.sites', + 'django.contrib.messages', + 'django.contrib.staticfiles', + 'django.contrib.admin', + 'telemeta', + 'jsonrpc', + 'south', + 'teleforma', + 'sorl.thumbnail', + 'django_extensions', + 'pagination', + 'postman', + 'markup_mixin', + 'notes', + 'timezones', + 'jqchat', +# 'googletools', + 'telecaster', +) + +TEMPLATE_CONTEXT_PROCESSORS = ( + 'django.core.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'postman.context_processors.inbox', + "django.core.context_processors.i18n", + "django.core.context_processors.media", + 'django.core.context_processors.static', + 'teleforma.context_processors.periods', + 'telecaster.context_processors.host', +) + +TELEMETA_ORGANIZATION = 'Pre-Barreau' +TELEMETA_SUBJECTS = ('barreau', 'crfpa', 'e-learning') +TELEMETA_DESCRIPTION = "Mazarine" +TELEMETA_GMAP_KEY = 'ABQIAAAArg7eSfnfTkBRma8glnGrlxRVbMrhnNNvToCbZQtWdaMbZTA_3RRGObu5PDoiBImgalVnnLU2yN4RMA' +TELEMETA_CACHE_DIR = MEDIA_ROOT + 'cache' +TELEMETA_EXPORT_CACHE_DIR = TELEMETA_CACHE_DIR + "/export" +TELEMETA_DATA_CACHE_DIR = TELEMETA_CACHE_DIR + "/data" + +TELEMETA_DOWNLOAD_ENABLED = True +TELEMETA_STREAMING_FORMATS = ('mp3', 'webm') +TELEMETA_DOWNLOAD_FORMATS = ('wav', 'mp3', 'webm') +TELEMETA_PUBLIC_ACCESS_PERIOD = 51 +TELEMETA_DEFAULT_GRAPHER_SIZES = ['360x130', '640x130'] +TELEMETA_DEFAULT_GRAPHER_ID = 'waveform_contour_wh' + +AUTH_PROFILE_MODULE = 'telemeta.userprofile' +LOGIN_URL = '/login/' +LOGIN_REDIRECT_URL = reverse_lazy('teleforma-desk') +SESSION_EXPIRE_AT_BROWSER_CLOSE = False + +EMAIL_HOST = 'smtp.free.fr' +DEFAULT_FROM_EMAIL = 'webmaster@parisson.com' +SERVER_EMAIL = 'webmaster@parisson.com' +EMAIL_SUBJECT_PREFIX = '[' + TELEMETA_ORGANIZATION.decode('utf8') + '] ' + +POSTMAN_AUTO_MODERATE_AS = True + +TELECASTER_MASTER_SERVER = 'e-learning.crfpa.pre-barreau.com' +TELECASTER_RSYNC_SERVER = 'telecaster@eddy:archives/' +TELECASTER_RSYNC_LOG = '/var/log/telecaster/rsync.log' +TELECASTER_CONF = [{'type':'mp3','server_type':'icecast', + 'conf':'/etc/telecaster/deefuzzer/telecaster_mp3_default.xml', + 'port':'8000'}, + {'type':'webm','server_type':'stream-m', + 'conf':'/etc/telecaster/deefuzzer/telecaster_webm_default.xml', + 'port':'8080'}, ] + +TELEFORMA_E_LEARNING_TYPE = 'CRFPA' +TELEFORMA_GLOBAL_TWEETER = True +TELEFORMA_PERIOD_TWEETER = False + +ROUTER_IP = '81.57.221.26' + + diff --git a/settings.py b/settings.py index 66821f7..715bf47 100644 --- a/settings.py +++ b/settings.py @@ -187,7 +187,7 @@ ROUTER_IP = '192.168.1.1' # ROUTER_IP = '109.190.89.141' TELECASTER_MASTER_SERVER = 'e-learning.crfpa.pre-barreau.com' -TELECASTER_RSYNC_SERVER = 'telecaster@eddy.parisson.com:archives/' +TELECASTER_RSYNC_SERVER = 'telecaster@eddie:archives/' TELECASTER_RSYNC_LOG = '/var/log/telecaster/rsync.log' TELECASTER_CONF = [{'type':'mp3','server_type':'icecast', 'conf':'/etc/telecaster/deefuzzer/telecaster_mp3_default.xml',