Project

General

Profile

Migrating from Monolithic to Client+Core » History » Version 9

butterfly, 09/30/2016 09:05 AM

1 1 ChrisH
h1. Migrating from Monolithic to Client+Core
2 1 ChrisH
3 1 ChrisH
h2. Install The Core
4 1 ChrisH
5 1 ChrisH
...
6 1 ChrisH
7 1 ChrisH
h2. Migrate Database
8 1 ChrisH
9 2 ChrisH
If your Core is going to be on a different computer/under a different user account than your monolithic client was running on, you'll probably need to migrate the data.
10 2 ChrisH
11 1 ChrisH
h3. SQLite
12 2 ChrisH
13 2 ChrisH
For SQLite, it's as simple as copying/moving a file. The default locations are:
14 1 ChrisH
15 8 ChrisH
*   **Windows:** @%APPDATA%/quassel-irc.org/quassel-storage.sqlite@
16 9 butterfly
*   **OS X:** ~/Library/Application Support/Quassel/quassel-storage.sqlite
17 5 ChrisH
*   **Linux:** (One of the following)
18 6 ChrisH
19 7 ChrisH
    *   @~/.config/quassel-irc.org/@
20 7 ChrisH
    *   @/var/lib/quassel@
21 1 ChrisH
22 1 ChrisH
h3. PostgreSQL
23 1 ChrisH
24 8 ChrisH
http://stackoverflow.com/questions/1237725/how-to-copy-postgres-database-to-another-server
25 8 ChrisH
26 8 ChrisH
    pg_dump -C dbname | ssh -C remoteuser@remotehost "psql dbname"
27 1 ChrisH
28 1 ChrisH
h2. Change Default Login Password
29 1 ChrisH
30 1 ChrisH
The monolithic client creates a default user called `AdminUser`, with a randomly generated password. The password isn't used in the monolithic client, and there's no way to find out what it is as the password is encrypted in the database. So we need to overwrite it. Run the following command:
31 1 ChrisH
32 1 ChrisH
*   **Windows (x64):**
33 1 ChrisH
** Start > Run
34 1 ChrisH
** Type @cmd.exe@ then click ok.
35 4 ChrisH
** Type @"C:\Program Files (x86)\Quassel\bin\quasselcore.exe" --change-userpass=AdminUser@ then press enter.
36 1 ChrisH
** Follow the instructions to change the password.
37 9 butterfly
*   **OS X:**
38 9 butterfly
** Open Terminal
39 9 butterfly
** Type @quasselcore --change-userpass=AdminUser@ then press enter.
40 4 ChrisH
*   **Linux:**
41 4 ChrisH
** Open Terminal
42 4 ChrisH
** Type @quasselcore --change-userpass=AdminUser@ then press enter.
43 1 ChrisH
44 1 ChrisH
For more about managing users, see [[Manage core users|User Management]].
45 1 ChrisH
46 1 ChrisH
h2. Connect The Client To The Core
47 1 ChrisH
48 3 ChrisH
http://bugs.quassel-irc.org/projects/1/wiki#Connecting-to-the-core