Project

General

Profile

Test » History » Version 6

miohtama, 05/17/2009 01:04 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 3 miohtama
sudo apt-get install git-core postgresql-8.3 qt4-dev-tools libqt4-dev libqt4-sql-psql
13 3 miohtama
</pre>
14 3 miohtama
15 3 miohtama
Pull out source codes
16 3 miohtama
<pre>
17 3 miohtama
git clone git://git.quassel-irc.org/quassel.git
18 3 miohtama
</pre>
19 3 miohtama
20 3 miohtama
Build it
21 3 miohtama
<pre>
22 3 miohtama
cd quassel
23 3 miohtama
cmake .
24 5 miohtama
</pre>
25 3 miohtama
26 5 miohtama
Setup PostgreSQL database master user
27 5 miohtama
28 5 miohtama
"Follow these instructions":https://help.ubuntu.com/community/PostgreSQL
29 5 miohtama
30 5 miohtama
Setup quassel PostgreSQL database:
31 5 miohtama
32 5 miohtama
<pre>
33 5 miohtama
sudo -i
34 5 miohtama
sudo -u postgres psql
35 5 miohtama
postgres=# CREATE USER quassel ENCRYPTED PASSWORD 'somepassword';
36 5 miohtama
CREATE ROLE
37 5 miohtama
postgres=# CREATE DATABASE quassel WITH OWNER quassel ENCODING 'UTF8';
38 5 miohtama
CREATE DATABASE
39 3 miohtama
</pre>
40 1 miohtama
41 5 miohtama
Create SSL certificate:
42 5 miohtama
43 5 miohtama
<pre>
44 5 miohtama
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout ~/.config/quassel-irc.org/quasselCert.pem -out ~/.config/quassel-irc.org/quasselCert.pem
45 5 miohtama
</pre>