OpenSlides/INSTALL.txt

202 lines
6.0 KiB
Plaintext
Raw Normal View History

2012-10-30 20:05:54 +01:00
Installation Instructions for OpenSlides 1.3
2012-04-27 16:07:57 +02:00
============================================
Content
-------
2012-11-28 18:46:47 +01:00
I. Installation on GNU/Linux and MacOSX using the Python Package Index (PyPI)
II. Installation on GNU/Linux and MacOSX using the sources
III. Installation on Windows (32/64bit)
2012-04-27 16:07:57 +02:00
2012-07-15 17:05:36 +02:00
If you need help ask on OpenSlides users mailing list.
See http://openslides.org for more information.
2012-04-27 16:07:57 +02:00
2012-11-28 18:46:47 +01:00
I. Installation on GNU/Linux and MacOSX using the Python Package Index (PyPI)
-----------------------------------------------------------------------------
1. Check requirements:
Make sure that you have installed Python (>= 2.5) on your system.
2. Set up virtual environment with virtualenv (optional):
2012-11-28 18:46:47 +01:00
You can setup a virtual environment to install OpenSlides as
non-root user.
2012-11-28 18:46:47 +01:00
E. g. for ubuntu run:
$ sudo apt-get install python-virtualenv
2012-11-28 18:46:47 +01:00
To setup and activate the virtual environment, create your
OpenSlides directory, change to it and run:
2012-11-28 18:46:47 +01:00
$ virtualenv .venv
$ source .venv/bin/activate
3. Install OpenSlides:
$ pip install openslides
2012-11-28 18:46:47 +01:00
OpenSlides will install the following required python packages:
+ Django
+ django-mptt
+ ReportLab Toolkit
+ Python Imaging Library (PIL)
2012-11-28 18:46:47 +01:00
4. Start OpenSlides server and open URL in your default browser:
$ openslides
If you run this command the first time a new database and the
admin account are created. Please change the password after
first login!
Username: admin
Password: admin
Use 'openslides --help' to show all start options.
2012-11-28 18:46:47 +01:00
II. Installation on GNU/Linux and MacOSX using the sources
----------------------------------------------------------
1. Install requirements:
OpenSlides requires following programs, which should be
installed first:
+ Python Programming Language 2 (>= 2.5)
+ virtualenv (>= 1.4.1)
+ ReportLab Toolkit
+ Python Imaging Library (PIL)
E. g. for ubuntu run:
$ sudo apt-get install python python-virtualenv python-reportlab python-imaging
2. Get OpenSlides:
a) Download latest OpenSlides release from http://openslides.org.
OR
b) Clone development version from OpenSlides' github repository
https://github.com/OpenSlides/OpenSlides. This requires Git,
see http://git-scm.com/.
E. g. for ubuntu run:
$ sudo apt-get install git
$ git clone git://github.com/OpenSlides/OpenSlides.git OpenSlides
3. Setup your virtual environment with virtualenv:
Go to the (extracted/cloned) root directory of OpenSlides
and create virtualenv environment:
$ virtualenv .venv
For virtualenv >= 1.7 use instead:
$ virtualenv --system-site-packages .venv
4. Activate the virtual environment:
$ source .venv/bin/activate
5. Install the required python-packages:
$ pip install django django-mptt
If you use python < 2.6 you also have to install simplejson:
$ pip install simplejson
If requirements reportlab or PIL still missing (see 1.):
$ pip install reportlab pil
6. Start OpenSlides server and open URL in your default browser:
$ python start.py
If you run this script the first time a new database and the
admin account are created. Please change the password after
first login!
Username: admin
Password: admin
Use 'python start.py --help' to show all start options.
7. Restart OpenSlides:
To restart OpenSlides after closing the terminal activate the
virtual environment (see 4.) before starting the server (see 6.).
III. Installation on Windows (32/64bit)
---------------------------------------
NOTE: There is a portable version of OpenSlides for Windows which does not
required any install steps! If there is a reason that you can not use the
portable version you should run the following install steps.
2012-04-27 16:07:57 +02:00
2012-07-15 17:05:36 +02:00
1. Install requirements:
OpenSlides requires following programs, which should be
installed first:
+ Python Programming Language 2 (>= 2.5),
+ Setuptools
+ ReportLab Toolkit
+ Python Imaging Library (PIL)
+ Django
+ django-mptt
2012-07-15 17:05:36 +02:00
a) Download and run 32bit MSI installer from http://www.python.org/:
2012-07-15 17:05:36 +02:00
http://python.org/ftp/python/2.7.3/python-2.7.3.msi
2012-04-27 16:07:57 +02:00
b) Add python dirs to PATH (via Control Panel > System > Advanced):
2012-07-15 17:05:36 +02:00
";C:\Python27;C:\Python27\Scripts"
2012-04-27 16:07:57 +02:00
2012-07-15 17:05:36 +02:00
c) Install Setuptools:
2012-04-27 16:07:57 +02:00
2012-07-15 17:05:36 +02:00
Download and run 32bit binary installer from
http://pypi.python.org/pypi/setuptools:
2012-07-15 17:05:36 +02:00
http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11.win32-py2.7.exe
2012-04-27 16:07:57 +02:00
2012-07-15 17:05:36 +02:00
d) Install ReportLab Toolkit, Python Imaging Library (PIL), Django
and django-mptt:
2012-07-15 17:05:36 +02:00
Open command line (cmd) and run:
2012-04-27 16:07:57 +02:00
2012-07-15 17:05:36 +02:00
easy_install django django-mptt reportlab pil
2012-07-15 11:14:05 +02:00
2012-07-15 17:05:36 +02:00
If you use a 64bit version of Python, you have to install reportlab
2012-10-30 20:05:54 +01:00
and PIL manually - without using easy_install.
2012-04-27 16:07:57 +02:00
2012-07-15 17:05:36 +02:00
2. Get OpenSlides:
2012-04-27 16:07:57 +02:00
2012-07-15 17:05:36 +02:00
a) Download latest OpenSlides release from http://openslides.org.
2012-04-27 16:07:57 +02:00
2012-07-15 17:05:36 +02:00
OR
2012-04-27 16:07:57 +02:00
2012-10-30 20:05:54 +01:00
b) Clone development version from OpenSlides' github repository
2012-11-28 18:46:47 +01:00
https://github.com/OpenSlides/OpenSlides. This requires Git,
see http://git-scm.com/.
2012-07-15 17:05:36 +02:00
Open command line (cmd) and run:
2012-10-30 20:05:54 +01:00
git clone git://github.com/OpenSlides/OpenSlides.git
2012-04-27 16:07:57 +02:00
2012-07-15 17:05:36 +02:00
3. Start OpenSlides server and open URL in your default browser:
2012-04-27 16:07:57 +02:00
2012-07-15 17:05:36 +02:00
python start.py
2012-04-27 16:07:57 +02:00
2012-07-15 17:05:36 +02:00
If you run this script the first time a new database and the
admin account are created. Please change the password after
first login!
2012-04-27 16:07:57 +02:00
2012-07-15 17:05:36 +02:00
Username: admin
Password: admin
2012-04-27 16:07:57 +02:00
2012-07-15 17:05:36 +02:00
Use 'python start.py --help' to show all start options.