From 89970ccff23a05b406906459264f23d6aacaf039 Mon Sep 17 00:00:00 2001 From: Johnny Hsieh Date: Fri, 30 Nov 2018 14:28:15 +0800 Subject: [PATCH 01/13] NEO README add --- digitalOcean/.DS_Store | Bin 0 -> 6148 bytes digitalOcean/neo/README.md | 172 +++++++++++++++++++++++++++++++++++++ 2 files changed, 172 insertions(+) create mode 100644 digitalOcean/.DS_Store create mode 100644 digitalOcean/neo/README.md diff --git a/digitalOcean/.DS_Store b/digitalOcean/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..c64a1c4b7bc1462ad9f6d61fcaae8c37a1b40596 GIT binary patch literal 6148 zcmeHKJ5B>J5FL{stwfUsiPBfd4NSD0AQwO(2#Rc+CjE9f794})@aDrOve=R$dLzxe z^?dBzS9o?rB(09yrN}}=I;f(Y)U={;)kdzuGY2N!W4V5+!=cHWa%k;L_VO%s_tMly zWT<_=+0_klyW8vi+v(%|{-!WZ;~EnJ*XG{~w@#%>U;_T#*4Xa8V4TdB5&g_@wBq y&Btl4&Co~ammt^DVXPGctrcUTt@!R&Ue;&COW^2e NEO is a non-profit community-driven blockchain project. It utilizes blockchain technology and digital identity to digitize assets and automate the management of digital assets using smart contracts. Using a distributed network, it aims to create a "Smart Economy". + +## What is needed + +### SSH Terminal + +- Windows: Recommend Putty, +- Mac OS: Using default terminal + +## Getting Started + +### Login + +If you already have DigitalOcean account, you can login into your account. + +### Sign up + +If you don't have DigitalOcean account, please sign up. + +## 1. Create Project + +[![Create Project](https://camo.githubusercontent.com/e671515f25c34e582e35c909a7349d09aeaddf82/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f70726f6a6563742e706e67)](https://camo.githubusercontent.com/e671515f25c34e582e35c909a7349d09aeaddf82/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f70726f6a6563742e706e67) + +## 2. Create Droplets + +[![Create Droplet](https://camo.githubusercontent.com/97daf57bae21be0adcc994f1c553bb255065cb66/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f64726f706c65742e706e67)](https://camo.githubusercontent.com/97daf57bae21be0adcc994f1c553bb255065cb66/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f64726f706c65742e706e67) + +### Droplets configuration + +- Choose an image + - Debian: 9.5 x 64 +- Choose a size + - CPU: 1 GB + - SSD: 25 GB + - Transfer: 1000 GB + - Price: $5 / month + +[![Choose Image](https://camo.githubusercontent.com/39cfcdc79996292406879cbcf72a5f83c94ee6aa/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f6e6b6e5f696d6167652e706e67)](https://camo.githubusercontent.com/39cfcdc79996292406879cbcf72a5f83c94ee6aa/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f6e6b6e5f696d6167652e706e67) + +- CPU Optimized Droplets (Skip) +- Add backups (Skip) +- Add block storage (Skip) +- Choose a datacenter region + - Bangalore + +[![Choose Region](https://camo.githubusercontent.com/0d436a7b70190cdab41975630dd917d627b93ea1/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f726567696f6e2e706e67)](https://camo.githubusercontent.com/0d436a7b70190cdab41975630dd917d627b93ea1/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f726567696f6e2e706e67) + +- Select additional options (Skip) +- Add your SSH keys (Skip) +- Finalize and create + - Choose a hostname: *Type a name you'd like* or using default +- Click **Create** + +## 3. Connect to node + +After create the Droplets, you will receive the email include: + +- Droplet Name +- IP Address +- Username +- Password + +Using terminal/putty to connect the droplet node + +``` +$ ssh root@ +``` + +*NOTE: You must change your password at the first time you connect to the droplet node.* + +## 4. Installation + +Update Debian + +``` +apt-get update +``` + +Install Database + +``` +sudo apt-get install unzip libleveldb-dev sqlite3 libsqlite3-dev libunwind8-dev +``` + +We are using neo-python to setup everything so we need to install python3 and pip3 first + +Install python3 + +``` +apt install python3 +``` + +Install pip3 + +``` +apt install pip3 +``` + + + +## 5. Download and build + +Create folder for NEO + +``` +git clone https://github.com/CityOfZion/neo-python.git +``` + +Change directory to NEO source + +``` +cd neo-python +``` + +Before we can install neo-python there are two libirary need to be installed first + +Openssl + +``` +apt-get install openssl +``` + + Libssl + +``` +apt-get install libssl-dev +``` + +Install neo-python + +``` +pip3 install neo-python +``` + +To speed up the syn process: + +Bootstrap the testnet blockchain + +``` +np-bootstrap +``` + +Bootstrap the testnet notifications database + +``` +np-bootstrap -n +``` + + + +### Start testnet and wallet creation + +Its easy to start NEO testnet now, just typing the following cmd + +``` +np-prompt +``` + +If you want to create a new wallet for NEO: + +``` +create wallet {your_wallet_name} +``` + +Open wallet + +``` +open wallet {your_wallet_name} +``` + From 9c109582ec22dc8c608d4382c948753832282166 Mon Sep 17 00:00:00 2001 From: Johnny Hsieh Date: Fri, 30 Nov 2018 15:19:02 +0800 Subject: [PATCH 02/13] Add ontology readme --- digitalOcean/ontology/README.md | 122 ++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 digitalOcean/ontology/README.md diff --git a/digitalOcean/ontology/README.md b/digitalOcean/ontology/README.md new file mode 100644 index 0000000..df33617 --- /dev/null +++ b/digitalOcean/ontology/README.md @@ -0,0 +1,122 @@ +# Start a Ontology on DigitalOcean + +> NEO is a non-profit community-driven blockchain project. It utilizes blockchain technology and digital identity to digitize assets and automate the management of digital assets using smart contracts. Using a distributed network, it aims to create a "Smart Economy". + +## What is needed + +### SSH Terminal + +- Windows: Recommend Putty, +- Mac OS: Using default terminal + +## Getting Started + +### Login + +If you already have DigitalOcean account, you can login into your account. + +### Sign up + +If you don't have DigitalOcean account, please sign up. + +## 1. Create Project + +[![Create Project](https://camo.githubusercontent.com/e671515f25c34e582e35c909a7349d09aeaddf82/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f70726f6a6563742e706e67)](https://camo.githubusercontent.com/e671515f25c34e582e35c909a7349d09aeaddf82/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f70726f6a6563742e706e67) + +## 2. Create Droplets + +[![Create Droplet](https://camo.githubusercontent.com/97daf57bae21be0adcc994f1c553bb255065cb66/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f64726f706c65742e706e67)](https://camo.githubusercontent.com/97daf57bae21be0adcc994f1c553bb255065cb66/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f64726f706c65742e706e67) + +### Droplets configuration + +- Choose an image + - Debian: 9.5 x 64 +- Choose a size + - CPU: 1 GB + - SSD: 25 GB + - Transfer: 1000 GB + - Price: $5 / month + +[![Choose Image](https://camo.githubusercontent.com/39cfcdc79996292406879cbcf72a5f83c94ee6aa/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f6e6b6e5f696d6167652e706e67)](https://camo.githubusercontent.com/39cfcdc79996292406879cbcf72a5f83c94ee6aa/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f6e6b6e5f696d6167652e706e67) + +- CPU Optimized Droplets (Skip) +- Add backups (Skip) +- Add block storage (Skip) +- Choose a datacenter region + - Bangalore + +[![Choose Region](https://camo.githubusercontent.com/0d436a7b70190cdab41975630dd917d627b93ea1/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f726567696f6e2e706e67)](https://camo.githubusercontent.com/0d436a7b70190cdab41975630dd917d627b93ea1/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f726567696f6e2e706e67) + +- Select additional options (Skip) +- Add your SSH keys (Skip) +- Finalize and create + - Choose a hostname: *Type a name you'd like* or using default +- Click **Create** + +## 3. Connect to node + +After create the Droplets, you will receive the email include: + +- Droplet Name +- IP Address +- Username +- Password + +Using terminal/putty to connect the droplet node + +``` +$ ssh root@ +``` + +*NOTE: You must change your password at the first time you connect to the droplet node.* + +## 4. Installation + +Update Debian + +``` +apt-get update +``` + + + +## 5. Download and build + +Get the necessary kit and installed + +``` +curl https://dev.ont.io/ontology_install | sh +``` + +Change directory to Ontology source + +``` +cd ontio +``` + +Get all Ontology CLI command + +``` +./ontology --help +``` + +### Start testnet and wallet creation + +Before you can start a node on Digital Ocean, you need to open up a wallet ( account ) + +``` +./ontology account add -d +``` + +Check your wallet address + +``` +./ontology accont list +``` + +Now you can start a node ( testnet ) + +``` +./ontology --networkid 2 +``` + From 8a4e318ff79ab000da8642eb71a64fd220bf29dc Mon Sep 17 00:00:00 2001 From: Johnny Hsieh Date: Fri, 30 Nov 2018 15:20:56 +0800 Subject: [PATCH 03/13] Ontology describe fix --- digitalOcean/ontology/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/digitalOcean/ontology/README.md b/digitalOcean/ontology/README.md index df33617..83183a9 100644 --- a/digitalOcean/ontology/README.md +++ b/digitalOcean/ontology/README.md @@ -1,6 +1,6 @@ # Start a Ontology on DigitalOcean -> NEO is a non-profit community-driven blockchain project. It utilizes blockchain technology and digital identity to digitize assets and automate the management of digital assets using smart contracts. Using a distributed network, it aims to create a "Smart Economy". +> Ontology is a new high-performance public blockchain project & a distributed trust collaboration platform. Ontology provides new high-performance public blockchains that include a series of complete distributed ledgers and smart contract systems. ## What is needed From 95f1f7906da6b9c6215facf75a5650eb51f388e3 Mon Sep 17 00:00:00 2001 From: Johnny Hsieh Date: Fri, 30 Nov 2018 16:36:30 +0800 Subject: [PATCH 04/13] fix the neo readme some error --- digitalOcean/neo/README.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/digitalOcean/neo/README.md b/digitalOcean/neo/README.md index 006ed20..35f82e1 100644 --- a/digitalOcean/neo/README.md +++ b/digitalOcean/neo/README.md @@ -30,14 +30,14 @@ If you don't have DigitalOcean account, please sign up. ### Droplets configuration - Choose an image - - Debian: 9.5 x 64 + - Ubuntu 18.04 - Choose a size - CPU: 1 GB - SSD: 25 GB - Transfer: 1000 GB - Price: $5 / month -[![Choose Image](https://camo.githubusercontent.com/39cfcdc79996292406879cbcf72a5f83c94ee6aa/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f6e6b6e5f696d6167652e706e67)](https://camo.githubusercontent.com/39cfcdc79996292406879cbcf72a5f83c94ee6aa/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f6e6b6e5f696d6167652e706e67) +[![Choose Image](https://camo.githubusercontent.com/e671515f25c34e582e35c909a7349d09aeaddf82/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f70726f6a6563742e706e67) - CPU Optimized Droplets (Skip) - Add backups (Skip) @@ -72,7 +72,7 @@ $ ssh root@ ## 4. Installation -Update Debian +Update ubuntu ``` apt-get update @@ -83,6 +83,7 @@ Install Database ``` sudo apt-get install unzip libleveldb-dev sqlite3 libsqlite3-dev libunwind8-dev ``` +Please select 'Y' inorder to install We are using neo-python to setup everything so we need to install python3 and pip3 first @@ -95,7 +96,7 @@ apt install python3 Install pip3 ``` -apt install pip3 +apt install python3-pip ``` @@ -140,6 +141,11 @@ Bootstrap the testnet blockchain ``` np-bootstrap + +root@test:~/neo-python# np-bootstrap +This will overwrite any data currently in /root/.neopython/Chains/SC234. +Type 'confirm' to continue +[confirm]> ``` Bootstrap the testnet notifications database @@ -156,6 +162,11 @@ Its easy to start NEO testnet now, just typing the following cmd ``` np-prompt + +root@test:~/neo-python# np-prompt +[I 181130 08:20:27 LevelDBBlockchain:112] Created Blockchain DB at /root/.neopython/Chains/SC234 +[I 181130 08:20:33 NotificationDB:73] Created Notification DB At /root/.neopython/Chains/Test_Notif +NEO cli. Type 'help' to get started ``` If you want to create a new wallet for NEO: @@ -169,4 +180,5 @@ Open wallet ``` open wallet {your_wallet_name} ``` +NEO cli can reference here: https://github.com/CityOfZion/neo-python#running From a1d7fe5b7b2d4ff20d8f0cd1353657e454850d70 Mon Sep 17 00:00:00 2001 From: JohnnyHsieh Date: Fri, 30 Nov 2018 16:39:40 +0800 Subject: [PATCH 05/13] Update README.md fix image error --- digitalOcean/neo/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/digitalOcean/neo/README.md b/digitalOcean/neo/README.md index 35f82e1..3368bf1 100644 --- a/digitalOcean/neo/README.md +++ b/digitalOcean/neo/README.md @@ -37,7 +37,7 @@ If you don't have DigitalOcean account, please sign up. - Transfer: 1000 GB - Price: $5 / month -[![Choose Image](https://camo.githubusercontent.com/e671515f25c34e582e35c909a7349d09aeaddf82/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f70726f6a6563742e706e67) +[![Choose Image](https://s3.amazonaws.com/kaizen-images/github/choose_ipfs_image.png) - CPU Optimized Droplets (Skip) - Add backups (Skip) @@ -45,7 +45,7 @@ If you don't have DigitalOcean account, please sign up. - Choose a datacenter region - Bangalore -[![Choose Region](https://camo.githubusercontent.com/0d436a7b70190cdab41975630dd917d627b93ea1/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f726567696f6e2e706e67)](https://camo.githubusercontent.com/0d436a7b70190cdab41975630dd917d627b93ea1/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f726567696f6e2e706e67) +[![Choose Region](https://camo.githubusercontent.com/0d436a7b70190cdab41975630dd917d627b93ea1/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f726567696f6e2e706e67)(https://camo.githubusercontent.com/0d436a7b70190cdab41975630dd917d627b93ea1/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f726567696f6e2e706e67) - Select additional options (Skip) - Add your SSH keys (Skip) From c731cc2afd4f6d0c32a6d0f23e776f457a7e7438 Mon Sep 17 00:00:00 2001 From: JohnnyHsieh Date: Fri, 30 Nov 2018 16:41:24 +0800 Subject: [PATCH 06/13] Update README.md fix some style error --- digitalOcean/neo/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/digitalOcean/neo/README.md b/digitalOcean/neo/README.md index 3368bf1..37d861e 100644 --- a/digitalOcean/neo/README.md +++ b/digitalOcean/neo/README.md @@ -21,11 +21,11 @@ If you don't have DigitalOcean account, please sign up. ## 1. Create Project -[![Create Project](https://camo.githubusercontent.com/e671515f25c34e582e35c909a7349d09aeaddf82/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f70726f6a6563742e706e67)](https://camo.githubusercontent.com/e671515f25c34e582e35c909a7349d09aeaddf82/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f70726f6a6563742e706e67) +![Create Project](https://camo.githubusercontent.com/e671515f25c34e582e35c909a7349d09aeaddf82/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f70726f6a6563742e706e67) ## 2. Create Droplets -[![Create Droplet](https://camo.githubusercontent.com/97daf57bae21be0adcc994f1c553bb255065cb66/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f64726f706c65742e706e67)](https://camo.githubusercontent.com/97daf57bae21be0adcc994f1c553bb255065cb66/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f64726f706c65742e706e67) +![Create Droplet](https://camo.githubusercontent.com/97daf57bae21be0adcc994f1c553bb255065cb66/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f64726f706c65742e706e67) ### Droplets configuration @@ -37,7 +37,7 @@ If you don't have DigitalOcean account, please sign up. - Transfer: 1000 GB - Price: $5 / month -[![Choose Image](https://s3.amazonaws.com/kaizen-images/github/choose_ipfs_image.png) +![Choose Image](https://s3.amazonaws.com/kaizen-images/github/choose_ipfs_image.png) - CPU Optimized Droplets (Skip) - Add backups (Skip) @@ -45,7 +45,7 @@ If you don't have DigitalOcean account, please sign up. - Choose a datacenter region - Bangalore -[![Choose Region](https://camo.githubusercontent.com/0d436a7b70190cdab41975630dd917d627b93ea1/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f726567696f6e2e706e67)(https://camo.githubusercontent.com/0d436a7b70190cdab41975630dd917d627b93ea1/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f726567696f6e2e706e67) +![Choose Region](https://camo.githubusercontent.com/0d436a7b70190cdab41975630dd917d627b93ea1/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f726567696f6e2e706e67) - Select additional options (Skip) - Add your SSH keys (Skip) From c85d1f9d4148550f97b563d0a21270dfce64678d Mon Sep 17 00:00:00 2001 From: JohnnyHsieh Date: Fri, 30 Nov 2018 16:50:54 +0800 Subject: [PATCH 07/13] Update README.md fix some error --- digitalOcean/ontology/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/digitalOcean/ontology/README.md b/digitalOcean/ontology/README.md index 83183a9..694fe90 100644 --- a/digitalOcean/ontology/README.md +++ b/digitalOcean/ontology/README.md @@ -30,14 +30,14 @@ If you don't have DigitalOcean account, please sign up. ### Droplets configuration - Choose an image - - Debian: 9.5 x 64 + - Ubuntu 18.04 - Choose a size - CPU: 1 GB - SSD: 25 GB - Transfer: 1000 GB - Price: $5 / month -[![Choose Image](https://camo.githubusercontent.com/39cfcdc79996292406879cbcf72a5f83c94ee6aa/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f6e6b6e5f696d6167652e706e67)](https://camo.githubusercontent.com/39cfcdc79996292406879cbcf72a5f83c94ee6aa/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f6e6b6e5f696d6167652e706e67) +![Choose Image](https://s3.amazonaws.com/kaizen-images/github/choose_ipfs_image.png) - CPU Optimized Droplets (Skip) - Add backups (Skip) @@ -72,7 +72,7 @@ $ ssh root@ ## 4. Installation -Update Debian +Update Ubuntu ``` apt-get update @@ -111,7 +111,7 @@ Before you can start a node on Digital Ocean, you need to open up a wallet ( acc Check your wallet address ``` -./ontology accont list +./ontology account list ``` Now you can start a node ( testnet ) From b456c613ad838d872c40287fae1bb9a0113ae6ce Mon Sep 17 00:00:00 2001 From: JohnnyHsieh Date: Mon, 3 Dec 2018 09:27:25 +0800 Subject: [PATCH 08/13] Update README.md Adjust the style of readme file --- digitalOcean/neo/README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/digitalOcean/neo/README.md b/digitalOcean/neo/README.md index 37d861e..dc0283a 100644 --- a/digitalOcean/neo/README.md +++ b/digitalOcean/neo/README.md @@ -21,16 +21,16 @@ If you don't have DigitalOcean account, please sign up. ## 1. Create Project -![Create Project](https://camo.githubusercontent.com/e671515f25c34e582e35c909a7349d09aeaddf82/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f70726f6a6563742e706e67) +![Create Project](https://s3.amazonaws.com/kaizen-images/github/create_project.png) ## 2. Create Droplets -![Create Droplet](https://camo.githubusercontent.com/97daf57bae21be0adcc994f1c553bb255065cb66/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f64726f706c65742e706e67) +![Create Droplet]( https://s3.amazonaws.com/kaizen-images/github/create_droplet.png) ### Droplets configuration - Choose an image - - Ubuntu 18.04 + - Ubuntu 18.04 x 64 - Choose a size - CPU: 1 GB - SSD: 25 GB @@ -45,7 +45,7 @@ If you don't have DigitalOcean account, please sign up. - Choose a datacenter region - Bangalore -![Choose Region](https://camo.githubusercontent.com/0d436a7b70190cdab41975630dd917d627b93ea1/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f726567696f6e2e706e67) +![Choose Region](https://s3.amazonaws.com/kaizen-images/github/choose_region.png ) - Select additional options (Skip) - Add your SSH keys (Skip) @@ -162,7 +162,10 @@ Its easy to start NEO testnet now, just typing the following cmd ``` np-prompt +``` +And the output will showing the following message +``` root@test:~/neo-python# np-prompt [I 181130 08:20:27 LevelDBBlockchain:112] Created Blockchain DB at /root/.neopython/Chains/SC234 [I 181130 08:20:33 NotificationDB:73] Created Notification DB At /root/.neopython/Chains/Test_Notif From 6c0d9fb8242dcd0337ada7bd11cf32d0666d9a4b Mon Sep 17 00:00:00 2001 From: JohnnyHsieh Date: Mon, 3 Dec 2018 09:28:52 +0800 Subject: [PATCH 09/13] Update README.md fix the style. --- digitalOcean/neo/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/digitalOcean/neo/README.md b/digitalOcean/neo/README.md index dc0283a..aaf9ef8 100644 --- a/digitalOcean/neo/README.md +++ b/digitalOcean/neo/README.md @@ -141,7 +141,8 @@ Bootstrap the testnet blockchain ``` np-bootstrap - +``` +``` root@test:~/neo-python# np-bootstrap This will overwrite any data currently in /root/.neopython/Chains/SC234. Type 'confirm' to continue From 42ac6dbea2930362a94bc979d412ac158b80d4da Mon Sep 17 00:00:00 2001 From: JohnnyHsieh Date: Mon, 3 Dec 2018 09:31:35 +0800 Subject: [PATCH 10/13] Update README.md Adjust the style of readme file. --- digitalOcean/ontology/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/digitalOcean/ontology/README.md b/digitalOcean/ontology/README.md index 694fe90..ec01e13 100644 --- a/digitalOcean/ontology/README.md +++ b/digitalOcean/ontology/README.md @@ -21,16 +21,16 @@ If you don't have DigitalOcean account, please sign up. ## 1. Create Project -[![Create Project](https://camo.githubusercontent.com/e671515f25c34e582e35c909a7349d09aeaddf82/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f70726f6a6563742e706e67)](https://camo.githubusercontent.com/e671515f25c34e582e35c909a7349d09aeaddf82/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f70726f6a6563742e706e67) +![Create Project](https://s3.amazonaws.com/kaizen-images/github/create_project.png ) ## 2. Create Droplets -[![Create Droplet](https://camo.githubusercontent.com/97daf57bae21be0adcc994f1c553bb255065cb66/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f64726f706c65742e706e67)](https://camo.githubusercontent.com/97daf57bae21be0adcc994f1c553bb255065cb66/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f6372656174655f64726f706c65742e706e67) +![Create Droplet](https://s3.amazonaws.com/kaizen-images/github/create_droplet.png) ### Droplets configuration - Choose an image - - Ubuntu 18.04 + - Ubuntu 18.04 x 64 - Choose a size - CPU: 1 GB - SSD: 25 GB @@ -45,7 +45,7 @@ If you don't have DigitalOcean account, please sign up. - Choose a datacenter region - Bangalore -[![Choose Region](https://camo.githubusercontent.com/0d436a7b70190cdab41975630dd917d627b93ea1/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f726567696f6e2e706e67)](https://camo.githubusercontent.com/0d436a7b70190cdab41975630dd917d627b93ea1/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6b61697a656e2d696d616765732f6769746875622f63686f6f73655f726567696f6e2e706e67) +![Choose Region](https://s3.amazonaws.com/kaizen-images/github/choose_region.png ) - Select additional options (Skip) - Add your SSH keys (Skip) From b31efadcf3c04b298a37e04fd3a99773f214db25 Mon Sep 17 00:00:00 2001 From: Johnny Hsieh Date: Mon, 3 Dec 2018 15:46:42 +0800 Subject: [PATCH 11/13] add Tomochain readme file --- digitalOcean/TomoChain/README.md | 123 +++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 digitalOcean/TomoChain/README.md diff --git a/digitalOcean/TomoChain/README.md b/digitalOcean/TomoChain/README.md new file mode 100644 index 0000000..cd1e997 --- /dev/null +++ b/digitalOcean/TomoChain/README.md @@ -0,0 +1,123 @@ +# Start a Tomochain masternode on DigitalOcean + +> omochain is a public EVM (Ethereum Virtual Machine)-compatible blockchain with the following advantages: low transaction fee, fast confirmation time, double validation and randomization for security guarantees. In particular, we propose Proof-of-Stake Voting (PoSV) consensus, a Proof-of-Stake (PoS)-based blockchain protocol with a fair voting mechanism, rigorous security guarantees and fast finality. We also present a novel reward mechanism and show that, with this mechanism, the blockchain has a low probability of forks, fast confirmation times, plus the contributions and benefits of masternodes are fair in the sense that the probability distribution function is uniform eventually. + +## What is needed + +### SSH Terminal + +- Windows: Recommend Putty, +- Mac OS: Using default terminal + +## Getting Started + +### Login + +If you already have DigitalOcean account, you can login into your account. + +### Sign up + +If you don't have DigitalOcean account, please sign up. + +## 1. Create Project + +![Create Project](https://s3.amazonaws.com/kaizen-images/github/create_project.png ) + +## 2. Create Droplets + +![Create Droplet](https://s3.amazonaws.com/kaizen-images/github/create_droplet.png) + +### Droplets configuration + +- Choose an image + - Ubuntu 18.04 x 64 +- Choose a size + - CPU: 1 GB + - SSD: 25 GB + - Transfer: 1000 GB + - Price: $5 / month + +![Choose Image](https://s3.amazonaws.com/kaizen-images/github/choose_ipfs_image.png) + +- CPU Optimized Droplets (Skip) +- Add backups (Skip) +- Add block storage (Skip) +- Choose a datacenter region + - Bangalore + +![Choose Region](https://s3.amazonaws.com/kaizen-images/github/choose_region.png ) + +- Select additional options (Skip) +- Add your SSH keys (Skip) +- Finalize and create + - Choose a hostname: *Type a name you'd like* or using default +- Click **Create** + +## 3. Connect to node + +After create the Droplets, you will receive the email include: + +- Droplet Name +- IP Address +- Username +- Password + +Using terminal/putty to connect the droplet node + +``` +$ ssh root@ +``` + +*NOTE: You must change your password at the first time you connect to the droplet node.* + +## 4. Installation + +Update Ubuntu + +``` +apt-get update +``` +Install Python3 + +``` +apt install python3 +``` + +Install Pip3 + +``` +apt install python3-pip +``` + +Install tmn ( Tomochain python kit ) + +``` + pip3 install tmn +``` + + +## 5. Download and build + +Get the necessary docker kit + +``` +curl -sSL https://get.docker.com/ | sh +``` + +Set up docker compose + +``` +sudo curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose +``` + + + +### Start a testnet masternode + + + +``` +tmn start --name johnnyh --net testnet --pkey "private key" +``` + + From 46936ee08cb7ea8d73569233e76a53cf4379427b Mon Sep 17 00:00:00 2001 From: JohnnyHsieh Date: Tue, 4 Dec 2018 09:38:54 +0800 Subject: [PATCH 12/13] Update README.md Fix typo error --- digitalOcean/TomoChain/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/digitalOcean/TomoChain/README.md b/digitalOcean/TomoChain/README.md index cd1e997..cfa0b6b 100644 --- a/digitalOcean/TomoChain/README.md +++ b/digitalOcean/TomoChain/README.md @@ -1,6 +1,6 @@ # Start a Tomochain masternode on DigitalOcean -> omochain is a public EVM (Ethereum Virtual Machine)-compatible blockchain with the following advantages: low transaction fee, fast confirmation time, double validation and randomization for security guarantees. In particular, we propose Proof-of-Stake Voting (PoSV) consensus, a Proof-of-Stake (PoS)-based blockchain protocol with a fair voting mechanism, rigorous security guarantees and fast finality. We also present a novel reward mechanism and show that, with this mechanism, the blockchain has a low probability of forks, fast confirmation times, plus the contributions and benefits of masternodes are fair in the sense that the probability distribution function is uniform eventually. +> Tomochain is a public EVM (Ethereum Virtual Machine)-compatible blockchain with the following advantages: low transaction fee, fast confirmation time, double validation and randomization for security guarantees. In particular, we propose Proof-of-Stake Voting (PoSV) consensus, a Proof-of-Stake (PoS)-based blockchain protocol with a fair voting mechanism, rigorous security guarantees and fast finality. We also present a novel reward mechanism and show that, with this mechanism, the blockchain has a low probability of forks, fast confirmation times, plus the contributions and benefits of masternodes are fair in the sense that the probability distribution function is uniform eventually. ## What is needed From 63ce1e91b39aafa4a94f2abe0a3f552f1f52537a Mon Sep 17 00:00:00 2001 From: JohnnyHsieh Date: Tue, 4 Dec 2018 10:36:42 +0800 Subject: [PATCH 13/13] Update README.md --- digitalOcean/TomoChain/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/digitalOcean/TomoChain/README.md b/digitalOcean/TomoChain/README.md index cfa0b6b..7810794 100644 --- a/digitalOcean/TomoChain/README.md +++ b/digitalOcean/TomoChain/README.md @@ -21,7 +21,7 @@ If you don't have DigitalOcean account, please sign up. ## 1. Create Project -![Create Project](https://s3.amazonaws.com/kaizen-images/github/create_project.png ) +![Create Project](https://s3.amazonaws.com/kaizen-images/github/create_project.png) ## 2. Create Droplets @@ -45,7 +45,7 @@ If you don't have DigitalOcean account, please sign up. - Choose a datacenter region - Bangalore -![Choose Region](https://s3.amazonaws.com/kaizen-images/github/choose_region.png ) +![Choose Region](https://s3.amazonaws.com/kaizen-images/github/choose_region.png) - Select additional options (Skip) - Add your SSH keys (Skip)