Professional Documents
Culture Documents
Mattermost: Installation Steps For Mattermost
Mattermost: Installation Steps For Mattermost
Mattermost is an online chat service that is open source and self hostable and has features like
file sharing, search and support many integrations. Mattermost creates a trusted secure space
for the team to work together openly. Discussions can be organized into channels. Channels can
be created for each team project and topic and that way its easier to manage different projects
and the teams associated with it effectively. Each channel in mattermost keeps a persistent
chat history and its accessible across devices. The search feature allows to easily search the
conversations and get the information you need. Mattermost allows teams to collaborate in
realtime with rich formatted text,images,videos and files. Mattermost channels can either be
public or private. Anyone can join a public channel see the conversations and also contribute to
the conversation. Private channels can be only accessed by authorized individuals. Users can
also send private messages to one another. Mattermost can work across all your devices.
Mattermost is an enterprise ready platform that can be deployed in the private cloud or on-
premises.
mysql_secure_installation
wget https://releases.mattermost.com/5.22.0/mattermost-5.22.0-linux-
amd64.tar.gz
7.Extract the files and move it to /opt
mkdir /opt/mattermost/data
9.Set up a system user and group to be in charge of running the service and set the ownership
and permissions.
10.Open the file /opt/mattermost/config/config.json with your favourite text editor and edit
the database settings.
•
•
Configure "DataSource". Replace with the password you have set for your database.
"mattermost:<a-secret-
password>@tcp(localhost:3306)/mattermost?charset=utf8mb4,utf8&readTimeout=30s&
writeTimeout=30s"
cd /opt/mattermost/
sudo -u mattermost ./bin/mattermost
During startup the database structure of Mattermost will be configured and you will see some
log messages as well as a notice.Stop the process by pushing Control+C on your keyboard.
12. Create the file /lib/systemd/system/mattermost.service and add the below content.
[Unit]
Description=Mattermost
After=network.target
After=mysql.service
Requires=mysql.service
[Service]
Type=notify
ExecStart=/opt/mattermost/bin/mattermost
TimeoutStartSec=3600
Restart=always
RestartSec=10
WorkingDirectory=/opt/mattermost
User=mattermost
Group=mattermost
LimitNOFILE=49152
[Install]
WantedBy=mysql.service
systemctl daemon-reload
Mattermost doest have a default call feature integrated into it. To use matter most for
conferencing, We need to set up an opensource conferencing software called jitsi in another
server and integrate it to matter most using a plugin.
Jistsi meet is an opensource video conferencing platform. It is based on WebRTC. We will install
jistsi meet in another ubuntu server.
Set the system’s hostname to the domain that you are going to use for the jitsi
instance.This domain jistsi.your-domain should be pointed to the servers IP.
Set local mapping of the server’s hostname to the loopback IP address 127.0.0.1. Open
/etc/hosts and add the line 127.0.0.1 jitsi.your-domain and save and exit the file.
•
•
Make sure the ufw firewall is disabled . check the status using the command
There are some ports that need to be opened in the network security group of the
instances. Open the ports 80/tcp,443/tcp,4443/tcp and 10000/udp in the instances's
security group.
Download the jitsi GPG key with the wget downloading utility.
wget https://download.jitsi.org/jitsi-key.gpg.key
Add the GPG key you downloaded to apt’s keyring using the apt-key utility.
Add the below line to the file. Save and exit the file.
deb https://download.jitsi.org stable/
Perform a system update to update the packages and then install jitsi-meet package.
During the installation you will have to enter your domain name when prompted. Enter
the domain name and press Enter.
•
•
In the next option that appears select the first option and press Enter.
•
Install Certbot Package.
sudo /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh
Setup a password and username so that only users with these credentials can use
jitsimeet.
authentication = "anonymous"
Change it to
authentication = "internal_plain"
In the same file, add the following to the end of the file.
VirtualHost "guest.your_domain"
authentication = "anonymous"
c2s_require_encryption = false
vi /etc/jitsi/meet/your_domain-config.js
edit the line anonymousdomain: 'guest.example.com', and change it to
anonymousdomain: 'guest.your_domain',
vi /etc/jitsi/jicofo/sip-communicator.properties
org.jitsi.jicofo.auth.URL=XMPP:your_domain
1.Download the jitsi plugin rar file from this link https://github.com/seansackowitz/mattermost-
plugin-jitsi/releases/download/v1.3.0/jitsi-1.3.0.tar.gz
Go to System Console > Integrations > Integration Management and turn the below setting
to true.
Go to System Console > Plugin Management > Configuration and set Enable Plugins to true.
/opt/mattermost/config/config.json
Under PluginSettings, make sure Enable and Enable Uploads are both set to true.
Restart your Mattermost with sudo systemctl restart mattermost
4.Go to System Console > Plugin Management . Click on choose file and uploaded the jitsi
plugin file we downloaded earlier.
5. Select jitsi under plugins and paste you jitsi server domain name and click on save.
Go to plugin management.
In mattermost teams click on the camera icon at top to start the meetings and click on
Join meeting to join the meeting.
In the page that opens you will be prompted for the username and password . Enter the
username and password to start conferencing.