Raspberry Pi – installing Mattermost on Raspbian Buster

A complete Mattermost installation consists of 3 major components: a proxy server, a database server, and the Mattermost server. You can install all components on 1 machine, or you can install each component on its own machine

# apt-get install mariadb-server
# systemctl start mysql
# mysql -p
 MariaDB> create user ‚Mattermost’@’localhost‘ identified by ‚<password>‘;
 MariaDB> create database mattermost;
 MariaDB> grant all privileges on mattermost.* to ‚Mattermost’@’localhost‘;
 MariaDB> exit
# cd /tmp
# mkdir Download
# cd Download
# wget https://github.com/SmartHoneybee/ubiquitous-memory/releases/download/v5.14.2/mattermost-v5.14.2-linux-arm.tar.gz
# tar -xvzf mattermost*.gz
# mv mattermost /opt
# useradd –system –user-group Mattermost
# chown -R Mattermost:Mattermost /opt/mattermost
# chmod -R g+w /opt/mattermost
# cd /opt/mattermost/config
# vi config.json
 „SqlSettings“: {
        „DriverName“: „mysql“,
        „DataSource“: „Mattermost:<password>@tcp(localhost:3306)/mattermost? … 
    },
# touch /lib/systemd/system/mattermost.service
# vi /lib/systemd/system/mattermost.service
[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=multi-user.target
# systemctl daemon-reload
# systemctl status mattermost.service
mattermost.service – Mattermost
  Loaded: loaded (/lib/systemd/system/mattermost.service; disabled; vendor preset: enabled)
  Active: inactive (dead)
# systemctl start mattermost.service
# curl http://localhost:8065
# systemctl enable mattermost.service
https://docs.mattermost.com/install/install-debian.html

Leave a Reply

You must be logged in to post a comment.