<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>how to install etherpad Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/how-to-install-etherpad/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 14 Dec 2020 21:31:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Install Etherpad On Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-etherpad-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-etherpad-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Fri, 18 Dec 2020 06:05:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[etherpad ubuntu 20.04]]></category>
		<category><![CDATA[how to install etherpad]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[ubuntu 20.04 tutoria]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=26178</guid>

					<description><![CDATA[<p>In this tutorial you&#8217;ll learn that how to install Etherpad on Ubuntu 20.04. Etherpad is a web based online editor that helps you to wathc your edits in real time. It provides many features &#38; it is fully customizable and seprates each author text in separate color and many other features. With the help of [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-etherpad-on-ubuntu-20-04/">How To Install Etherpad On Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this tutorial you&#8217;ll learn that how to install Etherpad on Ubuntu 20.04. Etherpad is a web based online editor that helps you to wathc your edits in real time. It provides many features &amp; it is fully customizable and seprates each author text in separate color and many other features. With the help of various plugins, you can make it more comfortable. So, here we&#8217;ll see the steps to install it on our system.</p>



<h2>Step 1: Update Your System</h2>



<p>First of all update your system.</p>



<pre class="wp-block-preformatted">sudo apt update -y</pre>



<p>And install some other required packages by typing</p>



<pre class="wp-block-preformatted">sudo apt install gnupg2 git unzip libssl-dev pkg-config gcc g++ make build-essential -y</pre>



<h3>Step 2: Install &amp; Configure MariadDB</h3>



<p>Run the below command to install MariaDB on your system.</p>



<pre class="wp-block-preformatted">sudo apt install mariadb-server -y</pre>



<p>Type mysql in the terminal to login.</p>



<pre class="wp-block-preformatted">sudo mysql -u root -p</pre>



<p>Then create a database for etherpad</p>



<pre class="wp-block-preformatted">create database etherpad;
grant all privileges on etherpad.* to etherpad@localhost identified by 'Your_Password';
flush privileges;
exit;</pre>



<h3>Step 3: Install Node.js on Ubuntu 20.04</h3>



<p>As Etherpad is based on Node.js, so you&#8217;ve to install it on your system. By default the latest version is not provided on Ubuntu repositories. Install it with the help of below commands.</p>



<pre class="wp-block-preformatted">sudo curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs -y</pre>



<p>Verify the installed version by typing</p>



<pre class="wp-block-preformatted">node -v</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$ node -v
v14.15.1</pre>



<h3>Step 4: Install &amp; Configure Etherpad</h3>



<p>First of all create a user for etherpad to run it as a seprate user.</p>



<pre class="wp-block-preformatted">sudo adduser --home /opt/etherpad --shell /bin/bash etherpad</pre>



<p>Provide the password and other details.</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$ sudo adduser --home /opt/etherpad --shell /bin/bash etherpad
Adding user <code>etherpad' ... Adding new group</code>etherpad' (1001) …
Adding new user <code>etherpad' (1001) with group</code>etherpad' …
Creating home directory <code>/opt/etherpad' ... Copying files from</code>/etc/skel' …
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for etherpad
Enter the new value, or press ENTER for the default
Full Name []: Sabor
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y</pre>



<p>Give permissions to newly created user.</p>



<pre class="wp-block-preformatted">install -d -m 755 -o etherpad -g etherpad /opt/etherpad</pre>



<p>Now, switch to the user &amp; download the etherpad with the help of below commands.</p>



<pre class="wp-block-preformatted">su - etherpad
git clone --branch master https://github.com/ether/etherpad-lite.git</pre>



<p>Switch to the downloaded directory &amp; run the script.</p>



<pre class="wp-block-preformatted">cd etherpad-lite
bin/run.sh</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">2020-12-05 10:41:17.826] [INFO] console - Your Etherpad version is 1.8.6 (2c8769a)<br>[2020-12-05 10:41:17.930] [INFO] console - You can access your Etherpad instance at http://0.0.0.0:9001/<br>[2020-12-05 10:41:17.930] [WARN] console - Admin username and password not set in settings.json. To access admin please uncomment and edit 'users' in settings.json<br>[2020-12-05 10:41:17.930] [WARN] console - Etherpad is running in Development mode. This mode is slower for users and less secure than production mode. You should set the NODE_ENV environment variable to production by using: export NODE_ENV=production</pre>



<pre class="wp-block-verse">Simply stop the server by pressing <strong>Ctrl+C </strong>&amp; edit the settings.json file.</pre>



<pre class="wp-block-preformatted">sudo nano settings.json</pre>



<p>And delete the given lines:</p>



<pre class="wp-block-preformatted">"dbType" : "dirty",<br>"dbSettings" : {<br>"filename" : "var/dirty.db"<br>},</pre>



<p>And do the similar changes as given below:</p>



<pre class="wp-block-preformatted">"dbType" : "mysql",<br>"dbSettings" : {<br>"user": "etherpad",<br>"host": "localhost",<br>"port": 3306,<br>"password": "Your_Password",<br>"database": "etherpad",<br>"charset": "utf8mb4"<br>},</pre>



<p><strong>Note:</strong> Provide your own credentials.</p>



<p>And set the trustProxy to true state.</p>



<pre class="wp-block-preformatted">"trustProxy": true,</pre>



<p>Also, type the pass for admin user.</p>



<pre class="wp-block-preformatted">"users": {<br>"admin": {<br>"password": "adminpassword",<br>"is_admin": true<br>},</pre>



<p>Finally save &amp; exit the file.</p>



<p>Hit the below command to resolve dependencies.</p>



<pre class="wp-block-preformatted">./bin/installDeps.sh</pre>



<p>On success, exit Etherpad user</p>



<pre class="wp-block-preformatted">exit</pre>



<p>Etherpad is now installed &amp; configured.</p>



<h3>Step 5: Create Systemd Service File</h3>



<p>Create a new file under <strong>/etc/systemd/system/</strong> directory.</p>



<pre class="wp-block-preformatted">sudo nano /etc/systemd/system/etherpad.service</pre>



<p>Then paste the below content in it.</p>



<pre class="wp-block-preformatted">[Unit]
Description=Etherpad-lite, the collaborative editor.
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 /opt/etherpad/etherpad-lite/src/node/server.js
Restart=always
[Install]
WantedBy=multi-user.target</pre>



<p>Save &amp; exit the file.</p>



<p>Reload the daemon.</p>



<pre class="wp-block-preformatted">systemctl daemon-reload</pre>



<p>To start &amp; enable etherpad type,</p>



<pre class="wp-block-preformatted">systemctl start etherpad
systemctl enable etherpad</pre>



<p>Confirm the status by typing</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$ <strong>sudo systemctl status etherpad</strong>
● etherpad.service - Etherpad-lite, the collaborative editor.
Loaded: loaded (/etc/systemd/system/etherpad.service; enabled; vendor preset: ena&gt;
Active: active (running) since Sat 2020-12-05 10:47:47 PKT; 22s ago
Main PID: 13895 (node)
Tasks: 13 (limit: 2285)
Memory: 87.9M
CGroup: /system.slice/etherpad.service
└─13895 /usr/bin/node /opt/etherpad/etherpad-lite/src/node/server.js
دسمبر 05 10:47:47 Ubuntu20 node[13895]: No credentials file found in /opt/etherpad/eth&gt;
دسمبر 05 10:47:47 Ubuntu20 node[13895]: [2020-12-05 10:47:47.270] [INFO] console - Usi&gt;
دسمبر 05 10:47:47 Ubuntu20 node[13895]: [2020-12-05 10:47:47.271] [INFO] console - Ses&gt;
دسمبر 05 10:47:47 Ubuntu20 node[13895]: [2020-12-05 10:47:47.271] [WARN] console - Dir&gt;
دسمبر 05 10:47:49 Ubuntu20 node[13895]: [2020-12-05 10:47:49.114] [INFO] APIHandler - &gt;
دسمبر 05 10:47:49 Ubuntu20 node[13895]: [2020-12-05 10:47:49.252] [INFO] console - Ins&gt;
دسمبر 05 10:47:49 Ubuntu20 node[13895]: [2020-12-05 10:47:49.255] [INFO] console - Rep&gt;
دسمبر 05 10:47:49 Ubuntu20 node[13895]: [2020-12-05 10:47:49.256] [INFO] console - You&gt;
دسمبر 05 10:47:49 Ubuntu20 node[13895]: [2020-12-05 10:47:49.366] [INFO] console - You&gt;
دسمبر 05 10:47:49 Ubuntu20 node[13895]: [2020-12-05 10:47:49.367] [WARN] console - Adm&gt;
lines 1-19/19 (END)</pre>



<h3>Step 6: Configure Nginx</h3>



<p>Install &amp; configure the nginx for etherpad.</p>



<pre class="wp-block-preformatted">sudo apt install nginx -y</pre>



<p>Create new <strong>/etc/nginx/sites-available/etherpad.conf</strong> file.</p>



<pre class="wp-block-preformatted">sudo nano /etc/nginx/sites-available/etherpad.conf</pre>



<p>And paste the data given in it.</p>



<pre class="wp-block-preformatted">upstream etherpad {
server localhost:9001;
keepalive 32;
}
server {
listen 80;
server_name etherpad.osradar.com;
location / {
client_max_body_size 50M;
proxy_set_header X-Real-IP $remote_addr;
proxy_http_version 1.1;
proxy_pass http://etherpad;
}
}</pre>



<p>Save &amp; exit the file.</p>



<p>Link the above config file by typing</p>



<pre class="wp-block-preformatted">sudo ln -s /etc/nginx/sites-available/etherpad.conf /etc/nginx/sites-enabled/</pre>



<p>Verify the syntax,</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful</pre>



<p>Restart nginx services</p>



<pre class="wp-block-preformatted">sudo systemctl restart nginx</pre>



<p>Verify the status</p>



<pre class="wp-block-preformatted">sudo systemctl status nginx</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="729" height="391" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/2020-12-05_10h55_34.png" alt="" class="wp-image-26443" srcset="https://www.osradar.com/wp-content/uploads/2020/12/2020-12-05_10h55_34.png 729w, https://www.osradar.com/wp-content/uploads/2020/12/2020-12-05_10h55_34-300x161.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/2020-12-05_10h55_34-696x373.png 696w" sizes="(max-width: 729px) 100vw, 729px" /></figure>



<h3>Step 7:Access Etherpad Via Web</h3>



<p>Type <a href="http://etherpad.mydomain.com" target="_blank" rel="noreferrer noopener">http://etherpad.osradar.com</a> &amp; you&#8217;ll see the similar page.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="752" height="543" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/2020-12-05_10h59_10.jpg" alt="How To Install Etherpad On Ubuntu 20.04" class="wp-image-26445" srcset="https://www.osradar.com/wp-content/uploads/2020/12/2020-12-05_10h59_10.jpg 752w, https://www.osradar.com/wp-content/uploads/2020/12/2020-12-05_10h59_10-300x217.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/12/2020-12-05_10h59_10-696x503.jpg 696w" sizes="(max-width: 752px) 100vw, 752px" /></figure>



<p>Give it a name &amp; click <strong>&#8220;OK&#8221;</strong>. You&#8217;ll see the etherpad dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="748" height="495" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/2020-12-05_11h00_01.png" alt="How To Install Etherpad On Ubuntu 20.04" class="wp-image-26446" srcset="https://www.osradar.com/wp-content/uploads/2020/12/2020-12-05_11h00_01.png 748w, https://www.osradar.com/wp-content/uploads/2020/12/2020-12-05_11h00_01-300x199.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/2020-12-05_11h00_01-696x461.png 696w" sizes="(max-width: 748px) 100vw, 748px" /></figure>



<p>So, this is how you can install etherpad on Ubuntu20.04</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-etherpad-on-ubuntu-20-04/">How To Install Etherpad On Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-etherpad-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
