meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
digital:server:matrixsynapserandom [2018/11/01 22:40]
natrius
— (current)
Line 1: Line 1:
-# Matrix Synapse Random 
  
-## Optional Adminshell 
- 
-If you forgot to write ''sudo'' and don't want to rewrite the whole command, just type ''sudo !!'' to execute the last command with sudo rights. 
- 
-There is another way but you should **not** work like that all the time because its not secure. There is a reason you have to write ''sudo'' for a lot of commands. For an initial server setup you may have to type a lot of commands, to avoid typing ''sudo *'' all the time, it is possible to type in ''sudo su''. This opens a admin-shell and you should be able to work without typing ''sudo'' in. Keep in mind, ''exit'' after step 8 and don't use ''sudo su'' when you just have to type in some commands. 
- 
-## Change listener port 
- 
-Now check if the HTTP and HTTPS listener port '8008' and '8448' are bound to the local IP address ''0.0.0.0'' (and not to ''127.0.0.1''. 
- 
-<code>sudo nano /etc/matrix-synapse/homeserver.yaml</code> 
- 
-<code> 
-    port: 8448 
-    bind_addresses: 
-      - '0.0.0.0' 
- 
-    - port: 8008 
-    bind_addresses: ['127.0.0.1'] 
-</code> 
- 
-## Installing Bots 
- 
-Matrix Synapse currently does not have a concept of bots, a bot is just a normal user. Usally there is a config and a ''.py'' file, download the files, unpack them and run the ''.py'' file. Running and downloading things via pip is not recommended. 
- 
-Install python3 
- 
-<code>sudo apt install python3</code> 
- 
-then install pip 
- 
-<code>sudo apt install python3-pip</code> 
- 
-then matrix-bot-api from pyp 
- 
-<code>pip3 install matrix-bot-api</code> 
- 
-and finally fill out the config and start it  
- 
-<code>python3 pollbot.py</code>