Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Install Matrix (with pip)
- # Install Python and PIP (https://pastebin.com/7GJYFSQm)
- cd /home
- pip install virtualenv
- python -m virtualenv synapse
- cd synapse
- source bin/activate
- pip install -U matrix-synapse
- # Now adjust and use this command (--config-path you should leave as is)
- python -m synapse.app.homeserver \
- --server-name my.domain.name \
- --config-path homeserver.yaml \
- --generate-config \
- --report-stats=yes # yes or no
- synctl start
- !If you want to use SMTP for your matrix, add and adjust this at the end of your config:
- smtp_host: 127.0.0.1
- smtp_port: 587
- smtp_user: smtp_user
- smtp_pass: smtp_pass
- !If you use PostgreSQL
- database:
- name: psycopg2
- args:
- user: <user>
- password: <pass>
- database: <db>
- host: <host>
- cp_min: 5
- cp_max: 10
- !!Go into PostgreSQL (for Setup and go into see: https://pastebin.com/hf61pyhi)... Then:
- CREATE USER <user> SUPERUSER CREATEDB CREATEROLE LOGIN REPLICATION BYPASSRLS PASSWORD <pass>
- CREATE DATABASE <db> ENCODING=UTF8 LOCALE=C
- # Now restart
- synctl restart
- # Register new user
- register_new_matrix_user -c homeserver.yaml
- # Then go to zu https://matrix-org.github.io/synapse/latest/reverse_proxy.html and follow the instructions
- // Install Element
- mkdir /home/element
- cd /home/element
- git init
- git remote add origin https://github.com/vector-im/element-web.git
- git pull origin develop
- rm -r .* *.md *.rst
- rm -r yarn.lock
- chmod -R 777 .
- # Install NodeJS first (https://pastebin.com/Rf1vVKsR)
- yarn
- yarn clean && yarn build:genfiles && yarn build:bundle
- yarn dist
- cd dist
- gunzip *
- tar xvf *
- mv * /var/www/html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement