You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

Hosts

Hostname

Use

app-dev.lobber.se

Web application server

db-dev.lobber.se

PgSQL server

tracker-dev.lobber.se

BT Tracker

sn-dev.lobber.se

Storage Node

All hosts are running Ubuntu (9.10 from day 0) with the following extra packages and customizations.

common to all

apt-get install git-core git-doc ssl-cert git-core
apt-get install postfix
# local only configuration!

app-dev.lobber.se

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

Med pyton-setuptools kommer easy_install som vi använder för att plocka ner lite prylar som inte finns paketerade som debian-paket:

# easy_install orbited
# easy_install stompservice

Plocka ner en 3.x-version av stomp.py från http://code.google.com/p/stomppy/ och installera (finns kanske som deb-paket).

Skapa nu /etc/orbited.cfg:

[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-moduler:

# a2enmod shib2
# a2enmod headers
# a2enmod rewrite
# a2enmod proxy
# a2enmod proxy_http

sn-dev.lobber.se

apt-get install rtorrent

db-dev.lobber.se

apt-get install postgresql
  • No labels