User:E.zn/eth--host: Difference between revisions
No edit summary |
|||
Line 13: | Line 13: | ||
<div style="width:85%"> | <div style="width:85%"> | ||
<br> | <br> | ||
===___________________________________node.js=== | ===___________________________________node.js=== | ||
Line 75: | Line 66: | ||
===___________________________________etherpad=== | |||
<br> | |||
====_ _ _ _ _ download==== | |||
<br> | |||
::<pre style="background-color:#F2F2F2; border-color:blue; color:red; width:90%">cd /opt</pre> | |||
::<pre style="background-color:#F2F2F2; border-color:blue; color:red; width:90%">sudo git clone https://github.com/ether/etherpad-lite.git</pre> | |||
<br> | |||
====_ _ _ _ _ rename==== | |||
<br> | |||
::<pre style="background-color:#F2F2F2; border-color:blue; color:red; width:90%">sudo mv etherpad-lite etherpad</pre> | |||
<br> | |||
====_ _ _ _ _ create etherpad user==== | |||
<br> | |||
::<pre style="background-color:#F2F2F2; border-color:blue; color:red; width:90%">sudo adduser --system --no-create-home --home=/opt/etherpad --group etherpad</pre> | |||
::<pre style="background-color:#F2F2F2; border-color:blue; color:red; width:90%">sudo chown -R etherpad:etherpad etherpad</pre> | |||
<br> | |||
====_ _ _ _ _ settings for etherpad user==== | |||
<br> | |||
::<pre style="background-color:#F2F2F2; border-color:blue; color:red; width:90%">cd etherpad</pre> | |||
::<pre style="background-color:#F2F2F2; border-color:blue; color:red; width:90%">sudo --user etherpad cp settings.json.template settings.json</pre> | |||
::<pre style="background-color:#F2F2F2; border-color:blue; color:red; width:90%">sudo --user etherpad nano settings.json</pre> | |||
<pre style="background-color:#F2F2F2; border-color:blue; color:red; width:86%; margin-left:4%"> | |||
/* | |||
"dbSettings" : { [ | |||
"filename" : "var/dirty.db" [ comment out this section | |||
}, [ by putting it inside /* */ | |||
*/ [ | |||
"dbType" : "mysql", [ | |||
"dbSettings" : { [ uncomment this part | |||
"user" : "etherpaduser", [ by removing /* */ around it | |||
"host" : "localhost", [ | |||
"password": "etherpassword", [ < change the database password | |||
"database": "etherpad", [ < change the database name | |||
"charset" : "utf8mb4" [ | |||
}, [ | |||
</pre> | |||
[[Category:etherpad setup]] | [[Category:etherpad setup]] | ||
[[Category:Tools]] | [[Category:Tools]] |
Revision as of 13:06, 21 June 2021
___________________________________node.js
_ _ _ _ _ download
curl -fsSL https://deb.nodesource.com/setup_15.x | bash -
- » »»»» src : nodesource
- » »»»» more on -fsSL flag
_ _ _ _ _ install
apt-get install -y nodejs
apt-get install -y build-essential
_ _ _ _ _ link
sudo ln -s /usr/bin/nodejs /usr/bin/node
___________________________________npm
_ _ _ _ _ install
apt update
apt install aptitude
aptitude install npm
___________________________________database
_ _ _ _ _ install mariadb
apt install mariadb-server-10.3
_ _ _ _ _ install php
sudo apt -y install php7.3
___________________________________git
_ _ _ _ _ install
aptitude install git
___________________________________etherpad
_ _ _ _ _ download
cd /opt
sudo git clone https://github.com/ether/etherpad-lite.git
_ _ _ _ _ rename
sudo mv etherpad-lite etherpad
_ _ _ _ _ create etherpad user
sudo adduser --system --no-create-home --home=/opt/etherpad --group etherpad
sudo chown -R etherpad:etherpad etherpad
_ _ _ _ _ settings for etherpad user
cd etherpad
sudo --user etherpad cp settings.json.template settings.json
sudo --user etherpad nano settings.json
/* "dbSettings" : { [ "filename" : "var/dirty.db" [ comment out this section }, [ by putting it inside /* */ */ [ "dbType" : "mysql", [ "dbSettings" : { [ uncomment this part "user" : "etherpaduser", [ by removing /* */ around it "host" : "localhost", [ "password": "etherpassword", [ < change the database password "database": "etherpad", [ < change the database name "charset" : "utf8mb4" [ }, [