<\/span><\/h2>\nInstall the required packages that will help Etherpad run on our server:<\/p>\n
sudo apt install libssl-dev pkg-config gcc g++ make build-essential<\/pre>\nEtherpad also requires Node.js, so we will install the latest version (at the time of writing this tutorial), Node.js 10.15.3. The latest version of Node.js can be installed from the ‘nodesource’ repository. Once you have downloaded the tarball, extract it in a new directory at \/opt\/nodejs\/<\/code>.<\/p>\ncd \/opt\nwget https:\/\/nodejs.org\/dist\/v10.15.3\/node-v10.15.3-linux-x64.tar.xz\ntar xJf node-v*-linux-x64.tar.xz\nsudo mkdir \/opt\/nodejs\/ && mv node-*-linux-x64\/* \/opt\/nodejs<\/pre>\n<\/span>Step 3: Install MySQL and Create a MySQL Database<\/span><\/h2>\nWe’ll need MySQL in order to store the data that Etherpad creates and manipulates. Install MySQL using the following command:<\/p>\n
apt-get install mysql-server mysql-client<\/pre>\nCreate a new MySQL user and database:<\/p>\n
mysql> create database etherpad_db;\nmysql> grant all privileges on etherpad_db.* to etherpad@localhost identified by 'Str0ngPa55w0rd<\/span>';\nmysql> flush privileges;\nmysql> quit<\/pre>\nDon’t forget to change Str0ngPa55w0rd<\/code>\u00a0with a real, strong password.<\/p>\n<\/span>Step 4: Create Etherpad user<\/span><\/h2>\nIn order to create a new system user for the Etherpad instance, run the following commands:<\/p>\n
sudo adduser --home \/opt\/etherpad --shell \/bin\/bash etherpad\nsudo install -d -m 755 -o etherpad -g etherpad \/opt\/etherpad\nsudo su - etherpad\nPATH=$PATH:\/opt\/nodejs\/bin\necho \"PATH=$PATH:\/opt\/nodejs\/bin\" >> ~\/.profile<\/pre>\nCheck the Node.js version:<\/p>\n
etherpad@localhost:~$ node --version\nv10.15.3<\/pre>\nNow we can begin installing Etherpad.<\/p>\n
<\/span>Step 5: Install and Configure Etherpad<\/span><\/h2>\nClone the Etherpad repository from the GitHub page using the following command:<\/p>\n
git clone git:\/\/github.com\/ether\/etherpad-lite.git ~\/etherpad-lite<\/pre>\nGo to the ‘etherpad-lite’ directory and run the ‘run.sh’ bash script to start Etherpad.<\/p>\n
cd \/opt\/etherpad\/etherpad-lite\/\nbin\/run.sh<\/pre>\nCopy the ‘settings.json.template’ file to a new file named ‘settings.json’:<\/p>\n
cp settings.json.template settings.json<\/pre>\nThen edit the settings.json file using your preferred text editor (we’ll be using ‘nano’):<\/p>\n
nano settings.json<\/pre>\nAdd\/modify the following:<\/p>\n