changeset 40:f770c4076954

add install doc
author Vadim Filimonov <fffilimonov@yandex.ru>
date Tue, 14 Jul 2020 22:06:41 +0300
parents b5d56f522ea3
children f903ebdfa3b3
files doc/install.txt
diffstat 1 files changed, 39 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
diff -r b5d56f522ea3 -r f770c4076954 doc/install.txt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/doc/install.txt	Tue Jul 14 22:06:41 2020 +0300
@@ -0,0 +1,39 @@
+Requirements:
+Ubuntu 16.04.6 LTS
+2 cpu cores
+2 GB RAM
+20 GB SSD
+
+Install:
+apt-get update
+apt-get install mercurial default-jdk postgresql make
+
+Modify postgres config:
+vim /etc/postgresql/9.5/main/pg_hba.conf
+host    all             all             127.0.0.1/32            trust
+
+Restart postgres:
+/etc/init.d/postgresql restart
+
+Create role:
+psql -h localhost -U postgres postgres -c 'CREATE ROLE administrator;ALTER ROLE administrator WITH SUPERUSER INHERIT CREATEROLE CREATEDB LOGIN REPLICATION BYPASSRLS;'
+
+Create database:
+psql -h localhost -U postgres postgres -c 'create database nabble owner administrator;'
+
+Clone nabble:
+hg clone https://hg.luan.ws/nabble
+
+Fix config
+vim nabble/conf/Init.luan
+replace me.nabble.com with server domain
+configure MailHome.getSmtpServer with your smtp provider
+
+Start:
+cd nabble
+./build.sh
+./setup.sh
+./serve.sh
+
+Visit in browser:
+http://domain/free-forum.html