From 4a08f8bdf0e7dde99634a8ac7fe9d8d7fd965175 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Mon, 6 Oct 2014 15:58:16 -0300 Subject: [PATCH] Removed old docs --- docs/Makefile | 177 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- docs/_static/logo_small.png | Bin 3021 -> 0 bytes docs/about.rst | 35 ----------------------------------- docs/cent-os/colab-centos-instalation-tutorial.rst | 718 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- docs/conf.py | 306 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ docs/index.rst | 25 ------------------------- docs/install.rst | 15 --------------- docs/make.bat | 242 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- docs/ubuntu1004.rst | 174 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 9 files changed, 0 insertions(+), 1692 deletions(-) delete mode 100644 docs/Makefile delete mode 100644 docs/_static/logo_small.png delete mode 100644 docs/about.rst delete mode 100644 docs/cent-os/colab-centos-instalation-tutorial.rst delete mode 100644 docs/conf.py delete mode 100644 docs/index.rst delete mode 100644 docs/install.rst delete mode 100644 docs/make.bat delete mode 100644 docs/ubuntu1004.rst diff --git a/docs/Makefile b/docs/Makefile deleted file mode 100644 index 298cb3a..0000000 --- a/docs/Makefile +++ /dev/null @@ -1,177 +0,0 @@ -# Makefile for Sphinx documentation -# - -# You can set these variables from the command line. -SPHINXOPTS = -SPHINXBUILD = sphinx-build -PAPER = -BUILDDIR = _build - -# User-friendly check for sphinx-build -ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) -$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/) -endif - -# Internal variables. -PAPEROPT_a4 = -D latex_paper_size=a4 -PAPEROPT_letter = -D latex_paper_size=letter -ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . -# the i18n builder cannot share the environment and doctrees with the others -I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . - -.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext - -help: - @echo "Please use \`make ' where is one of" - @echo " html to make standalone HTML files" - @echo " dirhtml to make HTML files named index.html in directories" - @echo " singlehtml to make a single large HTML file" - @echo " pickle to make pickle files" - @echo " json to make JSON files" - @echo " htmlhelp to make HTML files and a HTML help project" - @echo " qthelp to make HTML files and a qthelp project" - @echo " devhelp to make HTML files and a Devhelp project" - @echo " epub to make an epub" - @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" - @echo " latexpdf to make LaTeX files and run them through pdflatex" - @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx" - @echo " text to make text files" - @echo " man to make manual pages" - @echo " texinfo to make Texinfo files" - @echo " info to make Texinfo files and run them through makeinfo" - @echo " gettext to make PO message catalogs" - @echo " changes to make an overview of all changed/added/deprecated items" - @echo " xml to make Docutils-native XML files" - @echo " pseudoxml to make pseudoxml-XML files for display purposes" - @echo " linkcheck to check all external links for integrity" - @echo " doctest to run all doctests embedded in the documentation (if enabled)" - -clean: - rm -rf $(BUILDDIR)/* - -html: - $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html - @echo - @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." - -dirhtml: - $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml - @echo - @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." - -singlehtml: - $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml - @echo - @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." - -pickle: - $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle - @echo - @echo "Build finished; now you can process the pickle files." - -json: - $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json - @echo - @echo "Build finished; now you can process the JSON files." - -htmlhelp: - $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp - @echo - @echo "Build finished; now you can run HTML Help Workshop with the" \ - ".hhp project file in $(BUILDDIR)/htmlhelp." - -qthelp: - $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp - @echo - @echo "Build finished; now you can run "qcollectiongenerator" with the" \ - ".qhcp project file in $(BUILDDIR)/qthelp, like this:" - @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/ColabSoftwareDocumentation.qhcp" - @echo "To view the help file:" - @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/ColabSoftwareDocumentation.qhc" - -devhelp: - $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp - @echo - @echo "Build finished." - @echo "To view the help file:" - @echo "# mkdir -p $$HOME/.local/share/devhelp/ColabSoftwareDocumentation" - @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/ColabSoftwareDocumentation" - @echo "# devhelp" - -epub: - $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub - @echo - @echo "Build finished. The epub file is in $(BUILDDIR)/epub." - -latex: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo - @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." - @echo "Run \`make' in that directory to run these through (pdf)latex" \ - "(use \`make latexpdf' here to do that automatically)." - -latexpdf: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo "Running LaTeX files through pdflatex..." - $(MAKE) -C $(BUILDDIR)/latex all-pdf - @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." - -latexpdfja: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo "Running LaTeX files through platex and dvipdfmx..." - $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja - @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." - -text: - $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text - @echo - @echo "Build finished. The text files are in $(BUILDDIR)/text." - -man: - $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man - @echo - @echo "Build finished. The manual pages are in $(BUILDDIR)/man." - -texinfo: - $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo - @echo - @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo." - @echo "Run \`make' in that directory to run these through makeinfo" \ - "(use \`make info' here to do that automatically)." - -info: - $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo - @echo "Running Texinfo files through makeinfo..." - make -C $(BUILDDIR)/texinfo info - @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." - -gettext: - $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale - @echo - @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." - -changes: - $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes - @echo - @echo "The overview file is in $(BUILDDIR)/changes." - -linkcheck: - $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck - @echo - @echo "Link check complete; look for any errors in the above output " \ - "or in $(BUILDDIR)/linkcheck/output.txt." - -doctest: - $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest - @echo "Testing of doctests in the sources finished, look at the " \ - "results in $(BUILDDIR)/doctest/output.txt." - -xml: - $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml - @echo - @echo "Build finished. The XML files are in $(BUILDDIR)/xml." - -pseudoxml: - $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml - @echo - @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml." diff --git a/docs/_static/logo_small.png b/docs/_static/logo_small.png deleted file mode 100644 index 7e657ff..0000000 Binary files a/docs/_static/logo_small.png and /dev/null differ diff --git a/docs/about.rst b/docs/about.rst deleted file mode 100644 index f340c10..0000000 --- a/docs/about.rst +++ /dev/null @@ -1,35 +0,0 @@ -.. -*- coding: utf-8 -*- - -.. highlight:: rest - -.. _colab_software: - -What is Colab? -============== - -Application that integrates existing systems to represent the contributions of the members through: - -* The amendments to the Wiki trac system. - -* Changes to the trac system code. - -* Discussions at the mailman list. - -* And other systems in the community. - -Features --------- - -* Developerd by Interlegis Communities http://colab.interlegis.leg.br/ - -* Writed with Python http://python.org/ - -* Build in Django Web Framework https://www.djangoproject.com/ - -* Search engine with Solr https://lucene.apache.org/solr/ - -Integration with Solr ---------------------- - -This software uses Apache Solr as search platform based on Apache Lucene. - diff --git a/docs/cent-os/colab-centos-instalation-tutorial.rst b/docs/cent-os/colab-centos-instalation-tutorial.rst deleted file mode 100644 index fe1ceff..0000000 --- a/docs/cent-os/colab-centos-instalation-tutorial.rst +++ /dev/null @@ -1,718 +0,0 @@ -.. -*- coding: utf-8 -*- - -.. highlight:: rest - -.. _colab_software: - -==================== -Colab on Cent OS 6.4 -==================== - -Nginx 1.6 -========= - -Download the nginx - -.. code-block:: - cd /tmp - wget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm - sudo rpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm - -Install nginx - -.. code-block:: - - sudo yum install nginx -y - -Start nginx with the system - -.. code-block:: - - sudo chkconfig nginx on - - -Postgres Server 9.3 -=================== - -Install postgresql - -.. code-block:: - - sudo yum localinstall http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm -y - sudo yum install postgresql93 postgresql93-devel postgresql93-libs postgresql93-server -y - -Initialize database - -.. code-block:: - - sudo service postgresql-9.3 initdb - -Start postgresql with the system - -.. code-block:: - - sudo chkconfig postgresql-9.3 on - -Start postgresql - -.. code-block:: - - sudo service postgresql-9.3 start - -Put the binaries of postgres in the PATH variable - -.. code-block:: - - echo "export PATH=$PATH:/usr/pgsql-9.3/bin/" >> ~/.bashrc - source ~/.bashrc - sudo su - echo "export PATH=$PATH:/usr/pgsql-9.3/bin/" >> ~/.bashrc - source ~/.bashrc - exit - -Edit sudoers file - -.. code-block:: - - sudo vim /etc/sudoers - -Inside sudoers file change the line - -.. code-block:: - - Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin - -To this line - -.. code-block:: - - Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/pgsql-9.3/bin/ - -And save the file - -.. code-block:: - - [ESC]:wq! - -Create a password for postgresql database, in this case we have an user called ``colab``, and we will set its password too. - -.. code-block:: - - sudo -u postgres psql - -.. code-block:: - - ALTER USER postgres WITH PASSWORD 'colab'; - CREATE USER colab SUPERUSER INHERIT CREATEDB CREATEROLE; - ALTER USER colab PASSWORD 'colab'; - \q - -Restart the postgresql - -.. code-block:: - - sudo service postgresql-9.3 restart - - -Trac 1.0 -======== - -Install the dependencies - -.. code-block:: - - sudo yum install gcc python-devel python-setuptools -y - -Install this package to use Trac with postgresql - -.. code-block:: - - sudo easy_install psycopg2 - -If you are going to use postgresql, create the database for trac - -.. code-block:: - - sudo -u postgres psql - -.. code-block:: - - CREATE DATABASE "trac_colab" WITH OWNER "colab" ENCODING 'UTF8' LC_COLLATE='en_US.UTF-8' LC_CTYPE='en_US.UTF-8' TEMPLATE=template0; - \q - -And change the database authentication to md5 - -.. code-block:: - - sudo vi /var/lib/pgsql/9.3/data/pg_hba.conf - -.. code-block:: - - [ESC]:%s/peer/md5 - [ESC]:%s/ident/md5 - -.. code-block:: - - [ESC]:wq! - -And restart postgresql - -.. code-block:: - - sudo service postgresql-9.3 restart - - -Install Trac - -.. code-block:: - - sudo easy_install trac - -Intiate Trac - -.. code-block:: - - sudo mkdir -p /opt/trac - sudo trac-admin /opt/trac initenv - -In ``Project Name [My Project]>`` we used ``colab``. And if you are going to use the postgresql, put this line in ``Database connection string [sqlite:db/trac.db]>``, and we are using the user ``colab``. - -.. code-block:: - - postgres://colab:colab@/trac_colab?host=localhost - -SVN Plugin - -Install subversion - -.. code-block:: - - sudo yum install subversion -y - -Create a repository and initiate it - -.. code-block:: - - mkdir -p /home/colab/myrepo - mkdir -p /tmp/project/{branches,tags,trunk} - svnadmin create /home/colab/myrepo/ - svn import /tmp/project file:///home/colab/myrepo/ -m "initial import" - sudo rm -rf /tmp/project - find /home/colab/myrepo -type f -exec chmod 660 {} \; - find /home/colab/myrepo -type d -exec chmod 2770 {} \; - -Edit the Trac's configuration file - -.. code-block:: - - sudo vim /opt/trac/conf/trac.ini - -Inside the trac.ini file. -Replace the line - -.. code-block:: - - repository_dir = - -With this one - -.. code-block:: - - repository_dir = /home/colab/myrepo/ - -Insert those lines in the end of file to activate the view of subversion on Trac. - -.. code-block:: - - [components] - tracopt.versioncontrol.svn.* = enabled - -.. code-block:: - - [ESC]:wq! - -Remote User - -Create the plugin to set the remote user variable - -.. code-block:: - - sudo vim /opt/trac/plugins/remote-user-auth.py - -And put this in the file - -.. code-block:: - - from trac.core import * - from trac.config import BoolOption - from trac.web.api import IAuthenticator - - class MyRemoteUserAuthenticator(Component): - - implements(IAuthenticator) - - obey_remote_user_header = BoolOption('trac', 'obey_remote_user_header', 'false', - """Whether the 'Remote-User:' HTTP header is to be trusted for user logins - (''since ??.??').""") - - def authenticate(self, req): - if self.obey_remote_user_header and req.get_header('Remote-User'): - return req.get_header('Remote-User') - return None - -Save the file - -.. code-block:: - - [ESC]:wq! - -Edit Trac's configuration file - -.. code-block:: - - sudo vim /opt/trac/conf/trac.ini - -Insert this line in the [trac] session. - -.. code-block:: - - obey_remote_user_header = true - -Save and quit - -.. code-block:: - - [ESC]:wq! - -*NOTE:* - To run Trac: ``sudo tracd --port 5000 /opt/trac`` . And to access it `http://localhost:5000 `_ - -Solr 4.6.1 -========== - -Download Solr and unpack it - -.. code-block:: - - cd /tmp - sudo wget http://archive.apache.org/dist/lucene/solr/4.6.1/solr-4.6.1.tgz - sudo tar xvzf solr-4.6.1.tgz - -Install Solr in ``/usr/share`` - -.. code-block:: - - sudo mv solr-4.6.1 /usr/share/solr - sudo cp /usr/share/solr/example/webapps/solr.war /usr/share/solr/example/solr/solr.war - -Remove the ``updateLog`` tag, editing the solrconfig.xml - -.. code-block:: - - sudo vim /usr/share/solr/example/solr/collection1/conf/solrconfig.xml - -And remove those lines - -.. code-block:: - - - ${solr.ulog.dir:} - - -.. code-block:: - - [ESC]wq! - -*NOTE:* - - To run Solr - cd /usr/share/solr/example/; sudo java -jar start.jar - -Mailman -======= - -Install the fcgiwrap - -.. code-block:: - - sudo yum install fcgi-devel git -y - cd /tmp - sudo git clone https://github.com/gnosek/fcgiwrap.git - cd fcgiwrap - sudo yum groupinstall "Development tools" -y - sudo autoreconf -i - sudo ./configure - sudo make - sudo make install - -Now you can install spawn fcgi - -.. code-block:: - - sudo yum install spawn-fcgi -y - -And edit the spawn-fgci configuration file - -.. code-block:: - - sudo vim /etc/sysconfig/spawn-fcgi - -.. code-block:: - - FCGI_SOCKET=/var/run/fcgiwrap.socket - FCGI_PROGRAM=/usr/local/sbin/fcgiwrap - FCGI_USER=apache - FCGI_GROUP=apache - FCGI_EXTRA_OPTIONS="-M 0770" - OPTIONS="-u $FCGI_USER -g $FCGI_GROUP -s $FCGI_SOCKET -S $FCGI_EXTRA_OPTIONS -F 1 -P /var/run/spawn-fcgi.pid -- $FCGI_PROGRAM" - -Save and quit - -.. code-block:: - - [ESC]:wq! - -Add nginx to the apache's user group, to grant all the right permissions to spawn-fcgi - -.. code-block:: - - sudo usermod -a -G apache nginx - -Put spaw-fcgi to start with the system, and start it - -.. code-block:: - - sudo chkconfig --levels 235 spawn-fcgi on - sudo /etc/init.d/spawn-fcgi start - -Install mailman - -.. code-block:: - - sudo yum install mailman -y - -Create a list, in this case we called it ``mailman`` - -.. code-block:: - - sudo /usr/lib/mailman/bin/newlist mailman - -Put a real email in ``Enter the email of the person running the list:``. And put a password in ``Initial mailman password:``, we used ``admin`` as password. - -And add that list to the aliases file - -.. code-block:: - - sudo vim /etc/aliases - -.. code-block:: - - ## mailman mailing list - mailman: "|/usr/lib/mailman/mail/mailman post mailman" - mailman-admin: "|/usr/lib/mailman/mail/mailman admin mailman" - mailman-bounces: "|/usr/lib/mailman/mail/mailman bounces mailman" - mailman-confirm: "|/usr/lib/mailman/mail/mailman confirm mailman" - mailman-join: "|/usr/lib/mailman/mail/mailman join mailman" - mailman-leave: "|/usr/lib/mailman/mail/mailman leave mailman" - mailman-owner: "|/usr/lib/mailman/mail/mailman owner mailman" - mailman-request: "|/usr/lib/mailman/mail/mailman request mailman" - mailman-subscribe: "|/usr/lib/mailman/mail/mailman subscribe mailman" - mailman-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe mailman" - -.. code-block:: - - [ESC]:wq! - -Now, reset the aliases - -.. code-block:: - - sudo newaliases - -Restart postfix - -.. code-block:: - - sudo /etc/init.d/postfix restart - -And add the mailman to start with the system - -.. code-block:: - - sudo chkconfig --levels 235 mailman on - -Start mailman and create a symbolic link inside cgi-bin - -.. code-block:: - - sudo /etc/init.d/mailman start - cd /usr/lib/mailman/cgi-bin/ - sudo ln -s ./ mailman - -Create a config file to mailman inside nginx - -.. code-block:: - - sudo vim /etc/nginx/conf.d/list.conf - -.. code-block:: - - server { - server_name localhost; - listen 8080; - - location /mailman/cgi-bin { - root /usr/lib; - fastcgi_split_path_info (^/mailman/cgi-bin/[^/]*)(.*)$; - include /etc/nginx/fastcgi_params; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - fastcgi_param PATH_INFO $fastcgi_path_info; - fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; - fastcgi_intercept_errors on; - fastcgi_pass unix:/var/run/fcgiwrap.socket; - } - location /images/mailman { - alias /usr/lib/mailman/icons; - } - location /pipermail { - alias /var/lib/mailman/archives/public; - autoindex on; - } - } - -.. code-block:: - - [ESC]:wq! - -Restart nginx to update the new configuration - -.. code-block:: - - sudo service nginx restart - -Edit the config script of mailman, to fix the url used by it. - -.. code-block:: - - sudo vim /etc/mailman/mm_cfg.py - -Add this line in the end of file - -.. code-block:: - - DEFAULT_URL_PATTERN = 'https://%s/mailman/cgi-bin/' - -.. code-block:: - - [ESC]:wq! - -Run the fix_url and restart mailman. - -.. code-block:: - - sudo /usr/lib/mailman/bin/withlist -l -a -r fix_url - sudo service mailman restart - -*NOTE:* - You can access mailman in this url: `http://localhost:8080/mailman/cgi-bin/listinfo `_ - - -Python 2.7 + Django 1.6 -======================= - -Install the devel tools to build specific python 2.7 modules - -.. code-block:: - - sudo yum groupinstall "Development tools" -y - sudo yum install zlib-devel bzip2-devel openssl-devel ncurses-devel libxslt-devel -y - -Download and compile Python 2.7 - -.. code-block:: - - cd /tmp - sudo wget --no-check-certificate https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz - sudo tar xf Python-2.7.6.tar.xz - cd Python-2.7.6 - sudo ./configure --prefix=/usr/local - sudo make - -Install python 2.7 as an alternative python, because cent os uses python 2.6 in the system. - -.. code-block:: - - sudo make altinstall - -Update the PATH variable to execute python as root. - -.. code-block:: - - sudo su - echo "export PATH=$PATH:/usr/local/bin/" >> ~/.bashrc - source ~/.bashrc - exit - -Install the easy_install for python 2.7 - -.. code-block:: - - cd /tmp - sudo wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py - sudo /usr/local/bin/python2.7 ez_setup.py - -Instal pip 2.7 - -.. code-block:: - - sudo /usr/local/bin/easy_install-2.7 pip - -Install additional packages to python. - -.. code-block:: - - sudo yum remove libevent -y - sudo yum install mercurial libevent-devel python-devel -y - -Edit sudores file to let ``python2.7`` execute in sudo mode. - -*NOTE:* - - The path ``/usr/bin:/usr/pgsql-9.3/bin/`` will be only in this file if you installed postgresql before, if you didn't just remove it from those lines. - -.. code-block:: - - sudo vim /etc/sudoers - -Change the line - -.. code-block:: - - Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/pgsql-9.3/bin/ - -To - -.. code-block:: - - Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/pgsql-9.3/bin/:/usr/local/bin/ - -.. code-block:: - - [ESC]:wq! - -Django 1.6 - -Install django and uwsgi - -.. code-block:: - - sudo pip2.7 install django - sudo pip2.7 install uwsgi - -Colab -===== - -Install git and clone colab - -.. code-block:: - - sudo yum install git -y - cd /opt - sudo git clone https://github.com/colab-community/colab.git - -Install colab requirements - -.. code-block:: - - sudo pip2.7 install mimeparse - sudo pip2.7 install -r /opt/colab/requirements.txt - sudo pip2.7 uninstall django_browserid -y - sudo pip2.7 install django_browserid==0.9 - - -Create the local_settings file in colab folder - -.. code-block:: - - sudo cp /opt/colab/src/colab/local_settings-dev.py /opt/colab/src/colab/local_settings.py - -And edit it inserting browser id in the end of file - -.. code-block:: - - sudo vim /opt/colab/src/colab/local_settings.py - -.. code-block:: - - BROWSERID_AUDIENCES = [SITE_URL, SITE_URL.replace('https', 'http')] - -.. code-block:: - - [ESC]:wq! - -Create the database for colab, remind that the user colab was created at the postgresql section - -.. code-block:: - - sudo -u postgres psql - -.. code-block:: - - CREATE DATABASE "colab" WITH OWNER "colab" ENCODING 'UTF8' LC_COLLATE='en_US.UTF-8' LC_CTYPE='en_US.UTF-8' TEMPLATE=template0; - \q - - -Build the solr schema.xml - -.. code-block:: - - cd /opt/colab/src - sudo su - python2.7 manage.py build_solr_schema > /opt/colab/src/schema.xml - exit - -Copy the shcema to solr - -.. code-block:: - - sudo cp /opt/colab/src/schema.xml /usr/share/solr/example/solr/collection1/conf/schema.xml - sudo rm -f /opt/colab/src/schema.xml - -Edit the schema to change the ``stopwords_en.txt`` to ``lang/stopwords_en.txt`` - -.. code-block:: - - sudo vim /usr/share/solr/example/solr/collection1/conf/schema.xml - -.. code-block:: - - [ESC]:%s/stopwords_en.txt/lang\/stopwords_en.txt - [ESC]:wq! - - -Syncronize and migrate the colab's database - -.. code-block:: - - cd /opt/colab/src - python2.7 manage.py syncdb - python2.7 manage.py migrate - -Start Solr in a terminal, and then, in other terminal, update colab index - -.. code-block:: - - cd /opt/colab/src - python2.7 manage.py update_index - -Now you can close this terminal, and stop solr with ``Ctrl+C`` - -Import mailman e-mails - -.. code-block:: - - sudo python2.7 /opt/colab/src/manage.py import_emails - -*NOTE:* - - To run Colab: python2.7 /opt/colab/src/manage.py runserver . To access colab go in: `http://localhost:8000 `_ \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py deleted file mode 100644 index f58210b..0000000 --- a/docs/conf.py +++ /dev/null @@ -1,306 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Colab Software documentation build configuration file, created by -# sphinx-quickstart on Mon Oct 14 15:16:49 2013. -# -# This file is execfile()d with the current directory set to its containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# -# All configuration values have a default; values that are commented out -# serve to show the default. - -import sys, os - -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -#sys.path.insert(0, os.path.abspath('.')) - -# -- General configuration ----------------------------------------------------- - -# If your documentation needs a minimal Sphinx version, state it here. -#needs_sphinx = '1.0' - -# Add any Sphinx extension module names here, as strings. They can be extensions -# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.coverage'] - -# Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] - -# The suffix of source filenames. -source_suffix = '.rst' - -# The encoding of source files. -#source_encoding = 'utf-8-sig' - -# The master toctree document. -master_doc = 'index' - -# General information about the project. -project = u'Colab Software' -copyright = u'2013, Leonardo J. Caballero G.' - -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The short X.Y version. -version = '0.1' -# The full version, including alpha/beta/rc tags. -release = '0.1' - -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -#language = None - -# There are two options for replacing |today|: either, you set today to some -# non-false value, then it is used: -#today = '' -# Else, today_fmt is used as the format for a strftime call. -#today_fmt = '%B %d, %Y' - -# List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -exclude_patterns = ['_build'] - -# The reST default role (used for this markup: `text`) to use for all documents. -#default_role = None - -# If true, '()' will be appended to :func: etc. cross-reference text. -#add_function_parentheses = True - -# If true, the current module name will be prepended to all description -# unit titles (such as .. function::). -#add_module_names = True - -# If true, sectionauthor and moduleauthor directives will be shown in the -# output. They are ignored by default. -#show_authors = False - -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' - -# A list of ignored prefixes for module index sorting. -#modindex_common_prefix = [] - -# If true, keep warnings as "system message" paragraphs in the built documents. -#keep_warnings = False - - -# -- Options for HTML output --------------------------------------------------- - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. -html_theme = 'default' - -# Theme options are theme-specific and customize the look and feel of a theme -# further. For a list of options available for each theme, see the -# documentation. -#html_theme_options = {} - -# Add any paths that contain custom themes here, relative to this directory. -#html_theme_path = [] - -# The name for this set of Sphinx documents. If None, it defaults to -# " v documentation". -#html_title = None - -# A shorter title for the navigation bar. Default is the same as html_title. -#html_short_title = None - -# The name of an image file (relative to this directory) to place at the top -# of the sidebar. -#html_logo = None - -# The name of an image file (within the static path) to use as favicon of the -# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 -# pixels large. -#html_favicon = None - -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] - -# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, -# using the given strftime format. -#html_last_updated_fmt = '%b %d, %Y' - -# If true, SmartyPants will be used to convert quotes and dashes to -# typographically correct entities. -#html_use_smartypants = True - -# Custom sidebar templates, maps document names to template names. -#html_sidebars = {} - -# Additional templates that should be rendered to pages, maps page names to -# template names. -#html_additional_pages = {} - -# If false, no module index is generated. -#html_domain_indices = True - -# If false, no index is generated. -#html_use_index = True - -# If true, the index is split into individual pages for each letter. -#html_split_index = False - -# If true, links to the reST sources are added to the pages. -#html_show_sourcelink = True - -# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. -#html_show_sphinx = True - -# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. -#html_show_copyright = True - -# If true, an OpenSearch description file will be output, and all pages will -# contain a tag referring to it. The value of this option must be the -# base URL from which the finished HTML is served. -#html_use_opensearch = '' - -# This is the file name suffix for HTML files (e.g. ".xhtml"). -#html_file_suffix = None - -# Output file base name for HTML help builder. -htmlhelp_basename = 'ColabSoftwareDocumentationdoc' - - -# -- Options for LaTeX output -------------------------------------------------- - -latex_elements = { -# The paper size ('letterpaper' or 'a4paper'). -#'papersize': 'letterpaper', - -# The font size ('10pt', '11pt' or '12pt'). -#'pointsize': '10pt', - -# Additional stuff for the LaTeX preamble. -#'preamble': '', -} - -# Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, author, documentclass [howto/manual]). -latex_documents = [ - ('index', 'ColabSoftwareDocumentation.tex', u'Colab Software', - u'Leonardo J. Caballero G.', 'manual'), -] - -# The name of an image file (relative to this directory) to place at the top of -# the title page. -#latex_logo = None - -# For "manual" documents, if this is true, then toplevel headings are parts, -# not chapters. -#latex_use_parts = False - -# If true, show page references after internal links. -#latex_show_pagerefs = False - -# If true, show URL addresses after external links. -#latex_show_urls = False - -# Documents to append as an appendix to all manuals. -#latex_appendices = [] - -# If false, no module index is generated. -#latex_domain_indices = True - - -# -- Options for manual page output -------------------------------------------- - -# One entry per manual page. List of tuples -# (source start file, name, description, authors, manual section). -man_pages = [ - ('index', 'colabsoftwaredocumentation', u'Colab Software', - [u'Leonardo J. Caballero G.'], 1) -] - -# If true, show URL addresses after external links. -#man_show_urls = False - - -# -- Options for Texinfo output ------------------------------------------------ - -# Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, -# dir menu entry, description, category) -texinfo_documents = [ - ('index', 'ColabSoftwareDocumentation', u'Colab Software', - u'Leonardo J. Caballero G.', 'ColabSoftwareDocumentation', 'One line description of project.', - 'Miscellaneous'), -] - -# Documents to append as an appendix to all manuals. -#texinfo_appendices = [] - -# If false, no module index is generated. -#texinfo_domain_indices = True - -# How to display URL addresses: 'footnote', 'no', or 'inline'. -#texinfo_show_urls = 'footnote' - -# If true, do not generate a @detailmenu in the "Top" node's menu. -#texinfo_no_detailmenu = False - - -# -- Options for Epub output --------------------------------------------------- - -# Bibliographic Dublin Core info. -epub_title = u'Colab Software Documentation' -epub_author = u'Leonardo J. Caballero G.' -epub_publisher = u'Leonardo J. Caballero G.' -epub_copyright = u'2013, Leonardo J. Caballero G.' - -# The language of the text. It defaults to the language option -# or en if the language is not set. -#epub_language = '' - -# The scheme of the identifier. Typical schemes are ISBN or URL. -#epub_scheme = '' - -# The unique identifier of the text. This can be a ISBN number -# or the project homepage. -#epub_identifier = '' - -# A unique identification for the text. -#epub_uid = '' - -# A tuple containing the cover image and cover page html template filenames. -#epub_cover = () - -# A sequence of (type, uri, title) tuples for the guide element of content.opf. -#epub_guide = () - -# HTML files that should be inserted before the pages created by sphinx. -# The format is a list of tuples containing the path and title. -#epub_pre_files = [] - -# HTML files shat should be inserted after the pages created by sphinx. -# The format is a list of tuples containing the path and title. -#epub_post_files = [] - -# A list of files that should not be packed into the epub file. -#epub_exclude_files = [] - -# The depth of the table of contents in toc.ncx. -#epub_tocdepth = 3 - -# Allow duplicate toc entries. -#epub_tocdup = True - -# Fix unsupported image types using the PIL. -#epub_fix_images = False - -# Scale large images. -#epub_max_image_width = 0 - -# If 'no', URL addresses will not be shown. -#epub_show_urls = 'inline' - -# If false, no index is generated. -#epub_use_index = True diff --git a/docs/index.rst b/docs/index.rst deleted file mode 100644 index 4a861b2..0000000 --- a/docs/index.rst +++ /dev/null @@ -1,25 +0,0 @@ -.. Colab Software documentation master file, created by - sphinx-quickstart on Mon Oct 14 15:16:49 2013. - You can adapt this file completely to your liking, but it should at least - contain the root `toctree` directive. - -================================= -Colab, a Software for Communities -================================= - -Contents: - -.. toctree:: - :maxdepth: 2 - - about - install - - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` - diff --git a/docs/install.rst b/docs/install.rst deleted file mode 100644 index 882e73a..0000000 --- a/docs/install.rst +++ /dev/null @@ -1,15 +0,0 @@ -.. -*- coding: utf-8 -*- - -.. highlight:: rest - -.. _colab_software_install: - -Installation -============ - -Colab software can be install in many Linux distros, like these: - -.. toctree:: - :maxdepth: 1 - - ubuntu1004 diff --git a/docs/make.bat b/docs/make.bat deleted file mode 100644 index 19db4b3..0000000 --- a/docs/make.bat +++ /dev/null @@ -1,242 +0,0 @@ -@ECHO OFF - -REM Command file for Sphinx documentation - -if "%SPHINXBUILD%" == "" ( - set SPHINXBUILD=sphinx-build -) -set BUILDDIR=_build -set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% . -set I18NSPHINXOPTS=%SPHINXOPTS% . -if NOT "%PAPER%" == "" ( - set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS% - set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS% -) - -if "%1" == "" goto help - -if "%1" == "help" ( - :help - echo.Please use `make ^` where ^ is one of - echo. html to make standalone HTML files - echo. dirhtml to make HTML files named index.html in directories - echo. singlehtml to make a single large HTML file - echo. pickle to make pickle files - echo. json to make JSON files - echo. htmlhelp to make HTML files and a HTML help project - echo. qthelp to make HTML files and a qthelp project - echo. devhelp to make HTML files and a Devhelp project - echo. epub to make an epub - echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter - echo. text to make text files - echo. man to make manual pages - echo. texinfo to make Texinfo files - echo. gettext to make PO message catalogs - echo. changes to make an overview over all changed/added/deprecated items - echo. xml to make Docutils-native XML files - echo. pseudoxml to make pseudoxml-XML files for display purposes - echo. linkcheck to check all external links for integrity - echo. doctest to run all doctests embedded in the documentation if enabled - goto end -) - -if "%1" == "clean" ( - for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i - del /q /s %BUILDDIR%\* - goto end -) - - -%SPHINXBUILD% 2> nul -if errorlevel 9009 ( - echo. - echo.The 'sphinx-build' command was not found. Make sure you have Sphinx - echo.installed, then set the SPHINXBUILD environment variable to point - echo.to the full path of the 'sphinx-build' executable. Alternatively you - echo.may add the Sphinx directory to PATH. - echo. - echo.If you don't have Sphinx installed, grab it from - echo.http://sphinx-doc.org/ - exit /b 1 -) - -if "%1" == "html" ( - %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The HTML pages are in %BUILDDIR%/html. - goto end -) - -if "%1" == "dirhtml" ( - %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml. - goto end -) - -if "%1" == "singlehtml" ( - %SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml. - goto end -) - -if "%1" == "pickle" ( - %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; now you can process the pickle files. - goto end -) - -if "%1" == "json" ( - %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; now you can process the JSON files. - goto end -) - -if "%1" == "htmlhelp" ( - %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; now you can run HTML Help Workshop with the ^ -.hhp project file in %BUILDDIR%/htmlhelp. - goto end -) - -if "%1" == "qthelp" ( - %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; now you can run "qcollectiongenerator" with the ^ -.qhcp project file in %BUILDDIR%/qthelp, like this: - echo.^> qcollectiongenerator %BUILDDIR%\qthelp\ColabSoftwareDocumentation.qhcp - echo.To view the help file: - echo.^> assistant -collectionFile %BUILDDIR%\qthelp\ColabSoftwareDocumentation.ghc - goto end -) - -if "%1" == "devhelp" ( - %SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. - goto end -) - -if "%1" == "epub" ( - %SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The epub file is in %BUILDDIR%/epub. - goto end -) - -if "%1" == "latex" ( - %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; the LaTeX files are in %BUILDDIR%/latex. - goto end -) - -if "%1" == "latexpdf" ( - %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex - cd %BUILDDIR%/latex - make all-pdf - cd %BUILDDIR%/.. - echo. - echo.Build finished; the PDF files are in %BUILDDIR%/latex. - goto end -) - -if "%1" == "latexpdfja" ( - %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex - cd %BUILDDIR%/latex - make all-pdf-ja - cd %BUILDDIR%/.. - echo. - echo.Build finished; the PDF files are in %BUILDDIR%/latex. - goto end -) - -if "%1" == "text" ( - %SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The text files are in %BUILDDIR%/text. - goto end -) - -if "%1" == "man" ( - %SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The manual pages are in %BUILDDIR%/man. - goto end -) - -if "%1" == "texinfo" ( - %SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo. - goto end -) - -if "%1" == "gettext" ( - %SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The message catalogs are in %BUILDDIR%/locale. - goto end -) - -if "%1" == "changes" ( - %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes - if errorlevel 1 exit /b 1 - echo. - echo.The overview file is in %BUILDDIR%/changes. - goto end -) - -if "%1" == "linkcheck" ( - %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck - if errorlevel 1 exit /b 1 - echo. - echo.Link check complete; look for any errors in the above output ^ -or in %BUILDDIR%/linkcheck/output.txt. - goto end -) - -if "%1" == "doctest" ( - %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest - if errorlevel 1 exit /b 1 - echo. - echo.Testing of doctests in the sources finished, look at the ^ -results in %BUILDDIR%/doctest/output.txt. - goto end -) - -if "%1" == "xml" ( - %SPHINXBUILD% -b xml %ALLSPHINXOPTS% %BUILDDIR%/xml - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The XML files are in %BUILDDIR%/xml. - goto end -) - -if "%1" == "pseudoxml" ( - %SPHINXBUILD% -b pseudoxml %ALLSPHINXOPTS% %BUILDDIR%/pseudoxml - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The pseudo-XML files are in %BUILDDIR%/pseudoxml. - goto end -) - -:end diff --git a/docs/ubuntu1004.rst b/docs/ubuntu1004.rst deleted file mode 100644 index 6c5fe01..0000000 --- a/docs/ubuntu1004.rst +++ /dev/null @@ -1,174 +0,0 @@ -.. -*- coding: utf-8 -*- - -.. highlight:: rest - -.. _ubuntu1004_install: - -Installation instructions for Ubuntu 10.04 -========================================== - -.. contents :: :local: - -Install Solr and dependencies ------------------------------ - -* Install Java, tomcat, JDBC Postgres drivers (Ubuntu partner repositories must be enabled): :: - - sudo apt-get install sun-java6-bin tomcat6 libpg-java - -* Download Solr 3.3 and extract it: :: - - wget http://archive.apache.org/dist/lucene/solr/3.3.0/apache-solr-3.3.0.tgz - tar xzf apache-solr-3.3.0.tgz - -* Create the directory ``/var/local/lib/solr/`` and give the right permissions: :: - - sudo mkdir -p /var/local/lib/solr/ - sudo chown tomcat6:tomcat6 /var/local/lib/solr/ - -* Copy the solr home example to ``/usr/local/share/``: :: - - sudo cp -R apache-solr-3.3.0/example/solr /usr/local/share/ - -* Create a folder for libs in the solr home: :: - - sudo mkdir /usr/local/share/solr/lib/ - -* Copy Solr libs to libs folder: :: - - sudo cp apache-solr-3.3.0/dist/*.jar /usr/local/share/solr/lib/ - -* Copy Solr distribution to solr home: :: - - sudo cp apache-solr-3.3.0/dist/apache-solr-3.3.0.war /usr/local/share/solr/ - -* Link the JDBC Postgres drivers into the Solr installation: :: - - sudo ln -s /usr/share/java/postgresql-jdbc3-8.4.jar /usr/local/share/solr/lib/ - -* Link configurations to ``/etc`` :: - - sudo ln -s /usr/local/share/solr/conf/ /etc/solr - -* Copy the configuration files from this folder into ``/etc/solr/`` - -* Link the ``solr-tomcat.xml`` file in the Tomcat configuration: :: - - sudo ln -s /etc/solr/solr-tomcat.xml /etc/tomcat6/Catalina/localhost/solr.xml - -* Check ``data-config.xml`` to make sure all information to connect to the databases are right - -* Create a ``dataimport.properties`` on ``/etc/solr`` and give write access to ``tomcat6``: :: - - sudo touch /etc/solr/dataimport.properties - sudo chown tomcat6:tomcat6 /etc/solr/dataimport.properties - -* Restart tomcat: :: - - sudo /etc/init.d/tomcat6 restart - -Install Colab and dependencies ------------------------------- - -* Install Apache2 with WSGI support: :: - - sudo apt-get install apache2 libapache2-mod-wsgi - -* Install dependencies to compile psycopg2: :: - - sudo apt-get build-dep python-psycopg2 - -* Install Python PIP and update it: :: - - sudo apt-get install python-pip - sudo pip install -U pip - -* Install python virtualenv: :: - - sudo pip install virtualenv - -* Create a virtualenv for the deploy :: - - sudo mkdir /usr/local/django/ - sudo virtualenv /usr/local/django/colab/ - -* Download the colab ``src`` code: :: - - sudo hg clone https://bitbucket.org/seocam/atu-colab /usr/local/src/colab/ - -* Install the django site: :: - - sudo pip install /usr/local/src/colab -E /usr/local/django/colab/ - -* Configure your database settings in ``/usr/local/django/colab/lib/python2.6/site-packages/settings_local.py`` - -* Enable the colab site on apache and reload it: :: - - sudo ln -s /usr/local/django/colab/apache-site/colab /etc/apache2/sites-available - sudo a2ensite colab - sudo service apache2 restart - -Configuring server to send emails ----------------------------------- - -* Install postfix and mailutils: :: - - sudo apt-get install mailutils postfix - -* Update the file ``/etc/aliases`` adding users that should receive root's messages and run the update command: :: - - sudo newaliases - - -Cron job to import emails ---------------------------- - -* Install sshfs: :: - - sudo apt-get install sshfs autofs - -* Create SSH keys. You should use a password but this tutorial won't cover it (if you use you will need to install and configure keychain process to be able to proceed): :: - - sudo ssh-keygen - -* Copy the content of your key (``/root/.ssh/id_rsa.pub``) to the file ``/root/.ssh/authorized_keys`` on the mailinglist server. - -* Append the following content to /etc/auto.master file: :: - - sudo /usr/local/django/colab/mnt /usr/local/django/colab/autofs/listas --timeout=600,--ghost - -* Restart autofs: :: - - service autofs restart - -* Link cron script into ``/etc/cron.d/`` folder: :: - - ln -s /usr/local/django/colab/etc/cron.d/colab_import_emails /etc/cron.d/ - -* From now on the emails should be imported every minute - - -Cron job to reindex Solr -------------------------- - -* Install wget: :: - - sudo apt-get install wget - -* Link cron script into ``/etc/cron.d/`` folder: :: - - sudo ln -s /usr/local/django/colab/etc/cron.d/colab_solr_reindex /etc/cron.d/ - -* From now on delta reindex should run every 10 minutes and full reindex once a day. - - -Updating an installed version ------------------------------- - -* Update the source code: :: - - sudo cd /usr/local/src/colab/ - sudo hg pull - sudo hg up - sudo pip install /usr/local/src/colab/ -E /usr/local/django/colab/ -U - sudo service apache2 restart -- libgit2 0.21.2