Ubuntu Linux

How to Install Let’s Chat on Ubuntu Linux

Richard
Written by
Richard
Oct 6, 2022 Updated Apr 15, 2026 2 min read

This tutorial explains how to set up Let’s Chat on Ubuntu Linux. Let’s Chat is a messaging platform designed for small teams. It includes features like LDAP authentication and a REST API.

Why use Let’s Chat?

You might want a private, self-hosted space for your team to talk and collaborate without relying on big tech services.

What happens when done?

You will have a private messaging server running on your own hardware, accessible via a web browser.

Prerequisites

Before you begin, ensure your system meets these requirements for 2026:

Download and install Let’s Chat

Disclaimer: Let’s Chat is currently unmaintained software. It may contain security vulnerabilities. For modern, active alternatives, we suggest using Mattermost, Rocket.Chat, or Zulip.

To install, run these commands:

Command Prompt
git clone https://github.com/sdelements/lets-chat.git
cd lets-chat
npm install

Copy the settings file and start the server:

💻Code
cp settings.yml.sample settings.yml
npm start

You can reach the site at http://localhost:5000. Terminal showing installation of Let's Chat on Ubuntu

General: Setting up Nginx and HTTPS

To use a domain name and secure your traffic, use Nginx as a reverse proxy. Install Nginx and create a configuration file:

🐧Bash / Shell
sudo nano /etc/nginx/conf.d/letschat.conf

Add your server configuration pointing to port 5000. Once configured, use Certbot to enable HTTPS:

🐧Bash / Shell
sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx -d yourdomain.com

Create a Let’s Chat systemd file

We will create a restricted user for security. This prevents the app from running with root permissions.

🐧Bash / Shell
sudo useradd -r -s /bin/false letschat
sudo chown -R letschat:letschat /path/to/lets-chat

Create the service file:

🐧Bash / Shell
sudo nano /etc/systemd/system/letschat.service

Add this content:

🟨JavaScript
[Unit]
Description=Let's Chat Server
After=network.target mongod.service

[Service]
Type=simple
User=letschat
WorkingDirectory=/path/to/lets-chat
ExecStart=/usr/bin/npm start
Restart=always

[Install]
WantedBy=multi-user.target

Reload and start the service:

🐧Bash / Shell
sudo systemctl daemon-reload
sudo systemctl start letschat
sudo systemctl enable letschat

Access Let’s Chat portal

Restart Nginx to apply your changes. Visit your domain name in your browser to log in and start chatting. Let's Chat setup process on Ubuntu Linux

[Unit]

[Service]

[Install]

Was this guide helpful?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, the owner and lead writer at Geek Rewind, is a tech enthusiast passionate about simplifying complex IT topics. His years of hands-on experience in system administration and enterprise IT operations have honed his ability to provide practical insights and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

Leave a Reply

Your email address will not be published. Required fields are marked *

Exit mobile version