First a few prerequesites:
apt-get update apt-get install git libxslt-dev libxml2-dev libldap2-dev libsasl2-dev libmysqlclient-dev python-dev python-virtualenv
Create a virtual environment and run the actual installation:
mkdir ~/venv/RatticWeb mkdir -p ~/venv/RatticWeb virtualenv ~/venv/RatticWeb source ~/venv/RatticWeb/bin/activate git clone https://github.com/tildaslash/RatticWeb.git cd RatticWeb/ pip install -r requirements-mysql.txt -r requirements-dev.txt cat > conf/local.cfg <<EOF [ratticweb] secretkey = [ENTER SOMETHING RANDOM HERE] debug = true [filepaths] help = ../RatticWeb.wiki EOF
Finally bring the database up2date and start the server:
./manage.py syncdb ./manage.py migrate ./manage.py runserver 0.0.0.0:8000
During the syncdb procedure you will be asked to create an admin user. You can use this login later on to login
You may want to change 0.0.0.0 to your IP and change the port.
You should always access Rattic via https – you’re handling confidential data in there.
By default your server will run on a sqlite database and an unencrypted filesystem. I strongly encourage you to change that. For more information please have a look at the Github site.