Skip to content
Follow
Ubuntu Linux

How to Install Let’s Chat on Ubuntu Linux

Richard
Written by
Richard
Oct 6, 2022 Updated Jul 14, 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 on Ubuntu Linux is a self-hosted messaging app you install using Node.js and npm.

This open-source program gives you real-time chat and direct messages, perfect for small teams. It means you control your private conversations without needing a third-party service.

This guide helps you set up Let’s Chat version 1.5.0 on Ubuntu 22.04 LTS, a popular and stable version of Ubuntu.

⚡ 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`.

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

To install Let’s Chat on Ubuntu, make sure you have Node.js version 20.x or 22.x, MongoDB, Python 3.x, and Git already set up on your system. These are the essential tools you need before you can start the installation process for the chat application.

Download and install Let’s Chat

Installing Let’s Chat on Ubuntu is straightforward and involves getting the project files from GitHub, installing the necessary packages using npm, and then starting the chat server. You’ll run a few commands to clone the code, move into the project folder, install dependencies, copy a settings file, and finally start the server.

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 Let’s Chat on Ubuntu involves installing the Nginx web server, creating a specific configuration file for your chat server, and then using Certbot to add a free security certificate. This secures your chat application with HTTPS, making communication private and trustworthy.

🐧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 Let’s Chat on Ubuntu allows the chat application to run automatically in the background, even after you restart your computer. This involves setting up a dedicated user for the application to run under, which improves security and makes management easier.

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

[Unit] [Service] [Install]

How to install LetsChat?

And then you can also end some money. So depending on your network connectivity. You just click on install.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips 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.

📚 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
How to Install GNOME Desktop on Ubuntu 24.04
Ubuntu Linux How to Install GNOME Desktop on Ubuntu 24.04

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

Leave a Comment

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