
This tutorial is about the How to Run Etherpad Lite on Ubuntu 20.04 LTS. We will try our best so that you understand this guide. I hope you like this blog How to Run Etherpad Lite on Ubuntu 20.04 LTS. If your answer is yes then please do share after reading this.
Check How to Run Etherpad Lite on Ubuntu 20.04 LTS
Etherpad is a web-based, real-time online editor that allows authors to edit a text document and monitor all edits in real time. It is open source, adjustable and with the ability to display each creator’s text in their own color. It also provides an HTTP API that you can coordinate with your applications to manage users and groups. It offers some plugins that help you coordinate email notifications, file uploads, and video calls on Etherpad. In this instructional exercise, we will tell you the best way to install Etherpad web-based editor on Ubuntu 20.04 server.
Prerequisites
- An Ubuntu 20.04 VPS (we will use our SSD 2 VPS plan)
- Access to the root user account (or access to an administrator account with root privileges)
Login to the server and update the server operating system packages
First, login to your Ubuntu 20.04 server via SSH as root user:
ssh root @ IP_address -p Port_number
You will need to replace ‘IP_Address’ and ‘Port_number’ with the respective IP address and SSH port number of your server. Also, replace ‘root’ with the username of the administrator account if necessary.
Before you begin, you need to make sure that all Ubuntu operating system packages installed on the server are up to date. You can do this by running the following commands:
apt-get update -yapt-get upgrade -y
Install the necessary packages
First, you will need to install all the necessary dependencies to install Etherpad on your server. You can install them all with the following command:
apt-get install libssl-dev pkg-config git gcc g ++ make build-essential gnupg2 -y
Once all the packages are installed, you will need to install Node.js on your system. At the time of writing this tutorial, the latest version of Node.js is 14.15.0. By default, Node.js is not available in the standard Ubuntu 20.04 repository. So you will need to install the Node.js repository on your system. You can add the Node.js repository with the following command:
curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.shbash nodesource_setup.sh
Once the repository is added, install Node.js with the following command:
apt-get install nodejs -y
After installing Node.js, check the installed version of Node.js with the following command:
node -v
You should get the following output:
v14.15.0
Install and configure the MariaDB database
Etherpad uses MySQL / MariaDB to store its data. Therefore, the MariaDB server must be installed on your server. If it is not installed, you can install it with the following command:
apt-get install mariadb-server -y
Once installed, log into the MariaDB console with the following command:
mysql
Once you log in, create a database and user with the following command:
MariaDB [(none)]> create etherpaddb database; MariaDB [(none)]> grant all privileges on
etherpaddb. * to etherpad @ localhost identified by ‘strong password’;
Then remove the privileges and exit MariaDB with the following command:
MariaDB [(none)]> download privileges; MariaDB [(none)]> exit;
Install and configure Etherpad
First, create a separate user to run Etherpad:
adduser –home / opt / etherpad –shell / bin / bash etherpad
Next, provide the appropriate permissions for the Etherpad home directory with the following command:
install -d -m 755 -o etherpad -g etherpad / opt / etherpad
Next, login with the Etherpad user and check the Node.js version as the Etherpad user with the following command:
su – etherpadnode -v
Production:
v14.15.0
Next, download the latest version of Etherpad from the Git repository using the following command:
git clone –branch master https://github.com/ether/etherpad-lite.git
Next, change directory to the downloaded directory and run Etherpad using the following command:
cd etherpad-litebin / run.sh
After the Etherpad server has started successfully, press CTRL + C to stop the server.
Next, edit the settings.json file and make some changes:
nano settings.json
Delete the following lines:
“DbType”: “dirty”, “dbSettings”: {“filename”: “var / dirty.db”},
Change the MySQL configuration as shown below:
“DbType”: “mysql”, “dbSettings”: {“user”: “etherpad”, “host”: “localhost”, “port”: 3306, “password”: “strong password”, “database”: “etherpaddb”, “character set”: “utf8mb4”},
Change the trustProxy line to true:
“TrustProxy”: true,
Define a password for the administrator user:
“Users”: {“admin”: {“password”: “secure password”, “is_admin”: true},
Save and close the file, then install the required dependencies with the following command:
./bin/installDeps.sh
Then exit the Etherpad user with the following command:
Departure
Create a Systemd service file for Etherpad
Next, you will need to create a systemd service file to manage the Etherpad service.
nano /etc/systemd/system/etherpad.service
Add the following lines:
[Unit]Description = Etherpad-lite, the collaborative editor. After = syslog.target network.target [Service]Type = simpleUser = etherpadGroup = etherpadWorkingDirectory = / opt / etherpad / etherpad-liteEnvironment = NODE_ENV = productionExecStart = / usr / bin / node /opt/etherpad/etherpad-lite/src/node/server.js
Restart = always
[Install]WantedBy = multi-user.target
Save and close the file, then reload the systemd daemon to apply the changes:
systemctl daemon-reload
Next, start the Etherpad service and enable it to start on system reboot with the following command:
systemctl start etherpad systemctl enable etherpad
At this point, Etherpad starts up and listens on port 9001. You can verify this with the following command:
ss -plntu | grep 9001
Production:
tcp LISTEN 0511 0.0.0.0:9001
0.0.0.0:* users: ((“node”, pid = 14889, fd = 27))
Configure Nginx as a reverse proxy
Next, you will need to install and configure Nginx as a reverse proxy to access the Etherpad.
First, install Nginx with the following command:
apt-get install nginx -y
Once installed, create a new Nginx virtual host configuration file:
nano /etc/nginx/sites-available/etherpad.conf
Add the following lines:
upstream etherpad {server localhost: 9001; keepalive 32;}
server {listen 80; server_name etherpad.example.com;
location / {client_max_body_size 50M; proxy_set_header X-Real-IP $ remote_addr; proxy_http_version 1.1; proxy_pass http: // etherpad;}}
Save and close the file, then activate the Nginx virtual host configuration file with the following command:
ln -s /etc/nginx/sites-available/etherpad.conf / etc / nginx / sites-enabled /
Then restart the Nginx service to apply the changes:
systemctl restart nginx
Access Etherpad
Now open your web browser and access the Etherpad web interface using the URL http://etherpad.example.com. You will be redirected to the Etherpad panel: provide your pad name and click the OK button. You will be redirected to the Etherpad editor as shown below:
Congratulations! You have successfully installed and configured Etherpad with Nginx as a reverse proxy on Ubuntu 20.04. Of course, you don’t have to install and configure Etherpad on Ubuntu 20.04, if you use one of our Ubuntu Managed Hosting solutions, in which case you can simply ask our expert Linux administrators to install and configure Etherpad on Ubuntu 18.20 for you. . They are available 24 × 7 and will attend to your request immediately.
P.S. If you liked this post on how to install Etherpad on an Ubuntu 20.04 VPS, please share it with your friends on social media using the share buttons below, or just leave a comment in the comment section. Thanks.
Final words: How to Run Etherpad Lite on Ubuntu 20.04 LTS
I hope you understand this article How to Run Etherpad Lite on Ubuntu 20.04 LTS, if your answer is no then you can ask anything via contact forum section related to this article. And if your answer is yes then please share this article with your family and friends.
Source of this news: https://www.bollyinside.com/articles/how-to-run-etherpad-lite-on-ubuntu-20-04-lts/
Related posts:
Everyone tends to ignore it, but everything you do online may be tracked. This is how snoopers and authorities are able to keep track of what you’ve been looking for on the internet as wel...
One of the key strategic moves that AMD made when it architected its comeback in the datacenter was to beef up the compute, I/O, and memory on a single server socket while at the same time making ...
Few 1 . 51 billion IoT breaches occurred from The month of january to June, most when telnet remote access project. IoT cyberattacks more than doubled year-on-year during the first 50 % of 2...
Here is a guide on how to fix the Steam needs to be online to update error on Windows PC. Steam is a video game distribution service developed by Valve Corporation. It is a great platform for ga...
Internet privacy can be protected by using an Anonymous Proxy. Past News ReleasesRSS Tampa, Florida (PRWEB) October 13, 2010 Privacy Partners, LLC the developer of Private Proxy Software, an...
There's a variety of help out there to fix such a error, but when I started initially to do them I couldnt find the correct CSLID key in Regedit. It has one similar to keep in mind this, no lette...
The reason WordPress Hosting? Whilst truly being priced at premium rates, Live journal Hosting usually delivers reputable value due to the entire structure. Fast storage : largest compone...
How frustrating is it that we can’t play a game because we don’t live in a specific zip code, state, or country? Why should that matter when all we want to do is enjoy the game? Or, what if you unkno...
A trio of Democrats — Agent. Bonne Watson Coleman of New Jersey, Rep. Pramila Jayapal of Washington, and Rap. Brad Schneider of The state of illinois — tested positive for just a virus earlier ...
NEW YORK (AP) — A gunman in a gas mask and a construction vest set off a smoke canister on a rush-hour subway train in Brooklyn and shot at least 10 people Tuesday, authorities said. Police were scou...
PROFESSIONALCOMMUNITY Many servers now support HTTP/2. This exposes them to potential vulnerabilities that are impossible to test for using tools that only speak HTTP/1. Burp Suite provides unrivale...
Apple has positioned itself at the forefront of consumer privacy over the years. The company can always be relied upon to deploy new tweaks and improvements with data protection in mind. While this i...
Saurabh Modi Saurabh Modi is an WHICH professional with over a ten years of experience, ranging from business intelligence, statistical analysis, application growing to production support an...
X.Org's DMX DDX driver for supporting Distributed Multi-Head X looks like it will be removed from the source tree after finding out the code has been rather broken for the past 14 years. Back around...
If you've been keeping tabs on the state of vulnerabilities, you've probably noticed that Microsoft Exchange has been in the news more than usual lately. Back in March 2021, Microsoft acknowledged ...
Internet access is no longer an option; it has become a requirement for everyone. Internet connection has its own set of advantages for an organization, but it also allows the outside world to commu...
Filed Pursuant of Rule 424(b)(3) Enrollment No . 333-257438 PROSPECTUS NRX Pharmaceuticals, Inc. sekiz, 757, 258 Shares on Common Stock three or, 586, 250 Shares with Common Sto...
ARE you looking for a VPN with good security features and a free subscription plan? Keep reading then, because PrivadoVPN has both.We have tested PrivadoVPN for over two weeks and in this review, you...