Getting Mattermost, the Actual Open Source Chat Server Software Now we can restart MySQL to pick up the configuration change: # systemctl restart rvice # localhost which is more compatible and is not less secure. # Instead of skip-networking the default is now to listen only on Change /etc/mysql//mysqld.cnf (we can use whatever text editor suits our fancy) and comment out the bind-address line, so that it looks like this. We’ve to edit a line in our MySQL configuration file. What we can create (length, complexity, etc.) depends on our responses to one of the questions when we ran the mysql_secure_installation command. Mysql> grant all privileges on mattermost.* to is not a good idea, for the record. Here is where we can set up the user and grant it privileges to the mattermost database: mysql> create user identified by 'blahblahpassword' The Mattermost install needs a database set up for it anyway, so let’s do that now: # mysql -p I probably missed something in their docs…īefore I set up a user, I set up the database. I had a little trouble doing things exactly the way that the Mattermost said to do them, so I veered off a bit here. This one command will do all that, prompting us for things as we go: # mysql_secure_installationĬreate a Database for the Open Source Chat Server We’ll also get rid of the test database, remove any privileges for that database, and then finally reload the privileges table. We’ll set password complexity requirements, set a root password, remove anonymous users, and keep root from logging in remotely. We don’t want the default “sort of insecure” MySQL installation here, so let’s tighten it up. To get MySQL installed and running, execute this: # apt install mysql-server Let’s get our server up to date first, before we even start installing anything: # apt updateĪnswer y to the prompt about whether you want to install/update this stuff. If you’re going to stay logged in as the regular user you started off with, you’ll have to preface them all with sudo too. Just remember that as you’re going through this. There are arguments for and against this method. I just ran a sudo -i right off so I could have root privileges for the whole process. Mattermost suggests running a slew of sudo commands. Note: I went through it one more time, in the interests of science, and was up and running in less than an hour. Oh, I also hosed the server I was working on several times, so I could repeat the process and make sure I had all the commands down right. I’m thinking it’s probably a couple hours at the most to get from a bare Linux distribution to an up and running open source chat server. I was trying to write this blog post as I went, stopped to take some guitar pictures for a coworker, talked to my wife and kids for a bit, etc. It’s now about seven hours after I started. But this was the easiest way for me to just take it out of the box and play with it, so that’s the direction I’ve decided on.Ī lot of what follows is up on the official Mattermost site, but I’ll put the commands here too, with any notes or comments I have along the way. There are many other possible distributions, and the ability to run it on PostgreSQL. We’re installing this on a bare-bones Ubuntu 18.04 server, and running it on a MySQL backend. Walk with me, if you will, on an install process… Installing This Open Source Chat Server Now that I have, I’d like to share some about how I got it up and running. My curiosity piqued, I had to give it a try. It looked like an open source chat server and more, something that can compete with Slack. While I found one for that situation, and wrote about the process over in Open Source Messaging App: What’s Available?, I was still looking for a team kind of app. I was already hunting for “something chatty” in a different situation: Hangouts is set to die, so I needed a replacement my family and close friends could use. There’s an open source alternative to almost everything, so there must be an open source chat server, I figured. As a daily Slack user, and a victim of their late 2019 Let’s Make Everybody Use a WYSIWYG Chat Box ruckus, I started wondering what else was out there.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |