This commit is contained in:
Luke Smith 2021-09-14 14:09:06 -04:00
parent 8b00228bbf
commit f0e6173771
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252
2 changed files with 48 additions and 4 deletions

View File

@ -25,7 +25,7 @@
<p>First, install some dependencies:</p>
<pre><code>apt install gpg apt-transport-https nginx python-certbot-nginx</code></pre>
<pre><code>apt install gpg apt-transport-https nginx python3-certbot-nginx</code></pre>
<p>Jitsi has its own package repository, so let's add it.</p>

View File

@ -12,12 +12,13 @@
<header><h1>Matrix Synapse Server</h1></header>
<nav></nav>
<main>
<img src="pix/matrix.svg" alt="Matrix Synapse Logo" class=titleimg>
<p>Matrix is easy-to-use, decentralized and encrypted private chat software.
Matrix is federated, meaning that with a Matrix account on any server, including your own, you can talk to any other Matrix account on the internet, similar to email.
Matrix also allows fully end-to-end encrypted group chats.
</p>
<p><strong>Synapse</strong> is the name of the default Matrix server. It is written in Python.</p>
<p><strong>Synapse</strong> is the name of the default Matrix server. It is written in Python. While it is requires somewhat more system resources than <a href="xmpp.html">an XMPP server</a>, it makes up for that in being very accessible to non-technical users.</p>
<h2>Installation</h2>
@ -39,7 +40,7 @@ apt install matrix-synapse-py3</code></pre>
</p>
<pre><code>server {
server_name matrix.<strong>example.org</strong> ;
server_name matrix.<strong>example.org</strong> ;
listen 80;
listen [::]:80;
location / {
@ -75,12 +76,55 @@ systemctl reload nginx</code></pre>
<h2>Configuration</h2>
<h3>Read the config file</h3>
<p>
The configuration file for Matrix is in <code>/etc/matrix-synapse/homeserver.yaml</code>.
It is well documented and commented, so you can read about the settings, but let's change the essential ones here.
</p>
<p><strong>This article isn't finished. Deal with basic settings and registering accounts.</strong></p>
<p>
Make what changes you want and run <code>systemctl reload matrix-synapse</code> to make the system configuration active.
</p>
<h3>Create an administrator account</h3>
<p>If you allow open registration on your server in the configuration file, you can create an account through Element or another Matrix client, but you are probably going to want an official admin account to use.
To make one, simply run the following command, which will then give you several choices for creating a user, among which will be the ability to make it an admin.
</p>
<pre><code>register_new_matrix_user -c homeserver.yaml http://localhost:8008</code></pre>
<h2>Using Matrix with <img src="pix/element.svg" alt="Element Matrix logo">Element</h2>
<p>
There are many different <a href="https://matrix.org/clients/">clients</a> that can be used on desktops or phones to chat on your Matrix server, but the most popular and most widely vetted is <img src="pix/element.svg" alt="Element logo">Element.
</p>
<p>Get Element to access your Matrix server:</p>
<ul>
<li>Mobile:
<ul>
<li><a href="https://f-droid.org/packages/im.vector.app/">F-droid</a></li>
<li><a href="https://play.google.com/store/apps/details?id=im.vector.app">Google Play</a></li>
<li><a href="https://apps.apple.com/app/vector/id1083446067">Apple App Store</a></li>
</ul>
</li>
<li>Real computer:
<ul>
<li>GNU/Linux: You know how to install it.</li>
<li><a href="https://packages.riot.im/desktop/install/win32/x64/Element%20Setup.exe">Windows</a></li>
<li><a href="https://packages.riot.im/desktop/install/macos/Element.dmg">Mac</a></li>
</ul>
</li>
</ul>
<p>
Note also that Element has a web client (i.e. a version that can be accessed on your own website) that is also easy to install on an Nginx server,
although that will be covered in another article.
</p>
</main>
<footer><a href="https://landchad.net">LandChad.net</a></br>Because Everyone should be an Internet LandChad.</br><a href="index.html"><li><img src="pix/chad.gif" alt="chad"></li></a><a href="rss.xml"><li><img src="pix/rss.svg" alt="RSS"></li></a><a href="pix/btc.png"><li><img src="pix/btc.svg" alt="BTC"></li></a><a href="pix/xmr.png"><li><img src="pix/xmr.svg" alt="XMR"></li></a><a href="https://github.com/lukesmithxyz/landchad"><li><img src="pix/git.svg" alt="Github"></li></a></footer>
</body>