Mattermost or free alternative to Slack
Because of that I am not a fan of Facebook and Skype use mostly in contact with the family all his correspondence with friends and colleagues have used by Slack.
Slack? It is a cool comfortable and includes everything you need to communicate in teams if anyone would have thought so cool so why change?
As each of the soft also has its drawbacks, and perhaps the greatest of them is the free version limit archive. You write something wants a month ago
s return to the sick is not!
The second drawback of this software is the fact that we have no insight into the soft it is on external servers get the finished product we have never sure if anyone is watching us chance for hands.
Not all companies is to agree to the use of external tools.
In case of failure of a platform we can only wait for the repair we do not have the ability to glance what is wrong or fast repair on its own.
Where did the idea as a replacement for Mattermost?
He inspired me entry Mirka the blog webmastah.pl – 5 Free alternatives to Slack.
I decided to test it free alternatives. Something was missing in all the time, not for simple installation for a typical two blacksmith everything seemed so different Podług competitive Slack.
I was enchanted by the simplicity Mattermost resemblance to Slack and ease of installation in the blink of an eye zaintalujemy it on the server, additionally both the admin panel is soft and polonized!
Following is very easy way to install:
We update repositories and make the system upgrade packages:
1 2 | sudo apt-get update sudo apt-get upgrade |
Then, as long as we no longer have the install server, MySQL server.
1 | sudo apt-get install mysql-server |
If we have a mysql server on the server, skip this step 😉
After installation and configuration of MySQL server log in the terminal at the root account:
1 | mysql -u root -p |
Once logged create a user database:
1 | mysql> create user 'mmuser'@'%' identified by 'mmuser-hasło'; |
In this way we have created a user with a password mmuser:mmuser-password.
We create database:
1 | mysql> create database mattermost; |
In my case, the base has a name mattermost
Then transmits the power to the user database:
1 | mysql> grant all privileges on mattermost.* to 'mmuser'@'%'; |
We can already log server mysql.
1 | mysql> exit |
The next step is to download and unpack the server Mattermost.
Go to the website https://about.mattermost.com/download/ and download the latest version released:
1 | wget https://releases.mattermost.com/4.6.0/mattermost-4.6.0-linux-amd64.tar.gz |
unpack the archive:
1 | tar -xvzf mattermost-4.6.0-linux-amd64.tar.gz |
move the entire directory to / opt
1 | mv mattermost /opt |
Create a directory where it will be stored our attachments and other files:
1 | mkdir /opt/mattermost/data |
Because I'm not a fan of exercise programs directly from the root we create a user and assign him a suitable group:
1 2 | useradd --system --user-group mattermost chown -R mattermost:mattermost /opt/mattermost |
And we give the appropriate permissions:
1 | chmod -R g+w /opt/mattermost |
Then we move on to edit the configuration file to set the database access:
Open the file with your favorite text editor
1 | nano /opt/mattermost/config/config.json |
section :
1 | "SqlSettings": { |
We replace your default settings:
1 | "DataSource": "mmuser:HASŁO@tcp(localhost:3306)/mattermost?charset=utf8mb4,utf8\u0026readTimeout=30s\u0026writeTim$ |
Save the settings, we go to the directory script to verify the accuracy of data entered:
1 2 3 4 | cd /opt/mattermost sudo -u mattermost ./bin/platform |
In the bottom of the log you should see the message:
Server is listening on :8065 which means that all the Am launched and our server runs at mattermost :adresipserwer to:8065
We create script auto trigger us to restart the server in case:
1 2 3 | sudo touch /lib/systemd/system/mattermost.service nano /lib/systemd/system/mattermost.service |
and fill:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | [Unit] Description=Mattermost After=network.target After=mysql.service Requires=mysql.service [Service] Type=simple ExecStart=/opt/mattermost/bin/platform Restart=always RestartSec=10 WorkingDirectory=/opt/mattermost User=mattermost Group=mattermost LimitNOFILE=49152 [Install] WantedBy=multi-user.target |
Save the file and run the daemon reload.
1 | sudo systemctl daemon-reload |
check the status:
1 | sudo systemctl status mattermost.service |
We should get the result:
1 2 3 | ● mattermost.service - Mattermost Loaded: loaded (/lib/systemd/system/mattermost.service; disabled; vendor preset: enabled) Active: inactive (dead) |
1 2 | sudo systemctl start mattermost.service sudo systemctl enable mattermost.service |
So much for a whole should work correctly.
Go to http terazna://adresipserwer to:8065 and pass the configuration process.
Shown above in both tested on Ubuntu and Debian.
project website: https://about.mattermost.com/