Skip to content
Follow
Ubuntu Linux

How to Install Let’s Chat on Ubuntu Linux

Richard
Written by
Richard
Oct 6, 2022 Updated Sep 15, 2026 3 min read
How to Display Seconds on Ubuntu Top Menu Clock
How to Display Seconds on Ubuntu Top Menu Clock

Let’s Chat version 1.5.0 is a free messaging app that lets you run your own private chat server on Ubuntu 22.04 LTS. This open-source tool gives you real-time group rooms and direct messages for small teams without sending your chat data to outside companies.

Advertisement

Running this server software on your computer requires Node.js (a tool that runs server code) and npm (a package manager for installing software tools).

⚡ Quick Answer

Clone the Let’s Chat repository using Git, then navigate into the directory and run `npm install`. Copy the sample settings file to `settings.yml` and start the server with `npm start`.

Advertisement

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

Prerequisites for an install Let’s Chat Ubuntu setup include having Node.js version 20.x or 22.x, MongoDB, Python 3.x, and Git ready on your system. You must install these required tools before downloading the chat application, otherwise the setup process will fail during the dependency checks.

Download and install Let’s Chat

Download and install Let’s Chat Ubuntu by pulling the source code from GitHub, installing the required packages with npm, and launching the chat server. You run these terminal commands to fetch the project files, set up your project dependencies, and get the chat application running on your local machine.

Advertisement

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
ubuntu linux install let chat

General: Setting up Nginx and HTTPS

Setting up Nginx and HTTPS for an install Let's Chat Ubuntu deployment requires installing the Nginx web server, creating a server block configuration file, and using Certbot to secure your connection. This reverse proxy setup lets users access your chat room safely over an encrypted web address.

Advertisement
🐧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

Creating a systemd service file for an install Let's Chat Ubuntu deployment lets the chat application run automatically in the background as a background service. You set up a dedicated system user and write a service configuration so the chat server starts up again after a system reboot.

🐧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:

Advertisement
🟨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
ubuntu linux install let chat

[Unit] [Service] [Install]

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

📚 Related Tutorials

Change Power Button Behavior in Ubuntu Linux
Ubuntu Linux Change Power Button Behavior in Ubuntu Linux
Add Multiple Clocks to Ubuntu Linux Top Bar
Ubuntu Linux Add Multiple Clocks to Ubuntu Linux Top Bar
How to Change Screen Brightness in Ubuntu Linux
Ubuntu Linux How to Change Screen Brightness in Ubuntu Linux
Install Node.js and Npm on Ubuntu: A Step-by-Step Guide
Ubuntu Linux Install Node.js and Npm on Ubuntu: A Step-by-Step Guide

No comments yet — be the first to share your thoughts!

Leave a Comment

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