Skip to content

Instantly share code, notes, and snippets.

@tegila
Last active April 7, 2022 22:43
Show Gist options
  • Save tegila/dd9adb9cc661eff60f59cd0d9d77890d to your computer and use it in GitHub Desktop.
Save tegila/dd9adb9cc661eff60f59cd0d9d77890d to your computer and use it in GitHub Desktop.
matrix synapse install
emerge -av dev-vcs/git vim tmux
[neko]
location = /var/db/repos/neko
sync-type = git
sync-uri = https://gitlab.com/deepbluev7/neko.git
ACCEPT_KEYWORDS="~amd64" emerge -av matrix-synapse
/etc/postgresql/pg_hba.conf
host    all             all             0.0.0.0/0            md5

/etc/postgresql/postgresql.conf
listen_addresses = '*'

tr -dc A-Za-z0-9 </dev/urandom | head -c 32 ; echo ''
createuser --pwprompt synapse_user
createdb --encoding=UTF8 --locale=C --template=template0 --owner=synapse_user synapse
grant all privileges on database synapse to synapse_user;
cp homeserver.db homeserver.db.snapshot
synapse_port_db --sqlite-database /data/homeserver.db.snapshot \
  --postgres-config /etc/synapse/homeserver.yaml.pg
tr -dc A-Za-z0-9 </dev/urandom | head -c 32 ; echo ''
register_new_matrix_user -c /etc/synapse/homeserver.yaml http://localhost:8008

/upgrade
/script load matrix.py

/matrix server add local localhost
/set matrix.server.local.username root
/set matrix.server.local.password 
/matrix connect local

@tegila
Copy link
Author

tegila commented Apr 7, 2022

@tegila
Copy link
Author

tegila commented Apr 7, 2022

@tegila
Copy link
Author

tegila commented Apr 7, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment