Difference between revisions of "PinePhone MMS with Matrix"

Jump to navigation Jump to search
Line 1: Line 1:
This is a possible way to get mms fully working by running a localhost matrix server, a bridge between mmsd and matrix, and the fractal matrix client to interact with them. Most of this should be cut and pastable.  
This is a possible way to get mms fully working by relaying sms to a matrix server with a bridge from mmsd, and using the fractal matrix client to interact with them. Most of this should be cut and pastable. On Mobian, incoming and outgoing mms works with images displayed in line. Outgoing messages over the max size are sent as a link. The link will not resolve if matrix is hosted on the pinephone itself.
 
This is being tested on mobian and arch with phosh.
 
On arch matrix-synapse 1.29.0-1, fractal 4.4.0-2 (saving login doesn't work), kop316 mmsd v0.3 -- Works for sms, but images don't go through in or out. Unresolvable links are sent out, so maybe small images will go?
 
On mobian I'm using matrix-synapse-py3 1.30.0+bionic1 (on a remote VPS server), fractal 4.4.0-2 (and saving the login actually works), kop316 mmsd 0.1-2.2, and images DO go through in and out, with resolvable links out for large images. With matrix_synapse-1.32.2 from pip installed locally images are received but unresolvable links are sent, perhaps this works fine with smaller images though.


=Install packages=
=Install packages=
==arch==
start with a nice and up to date danctnix arch arm pinephone install, mine is from April 20 2021. Ssh into the pinephone and then run this to install all the needed packages
start with a nice and up to date danctnix arch arm pinephone install, mine is from April 20 2021. Ssh into the pinephone and then run this to install all the needed packages


Line 8: Line 15:
</pre>
</pre>


=Set up Matrix Synapse=
==mobian==


Make a new config with the server name set to local host.  
=Set up Matrix Synapse on localhost=
 
Skip this if you will be using a remote homeserver. Make a new config with the server name set to local host.  


<pre>
<pre>
Line 94: Line 103:


==Configure mms bridge==
==Configure mms bridge==
This will mostly take care of editing the config for you
This will mostly take care of editing the config for you if you are running a local matrix server.


<pre>
<pre>
Line 180: Line 189:
=Done=
=Done=
At this point if you get a message a new room should be created by the bridge bot which you will be invited to. Needs more testing to find problems. Outgoing works for replies but I can't seem to find the 'set topic' button so new rooms can't be created that the mms bridge can use. The ones the bridge creates work fine though.
At this point if you get a message a new room should be created by the bridge bot which you will be invited to. Needs more testing to find problems. Outgoing works for replies but I can't seem to find the 'set topic' button so new rooms can't be created that the mms bridge can use. The ones the bridge creates work fine though.
I have gotten a test sms through this so far, and a test mms has not arrived yet.
Incoming and outgoing images did work with matrix on a namecheap vps with fractal on mobian so I think it can be made to work here.
matrix-synapse 1.29.0-1, fractal 4.4.0-2, kop316 mmsd v0.3 -- Works, but images don't go through.
On mobian I'm using matrix-synapse-py3 1.30.0+bionic1 (on a remote VPS server), fractal 4.4.0-2 (and saving the login actually works), kop316 mmsd 0.1-2.2, and images DO go through. with matrix_synapse-1.32.2 from pip installed locally images are received but broken links are sent.
Going to try to downgrade mmsd and see if that helps... It does not. Might be worth trying a newer synapse on arch through pip. Maybe some support libs are missing? I'm working on redoing all of this for mobian.