Skip to content
Follow
Ubuntu Linux

How to Install Etherpad on Ubuntu Linux

Richard
Written by
Richard
Jun 12, 2023 Updated Jul 14, 2026 4 min read
How to Change Default Apps in Ubuntu
How to Change Default Apps in Ubuntu

Etherpad on Ubuntu Linux creates a real-time collaborative text editor.

Etherpad is a free, self-hosted program that lets many people edit a document at the same time, just like a shared online document editor. It’s great for group projects or quick note-taking.

Setting up your own Etherpad server on Ubuntu gives you complete control over your information and how it looks. This guide shows you how to install Etherpad using its official Docker image, a simple way to get a working server fast.

⚡ Quick Answer

Install prerequisites, MariaDB, and Node.js. Then, clone Etherpad from GitHub, run npm install, and configure your database in settings.json. Finally, create a systemd service file and restart the Etherpad service.

Install prerequisites

First, update your system and install necessary helper tools.

🐧Bash / Shell
sudo apt update
sudo apt install gnupg2 git curl unzip libssl-dev pkg-config gcc g++ make build-essential

Install the MariaDB database server

Etherpad needs a database to save your work. MariaDB is a great choice.

🐧Bash / Shell
sudo apt update
sudo apt install mariadb-server
sudo systemctl stop mariadb
sudo systemctl start mariadb
sudo systemctl enable mariadb

Setup Etherpad database

📝Good to Know
Log in to the database to create a space for Etherpad. Note: Modern MariaDB requires you to use your system root account.
🐧Bash / Shell
sudo mysql -u root
CREATE DATABASE etherdb;
GRANT ALL PRIVILEGES on etherdb.* to etheruser@localhost IDENTIFIED BY 'type_password_here';
FLUSH PRIVILEGES;
exit

Install Node.js

📝Good to Know
Etherpad runs on Node.js. In 2026, it is best to use NVM (Node Version Manager) or the official NodeSource binary distributions to ensure you are running a supported LTS version.
🐧Bash / Shell
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt install -y nodejs

Install Etherpad

To install Etherpad on Ubuntu, you’ll first create a dedicated user and then download the program files. This involves running a few commands to set up the user and get the latest Etherpad code into the correct folder on your system.

Command Prompt
sudo useradd --system -d /opt/etherpad --shell=/bin/bash etherpad
sudo install -d -m 755 -o etherpad -g etherpad /opt/etherpad
cd /opt/etherpad
sudo -u etherpad git clone --branch master https://github.com/ether/etherpad-lite.git
cd etherpad-lite
sudo -u etherpad npm install

Next, edit the settings.json file to add your database details and set trustProxy to true.

Create the Service File

Creating a systemd service file for Etherpad ensures it automatically starts when your Ubuntu server boots up. This means Etherpad will always be running and ready for use without you needing to start it manually each time.

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

Paste this template:

💻Code
[Unit]
Description=Etherpad-lite
After=syslog.target network.target

[Service]
Type=simple
User=etherpad
Group=etherpad
WorkingDirectory=/opt/etherpad/etherpad-lite
Environment=NODE_ENV=production
ExecStart=/usr/bin/node src/node/server.js
Restart=always

[Install]
WantedBy=multi-user.target
🐧Bash / Shell
sudo systemctl daemon-reload
sudo systemctl start etherpad
sudo systemctl enable etherpad

Configure Nginx and SSL

To make your Etherpad faster and more secure, you’ll configure Nginx and set up SSL using Let’s Encrypt. Nginx will handle incoming requests and direct them to Etherpad, while SSL keeps the connection private for all users.

🐧Bash / Shell
sudo apt install nginx certbot python3-certbot-nginx

Create your Nginx config file:

🐧Bash / Shell
sudo nano /etc/nginx/sites-available/etherpad.conf

Add your proxy settings:

💻Code
upstream etherpad {
   server localhost:9001;
}

server {
   listen 80;
   server_name etherpad.example.com;

   location / {
       proxy_pass http://etherpad;
       proxy_set_header Host $host;
       proxy_set_header X-Real-IP $remote_addr;
   }
}

Enable the site and get your certificate:

🐧Bash / Shell
sudo ln -s /etc/nginx/sites-available/etherpad.conf /etc/nginx/sites-enabled/
sudo systemctl restart nginx
sudo certbot --nginx -d etherpad.example.com

Access Etherpad portal

Open your web browser and go to your domain name. You will see the welcome page.

Terminal command prompt showing the installation process for Etherpad on Ubuntu
Terminal command prompt showing the installation process for Etherpad on Ubuntu

Begin using Etherpad

You can now create new pads or open existing ones to start collaborating.

Etherpad interface showing a new shared document ready for real-time collaboration
Etherpad interface showing a new shared document ready for real-time collaboration

Reference: https://etherpad.org/

[Unit] [Service] [Install]

Can I self-host Etherpad?

You can install Etherpad locally on Linux, MacOS, and Windows. There are public sites that host Etherpad so that you and your team can use it without setting up your server.

What is Etherpad used for?

Etherpad (previously known as EtherPad) is an open-source, web-based collaborative real-time editor, allowing authors to simultaneously edit a text document, and see all of the participants' edits in real-time, with the ability to display each author's text in their own color.

How do I embed an Etherpad?

You can easily embed your etherpad-lite into any webpage by using iframes. You can configure the embedded pad using embed parameters.

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

How to Install Nginx on Ubuntu Linux
Ubuntu Linux How to Install Nginx on Ubuntu Linux
How to Install Docker and Docker Compose on Ubuntu Linux
Ubuntu Linux How to Install Docker and Docker Compose on Ubuntu Linux
How to Install Ubuntu Linux
Ubuntu Linux How to Install Ubuntu Linux
How to Setup Let's Encrypt with Nginx on Ubuntu Linux
Ubuntu Linux How to Setup Let's Encrypt with Nginx on Ubuntu Linux

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

Leave a Comment

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