Child pages
  • Lobber development sandbox

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Englify.

...

Code Block
apt-get install python-django apache2 libapache2-mod-shib2 python-libtorrent \
   python-bittorrent python-django-doc python-egenix-mxdatetime python-egenix-mxtools \
   python-psycopg2 python-pycurl python-openssl postgresql-client-8.4 python-twisted \
   python-setuptools python-pysqlite2 libapache2-mod-python python-django-tagging \
   python-werkzeug python-django-extensions python-django-evolution deluge-common

Med pytonpython-setuptools kommer gives us easy_install som vi använder för att plocka ner lite prylar som inte finns paketerade som debian-paket-install which we use for installing some stuff not packaged in Debian packages:

Code Block
# easy_install orbited
# easy_install stompservice

Plocka ner en Get a 3.x - version av of stomp.py från from http://code.google.com/p/stomppy/ och installera (finns kanske som deb-paket). Skapa nu and install:

Create /etc/orbited.cfg:

Code Block
[listen]
http://:9000
stomp://:61613

[access]
* -> localhost:61613

[static]

[global]
session.ping_interval = 300
user=www-data

[logging]
debug=STDERR,debug.log
info=STDERR,info.log
access=STDERR,info.log
warn=STDERR,error.log
error=STDERR,error.log

#Don't enable debug by default
enabled.default=info,access,warn,error

och se till att orbited startas: orbited -c /etc/orbited.cfg vid boot (/etc/rc.local till nöds)

Aktivera lite apache-modulerand make sure that orbited is started like this automatically at boot: orbited -c /etc/orbited.cfg

Activate some Apache modules:

Code Block
# a2enmod shib2
# a2enmod headers
# a2enmod rewrite
# a2enmod proxy
# a2enmod proxy_http

Slutligen behöver man se till att lobber kan skicka mail. Detta sker genom en STOMP-klient som körs via twisted. Starta följande i src-katalogenFinally, make sure that Lobber can send email. This is done via STOMP messages to a twisted. Run this (in the src directory):

Code Block
# env PYTHONPATH=`pwd`:$PYTHONPATH twistd -y sendmail.tac

sn-dev.lobber.se

Se See Running a storage node

Notera att Note that app-dev numera är en is a storage -node också - det är så vi gör node too nowadays – that's how we do file upload.

db-dev.lobber.se

...