Project

General

Profile

BuildingCoreOnUbuntu » History » Version 1

miohtama, 05/17/2009 01:13 PM

1 1 miohtama
h1. Building Quassel core with PostgreSQL support on Ubuntu Hardy
2 1 miohtama
3 1 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 1 miohtama
5 1 miohtama
Make sure repositores are up-to-date
6 1 miohtama
<pre>
7 1 miohtama
sudo apt-get update
8 1 miohtama
</pre>
9 1 miohtama
10 1 miohtama
Install required dependencies and build tools
11 1 miohtama
<pre>
12 1 miohtama
sudo apt-get install git-core postgresql-8.3 qt4-dev-tools libqt4-dev libqt4-sql-psql screen
13 1 miohtama
14 1 miohtama
Pull out source codes
15 1 miohtama
<pre>
16 1 miohtama
git clone git://git.quassel-irc.org/quassel.git
17 1 miohtama
</pre>
18 1 miohtama
19 1 miohtama
Build it
20 1 miohtama
<pre>
21 1 miohtama
cd quassel
22 1 miohtama
cmake .
23 1 miohtama
</pre>
24 1 miohtama
25 1 miohtama
Setup PostgreSQL database master user
26 1 miohtama
27 1 miohtama
"Follow these instructions":https://help.ubuntu.com/community/PostgreSQL
28 1 miohtama
29 1 miohtama
Setup quassel PostgreSQL database:
30 1 miohtama
31 1 miohtama
<pre>
32 1 miohtama
sudo -i
33 1 miohtama
sudo -u postgres psql
34 1 miohtama
postgres=# CREATE USER quassel ENCRYPTED PASSWORD 'somepassword';
35 1 miohtama
CREATE ROLE
36 1 miohtama
postgres=# CREATE DATABASE quassel WITH OWNER quassel ENCODING 'UTF8';
37 1 miohtama
CREATE DATABASE
38 1 miohtama
</pre>
39 1 miohtama
40 1 miohtama
Create SSL certificate:
41 1 miohtama
42 1 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 1 miohtama
46 1 miohtama
h2. Running Core
47 1 miohtama
48 1 miohtama
"Screen":http://www.debuntu.org/2006/07/04/72-how-to-screen-the-ultimate-admin-tool is a terminal tool which allwos you to leave terminal sessions running background even when you are logged out.
49 1 miohtama
50 1 miohtama
We run quassel in screen so that core keeps running as long as it is killed or the server is restarted
51 1 miohtama
52 1 miohtama
<pre>
53 1 miohtama
screen
54 1 miohtama
cd quassel
55 1 miohtama
./quasselcore
56 1 miohtama
</pre>
57 1 miohtama
58 1 miohtama
59 1 miohtama
Later we can reattach to this session. Login in and type:
60 1 miohtama
61 1 miohtama
<pre>
62 1 miohtama
screen -x
63 1 miohtama
</pre>