Blame
Date:
Mon Jan 23 05:00:25 2023 UTC
Message:
Daily backup
01
2023-01-22
jrmu
version=pmwiki-2.2.130 ordered=1 urlencoded=1
02
2023-01-22
jrmu
agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36
03
2023-01-22
jrmu
author=miniontoby
04
2023-01-22
jrmu
charset=UTF-8
05
2023-01-22
jrmu
csum=Created
06
2023-01-22
jrmu
ctime=1634050187
07
2023-01-22
jrmu
host=77.168.188.164
08
2023-01-22
jrmu
name=Synapse.Install
09
2023-01-22
jrmu
rev=1
10
2023-01-22
jrmu
targets=
11
2023-01-22
jrmu
text=If you want to host a Matrix Server, then you are here on the right place.%0a%0a!! Options:%0a%0aThere are 2 options: %0a%0a# Use pkg_add (which I don't recommend, because it is likely going to fail)%0a# Install using pip%0a%0a%0a!! Option 2:%0a%0a!!! Create user:%0a%0aFirstly make the user called synapse, by using this command:%0a%0a[@$ doas adduser@]%0a%0aAnd fill in the fields like: %0a%0a[@login synapse%0apasswd *%0auid 1010%0agroups synapse%0achange NEVER%0aclass%0agecos synapse%0adir /home/synapse%0ashell /bin/ksh%0aexpire NEVER@]%0a%0aThen login into the user (ssh or su)%0a%0a!!! Install%0a%0aTo install the synapse:%0a%0a[@cd ~/%0amkdir -p ~/synapse%0apython3.8 -mvenv /home/synapse/synapse/env%0a. ~/synapse/env/bin/activate%0apip3.8 install --upgrade pip%0apip3.8 install --upgrade setuptools%0apip3.8 install matrix-synapse%0a@]%0a%0a!!! Create config%0a%0aTo make the config:%0a%0a[@cd ~/synapse%0apython -m synapse.app.homeserver \%0a --server-name my.domain.name \%0a --config-path homeserver.yaml \%0a --generate-config \%0a --report-stats=[yes|no]@]%0a%0a'+'''Make sure to edit homeserver.yaml'''+'%0a%0aAnd make the ssl certs and such... also open the tls port (8448) in the config file and on your firewall%0a%0a%0a!!! Start%0a%0aTo start the server:%0a%0a[@alias synctl="/usr/local/share/synapse/synctl"%0asynctl start@]%0a%0a%0a!!! Recommended%0a%0aRecommended to add this to the synapse account .profile file:%0a%0a[@%0astart_synapse(){%0a python3.8 -mvenv /home/synapse/synapse/env%0a export ENV="/home/synapse/synapse/env/bin/activate"%0a alias synctl="/usr/local/share/synapse/synctl"%0a synctl start%0a}%0a@]%0a%0aThen when you need to start the server, just execute: [@start_synapse@] %0a%0aP.s. only works when you have executed the .profile file...%0a%0a%0a!! Test%0a%0aUse element: [[https://app.element.io]] and try to connect%0a%0a
12
2023-01-22
jrmu
time=1634050187
13
2023-01-22
jrmu
author:1634050187=miniontoby
14
2023-01-22
jrmu
csum:1634050187=Created
15
2023-01-22
jrmu
diff:1634050187:1634050187:=1,92d0%0a%3c If you want to host a Matrix Server, then you are here on the right place.%0a%3c %0a%3c !! Options:%0a%3c %0a%3c There are 2 options: %0a%3c %0a%3c # Use pkg_add (which I don't recommend, because it is likely going to fail)%0a%3c # Install using pip%0a%3c %0a%3c %0a%3c !! Option 2:%0a%3c %0a%3c !!! Create user:%0a%3c %0a%3c Firstly make the user called synapse, by using this command:%0a%3c %0a%3c [@$ doas adduser@]%0a%3c %0a%3c And fill in the fields like: %0a%3c %0a%3c [@login synapse%0a%3c passwd *%0a%3c uid 1010%0a%3c groups synapse%0a%3c change NEVER%0a%3c class%0a%3c gecos synapse%0a%3c dir /home/synapse%0a%3c shell /bin/ksh%0a%3c expire NEVER@]%0a%3c %0a%3c Then login into the user (ssh or su)%0a%3c %0a%3c !!! Install%0a%3c %0a%3c To install the synapse:%0a%3c %0a%3c [@cd ~/%0a%3c mkdir -p ~/synapse%0a%3c python3.8 -mvenv /home/synapse/synapse/env%0a%3c . ~/synapse/env/bin/activate%0a%3c pip3.8 install --upgrade pip%0a%3c pip3.8 install --upgrade setuptools%0a%3c pip3.8 install matrix-synapse%0a%3c @]%0a%3c %0a%3c !!! Create config%0a%3c %0a%3c To make the config:%0a%3c %0a%3c [@cd ~/synapse%0a%3c python -m synapse.app.homeserver \%0a%3c --server-name my.domain.name \%0a%3c --config-path homeserver.yaml \%0a%3c --generate-config \%0a%3c --report-stats=[yes|no]@]%0a%3c %0a%3c '+'''Make sure to edit homeserver.yaml'''+'%0a%3c %0a%3c And make the ssl certs and such... also open the tls port (8448) in the config file and on your firewall%0a%3c %0a%3c %0a%3c !!! Start%0a%3c %0a%3c To start the server:%0a%3c %0a%3c [@alias synctl="/usr/local/share/synapse/synctl"%0a%3c synctl start@]%0a%3c %0a%3c %0a%3c !!! Recommended%0a%3c %0a%3c Recommended to add this to the synapse account .profile file:%0a%3c %0a%3c [@%0a%3c start_synapse(){%0a%3c python3.8 -mvenv /home/synapse/synapse/env%0a%3c export ENV="/home/synapse/synapse/env/bin/activate"%0a%3c alias synctl="/usr/local/share/synapse/synctl"%0a%3c synctl start%0a%3c }%0a%3c @]%0a%3c %0a%3c Then when you need to start the server, just execute: [@start_synapse@] %0a%3c %0a%3c P.s. only works when you have executed the .profile file...%0a%3c %0a%3c %0a%3c !! Test%0a%3c %0a%3c Use element: [[https://app.element.io]] and try to connect%0a%3c %0a
16
2023-01-22
jrmu
host:1634050187=77.168.188.164
IRCNow