How to install NotreDAM from the development branch

1. MediaDART

First, you have to install MediaDART from the MediaDART repository. Please, refer to the installation instructions provided here.

2. NotreDAM Development Branch

2.1 Installation

Install Mercurial and Sqlite3 with the following commands:

# sudo apt-get install mercurial
# sudo apt-get install sqlite3


You should create a directory anywhere on your Pc, in my example I created it on /home/alessandro/src/.
Then, go to this directory and download the source project:


# hg clone https://notredam.googlecode.com/hg/ notredam


In this way inside this directory, the NotreDAM folder is created with inside the source file of DAM project.
The next step is to create the file setting.py by the file setting.py.dev writing the following command:


# cp setting.py.dev setting.py


At this point, open the file setting.py with your favourite text editor.\
Inside setting.py you have to set the MEDIADART_STORAGE repository to point the folder where to
save all digital contents. Always inside setting.py, verify that the variable PYTHONPATH points at
the mediadart containing folder. In my example, I set:

MEDIADART_STORAGE= /home/alessandro/contenuti_dam
PYTHONPATH=/opt/mediadart


Go on your home directory, in my example /home/alessandro and create the directory “.mediadart” with the following command:

# cd /home/alessandro
# mkdir .mediadart


Now, copy the mediadart.cfg file, saved in your mediadart config folder, into the folder .mediadart
in your home directory. In my example, I type:


# cp /opt/mediadart/mediadart/config/mediadart.cfg /home/alessandro/.mediadart


Note that /opt/mediadart/mediadart/ is my mediadart installation directory and that /opt/mediadart/mediadart/config/
is my mediadart config folder. Now, your are ready to configure the file mediadart.cfg in this way:

**********BEGINNING OF THE FILE CHANGES**********

# set logdir where to save the log files,
# in my example /home/alessandro/contenuti_mediadart/log

logdir = /home/alessandro/contenuti_mediadart/log
[STORAGE]

# storage for resources shared
cache_dir = /home/alessandro/contenuti_mediadart

# raise exception if passed paths are not in the cache
check_in_cache = no

# temporary directory, local
temp_dir = /home/alessandro/contenuti_mediadart

# storage for imports, shared
import_dir = /home/alessandro/contenuti_mediadart


# **********ENDING OF THE FILE CHANGES**********



The next step is to create the DAM Database, running the manage.py script by shell linux:


# python manage.py syncdb –input


2.2 Start mediadart processor

Open a shell linux and go into the DAM installation directory, in my example:
/home/alessandro/src/notredam/src/dam and type the following command:


# python mediadart_processor.py


2.3 Start/Run the DAM

If Mediadart is not already running, open a shell linux and go to inside the folder of your
Mediadart installation, in my example inside the folder /opt/mediadart/mediadart, execute the
export of PYTHONPATH variable and run Mediadart.

# cd /opt/mediadart/mediadart
# export PYTHONPATH=/opt/mediadatr
# python launch.py // run mediadart


At this point, Mediadart is running, therefore it's possible to run the DAM. By shell linux type:


# python manage.py runserver 0.0.0.0:8000


2.4 Working with DAM


Open a web browser, for example Firefox, and into address bar type :


127.0.0.1:8000

press enter.


You should see the DAM homepage.