annotate doc/install.txt @ 41:f903ebdfa3b3

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 31 Jan 2021 15:35:37 -0700
parents f770c4076954
children 4d90d48a19ec
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
40
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
1 Requirements:
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
2 Ubuntu 16.04.6 LTS
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
3 2 cpu cores
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
4 2 GB RAM
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
5 20 GB SSD
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
6
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
7 Install:
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
8 apt-get update
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
9 apt-get install mercurial default-jdk postgresql make
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
10
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
11 Modify postgres config:
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
12 vim /etc/postgresql/9.5/main/pg_hba.conf
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
13 host all all 127.0.0.1/32 trust
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
14
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
15 Restart postgres:
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
16 /etc/init.d/postgresql restart
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
17
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
18 Create role:
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
19 psql -h localhost -U postgres postgres -c 'CREATE ROLE administrator;ALTER ROLE administrator WITH SUPERUSER INHERIT CREATEROLE CREATEDB LOGIN REPLICATION BYPASSRLS;'
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
20
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
21 Create database:
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
22 psql -h localhost -U postgres postgres -c 'create database nabble owner administrator;'
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
23
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
24 Clone nabble:
41
Franklin Schmidt <fschmidt@gmail.com>
parents: 40
diff changeset
25 hg clone https://hg.luan.software/nabble
40
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
26
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
27 Fix config
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
28 vim nabble/conf/Init.luan
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
29 replace me.nabble.com with server domain
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
30 configure MailHome.getSmtpServer with your smtp provider
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
31
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
32 Start:
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
33 cd nabble
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
34 ./build.sh
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
35 ./setup.sh
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
36 ./serve.sh
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
37
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
38 Visit in browser:
f770c4076954 add install doc
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
39 http://domain/free-forum.html