Setup on Ubuntu 10.04 LTS

3 views
Skip to first unread message

Jeffrey Collyer

unread,
Aug 11, 2010, 12:11:04 PM8/11/10
to roster-discussion
The stuff that I had to do to get rosterd to run. This is on a VM
running Ubuntu Linux 10.04 LTS

apt-get install mysql-common
apt-get install mysql-client
apt-get install mysql-server
apt-get install libmysql++-dev
apt-get install build-essential
apt-get install libmysqlclient-dev
apt-get install python-mysqldb
apt-get install python-dev
apt-get install python-ldap
apt-get install libssl-dev

Installed MySQL-python-1.2.3 from scratch, since the ubuntu build of
1.2.2 seemed to be in the wrong place.
Also libmysql++-dev is required to get the mysql_conf file that the
MySQL Python stuff needs.

Needed to create the ssl certificates ahead of the the database
bootstrap
Needed to create a blank database ahead of the database bootstrap

/usr/local/bin/roster_database_bootstrap -d roster -n localhost -u
root -U roster-admin --ssl-cert=/etc/apache2/ssl/cert.pem --ssl-key=/
etc/apache2/ssl/key.pem

It wasn't completely clear that -n meant the database server and -u
was the database privileged user
and the ssl keys had to be specified on the command line. I couldn't
get it to bootstrap without providing them.

/etc/init.d/rosterd was not installed with execute permissions

on running /etc/init.d/rosterd :
ERROR: Roster will not start with a world writable config file.
Please change the permissions of "/etc/roster/roster_server.conf"
but
-r--r--r-- 1 root root 733 2010-08-11 11:48 roster_server.conf

the actual python code here is looking for no permission for other ( a
0 in alot 3 of the perms), not just for world unwritable.

And then it started up just fine.

Hope this helps
Jeff



Reply all
Reply to author
Forward
0 new messages