annotate doc/install.txt @ 64:f8a307aa811f

fix security hole
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 16 Sep 2024 20:53:23 -0600
parents fe217789a45f
children
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:
61
fe217789a45f new hg server
Franklin Schmidt <fschmidt@gmail.com>
parents: 58
diff changeset
25 hg clone https://hg.reactionary.software/repo/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
58
41d76bd6268a add doc for ssl
Vadim Filimonov <fffilimonov@yandex.ru>
parents: 43
diff changeset
29 replace me.nabble.com with your domain (example for ubuntu.nabble.com)
43
4d90d48a19ec fix init example
Vadim Filimonov <fffilimonov@yandex.ru>
parents: 41
diff changeset
30 configure MailHome.getSmtpServer with your smtp provider and pop3 with name/password for mailboxes
40
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:
58
41d76bd6268a add doc for ssl
Vadim Filimonov <fffilimonov@yandex.ru>
parents: 43
diff changeset
39 http://ubuntu.nabble.com:8080/free-forum.html