Bulk delete of trac tickets from FIRST to LAST

for i in $(seq FIRST LAST);  do trac-admin /path/to/trac/installation ticket remove $i; done

Base Install

Apache2 – apt-get  (These are done by the web2py ubuntu script as well, so drive from there).

apt-get update
apt-get -y install openssh-server
apt-get -y install python
apt-get -y install python-dev
apt-get -y install apache2
apt-get -y install libapache2-mod-wsgi
apt-get -y install libapache2-mod-proxy-html
ln -s /etc/apache2/mods-available/proxy_http.load /etc/apache2/mods-enabled/proxy_html.load  a2enmod ssl
a2enmod proxy
a2enmod proxy_http
a2enmod wsgi

a2enmod headers
a2enmod expires


mkdir /etc/apache2/ssl

cd /etc/apache2/ssl/
openssl genrsa 1024 > self_signed.key
chmod 400 self_signed.key
openssl req -new -x509 -nodes -sha1 -days
openssl x509 -noout -fingerprint -text < self_signed.cert


apt-get install trac

after installation must also set up login to trac

trac-admin /home/www-data/trac_web2py initenv

chown -R www-data:www-data /home/www-data/trac_web2py/
[tracd –port 8000 /home/www-data/trac_web2py]

mkdir apache2
cd apache2
cat > trac.wsgi
nano trac.wsgi

easy_install https://trac-hacks.org/svn/accountmanagerplugin/0.11
/etc/init.d/apache2 restart

htpasswd -c trac.htpasswd bugs
chown www-data:www-data trac.htpasswd
/etc/init.d/apache2 restart

easy_install https://trac-hacks.org/svn/accountmanagerplugin/0.11

trac-admin /home/www-data/trac_web2py/ permission add anonymous TRAC_ADMIN

then from admin page add relevant user to TRAC_ADMIN group and remove anonymous.

postfix (add as internet server)

apt-get install postfix

apt-get -y install mutt # for testing

postfix aliases


wget http://web2py.com/examples/static/web2py_src.zip
unzip web2py_src.zip
apt-get install unzip
unzip web2py_src.zip
chown -R www-data:www-data web2py

Additional stuff:

w3m (for html to text):

apt-get install w3m

pyparsing [don’t need pyparsing] and nltk [don’t need nltk!]

mv ../bb/nltk-2.0b9.zip .                #       from transfer directory to downloads area for processing
mv ../bb/pyparsing-1.5.5.tar.gz
mv ../bb/pyparsing-1.5.5.tar.gz  .
gunzip pyparsing-1.5.5.tar.gz
unzip nltk-2.0b9.zip
tar xf pyparsing-1.5.5.tar

cd pyparsing-1.5.5
python setup.py build
python setup.py install
cd ../nltk-2.0b9
apt-get install python-numpy
apt-get -y install python-matplotlib prover9
apt-get install python-yaml
python setup.py install

Awstats for site stats <- follow the tutorial, not the autoconf

Flex and bison

doesn’t need unicode patch, use regexps to deal with unicode and keep track of character position manually

apt-get install flex bison

Tokenisation changes

recompiled tokeniser goes in web2py parent directory

0 Responses to “Setting up server/Admin”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog Stats

  • 216,532 hits

OSWALD Newsletter

If you would like to receive OSWALD, a weekly open source news digest please send an email to oswald (with the subject "subscribe") at opensourcelaw.biz

%d bloggers like this: