Project

General

Profile

Test » History » Version 7

miohtama, 05/17/2009 01:10 PM

1 1 miohtama
h1. Building Quassel core with PostgreSQL support on Ubuntu Hardy
2 1 miohtama
3 6 miohtama
These instructions tell how to build the latest quassel core for your Ubuntu 8.04 Hardy Heron server. PostgreSQL database backend will be used instead of the default SQLite backend, since it scales better with many users and much of history. 
4 6 miohtama
5 3 miohtama
Make sure repositores are up-to-date
6 1 miohtama
<pre>
7 3 miohtama
sudo apt-get update
8 1 miohtama
</pre>
9 1 miohtama
10 6 miohtama
Install required dependencies and build tools
11 3 miohtama
<pre>
12 7 miohtama
sudo apt-get install git-core postgresql-8.3 qt4-dev-tools libqt4-dev libqt4-sql-psql screen
13 3 miohtama
14 3 miohtama
Pull out source codes
15 3 miohtama
<pre>
16 3 miohtama
git clone git://git.quassel-irc.org/quassel.git
17 3 miohtama
</pre>
18 3 miohtama
19 3 miohtama
Build it
20 3 miohtama
<pre>
21 3 miohtama
cd quassel
22 3 miohtama
cmake .
23 5 miohtama
</pre>
24 3 miohtama
25 5 miohtama
Setup PostgreSQL database master user
26 5 miohtama
27 5 miohtama
"Follow these instructions":https://help.ubuntu.com/community/PostgreSQL
28 5 miohtama
29 5 miohtama
Setup quassel PostgreSQL database:
30 5 miohtama
31 5 miohtama
<pre>
32 5 miohtama
sudo -i
33 5 miohtama
sudo -u postgres psql
34 5 miohtama
postgres=# CREATE USER quassel ENCRYPTED PASSWORD 'somepassword';
35 5 miohtama
CREATE ROLE
36 5 miohtama
postgres=# CREATE DATABASE quassel WITH OWNER quassel ENCODING 'UTF8';
37 5 miohtama
CREATE DATABASE
38 3 miohtama
</pre>
39 1 miohtama
40 5 miohtama
Create SSL certificate:
41 5 miohtama
42 5 miohtama
<pre>
43 1 miohtama
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout ~/.config/quassel-irc.org/quasselCert.pem -out ~/.config/quassel-irc.org/quasselCert.pem
44 1 miohtama
</pre>
45 7 miohtama
46 7 miohtama
h2. Running Core