<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mattermost Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/mattermost/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 11 Dec 2020 19:23:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Install Mattermost on Ubuntu 20.04 (With MariaDB)</title>
		<link>https://www.osradar.com/install-mattermost-ubuntu/</link>
					<comments>https://www.osradar.com/install-mattermost-ubuntu/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 12 Dec 2020 01:21:00 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[mattermost]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=26691</guid>

					<description><![CDATA[<p>Hello, friends in this post you will learn how to install Mattermost on Ubuntu 20.04. These steps I&#8217;m going to describe are easy to follow and you should have no problems to achieve the installation. Mattermost is a high trust, open source collaboration platform built for developers. Therefore we are talking about an open-source alternative [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mattermost-ubuntu/">Install Mattermost on Ubuntu 20.04 (With MariaDB)</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends in this post you will learn how to install Mattermost on Ubuntu 20.04. These steps I&#8217;m going to describe are easy to follow and you should have no problems to achieve the installation.</p>



<blockquote class="wp-block-quote"><p>Mattermost is a high trust, open source collaboration platform built for developers.</p></blockquote>



<p>Therefore we are talking about an open-source alternative to Slack. It is a very useful program for work groups and is focused on developers and DevOPS. Although it is easily installable and applicable to other groups.</p>



<p><a href="https://mattermost.com/" target="_blank" rel="noreferrer noopener">Mattermost</a> is the leading open-source collaboration platform with a thriving community. It&#8217;s written in Golang and React and runs as a single Linux binary with <a href="https://www.osradar.com/tag/mysql" target="_blank" rel="noreferrer noopener">MySQL</a> or <a href="https://www.osradar.com/tag/postgresql" target="_blank" rel="noreferrer noopener">PostgreSQL</a>. Use the features you like, for example, file sharing, real-time group chat, and webhooks, with full access to source code.</p>



<h2>Installing Mattemost on Ubuntu 20.04</h2>



<p>Open a terminal or start an SSH session and install some necessary packages:</p>



<pre class="wp-block-preformatted">sudo apt install wget curl nano</pre>



<p>And then be sure to define your computer&#8217;s hostname</p>



<pre class="wp-block-preformatted">sudo hostnamectl set-hostname [your-hostname]</pre>



<p>For example:</p>



<pre class="wp-block-preformatted">sudo hostnamectl set-hostname chat.osradar.test</pre>



<p>With these packages already installed we can start with the configurations and installations.</p>



<h3>1.- Install MariaDB on Ubuntu 20.04</h3>



<p>Mattermost is an application that requires a relational database manager. The application supports two that are PostgreSQL and MySQL / MariaDB. In this post, we will choose MariaDB.</p>



<p>So, install MariaDB by executing the following command:</p>



<pre class="wp-block-preformatted">sudo apt install mariadb-server</pre>



<p>After configuring, MariaDB using the <code>mysql_secure_installation</code> script</p>



<pre class="wp-block-preformatted">sudo mysql_secure_installation</pre>



<p>And define the root password and then answer the configuration questions to improve the security of MariaDB.</p>



<pre class="wp-block-preformatted">Remove anonymous users? [Y/n]<br>Disallow root login remotely? [Y/n]<br>Remove test database and access to it? [Y/n]<br>Reload privilege tables now? [Y/n]</pre>



<p>Then, access the MariaDB shell:</p>



<pre class="wp-block-preformatted">sudo mysql -u root -p</pre>



<p>It then creates the database that Mattermost will use. It is also recommended to create a new user and give them the corresponding permissions.</p>



<pre class="wp-block-preformatted">CREATE DATABASE matterdb;<br>GRANT ALL PRIVILEGES ON matterdb.* TO 'matteruser'@'localhost' IDENTIFIED BY 'matterpss';<br>FLUSH PRIVILEGES;<br>exit;</pre>



<p>Replace the values with your own. Remember that the password must be strong and safe.</p>



<h3>2.- Download Mattermost on Ubuntu 20.04</h3>



<p>Now comes the installation process. To do this, first, add a user to the system that is going to use the application.</p>



<pre class="wp-block-preformatted">sudo useradd --system --user-group mattermost</pre>



<p>Substitute mattermost for the name you want.</p>



<p>Now you can download the program with the help of <a href="https://www.osradar.com/the-wget-command/" target="_blank" rel="noreferrer noopener">the wget command</a>.</p>



<pre class="wp-block-preformatted">wget https://releases.mattermost.com/5.29.1/mattermost-5.29.1-linux-amd64.tar.gz
--2020-12-11 14:56:08--  https://releases.mattermost.com/5.29.1/mattermost-5.29.1-linux-amd64.tar.gz
 Resolving releases.mattermost.com (releases.mattermost.com)… 13.227.41.126, 13.227.41.58, 13.227.41.129, …
 Connecting to releases.mattermost.com (releases.mattermost.com)|13.227.41.126|:443… connected.
 HTTP request sent, awaiting response… 200 OK
 Length: 183825462 (175M) [application/x-gzip]
 Saving to: ‘mattermost-5.29.1-linux-amd64.tar.gz’
 mattermost-5.29.1-linux-amd64.tar.gz       100%[=====================================================================================>] 175.31M  1.04MB/s    in 3m 15s  
 2020-12-11 14:59:25 (920 KB/s) - ‘mattermost-5.29.1-linux-amd64.tar.gz’ saved [183825462/183825462]</pre>



<p>At the time of writing this post, the latest stable version is 5.29.1 I recommend you to visit the project website to check which is the latest stable version.</p>



<p>Then, decompress the downloaded file.</p>



<pre class="wp-block-preformatted">tar xvf mattermost-5.29.1-linux-amd64.tar.gz</pre>



<p>Move the generated folder to another location as <code>/opt/</code></p>



<pre class="wp-block-preformatted">sudo mv mattermost /opt</pre>



<p>It creates a folder called data within the mattermost directory.</p>



<pre class="wp-block-preformatted">sudo mkdir /opt/mattermost/data</pre>



<p>And assign the corresponding permissions and also make mattermost the owner of it.</p>



<pre class="wp-block-preformatted">sudo chown -R mattermost:mattermost /opt/mattermost<br>sudo chmod -R g+w /opt/mattermost</pre>



<p>Now it is time to configure the Mattemost instance with the parameters of the database created.</p>



<p>So, open the Mattermost configuration file</p>



<pre class="wp-block-preformatted">sudo nano /opt/mattermost/config/config.json</pre>



<p>And in the SQLSettings section, leave the DriverName and DataSource lines as follows:</p>



<pre class="wp-block-preformatted">"DriverName": "mysql",<br>"DataSource": "matteruser:matterpss@tcp(localhost:3306)/matterdb?charset=utf8mb4,utf8\u0026readTimeout=30s\u0026writeTimeout=30s",</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="192" src="https://www.osradar.com/wp-content/uploads/2020/12/1-3-1024x192.png" alt="1.- Configuring Mattermost on Ubuntu 20.04" class="wp-image-26692" srcset="https://www.osradar.com/wp-content/uploads/2020/12/1-3-1024x192.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/1-3-300x56.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/1-3-768x144.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/1-3-696x131.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/1-3-1068x200.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/1-3.png 1221w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Configuring Mattermost on Ubuntu 20.04</figcaption></figure>



<p>Remember to replace the displayed values with your parameters. Save the changes and close the editor.</p>



<p>Also, it is recommended to create a new service to manage Mattermost with the command systemctl</p>



<p>To do this, create a new service entry</p>



<pre class="wp-block-preformatted">sudo nano /etc/systemd/system/mattermost.service</pre>



<p>And add the following content</p>



<pre class="wp-block-preformatted">[Unit]
 Description=Mattermost
 After=network.target
 After=mariadb.service
 Requires=mariadb.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</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="979" height="379" src="https://www.osradar.com/wp-content/uploads/2020/12/2-2.png" alt="2.- Creating the Mattermost service" class="wp-image-26693" srcset="https://www.osradar.com/wp-content/uploads/2020/12/2-2.png 979w, https://www.osradar.com/wp-content/uploads/2020/12/2-2-300x116.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/2-2-768x297.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/2-2-696x269.png 696w" sizes="(max-width: 979px) 100vw, 979px" /><figcaption>2.- Creating the Mattermost service</figcaption></figure>



<p>Remember that if you used a different location, you have to reflect it in the file. When you are done, save your changes and close the editor.</p>



<p>Reload the list of services</p>



<pre class="wp-block-preformatted">sudo systemctl daemon-reload</pre>



<p>Initial and enable</p>



<pre class="wp-block-preformatted">sudo systemctl start mattermost.service<br>sudo systemctl enable mattermost.service</pre>



<p>And check the status of the service</p>



<pre class="wp-block-preformatted">sudo systemctl status mattermost.service
● mattermost.service - Mattermost
      Loaded: loaded (/etc/systemd/system/mattermost.service; disabled; vendor preset: enabled)
      Active: active (running) since Fri 2020-12-11 15:26:28 UTC; 17s ago
    Main PID: 4674 (mattermost)
       Tasks: 9 (limit: 846)
      Memory: 47.9M
      CGroup: /system.slice/mattermost.service
              └─4674 /opt/mattermost/bin/mattermost
 Dec 11 15:26:28 chat.osradar.test mattermost[4674]: {"level":"info","ts":1607700388.38535,"caller":"app/server.go:450","msg":"Current version is 5.29.0 (5.29.1/Thu Dec >
 Dec 11 15:26:28 chat.osradar.test mattermost[4674]: {"level":"info","ts":1607700388.3856661,"caller":"app/server.go:459","msg":"Enterprise Build","enterprise_build":tru>
 Dec 11 15:26:28 chat.osradar.test mattermost[4674]: {"level":"info","ts":1607700388.38594,"caller":"app/server.go:465","msg":"Printing current working","directory":"/op>
 Dec 11 15:26:28 chat.osradar.test mattermost[4674]: {"level":"info","ts":1607700388.38616,"caller":"app/server.go:466","msg":"Loaded config","source":"file:///opt/matte>
 Dec 11 15:26:28 chat.osradar.test mattermost[4674]: {"level":"info","ts":1607700388.4489672,"caller":"sqlstore/post_store.go:1688","msg":"Post.Message has size restrict>
 Dec 11 15:26:28 chat.osradar.test mattermost[4674]: {"level":"info","ts":1607700388.554504,"caller":"bleveengine/bleve.go:267","msg":"UpdateConf Bleve"}
 Dec 11 15:26:28 chat.osradar.test mattermost[4674]: {"level":"info","ts":1607700388.7032015,"caller":"app/server.go:878","msg":"Starting Server…"}
 Dec 11 15:26:28 chat.osradar.test mattermost[4674]: {"level":"info","ts":1607700388.706344,"caller":"app/server.go:955","msg":"Server is listening on [::]:8065","addres>
 Dec 11 15:26:28 chat.osradar.test mattermost[4674]: {"level":"info","ts":1607700388.706892,"caller":"commands/server.go:112","msg":"Sending systemd READY notification."}
 Dec 11 15:26:28 chat.osradar.test systemd[1]: Started Mattermost.</pre>



<h3>3.- Install Mattermost on Ubuntu 20.04</h3>



<p>Now, you can open your web browser and go to <code>http://ip-server:8065</code></p>



<p>On this screen, create the user administrator along with their password</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/12/3-3-1024x506.png" alt="3.- Installing Mattermost on Ubuntu 20.04" class="wp-image-26694" srcset="https://www.osradar.com/wp-content/uploads/2020/12/3-3-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/3-3-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/3-3-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/3-3-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/3-3-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/3-3.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Installing Mattermost on Ubuntu 20.04</figcaption></figure>



<p>Then you can create a new team.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/12/4-2-1024x506.png" alt="4.- Configuring Teams" class="wp-image-26695" srcset="https://www.osradar.com/wp-content/uploads/2020/12/4-2-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/4-2-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/4-2-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/4-2-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/4-2-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/4-2.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>4.- Configuring Teams</figcaption></figure>



<p>Define the name of the new team and click on Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/12/5-2-1024x506.png" alt="5.- Define a Team name" class="wp-image-26696" srcset="https://www.osradar.com/wp-content/uploads/2020/12/5-2-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/5-2-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/5-2-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/5-2-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/5-2-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/5-2.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>5.- Define a Team name</figcaption></figure>



<p>After that, you will be given the URL of the team and you can finish the installation.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/12/6-2-1024x506.png" alt="6.- Team URL on Mattermost" class="wp-image-26697" srcset="https://www.osradar.com/wp-content/uploads/2020/12/6-2-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/6-2-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/6-2-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/6-2-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/6-2-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/6-2.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>6.- Team URL on Mattermost</figcaption></figure>



<p>And you will see the dashboard.</p>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" src="https://www.osradar.com/wp-content/uploads/2020/12/7-2-1024x502.png" alt="7.- Mattermost on Ubuntu 20.04" class="wp-image-26698" width="830" height="406" srcset="https://www.osradar.com/wp-content/uploads/2020/12/7-2-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/7-2-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/7-2-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/7-2-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/7-2-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/7-2.png 1366w" sizes="(max-width: 830px) 100vw, 830px" /><figcaption>7.- Mattermost on Ubuntu 20.04</figcaption></figure>



<h2>Conclusion</h2>



<p>Mattermost is an important technology that comes to rival Slack and becomes a serious alternative. It is opensource with all the advantages it has.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mattermost-ubuntu/">Install Mattermost on Ubuntu 20.04 (With MariaDB)</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-mattermost-ubuntu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
