Welcome to StackEdit! Hey! I’m your first Markdown document in StackEdit 1 . Don’t delete me, I’m very helpful! I can be recovered anyway in the Utils tab of the Settings dialog. Documents StackEdit stores your documents in your browser, which means all your documents are automatically saved locally and are accessible offline! Note: StackEdit is accessible offline after the application has been loaded for the first time. Your local documents are not shared between different browsers or computers. Clearing your browser’s data may delete all your local documents! Make sure your documents are synchronized with Google Drive or Dropbox (check out the Synchronization section). Create a document The document panel is accessible using the button in the navigation bar. You can create a new document by clicking New document in the document panel. Switch to another document All your local documents are listed in the document panel. You can switch from one to anoth...
Cryptpad is an open source collaborative editor which is hosted at: https://github.com/cjdelisle/cryptpad
It is easy to clone the github repository and start to try, but if you are a newbie, there maybe some difficulties.
Suppose that you have a clean Ubuntu machine, and want to try with Cryptpad, you can follow these steps:
1. Download mongodb for Linux:
https://www.mongodb.org/downloads
2. Unzip the file you got to a location you want. You will start mongodb from there, or add this directory to your PATH variable so you can start mongodb from anywhere.
3. Suppose that you chose the easier way, i.e start mongodb from its directory.
4. Open Terminal (Ctrl + Alt + T for shortcut), move to the directory of mongodb
5. Type:
mkdir db
mongod --dbpath=./db
These above commands will first, create a directory 'db' insider the directory mongodb, then start mongodb server.
6. Keep the terminal with mongodb server running
7. Open another terminal (Ctrl + Shift + T to open a new tab, like Firefox or Chrome).
8. In the new terminal, make sure you are in mongodb directory, and type:
mongo
It will start mongo client
9. Now you are in interactive shell of mongodb client, type:
use cryptpad
db.createCollection ("cryptpad")
It will create collection "cryptpad" inside a databse "cryptpad". Of course you can use any name you want.
10. Now you need to create an user to use the collection "cryptpad". In mongodb shell, type as following, you can create new line by press Enter and mongodb shell will wait until you finish the command:
11. Now, you can close the terminal of mongodb client, but remember to keep mongodb server run
12. Clone cryptpad from github:
https://github.com/cjdelisle/cryptpad
13. Open new terminal, move to cryptpad directory.
14. You should create a new configuration by typing:
cp config.js.dist config.js
15. Now, open 'config.js' file by whatever editor you want, and modify the mongoUri to (there is a comment line which is a suggestion):
mongoUri: "mongodb://cryptpad:cryptpad@localhost:27017/cryptpad",
You can keep other lines as original.
It means, now cryptpad will connect to mongodb at localhost (mongodb server is running on your machine, that's why we need to keep mongodb running on a terminal), username and password are cryptpad, the port is 27017 (the default port of mongodb).
16. Now, download nodejs. You can refer to this post to install NodeJS in Ubuntu.
17. Everything is done. Now you can start cryptpad:
node server.js
18. Open your web browser, type:
localhost:3000
Voila. You should see cryptpad screen. You can also access the cryptpad from other machines, by changing localhost to your Ubuntu machine's IP address.
NOTE:
even this guide is written in Ubuntu, the same techniques can be used for other operating systems.
Good luck!
It is easy to clone the github repository and start to try, but if you are a newbie, there maybe some difficulties.
Suppose that you have a clean Ubuntu machine, and want to try with Cryptpad, you can follow these steps:
1. Download mongodb for Linux:
https://www.mongodb.org/downloads
2. Unzip the file you got to a location you want. You will start mongodb from there, or add this directory to your PATH variable so you can start mongodb from anywhere.
3. Suppose that you chose the easier way, i.e start mongodb from its directory.
4. Open Terminal (Ctrl + Alt + T for shortcut), move to the directory of mongodb
5. Type:
mkdir db
mongod --dbpath=./db
These above commands will first, create a directory 'db' insider the directory mongodb, then start mongodb server.
6. Keep the terminal with mongodb server running
7. Open another terminal (Ctrl + Shift + T to open a new tab, like Firefox or Chrome).
8. In the new terminal, make sure you are in mongodb directory, and type:
mongo
It will start mongo client
9. Now you are in interactive shell of mongodb client, type:
use cryptpad
db.createCollection ("cryptpad")
It will create collection "cryptpad" inside a databse "cryptpad". Of course you can use any name you want.
10. Now you need to create an user to use the collection "cryptpad". In mongodb shell, type as following, you can create new line by press Enter and mongodb shell will wait until you finish the command:
db.createUser( { user: "cryptpad", pwd: "cryptpad", roles: [ { role: "readWrite", db: "cryptpad" }, ] } )You should see the success report from mongodb.
11. Now, you can close the terminal of mongodb client, but remember to keep mongodb server run
12. Clone cryptpad from github:
https://github.com/cjdelisle/cryptpad
13. Open new terminal, move to cryptpad directory.
14. You should create a new configuration by typing:
cp config.js.dist config.js
15. Now, open 'config.js' file by whatever editor you want, and modify the mongoUri to (there is a comment line which is a suggestion):
mongoUri: "mongodb://cryptpad:cryptpad@localhost:27017/cryptpad",
You can keep other lines as original.
It means, now cryptpad will connect to mongodb at localhost (mongodb server is running on your machine, that's why we need to keep mongodb running on a terminal), username and password are cryptpad, the port is 27017 (the default port of mongodb).
16. Now, download nodejs. You can refer to this post to install NodeJS in Ubuntu.
17. Everything is done. Now you can start cryptpad:
node server.js
18. Open your web browser, type:
localhost:3000
Voila. You should see cryptpad screen. You can also access the cryptpad from other machines, by changing localhost to your Ubuntu machine's IP address.
NOTE:
even this guide is written in Ubuntu, the same techniques can be used for other operating systems.
Good luck!
Comments