Install-log McStas webserver

1) Debian 7.1 netinst iso 64bit DL+install, C locale

2) Openssh server selected, IP is 192.168.33.165

3) apt-get install xbase-clients build-essential emacs subversion sudo . Add openmpi and libopenmpi-dev if you need MPI

4) Enable the non-free repos:
deb http://http.debian.net/debian/ wheezy main contrib non-free

5) Add McCode repos and install mcstas-suite-perl to get mcstas

6) Check out the McCode SVN repos

A] 
7) Let's try the FLASK version first - copy trunk/tools/Python/www to /srv/mcstas-flask

8) deps.txt tells me to also install Python, autoconf, sqlite3, python-dev, python-setuptools

9) Try with apt-get install nginx-full, claims to be version 1.2.1-2.2

10) execute bin/get-dependencies.sh

11) Populate sim/ with at least one instr - cp /usr/local/lib/mcstas-2.0/examples/BNL_H8.instr sim

12) ./bin/init-db.sh 

12.5) If you installed MPI you need to edit config.py for MPI_NP!

13) ./bin/create-user.sh mcstas 1234

14) ./bin/update-simulations.sh

15) edit mcstas.conf.template in nginx/ for nginx on port 80

16) ./bin/start-worker.sh to background

17) ./bin/start-server.sh

!!! WORKS !!! Note: all done with root privs in this example, should be tested without

B] Then let's try django


7) cp -rp /root/trunk/tools/Python/www-django/mcwww/ /srv/mcstas-django

8) Hardly any docs....


10) execute bin/get-dependencies.sh

11) Populate sim/ with at least one instr - cp /usr/local/lib/mcstas-2.0/examples/PSI_DMC.instr sim

12) export LC_ALL="en_US.UTF-8"  ./bin/init-db.sh fails due to django missing - install that python-django. 

Username (leave blank to use 'root'): 
E-mail address: pkwi@fysik.dtu.dk
Password: 
Password (again): 
Superuser created successfully.

14) ./manage.py createuser mcstas 1234

15) ./bin/update-simulations.sh  AND ./manage.py populate_db

16) ./manage.py runworker (to background)

17) ./manage.py runserver 192.168.33.165:80





