From d87e3e18fb96241b382c702c8f6f836809c03d6f Mon Sep 17 00:00:00 2001 From: sigwo Date: Thu, 24 Mar 2016 12:19:31 -0400 Subject: [PATCH 01/35] Adding Blocknet --- blocknet-blockchain-on-ubuntu/README.md | 50 +++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 blocknet-blockchain-on-ubuntu/README.md diff --git a/blocknet-blockchain-on-ubuntu/README.md b/blocknet-blockchain-on-ubuntu/README.md new file mode 100644 index 000000000000..eb4d41955ed5 --- /dev/null +++ b/blocknet-blockchain-on-ubuntu/README.md @@ -0,0 +1,50 @@ +# Blocknet Blockchain Node on Ubuntu VM + +This template delivers the Blocknet network to your VM in about 20 minutes. Everything you need to get started using the Blocknet blockchain from the command line is included. +You may build from source. Once installed, 'blocknetd' will begin syncing the public blockchain. +You may then connect via SSH to the VM and launch 'blocknetd' to interface with the blockchain. + + + + +# What is Blocknet? + +What is Blocknet? +---------------- + +The Blocknet is a revolutionary advancement in cryptographic technology: +a true peer-to-peer protocol between nodes on different blockchains. This +is the foundation of a technology stack incorporating an API and an +application platform, which enables open-ended application possibilities +and vastly reduces development time. + +Services include: + +The Blocknet enables multi-blockchain services to be delivered to devices that only contain a single blockchain. +Thus, device and network resources are conserved, and a flexible, mobile, indefinitely extensible future is enabled. + +For more information, as well as an immediately useable, binary version of +the Blocknet client sofware and network, see http://www.blocknet.co. + +# Template Parameters + +When you click the Deploy to Azure icon above, you need to specify the following template parameters: + +* `adminUsername`: This is the account for connecting to your Blocknet host. +* `adminPassword`: This is your password for the host. Azure requires passwords to have One upper case, one lower case, a special character, and a number. +* `dnsLabelPrefix`: This is used as both the VM name and DNS name of your public IP address. Please ensure an unique name. +* `installMethod`: This tells Azure to install Blocknet from source. +* `vmSize`: This is the size of the VM to use. Recommendations: Use the D series for installations from source. + +# Getting Started Tutorial + +* Click the `Deploy to Azure` icon above +* Complete the template parameters, choose your resource group, accept the terms and click Create +* Wait about 15 minutes for the VM to spin up and install the software +* Connect to the VM via SSH using the DNS name assigned to your Public IP +* If you wish to relaunch blocknetd `sudo blocknetd` +* `blocknetd` will run automatically on restart + +# Licensing + +Blocknet is released under the terms of the MIT license. See `COPYING` for more information or see http://opensource.org/licenses/MIT. From 75326f376e0e608eb562825c14e17d0adef3134d Mon Sep 17 00:00:00 2001 From: sigwo Date: Thu, 24 Mar 2016 12:22:03 -0400 Subject: [PATCH 02/35] Adding Blocknet --- .../azuredeploy.json | 206 ++++++++++++++++++ 1 file changed, 206 insertions(+) create mode 100644 blocknet-blockchain-on-ubuntu/azuredeploy.json diff --git a/blocknet-blockchain-on-ubuntu/azuredeploy.json b/blocknet-blockchain-on-ubuntu/azuredeploy.json new file mode 100644 index 000000000000..964c55cbc619 --- /dev/null +++ b/blocknet-blockchain-on-ubuntu/azuredeploy.json @@ -0,0 +1,206 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "adminUsername": { + "type": "string", + "metadata": { + "description": "Username for the Virtual Machine." + } + }, + "adminPassword": { + "type": "securestring", + "metadata": { + "description": "Password for the Virtual Machine." + } + }, + "dnsLabelPrefix": { + "type": "string", + "metadata": { + "description": "Hostname assigned to the Public IP, also used as the VM Name. Must be lowercase. It should match with the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$ or it will raise an error." + } + }, + "installMethod": { + "type": "string", + "defaultValue": "From_Source", + "metadata": { + "description": "Method to install Blocknet. From_Source: official Blocknet repo on GitHub." + } + }, + "vmSize": { + "type": "string", + "defaultValue": "Standard_D1", + "allowedValues": [ + "Standard_A1", + "Standard_A2", + "Standard_A3", + "Standard_D1", + "Standard_D2", + "Standard_D3" + ], + "metadata": { + "description": "Size of VM" + } + } + }, + "variables": { + "imagePublisher": "Canonical", + "imageOffer": "UbuntuServer", + "OSDiskName": "BlocknetOSDisk", + "imageSKU": "14.04.4-LTS", + "nicName": "BlocknetNic", + "addressPrefix": "10.0.0.0/16", + "subnetName": "BlocknetSubnet", + "subnetPrefix": "10.0.0.0/24", + "storageAccountType": "Standard_LRS", + "storageAccountName": "[concat(uniquestring(resourceGroup().id, 'blocknet'))]", + "publicIPAddressName": "BlocknetPublicIP", + "publicIPAddressType": "Dynamic", + "vmStorageAccountContainerName": "vhds", + "vmName": "[parameters('dnsLabelPrefix')]", + "virtualNetworkName": "BlocknetVNET", + "vnetID": "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]", + "subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]", + "apiVersion": "2015-06-15" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "[variables('apiVersion')]", + "location": "[resourceGroup().location]", + "properties": { + "accountType": "[variables('storageAccountType')]" + } + }, + { + "apiVersion": "[variables('apiVersion')]", + "type": "Microsoft.Network/publicIPAddresses", + "name": "[variables('publicIPAddressName')]", + "location": "[resourceGroup().location]", + "properties": { + "publicIPAllocationMethod": "[variables('publicIPAddressType')]", + "dnsSettings": { + "domainNameLabel": "[parameters('dnsLabelPrefix')]" + } + } + }, + { + "apiVersion": "[variables('apiVersion')]", + "type": "Microsoft.Network/virtualNetworks", + "name": "[variables('virtualNetworkName')]", + "location": "[resourceGroup().location]", + "properties": { + "addressSpace": { + "addressPrefixes": [ + "[variables('addressPrefix')]" + ] + }, + "subnets": [ + { + "name": "[variables('subnetName')]", + "properties": { + "addressPrefix": "[variables('subnetPrefix')]" + } + } + ] + } + }, + { + "apiVersion": "[variables('apiVersion')]", + "type": "Microsoft.Network/networkInterfaces", + "name": "[variables('nicName')]", + "location": "[resourceGroup().location]", + "dependsOn": [ + "[concat('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]", + "[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]" + ], + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig1", + "properties": { + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "[resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName'))]" + }, + "subnet": { + "id": "[variables('subnetRef')]" + } + } + } + ] + } + }, + { + "apiVersion": "[variables('apiVersion')]", + "type": "Microsoft.Compute/virtualMachines", + "name": "[variables('vmName')]", + "location": "[resourceGroup().location]", + "dependsOn": [ + "[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]", + "[concat('Microsoft.Network/networkInterfaces/', variables('nicName'))]" + ], + "properties": { + "hardwareProfile": { + "vmSize": "[parameters('vmSize')]" + }, + "osProfile": { + "computerName": "[variables('vmName')]", + "adminUsername": "[parameters('adminUsername')]", + "adminPassword": "[parameters('adminPassword')]" + }, + "storageProfile": { + "imageReference": { + "publisher": "[variables('imagePublisher')]", + "offer": "[variables('imageOffer')]", + "sku": "[variables('imageSKU')]", + "version": "latest" + }, + "osDisk": { + "name": "osdisk", + "vhd": { + "uri": "[concat('http://',variables('storageAccountName'),'.blob.core.windows.net/',variables('vmStorageAccountContainerName'),'/',variables('OSDiskName'),'.vhd')]" + }, + "caching": "ReadWrite", + "createOption": "FromImage" + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "[resourceId('Microsoft.Network/networkInterfaces',variables('nicName'))]" + } + ] + }, + "diagnosticsProfile": { + "bootDiagnostics": { + "enabled": "true", + "storageUri": "[concat('http://',variables('storageAccountName'),'.blob.core.windows.net')]" + } + } + } + }, + { + "type": "Microsoft.Compute/virtualMachines/extensions", + "name": "[concat(variables('vmName'),'/newuserscript')]", + "location": "[resourceGroup().location]", + "apiVersion": "[variables('apiVersion')]", + "dependsOn": [ + "[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]" + ], + "properties": { + "publisher": "Microsoft.OSTCExtensions", + "type": "CustomScriptForLinux", + "typeHandlerVersion": "1.4", + "autoUpgradeMinorVersion": true, + "settings": { + "fileUris": [ + "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/blocknet-blockchain-ubuntu/build_blocknet.sh" + ], + "commandToExecute": "[concat('sh build_blocknet.sh ', parameters('installMethod'))]" + } + } + } + ] +} From ce7559c851dc148c2ca0ef0f5a1ac8048dfcaf24 Mon Sep 17 00:00:00 2001 From: sigwo Date: Thu, 24 Mar 2016 12:22:39 -0400 Subject: [PATCH 03/35] Adding Blocknet --- .../azuredeploy.parameters.json | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 blocknet-blockchain-on-ubuntu/azuredeploy.parameters.json diff --git a/blocknet-blockchain-on-ubuntu/azuredeploy.parameters.json b/blocknet-blockchain-on-ubuntu/azuredeploy.parameters.json new file mode 100644 index 000000000000..af5854f677c2 --- /dev/null +++ b/blocknet-blockchain-on-ubuntu/azuredeploy.parameters.json @@ -0,0 +1,21 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "dnsLabelPrefix": { + "value": "GEN-UNIQUE-11" + }, + "adminUsername": { + "value": "azureuser" + }, + "adminPassword": { + "value": "GEN-PASSWORD" + }, + "installMethod": { + "value": "From_Source" + }, + "vmSize": { + "value": "Standard_D1" + } + } +} From ae89ada6319db04dfee008637a80ce133785d420 Mon Sep 17 00:00:00 2001 From: sigwo Date: Thu, 24 Mar 2016 12:25:59 -0400 Subject: [PATCH 04/35] Adding Blocknet --- .../build_blocknet.sh | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 blocknet-blockchain-on-ubuntu/build_blocknet.sh diff --git a/blocknet-blockchain-on-ubuntu/build_blocknet.sh b/blocknet-blockchain-on-ubuntu/build_blocknet.sh new file mode 100644 index 000000000000..8cf32b570314 --- /dev/null +++ b/blocknet-blockchain-on-ubuntu/build_blocknet.sh @@ -0,0 +1,60 @@ +#!/bin/bash + +set -e + +date +ps axjf + +################################################################# +# Update Ubuntu and install prerequisites for running Blocknet # +################################################################# +sudo apt-get update +################################################################# +# Build Blocknet from source # +################################################################# +NPROC=$(nproc) +echo "nproc: $NPROC" +################################################################# +# Install all necessary packages for building Blocknet # +################################################################# +sudo apt-get install -y qt4-qmake libqt4-dev libminiupnpc-dev libdb++-dev libdb-dev libcrypto++-dev libqrencode-dev libboost-all-dev build-essential libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libdb++-dev libssl-dev ufw git +sudo add-apt-repository -y ppa:bitcoin/bitcoin +sudo apt-get update +sudo apt-get install -y libdb4.8-dev libdb4.8++-dev + +cd /usr/local +file=/usr/local/blocknet +if [ ! -e "$file" ] +then + sudo git clone https://github.com/atcsecure/blocknet.git blocknet +fi + +cd /usr/local/blocknet/src +file=/usr/local/blocknet/src/blocknetd +if [ ! -e "$file" ] +then + sudo make -j$NPROC -f makefile.unix +fi + +sudo cp /usr/local/blocknet/src/blocknetd /usr/bin/blocknetd + +################################################################ +# Configure to auto start at boot # +################################################################ +file=$HOME/.blocknet +if [ ! -e "$file" ] +then + sudo mkdir $HOME/.blocknet +fi +printf '%s\n%s\n%s\n%s\n' 'daemon=1' 'server=1' 'rpcuser=u' 'rpcpassword=p' | sudo tee $HOME/.blocknet/blocknet.conf +file=/etc/init.d/blocknet +if [ ! -e "$file" ] +then + printf '%s\n%s\n' '#!/bin/sh' 'sudo blocknetd' | sudo tee /etc/init.d/blocknet + sudo chmod +x /etc/init.d/blocknet + sudo update-rc.d blocknet defaults +fi + +/usr/bin/blocknetd +echo "Blocknet has been setup successfully and is running..." +exit 0 From 3e30b4ba59212dc55ab751df5dabaec811c31430 Mon Sep 17 00:00:00 2001 From: sigwo Date: Thu, 24 Mar 2016 12:27:47 -0400 Subject: [PATCH 05/35] Adding Blocknet --- blocknet-blockchain-on-ubuntu/metadata.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 blocknet-blockchain-on-ubuntu/metadata.json diff --git a/blocknet-blockchain-on-ubuntu/metadata.json b/blocknet-blockchain-on-ubuntu/metadata.json new file mode 100644 index 000000000000..d16799a3c15b --- /dev/null +++ b/blocknet-blockchain-on-ubuntu/metadata.json @@ -0,0 +1,7 @@ +{ + "itemDisplayName": "Blocknet Blockchain on Ubuntu", + "description": "This template deploys a Blocknet node on a Ubuntu virtual machines. Blocknet services include enabling multi-blockchain services to be delivered to devices that only contain a single blockchain", + "summary": "Deploy Blocknet on Ubuntu to take advantage of the services running on the blockchain", + "githubUsername": "sigwo", + "dateUpdated": "2016-03-24" +} From 51c40c5e016870104e0a250c0cc66f75e1b2aff8 Mon Sep 17 00:00:00 2001 From: sigwo Date: Thu, 24 Mar 2016 12:39:45 -0400 Subject: [PATCH 06/35] Update Line 199 corrected link. --- blocknet-blockchain-on-ubuntu/azuredeploy.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocknet-blockchain-on-ubuntu/azuredeploy.json b/blocknet-blockchain-on-ubuntu/azuredeploy.json index 964c55cbc619..511ca0302053 100644 --- a/blocknet-blockchain-on-ubuntu/azuredeploy.json +++ b/blocknet-blockchain-on-ubuntu/azuredeploy.json @@ -196,7 +196,7 @@ "autoUpgradeMinorVersion": true, "settings": { "fileUris": [ - "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/blocknet-blockchain-ubuntu/build_blocknet.sh" + "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/blocknet-blockchain-on-ubuntu/build_blocknet.sh" ], "commandToExecute": "[concat('sh build_blocknet.sh ', parameters('installMethod'))]" } From 1bc43ee8d2e82e1ec8b6c7e0a52d72971a2ff617 Mon Sep 17 00:00:00 2001 From: sigwo Date: Thu, 24 Mar 2016 12:40:43 -0400 Subject: [PATCH 07/35] Update Lines 7 and 8 Corrected link --- blocknet-blockchain-on-ubuntu/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocknet-blockchain-on-ubuntu/README.md b/blocknet-blockchain-on-ubuntu/README.md index eb4d41955ed5..f24294e45c79 100644 --- a/blocknet-blockchain-on-ubuntu/README.md +++ b/blocknet-blockchain-on-ubuntu/README.md @@ -4,8 +4,8 @@ This template delivers the Blocknet network to your VM in about 20 minutes. Eve You may build from source. Once installed, 'blocknetd' will begin syncing the public blockchain. You may then connect via SSH to the VM and launch 'blocknetd' to interface with the blockchain. - - + + # What is Blocknet? From e5eb02d8211fb0c9d4163499e5e195395b017860 Mon Sep 17 00:00:00 2001 From: sigwo Date: Thu, 24 Mar 2016 21:08:48 -0400 Subject: [PATCH 08/35] Adding Blitz --- blitz-blockchain-ubuntu/README.md | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 blitz-blockchain-ubuntu/README.md diff --git a/blitz-blockchain-ubuntu/README.md b/blitz-blockchain-ubuntu/README.md new file mode 100644 index 000000000000..89cc8e2b0bda --- /dev/null +++ b/blitz-blockchain-ubuntu/README.md @@ -0,0 +1,41 @@ +# Blitz Blockchain Node on Ubuntu VM + +This template delivers the Blitz network to your VM in about 20 minutes. Everything you need to get started using the Blitz blockchain from the command line is included. +You may build from source. Once installed, 'blitzd' will begin syncing the public blockchain. +You may then connect via SSH to the VM and launch 'blitzd' to interface with the blockchain. + + + + +# What is Blitz? + +What is Blitz? +---------------- + + +For more information, as well as an immediately useable, binary version of +the Blitz client sofware, see http://bitalize.com/. + + +# Template Parameters + +When you click the Deploy to Azure icon above, you need to specify the following template parameters: + +* `adminUsername`: This is the account for connecting to your Blitz host. +* `adminPassword`: This is your password for the host. Azure requires passwords to have One upper case, one lower case, a special character, and a number. +* `dnsLabelPrefix`: This is used as both the VM name and DNS name of your public IP address. Please ensure an unique name. +* `installMethod`: This tells Azure to install Blitz from source. +* `vmSize`: This is the size of the VM to use. Recommendations: Use the D series for installations from source. + +# Getting Started Tutorial + +* Click the `Deploy to Azure` icon above +* Complete the template parameters, choose your resource group, accept the terms and click Create +* Wait about 15 minutes for the VM to spin up and install the software +* Connect to the VM via SSH using the DNS name assigned to your Public IP +* If you wish to relaunch blitzd `sudo blitzd` +* blitzd will run automatically on restart + +# Licensing + +Blitz is released under the terms of the MIT license. See `COPYING` for more information or see http://opensource.org/licenses/MIT. From 2cc6026e059f684430a9fd139fa5239f9d9f3ca4 Mon Sep 17 00:00:00 2001 From: sigwo Date: Thu, 24 Mar 2016 21:10:46 -0400 Subject: [PATCH 09/35] Adding Blitz --- blitz-blockchain-ubuntu/azuredeploy.json | 206 +++++++++++++++++++++++ 1 file changed, 206 insertions(+) create mode 100644 blitz-blockchain-ubuntu/azuredeploy.json diff --git a/blitz-blockchain-ubuntu/azuredeploy.json b/blitz-blockchain-ubuntu/azuredeploy.json new file mode 100644 index 000000000000..bd23e2c7fc85 --- /dev/null +++ b/blitz-blockchain-ubuntu/azuredeploy.json @@ -0,0 +1,206 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "adminUsername": { + "type": "string", + "metadata": { + "description": "Username for the Virtual Machine." + } + }, + "adminPassword": { + "type": "securestring", + "metadata": { + "description": "Password for the Virtual Machine." + } + }, + "dnsLabelPrefix": { + "type": "string", + "metadata": { + "description": "Hostname assigned to the Public IP, also used as the VM Name. Must be lowercase. It should match with the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$ or it will raise an error." + } + }, + "installMethod": { + "type": "string", + "defaultValue": "From_Source", + "metadata": { + "description": "Method to install blitz. From_Source: official Blitz repo on GitHub." + } + }, + "vmSize": { + "type": "string", + "defaultValue": "Standard_D1", + "allowedValues": [ + "Standard_A1", + "Standard_A2", + "Standard_A3", + "Standard_D1", + "Standard_D2", + "Standard_D3" + ], + "metadata": { + "description": "Size of VM" + } + } + }, + "variables": { + "imagePublisher": "Canonical", + "imageOffer": "UbuntuServer", + "OSDiskName": "BlitzOSDisk", + "imageSKU": "14.04.4-LTS", + "nicName": "BlitzNic", + "addressPrefix": "10.0.0.0/16", + "subnetName": "BlitzSubnet", + "subnetPrefix": "10.0.0.0/24", + "storageAccountType": "Standard_LRS", + "storageAccountName": "[concat(uniquestring(resourceGroup().id, 'blitz'))]", + "publicIPAddressName": "BlitzPublicIP", + "publicIPAddressType": "Dynamic", + "vmStorageAccountContainerName": "vhds", + "vmName": "[parameters('dnsLabelPrefix')]", + "virtualNetworkName": "BlitzVNET", + "vnetID": "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]", + "subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]", + "apiVersion": "2015-06-15" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "[variables('apiVersion')]", + "location": "[resourceGroup().location]", + "properties": { + "accountType": "[variables('storageAccountType')]" + } + }, + { + "apiVersion": "[variables('apiVersion')]", + "type": "Microsoft.Network/publicIPAddresses", + "name": "[variables('publicIPAddressName')]", + "location": "[resourceGroup().location]", + "properties": { + "publicIPAllocationMethod": "[variables('publicIPAddressType')]", + "dnsSettings": { + "domainNameLabel": "[parameters('dnsLabelPrefix')]" + } + } + }, + { + "apiVersion": "[variables('apiVersion')]", + "type": "Microsoft.Network/virtualNetworks", + "name": "[variables('virtualNetworkName')]", + "location": "[resourceGroup().location]", + "properties": { + "addressSpace": { + "addressPrefixes": [ + "[variables('addressPrefix')]" + ] + }, + "subnets": [ + { + "name": "[variables('subnetName')]", + "properties": { + "addressPrefix": "[variables('subnetPrefix')]" + } + } + ] + } + }, + { + "apiVersion": "[variables('apiVersion')]", + "type": "Microsoft.Network/networkInterfaces", + "name": "[variables('nicName')]", + "location": "[resourceGroup().location]", + "dependsOn": [ + "[concat('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]", + "[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]" + ], + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig1", + "properties": { + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "[resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName'))]" + }, + "subnet": { + "id": "[variables('subnetRef')]" + } + } + } + ] + } + }, + { + "apiVersion": "[variables('apiVersion')]", + "type": "Microsoft.Compute/virtualMachines", + "name": "[variables('vmName')]", + "location": "[resourceGroup().location]", + "dependsOn": [ + "[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]", + "[concat('Microsoft.Network/networkInterfaces/', variables('nicName'))]" + ], + "properties": { + "hardwareProfile": { + "vmSize": "[parameters('vmSize')]" + }, + "osProfile": { + "computerName": "[variables('vmName')]", + "adminUsername": "[parameters('adminUsername')]", + "adminPassword": "[parameters('adminPassword')]" + }, + "storageProfile": { + "imageReference": { + "publisher": "[variables('imagePublisher')]", + "offer": "[variables('imageOffer')]", + "sku": "[variables('imageSKU')]", + "version": "latest" + }, + "osDisk": { + "name": "osdisk", + "vhd": { + "uri": "[concat('http://',variables('storageAccountName'),'.blob.core.windows.net/',variables('vmStorageAccountContainerName'),'/',variables('OSDiskName'),'.vhd')]" + }, + "caching": "ReadWrite", + "createOption": "FromImage" + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "[resourceId('Microsoft.Network/networkInterfaces',variables('nicName'))]" + } + ] + }, + "diagnosticsProfile": { + "bootDiagnostics": { + "enabled": "true", + "storageUri": "[concat('http://',variables('storageAccountName'),'.blob.core.windows.net')]" + } + } + } + }, + { + "type": "Microsoft.Compute/virtualMachines/extensions", + "name": "[concat(variables('vmName'),'/newuserscript')]", + "location": "[resourceGroup().location]", + "apiVersion": "[variables('apiVersion')]", + "dependsOn": [ + "[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]" + ], + "properties": { + "publisher": "Microsoft.OSTCExtensions", + "type": "CustomScriptForLinux", + "typeHandlerVersion": "1.4", + "autoUpgradeMinorVersion": true, + "settings": { + "fileUris": [ + "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/blitz-blockchain-ubuntu/build_blitz.sh" + ], + "commandToExecute": "[concat('sh build_blitz.sh ', parameters('installMethod'))]" + } + } + } + ] +} From c813a8f0f2882dc781bf1bcaee23385e35424970 Mon Sep 17 00:00:00 2001 From: sigwo Date: Thu, 24 Mar 2016 21:11:24 -0400 Subject: [PATCH 10/35] Adding Blitz --- .../azuredeploy.parameters.json | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 blitz-blockchain-ubuntu/azuredeploy.parameters.json diff --git a/blitz-blockchain-ubuntu/azuredeploy.parameters.json b/blitz-blockchain-ubuntu/azuredeploy.parameters.json new file mode 100644 index 000000000000..af5854f677c2 --- /dev/null +++ b/blitz-blockchain-ubuntu/azuredeploy.parameters.json @@ -0,0 +1,21 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "dnsLabelPrefix": { + "value": "GEN-UNIQUE-11" + }, + "adminUsername": { + "value": "azureuser" + }, + "adminPassword": { + "value": "GEN-PASSWORD" + }, + "installMethod": { + "value": "From_Source" + }, + "vmSize": { + "value": "Standard_D1" + } + } +} From f5b2c1ccf9e2c51937f4368c9d7251b104ed7d47 Mon Sep 17 00:00:00 2001 From: sigwo Date: Thu, 24 Mar 2016 21:19:37 -0400 Subject: [PATCH 11/35] Removing Blitz Will push from different branch --- blitz-blockchain-ubuntu/README.md | 41 ------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 blitz-blockchain-ubuntu/README.md diff --git a/blitz-blockchain-ubuntu/README.md b/blitz-blockchain-ubuntu/README.md deleted file mode 100644 index 89cc8e2b0bda..000000000000 --- a/blitz-blockchain-ubuntu/README.md +++ /dev/null @@ -1,41 +0,0 @@ -# Blitz Blockchain Node on Ubuntu VM - -This template delivers the Blitz network to your VM in about 20 minutes. Everything you need to get started using the Blitz blockchain from the command line is included. -You may build from source. Once installed, 'blitzd' will begin syncing the public blockchain. -You may then connect via SSH to the VM and launch 'blitzd' to interface with the blockchain. - - - - -# What is Blitz? - -What is Blitz? ----------------- - - -For more information, as well as an immediately useable, binary version of -the Blitz client sofware, see http://bitalize.com/. - - -# Template Parameters - -When you click the Deploy to Azure icon above, you need to specify the following template parameters: - -* `adminUsername`: This is the account for connecting to your Blitz host. -* `adminPassword`: This is your password for the host. Azure requires passwords to have One upper case, one lower case, a special character, and a number. -* `dnsLabelPrefix`: This is used as both the VM name and DNS name of your public IP address. Please ensure an unique name. -* `installMethod`: This tells Azure to install Blitz from source. -* `vmSize`: This is the size of the VM to use. Recommendations: Use the D series for installations from source. - -# Getting Started Tutorial - -* Click the `Deploy to Azure` icon above -* Complete the template parameters, choose your resource group, accept the terms and click Create -* Wait about 15 minutes for the VM to spin up and install the software -* Connect to the VM via SSH using the DNS name assigned to your Public IP -* If you wish to relaunch blitzd `sudo blitzd` -* blitzd will run automatically on restart - -# Licensing - -Blitz is released under the terms of the MIT license. See `COPYING` for more information or see http://opensource.org/licenses/MIT. From f563e6c9f8eae4d8a9d5e5de2dae423a561d866f Mon Sep 17 00:00:00 2001 From: sigwo Date: Thu, 24 Mar 2016 21:19:47 -0400 Subject: [PATCH 12/35] Removing Blitz Will push from different branch --- blitz-blockchain-ubuntu/azuredeploy.json | 206 ----------------------- 1 file changed, 206 deletions(-) delete mode 100644 blitz-blockchain-ubuntu/azuredeploy.json diff --git a/blitz-blockchain-ubuntu/azuredeploy.json b/blitz-blockchain-ubuntu/azuredeploy.json deleted file mode 100644 index bd23e2c7fc85..000000000000 --- a/blitz-blockchain-ubuntu/azuredeploy.json +++ /dev/null @@ -1,206 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "adminUsername": { - "type": "string", - "metadata": { - "description": "Username for the Virtual Machine." - } - }, - "adminPassword": { - "type": "securestring", - "metadata": { - "description": "Password for the Virtual Machine." - } - }, - "dnsLabelPrefix": { - "type": "string", - "metadata": { - "description": "Hostname assigned to the Public IP, also used as the VM Name. Must be lowercase. It should match with the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$ or it will raise an error." - } - }, - "installMethod": { - "type": "string", - "defaultValue": "From_Source", - "metadata": { - "description": "Method to install blitz. From_Source: official Blitz repo on GitHub." - } - }, - "vmSize": { - "type": "string", - "defaultValue": "Standard_D1", - "allowedValues": [ - "Standard_A1", - "Standard_A2", - "Standard_A3", - "Standard_D1", - "Standard_D2", - "Standard_D3" - ], - "metadata": { - "description": "Size of VM" - } - } - }, - "variables": { - "imagePublisher": "Canonical", - "imageOffer": "UbuntuServer", - "OSDiskName": "BlitzOSDisk", - "imageSKU": "14.04.4-LTS", - "nicName": "BlitzNic", - "addressPrefix": "10.0.0.0/16", - "subnetName": "BlitzSubnet", - "subnetPrefix": "10.0.0.0/24", - "storageAccountType": "Standard_LRS", - "storageAccountName": "[concat(uniquestring(resourceGroup().id, 'blitz'))]", - "publicIPAddressName": "BlitzPublicIP", - "publicIPAddressType": "Dynamic", - "vmStorageAccountContainerName": "vhds", - "vmName": "[parameters('dnsLabelPrefix')]", - "virtualNetworkName": "BlitzVNET", - "vnetID": "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]", - "subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]", - "apiVersion": "2015-06-15" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "[variables('apiVersion')]", - "location": "[resourceGroup().location]", - "properties": { - "accountType": "[variables('storageAccountType')]" - } - }, - { - "apiVersion": "[variables('apiVersion')]", - "type": "Microsoft.Network/publicIPAddresses", - "name": "[variables('publicIPAddressName')]", - "location": "[resourceGroup().location]", - "properties": { - "publicIPAllocationMethod": "[variables('publicIPAddressType')]", - "dnsSettings": { - "domainNameLabel": "[parameters('dnsLabelPrefix')]" - } - } - }, - { - "apiVersion": "[variables('apiVersion')]", - "type": "Microsoft.Network/virtualNetworks", - "name": "[variables('virtualNetworkName')]", - "location": "[resourceGroup().location]", - "properties": { - "addressSpace": { - "addressPrefixes": [ - "[variables('addressPrefix')]" - ] - }, - "subnets": [ - { - "name": "[variables('subnetName')]", - "properties": { - "addressPrefix": "[variables('subnetPrefix')]" - } - } - ] - } - }, - { - "apiVersion": "[variables('apiVersion')]", - "type": "Microsoft.Network/networkInterfaces", - "name": "[variables('nicName')]", - "location": "[resourceGroup().location]", - "dependsOn": [ - "[concat('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]", - "[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]" - ], - "properties": { - "ipConfigurations": [ - { - "name": "ipconfig1", - "properties": { - "privateIPAllocationMethod": "Dynamic", - "publicIPAddress": { - "id": "[resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName'))]" - }, - "subnet": { - "id": "[variables('subnetRef')]" - } - } - } - ] - } - }, - { - "apiVersion": "[variables('apiVersion')]", - "type": "Microsoft.Compute/virtualMachines", - "name": "[variables('vmName')]", - "location": "[resourceGroup().location]", - "dependsOn": [ - "[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]", - "[concat('Microsoft.Network/networkInterfaces/', variables('nicName'))]" - ], - "properties": { - "hardwareProfile": { - "vmSize": "[parameters('vmSize')]" - }, - "osProfile": { - "computerName": "[variables('vmName')]", - "adminUsername": "[parameters('adminUsername')]", - "adminPassword": "[parameters('adminPassword')]" - }, - "storageProfile": { - "imageReference": { - "publisher": "[variables('imagePublisher')]", - "offer": "[variables('imageOffer')]", - "sku": "[variables('imageSKU')]", - "version": "latest" - }, - "osDisk": { - "name": "osdisk", - "vhd": { - "uri": "[concat('http://',variables('storageAccountName'),'.blob.core.windows.net/',variables('vmStorageAccountContainerName'),'/',variables('OSDiskName'),'.vhd')]" - }, - "caching": "ReadWrite", - "createOption": "FromImage" - } - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "[resourceId('Microsoft.Network/networkInterfaces',variables('nicName'))]" - } - ] - }, - "diagnosticsProfile": { - "bootDiagnostics": { - "enabled": "true", - "storageUri": "[concat('http://',variables('storageAccountName'),'.blob.core.windows.net')]" - } - } - } - }, - { - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "[concat(variables('vmName'),'/newuserscript')]", - "location": "[resourceGroup().location]", - "apiVersion": "[variables('apiVersion')]", - "dependsOn": [ - "[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]" - ], - "properties": { - "publisher": "Microsoft.OSTCExtensions", - "type": "CustomScriptForLinux", - "typeHandlerVersion": "1.4", - "autoUpgradeMinorVersion": true, - "settings": { - "fileUris": [ - "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/blitz-blockchain-ubuntu/build_blitz.sh" - ], - "commandToExecute": "[concat('sh build_blitz.sh ', parameters('installMethod'))]" - } - } - } - ] -} From c64a23d5b6d43bf9781e4a0dafdce5e00e5ed096 Mon Sep 17 00:00:00 2001 From: sigwo Date: Thu, 24 Mar 2016 21:19:54 -0400 Subject: [PATCH 13/35] Removing Blitz Will push from different branch --- .../azuredeploy.parameters.json | 21 ------------------- 1 file changed, 21 deletions(-) delete mode 100644 blitz-blockchain-ubuntu/azuredeploy.parameters.json diff --git a/blitz-blockchain-ubuntu/azuredeploy.parameters.json b/blitz-blockchain-ubuntu/azuredeploy.parameters.json deleted file mode 100644 index af5854f677c2..000000000000 --- a/blitz-blockchain-ubuntu/azuredeploy.parameters.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "dnsLabelPrefix": { - "value": "GEN-UNIQUE-11" - }, - "adminUsername": { - "value": "azureuser" - }, - "adminPassword": { - "value": "GEN-PASSWORD" - }, - "installMethod": { - "value": "From_Source" - }, - "vmSize": { - "value": "Standard_D1" - } - } -} From b2e1a45cbc7b734e950e81534cc7e20add6d3499 Mon Sep 17 00:00:00 2001 From: sigwo Date: Thu, 24 Mar 2016 21:54:29 -0400 Subject: [PATCH 14/35] Adding Bitswift --- bitswift-blockchain-ubuntu/README.md | 70 ++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 bitswift-blockchain-ubuntu/README.md diff --git a/bitswift-blockchain-ubuntu/README.md b/bitswift-blockchain-ubuntu/README.md new file mode 100644 index 000000000000..32f275f8ad8d --- /dev/null +++ b/bitswift-blockchain-ubuntu/README.md @@ -0,0 +1,70 @@ +# Bitswift Blockchain Node on Ubuntu VM + +This template delivers the Bitswift network to your VM in about 20 minutes. Everything you need to get started using the Bitswift blockchain from the command line is included. +You may build from source. Once installed, 'bitswiftd' will begin syncing the public blockchain. +You may then connect via SSH to the VM and launch 'bitswiftd' to interface with the blockchain. + + + + +# What is Bitswift? + ++ TECHNOLOGY: Proof of Stake ++ SUPPLY: 4 Million ++ SPEED: 30 seconds ++ INTEREST: 3% + +## Distinctive Attributes + +One click attach and exist (PoE) +Stealth Addressing +Transaction comment fee structure +Narrations + + +## Unique Function + +COMPANY: +Bitswift Decentralized Applications (Canada): + +* equips your platform with monetization options +* increases your user count +* provides additional revenue options +* expands the options of your platform +* enhances your users experience +* allows your platform to be able to prove anything without a doubt +* provides professional business consulting and integration +* enforces security (no single database to corrupt) +* gives your platform an immediate hook into the blockchain ecosystem +* serves 24/7 support + + +Registered business operating out of Canada backing the bitswift blockchain +Canadian Trademark registered on "bitswift" + +For more information, as well as an immediately useable, binary version of +the Bitswift client sofware, see https://bitcointalk.org/index.php?topic=922982.msg10131608#msg10131608. + + +# Template Parameters + +When you click the Deploy to Azure icon above, you need to specify the following template parameters: + +* `adminUsername`: This is the account for connecting to your Bitswift host. +* `adminPassword`: This is your password for the host. Azure requires passwords to have One upper case, one lower case, a special character, and a number. +* `dnsLabelPrefix`: This is used as both the VM name and DNS name of your public IP address. Please ensure an unique name. +* `installMethod`: This tells Azure to install Bitswift from source. +* `vmSize`: This is the size of the VM to use. Recommendations: Use the D series for installations from source. + +# Getting Started Tutorial + +* Click the `Deploy to Azure` icon above +* Complete the template parameters, choose your resource group, accept the terms and click Create +* Wait about 15 minutes for the VM to spin up and install the software +* Connect to the VM via SSH using the DNS name assigned to your Public IP +* If you wish to relaunch bitswiftd `sudo bitswiftd` +* `bitswiftd` will run automatically on restart + +# Licensing + +Bitswift is released under the terms of the MIT license. See `COPYING` for more information or see http://opensource.org/licenses/MIT. From 0469e96ef28a083e046966d64ed13ce5ad2a179f Mon Sep 17 00:00:00 2001 From: sigwo Date: Thu, 24 Mar 2016 21:56:44 -0400 Subject: [PATCH 15/35] Adding Bitswift --- bitswift-blockchain-ubuntu/azuredeploy.json | 206 ++++++++++++++++++++ 1 file changed, 206 insertions(+) create mode 100644 bitswift-blockchain-ubuntu/azuredeploy.json diff --git a/bitswift-blockchain-ubuntu/azuredeploy.json b/bitswift-blockchain-ubuntu/azuredeploy.json new file mode 100644 index 000000000000..b012382fa044 --- /dev/null +++ b/bitswift-blockchain-ubuntu/azuredeploy.json @@ -0,0 +1,206 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "adminUsername": { + "type": "string", + "metadata": { + "description": "Username for the Virtual Machine." + } + }, + "adminPassword": { + "type": "securestring", + "metadata": { + "description": "Password for the Virtual Machine." + } + }, + "dnsLabelPrefix": { + "type": "string", + "metadata": { + "description": "Hostname assigned to the Public IP, also used as the VM Name. Must be lowercase. It should match with the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$ or it will raise an error." + } + }, + "installMethod": { + "type": "string", + "defaultValue": "From_Source", + "metadata": { + "description": "Method to install Bitswift. From_Source: official Bitswift repo on GitHub." + } + }, + "vmSize": { + "type": "string", + "defaultValue": "Standard_D1", + "allowedValues": [ + "Standard_A1", + "Standard_A2", + "Standard_A3", + "Standard_D1", + "Standard_D2", + "Standard_D3" + ], + "metadata": { + "description": "Size of VM" + } + } + }, + "variables": { + "imagePublisher": "Canonical", + "imageOffer": "UbuntuServer", + "OSDiskName": "BitswiftOSDisk", + "imageSKU": "14.04.4-LTS", + "nicName": "BitswiftNic", + "addressPrefix": "10.0.0.0/16", + "subnetName": "BitswiftSubnet", + "subnetPrefix": "10.0.0.0/24", + "storageAccountType": "Standard_LRS", + "storageAccountName": "[concat(uniquestring(resourceGroup().id, 'bitswift'))]", + "publicIPAddressName": "BitswiftPublicIP", + "publicIPAddressType": "Dynamic", + "vmStorageAccountContainerName": "vhds", + "vmName": "[parameters('dnsLabelPrefix')]", + "virtualNetworkName": "BitswiftVNET", + "vnetID": "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]", + "subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]", + "apiVersion": "2015-06-15" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "[variables('apiVersion')]", + "location": "[resourceGroup().location]", + "properties": { + "accountType": "[variables('storageAccountType')]" + } + }, + { + "apiVersion": "[variables('apiVersion')]", + "type": "Microsoft.Network/publicIPAddresses", + "name": "[variables('publicIPAddressName')]", + "location": "[resourceGroup().location]", + "properties": { + "publicIPAllocationMethod": "[variables('publicIPAddressType')]", + "dnsSettings": { + "domainNameLabel": "[parameters('dnsLabelPrefix')]" + } + } + }, + { + "apiVersion": "[variables('apiVersion')]", + "type": "Microsoft.Network/virtualNetworks", + "name": "[variables('virtualNetworkName')]", + "location": "[resourceGroup().location]", + "properties": { + "addressSpace": { + "addressPrefixes": [ + "[variables('addressPrefix')]" + ] + }, + "subnets": [ + { + "name": "[variables('subnetName')]", + "properties": { + "addressPrefix": "[variables('subnetPrefix')]" + } + } + ] + } + }, + { + "apiVersion": "[variables('apiVersion')]", + "type": "Microsoft.Network/networkInterfaces", + "name": "[variables('nicName')]", + "location": "[resourceGroup().location]", + "dependsOn": [ + "[concat('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]", + "[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]" + ], + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig1", + "properties": { + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "[resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName'))]" + }, + "subnet": { + "id": "[variables('subnetRef')]" + } + } + } + ] + } + }, + { + "apiVersion": "[variables('apiVersion')]", + "type": "Microsoft.Compute/virtualMachines", + "name": "[variables('vmName')]", + "location": "[resourceGroup().location]", + "dependsOn": [ + "[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]", + "[concat('Microsoft.Network/networkInterfaces/', variables('nicName'))]" + ], + "properties": { + "hardwareProfile": { + "vmSize": "[parameters('vmSize')]" + }, + "osProfile": { + "computerName": "[variables('vmName')]", + "adminUsername": "[parameters('adminUsername')]", + "adminPassword": "[parameters('adminPassword')]" + }, + "storageProfile": { + "imageReference": { + "publisher": "[variables('imagePublisher')]", + "offer": "[variables('imageOffer')]", + "sku": "[variables('imageSKU')]", + "version": "latest" + }, + "osDisk": { + "name": "osdisk", + "vhd": { + "uri": "[concat('http://',variables('storageAccountName'),'.blob.core.windows.net/',variables('vmStorageAccountContainerName'),'/',variables('OSDiskName'),'.vhd')]" + }, + "caching": "ReadWrite", + "createOption": "FromImage" + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "[resourceId('Microsoft.Network/networkInterfaces',variables('nicName'))]" + } + ] + }, + "diagnosticsProfile": { + "bootDiagnostics": { + "enabled": "true", + "storageUri": "[concat('http://',variables('storageAccountName'),'.blob.core.windows.net')]" + } + } + } + }, + { + "type": "Microsoft.Compute/virtualMachines/extensions", + "name": "[concat(variables('vmName'),'/newuserscript')]", + "location": "[resourceGroup().location]", + "apiVersion": "[variables('apiVersion')]", + "dependsOn": [ + "[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]" + ], + "properties": { + "publisher": "Microsoft.OSTCExtensions", + "type": "CustomScriptForLinux", + "typeHandlerVersion": "1.4", + "autoUpgradeMinorVersion": true, + "settings": { + "fileUris": [ + "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/bitswift-blockchain-ubuntu/build_swift.sh" + ], + "commandToExecute": "[concat('sh build_swift.sh ', parameters('installMethod'))]" + } + } + } + ] +} From e96dcdfc8684bdf7eae09bf3bff49642daeab7d0 Mon Sep 17 00:00:00 2001 From: sigwo Date: Thu, 24 Mar 2016 22:05:35 -0400 Subject: [PATCH 16/35] Adding Bitswift --- .../azuredeploy.parameters.json | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 bitswift-blockchain-ubuntu/azuredeploy.parameters.json diff --git a/bitswift-blockchain-ubuntu/azuredeploy.parameters.json b/bitswift-blockchain-ubuntu/azuredeploy.parameters.json new file mode 100644 index 000000000000..af5854f677c2 --- /dev/null +++ b/bitswift-blockchain-ubuntu/azuredeploy.parameters.json @@ -0,0 +1,21 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "dnsLabelPrefix": { + "value": "GEN-UNIQUE-11" + }, + "adminUsername": { + "value": "azureuser" + }, + "adminPassword": { + "value": "GEN-PASSWORD" + }, + "installMethod": { + "value": "From_Source" + }, + "vmSize": { + "value": "Standard_D1" + } + } +} From d9918257cd60d0aeb8e23436cb1db3dd4dbff210 Mon Sep 17 00:00:00 2001 From: sigwo Date: Thu, 24 Mar 2016 22:10:24 -0400 Subject: [PATCH 17/35] Adding Bitswift --- bitswift-blockchain-ubuntu/build_swift.sh | 60 +++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 bitswift-blockchain-ubuntu/build_swift.sh diff --git a/bitswift-blockchain-ubuntu/build_swift.sh b/bitswift-blockchain-ubuntu/build_swift.sh new file mode 100644 index 000000000000..a11557842d40 --- /dev/null +++ b/bitswift-blockchain-ubuntu/build_swift.sh @@ -0,0 +1,60 @@ +#!/bin/bash + +set -e + +date +ps axjf + +################################################################# +# Update Ubuntu and install prerequisites for running Bitswift # +################################################################# +sudo apt-get update +################################################################# +# Build Bitswift from source # +################################################################# +NPROC=$(nproc) +echo "nproc: $NPROC" +################################################################# +# Install all necessary packages for building Bitswift # +################################################################# +sudo apt-get install -y qt4-qmake libqt4-dev libminiupnpc-dev libdb++-dev libdb-dev libcrypto++-dev libqrencode-dev libboost-all-dev build-essential libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libdb++-dev libssl-dev ufw git +sudo add-apt-repository -y ppa:bitcoin/bitcoin +sudo apt-get update +sudo apt-get install -y libdb4.8-dev libdb4.8++-dev + +cd /usr/local +file=/usr/local/bitswift +if [ ! -e "$file" ] +then + sudo git clone https://github.com/BitSwift-v2/bitswift.git bitswift +fi + +cd /usr/local/bitswift/src +file=/usr/local/bitswift/src/bitswiftd +if [ ! -e "$file" ] +then + sudo make -j$NPROC -f makefile.unix +fi + +sudo cp /usr/local/bitswift/src/bitswiftd /usr/bin/bitswiftd + +################################################################ +# Configure to auto start at boot # +################################################################ +file=$HOME/.bitswift +if [ ! -e "$file" ] +then + sudo mkdir $HOME/.bitswift +fi +printf '%s\n%s\n%s\n%s\n' 'daemon=1' 'server=1' 'rpcuser=u' 'rpcpassword=p' | sudo tee $HOME/.bitswift/bitswift.conf +file=/etc/init.d/bitswift +if [ ! -e "$file" ] +then + printf '%s\n%s\n' '#!/bin/sh' 'sudo bitswiftd' | sudo tee /etc/init.d/bitswift + sudo chmod +x /etc/init.d/bitswift + sudo update-rc.d bitswift defaults +fi + +/usr/bin/bitswiftd +echo "Bitswift has been setup successfully and is running..." +exit 0 From 64e2435e1f0909d0ef062714cb35f4de0c022a65 Mon Sep 17 00:00:00 2001 From: sigwo Date: Thu, 24 Mar 2016 22:21:43 -0400 Subject: [PATCH 18/35] Adding Bitswift --- bitswift-blockchain-ubuntu/metadata.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 bitswift-blockchain-ubuntu/metadata.json diff --git a/bitswift-blockchain-ubuntu/metadata.json b/bitswift-blockchain-ubuntu/metadata.json new file mode 100644 index 000000000000..420a58ca4bb6 --- /dev/null +++ b/bitswift-blockchain-ubuntu/metadata.json @@ -0,0 +1,7 @@ +{ + "itemDisplayName": "Bitswift Blockchain on Ubuntu", + "description": "This template deploys a Bitswift node on a Ubuntu virtual machines. Bitswift information can be found at https://bitcointalk.org/index.php?topic=922982.msg10131608#msg10131608", + "summary": "Deploy Bitswift on Ubuntu to take advantage of the services running on the blockchain", + "githubUsername": "sigwo", + "dateUpdated": "2016-03-24" +} From 376e64e902a210fdffd9957fd3bfc604f7e35877 Mon Sep 17 00:00:00 2001 From: sigwo Date: Fri, 25 Mar 2016 18:42:22 -0400 Subject: [PATCH 19/35] Updates per Kay Singh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Looking at the raw output in CI, I see `Warning:  Use --force to continue.` I updated `build_blocknet.sh` --- blocknet-blockchain-on-ubuntu/build_blocknet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocknet-blockchain-on-ubuntu/build_blocknet.sh b/blocknet-blockchain-on-ubuntu/build_blocknet.sh index 8cf32b570314..4241ce49a360 100644 --- a/blocknet-blockchain-on-ubuntu/build_blocknet.sh +++ b/blocknet-blockchain-on-ubuntu/build_blocknet.sh @@ -17,7 +17,7 @@ echo "nproc: $NPROC" ################################################################# # Install all necessary packages for building Blocknet # ################################################################# -sudo apt-get install -y qt4-qmake libqt4-dev libminiupnpc-dev libdb++-dev libdb-dev libcrypto++-dev libqrencode-dev libboost-all-dev build-essential libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libdb++-dev libssl-dev ufw git +sudo apt-get install -y --force qt4-qmake libqt4-dev libminiupnpc-dev libdb++-dev libdb-dev libcrypto++-dev libqrencode-dev libboost-all-dev build-essential libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libdb++-dev libssl-dev ufw git sudo add-apt-repository -y ppa:bitcoin/bitcoin sudo apt-get update sudo apt-get install -y libdb4.8-dev libdb4.8++-dev From 855b55a4043f3b3f29991cab7be2a82995830c5a Mon Sep 17 00:00:00 2001 From: sigwo Date: Fri, 25 Mar 2016 21:15:35 -0400 Subject: [PATCH 20/35] Update build_blocknet.sh --- blocknet-blockchain-on-ubuntu/build_blocknet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocknet-blockchain-on-ubuntu/build_blocknet.sh b/blocknet-blockchain-on-ubuntu/build_blocknet.sh index 4241ce49a360..04ee4f2265a1 100644 --- a/blocknet-blockchain-on-ubuntu/build_blocknet.sh +++ b/blocknet-blockchain-on-ubuntu/build_blocknet.sh @@ -17,7 +17,7 @@ echo "nproc: $NPROC" ################################################################# # Install all necessary packages for building Blocknet # ################################################################# -sudo apt-get install -y --force qt4-qmake libqt4-dev libminiupnpc-dev libdb++-dev libdb-dev libcrypto++-dev libqrencode-dev libboost-all-dev build-essential libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libdb++-dev libssl-dev ufw git +sudo apt-get install -y libminiupnpc-dev libdb++-dev libdb-dev libcrypto++-dev libqrencode-dev libboost-all-dev build-essential libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev git sudo add-apt-repository -y ppa:bitcoin/bitcoin sudo apt-get update sudo apt-get install -y libdb4.8-dev libdb4.8++-dev From 35361cda6f962e8c18e5984e157bb2c0f45a593a Mon Sep 17 00:00:00 2001 From: sigwo Date: Fri, 25 Mar 2016 21:33:33 -0400 Subject: [PATCH 21/35] Update azuredeploy.json --- blocknet-blockchain-on-ubuntu/azuredeploy.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocknet-blockchain-on-ubuntu/azuredeploy.json b/blocknet-blockchain-on-ubuntu/azuredeploy.json index 511ca0302053..2819a46c6c39 100644 --- a/blocknet-blockchain-on-ubuntu/azuredeploy.json +++ b/blocknet-blockchain-on-ubuntu/azuredeploy.json @@ -198,7 +198,7 @@ "fileUris": [ "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/blocknet-blockchain-on-ubuntu/build_blocknet.sh" ], - "commandToExecute": "[concat('sh build_blocknet.sh ', parameters('installMethod'))]" + "commandToExecute": "[concat('sh build_blocknet.sh', parameters('installMethod'))]" } } } From a339b3daa0218a35452aec4073ae981de1e1188c Mon Sep 17 00:00:00 2001 From: sigwo Date: Sat, 26 Mar 2016 10:35:46 -0400 Subject: [PATCH 22/35] Update build_blocknet.sh --- blocknet-blockchain-on-ubuntu/build_blocknet.sh | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/blocknet-blockchain-on-ubuntu/build_blocknet.sh b/blocknet-blockchain-on-ubuntu/build_blocknet.sh index 04ee4f2265a1..1e45fe74961d 100644 --- a/blocknet-blockchain-on-ubuntu/build_blocknet.sh +++ b/blocknet-blockchain-on-ubuntu/build_blocknet.sh @@ -5,22 +5,13 @@ set -e date ps axjf -################################################################# -# Update Ubuntu and install prerequisites for running Blocknet # -################################################################# -sudo apt-get update ################################################################# # Build Blocknet from source # -################################################################# -NPROC=$(nproc) -echo "nproc: $NPROC" -################################################################# # Install all necessary packages for building Blocknet # ################################################################# -sudo apt-get install -y libminiupnpc-dev libdb++-dev libdb-dev libcrypto++-dev libqrencode-dev libboost-all-dev build-essential libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev git sudo add-apt-repository -y ppa:bitcoin/bitcoin sudo apt-get update -sudo apt-get install -y libdb4.8-dev libdb4.8++-dev +sudo apt-get install -y libdb4.8-dev libdb4.8++-dev libminiupnpc-dev libdb++-dev libdb-dev libcrypto++-dev libqrencode-dev libboost-all-dev build-essential libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev git cd /usr/local file=/usr/local/blocknet @@ -33,7 +24,7 @@ cd /usr/local/blocknet/src file=/usr/local/blocknet/src/blocknetd if [ ! -e "$file" ] then - sudo make -j$NPROC -f makefile.unix + sudo make -f makefile.unix fi sudo cp /usr/local/blocknet/src/blocknetd /usr/bin/blocknetd From 46e00607a234013cb65d08f60213c1cf92d557fb Mon Sep 17 00:00:00 2001 From: sigwo Date: Sat, 26 Mar 2016 11:05:12 -0400 Subject: [PATCH 23/35] Update azuredeploy.json --- blocknet-blockchain-on-ubuntu/azuredeploy.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocknet-blockchain-on-ubuntu/azuredeploy.json b/blocknet-blockchain-on-ubuntu/azuredeploy.json index 2819a46c6c39..511ca0302053 100644 --- a/blocknet-blockchain-on-ubuntu/azuredeploy.json +++ b/blocknet-blockchain-on-ubuntu/azuredeploy.json @@ -198,7 +198,7 @@ "fileUris": [ "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/blocknet-blockchain-on-ubuntu/build_blocknet.sh" ], - "commandToExecute": "[concat('sh build_blocknet.sh', parameters('installMethod'))]" + "commandToExecute": "[concat('sh build_blocknet.sh ', parameters('installMethod'))]" } } } From 54fac03cbaa7cde6b3aa6ac2026aa09969c22afa Mon Sep 17 00:00:00 2001 From: sigwo Date: Sat, 26 Mar 2016 11:16:25 -0400 Subject: [PATCH 24/35] Update azuredeploy.parameters.json From 3be2eb3c389c1ef1444d7825e63347b59f9d448b Mon Sep 17 00:00:00 2001 From: sigwo Date: Sat, 26 Mar 2016 11:35:30 -0400 Subject: [PATCH 25/35] Update build_blocknet.sh --- blocknet-blockchain-on-ubuntu/build_blocknet.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/blocknet-blockchain-on-ubuntu/build_blocknet.sh b/blocknet-blockchain-on-ubuntu/build_blocknet.sh index 1e45fe74961d..20ee710eb592 100644 --- a/blocknet-blockchain-on-ubuntu/build_blocknet.sh +++ b/blocknet-blockchain-on-ubuntu/build_blocknet.sh @@ -6,12 +6,21 @@ date ps axjf ################################################################# -# Build Blocknet from source # +# Update Ubuntu and install prerequisites for running Blocknet # +################################################################# +sudo apt-get update +################################################################# +# Build Blocknet source # +################################################################# +NPROC=$(nproc) +echo "nproc: $NPROC" +################################################################# # Install all necessary packages for building Blocknet # ################################################################# +sudo apt-get install -y git qt5-default qt5-qmake qtbase5-dev-tools qttools5-dev-tools build-essential libboost-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libdb++-dev libevent-dev libminiupnpc-dev libqrencode-dev sudo add-apt-repository -y ppa:bitcoin/bitcoin sudo apt-get update -sudo apt-get install -y libdb4.8-dev libdb4.8++-dev libminiupnpc-dev libdb++-dev libdb-dev libcrypto++-dev libqrencode-dev libboost-all-dev build-essential libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev git +sudo apt-get install -y libdb4.8-dev libdb4.8++-dev cd /usr/local file=/usr/local/blocknet @@ -24,13 +33,13 @@ cd /usr/local/blocknet/src file=/usr/local/blocknet/src/blocknetd if [ ! -e "$file" ] then - sudo make -f makefile.unix + sudo make -j$NPROC -f makefile.unix fi sudo cp /usr/local/blocknet/src/blocknetd /usr/bin/blocknetd ################################################################ -# Configure to auto start at boot # +# Configure to auto start at boot # ################################################################ file=$HOME/.blocknet if [ ! -e "$file" ] From 37d79b1b14bfdaeffb3f0d6f8447accd2839a720 Mon Sep 17 00:00:00 2001 From: sigwo Date: Sat, 26 Mar 2016 11:50:57 -0400 Subject: [PATCH 26/35] Update azuredeploy.parameters.json From 7a81e2bbe3edf091fc811f8770d153f8e95da312 Mon Sep 17 00:00:00 2001 From: sigwo Date: Sat, 26 Mar 2016 12:05:44 -0400 Subject: [PATCH 27/35] Update azuredeploy.json --- blocknet-blockchain-on-ubuntu/azuredeploy.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/blocknet-blockchain-on-ubuntu/azuredeploy.json b/blocknet-blockchain-on-ubuntu/azuredeploy.json index 511ca0302053..f4b765bf4657 100644 --- a/blocknet-blockchain-on-ubuntu/azuredeploy.json +++ b/blocknet-blockchain-on-ubuntu/azuredeploy.json @@ -24,7 +24,7 @@ "type": "string", "defaultValue": "From_Source", "metadata": { - "description": "Method to install Blocknet. From_Source: official Blocknet repo on GitHub." + "description": "Method to install Blitz. From_Source: official Blitz repo on GitHub." } }, "vmSize": { @@ -46,19 +46,19 @@ "variables": { "imagePublisher": "Canonical", "imageOffer": "UbuntuServer", - "OSDiskName": "BlocknetOSDisk", + "OSDiskName": "BlitzOSDisk", "imageSKU": "14.04.4-LTS", - "nicName": "BlocknetNic", + "nicName": "BlitzNic", "addressPrefix": "10.0.0.0/16", - "subnetName": "BlocknetSubnet", + "subnetName": "BlitzSubnet", "subnetPrefix": "10.0.0.0/24", "storageAccountType": "Standard_LRS", - "storageAccountName": "[concat(uniquestring(resourceGroup().id, 'blocknet'))]", - "publicIPAddressName": "BlocknetPublicIP", + "storageAccountName": "[concat(uniquestring(resourceGroup().id, 'blitz'))]", + "publicIPAddressName": "BlitzPublicIP", "publicIPAddressType": "Dynamic", "vmStorageAccountContainerName": "vhds", "vmName": "[parameters('dnsLabelPrefix')]", - "virtualNetworkName": "BlocknetVNET", + "virtualNetworkName": "BlitzVNET", "vnetID": "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]", "subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]", "apiVersion": "2015-06-15" @@ -196,9 +196,9 @@ "autoUpgradeMinorVersion": true, "settings": { "fileUris": [ - "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/blocknet-blockchain-on-ubuntu/build_blocknet.sh" + "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/blitz-blockchain-ubuntu/build_blitz.sh" ], - "commandToExecute": "[concat('sh build_blocknet.sh ', parameters('installMethod'))]" + "commandToExecute": "[concat('sh build_blitz.sh ', parameters('installMethod'))]" } } } From 81b7dd14e83f7a4e57cc0ab6e0d598b5d2e2b218 Mon Sep 17 00:00:00 2001 From: sigwo Date: Sat, 26 Mar 2016 12:07:14 -0400 Subject: [PATCH 28/35] Update azuredeploy.json --- blocknet-blockchain-on-ubuntu/azuredeploy.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/blocknet-blockchain-on-ubuntu/azuredeploy.json b/blocknet-blockchain-on-ubuntu/azuredeploy.json index f4b765bf4657..f25d950eee5a 100644 --- a/blocknet-blockchain-on-ubuntu/azuredeploy.json +++ b/blocknet-blockchain-on-ubuntu/azuredeploy.json @@ -24,7 +24,7 @@ "type": "string", "defaultValue": "From_Source", "metadata": { - "description": "Method to install Blitz. From_Source: official Blitz repo on GitHub." + "description": "Method to install blocknet. From_Source: official blocknet repo on GitHub." } }, "vmSize": { @@ -46,19 +46,19 @@ "variables": { "imagePublisher": "Canonical", "imageOffer": "UbuntuServer", - "OSDiskName": "BlitzOSDisk", + "OSDiskName": "blocknetOSDisk", "imageSKU": "14.04.4-LTS", - "nicName": "BlitzNic", + "nicName": "blocknetNic", "addressPrefix": "10.0.0.0/16", - "subnetName": "BlitzSubnet", + "subnetName": "blocknetSubnet", "subnetPrefix": "10.0.0.0/24", "storageAccountType": "Standard_LRS", - "storageAccountName": "[concat(uniquestring(resourceGroup().id, 'blitz'))]", - "publicIPAddressName": "BlitzPublicIP", + "storageAccountName": "[concat(uniquestring(resourceGroup().id, 'blocknet'))]", + "publicIPAddressName": "blocknetPublicIP", "publicIPAddressType": "Dynamic", "vmStorageAccountContainerName": "vhds", "vmName": "[parameters('dnsLabelPrefix')]", - "virtualNetworkName": "BlitzVNET", + "virtualNetworkName": "blocknetVNET", "vnetID": "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]", "subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]", "apiVersion": "2015-06-15" @@ -196,9 +196,9 @@ "autoUpgradeMinorVersion": true, "settings": { "fileUris": [ - "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/blitz-blockchain-ubuntu/build_blitz.sh" + "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/blocknet-blockchain-on-ubuntu/build_blocknet.sh" ], - "commandToExecute": "[concat('sh build_blitz.sh ', parameters('installMethod'))]" + "commandToExecute": "[concat('sh build_blocknet.sh ', parameters('installMethod'))]" } } } From f03416b333a5bf5c4cfa0ab4dfbf3dc5ee0bebb3 Mon Sep 17 00:00:00 2001 From: sigwo Date: Sat, 26 Mar 2016 12:34:46 -0400 Subject: [PATCH 29/35] Update metadata.json From 7c3bbb7a2646bd5e29889b8990152217bb6dd74e Mon Sep 17 00:00:00 2001 From: sigwo Date: Sat, 26 Mar 2016 13:38:41 -0400 Subject: [PATCH 30/35] Update build_blocknet.sh --- blocknet-blockchain-on-ubuntu/build_blocknet.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/blocknet-blockchain-on-ubuntu/build_blocknet.sh b/blocknet-blockchain-on-ubuntu/build_blocknet.sh index 20ee710eb592..087e6bd5dcd6 100644 --- a/blocknet-blockchain-on-ubuntu/build_blocknet.sh +++ b/blocknet-blockchain-on-ubuntu/build_blocknet.sh @@ -30,6 +30,7 @@ then fi cd /usr/local/blocknet/src +mkdir obj file=/usr/local/blocknet/src/blocknetd if [ ! -e "$file" ] then From a41e889d5cfb59a790c21a62934ed360ddbfe3b1 Mon Sep 17 00:00:00 2001 From: sigwo Date: Sat, 26 Mar 2016 23:23:48 -0400 Subject: [PATCH 31/35] Adding Horizon --- horizon-blockchain-ubuntu/README.md | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 horizon-blockchain-ubuntu/README.md diff --git a/horizon-blockchain-ubuntu/README.md b/horizon-blockchain-ubuntu/README.md new file mode 100644 index 000000000000..28a5b8c571b3 --- /dev/null +++ b/horizon-blockchain-ubuntu/README.md @@ -0,0 +1,34 @@ +# Horizon Blockchain Node on Ubuntu VM + +This template delivers the Horizon network to your VM in about 20 minutes. Everything you need to get started using the Horizon blockchain from the command line is included. +You may build from source. Once installed, Horizon will begin syncing the public blockchain. +You may then connect via http to the VM IP address to interface with the blockchain and wallet. + + + + +# What is Horizon? + + +# Template Parameters + +When you click the Deploy to Azure icon above, you need to specify the following template parameters: + +* `adminUsername`: This is the account for connecting to your Horizon host. +* `adminPassword`: This is your password for the host. Azure requires passwords to have One upper case, one lower case, a special character, and a number. +* `dnsLabelPrefix`: This is used as both the VM name and DNS name of your public IP address. Please ensure an unique name. +* `installMethod`: This tells Azure to install Horizon from the latest release. +* `vmSize`: This is the size of the VM to use. Recommendations: Use the D series for installations from source. + +# Getting Started Tutorial + +* Click the `Deploy to Azure` icon above +* Complete the template parameters, choose your resource group, accept the terms and click Create +* Wait about 15 minutes for the VM to spin up and install the software +* Connect to the VM via SSH or http using the DNS name assigned to your Public IP +* If you wish to relaunch Horizon via SSH `cd hz/; nohup ./run.sh &` +* Horizon will run automatically on restart + +# Licensing + +Horizon is released under the terms of the MIT license. See `COPYING` for more information or see http://opensource.org/licenses/MIT. From 6ccb851c32ae39511baad2e5b1e8c1c7e084c9f8 Mon Sep 17 00:00:00 2001 From: sigwo Date: Sun, 27 Mar 2016 04:51:40 +0000 Subject: [PATCH 32/35] Adding Horizon --- horizon-blockchain-ubuntu/azuredeploy.json | 206 ++++++++++++++++++ .../azuredeploy.parameters.json | 21 ++ horizon-blockchain-ubuntu/build_hz.sh | 35 +++ horizon-blockchain-ubuntu/metadata.json | 7 + 4 files changed, 269 insertions(+) create mode 100644 horizon-blockchain-ubuntu/azuredeploy.json create mode 100644 horizon-blockchain-ubuntu/azuredeploy.parameters.json create mode 100644 horizon-blockchain-ubuntu/build_hz.sh create mode 100644 horizon-blockchain-ubuntu/metadata.json diff --git a/horizon-blockchain-ubuntu/azuredeploy.json b/horizon-blockchain-ubuntu/azuredeploy.json new file mode 100644 index 000000000000..4e0ae9722a41 --- /dev/null +++ b/horizon-blockchain-ubuntu/azuredeploy.json @@ -0,0 +1,206 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "adminUsername": { + "type": "string", + "metadata": { + "description": "Username for the Virtual Machine." + } + }, + "adminPassword": { + "type": "securestring", + "metadata": { + "description": "Password for the Virtual Machine." + } + }, + "dnsLabelPrefix": { + "type": "string", + "metadata": { + "description": "Hostname assigned to the Public IP, also used as the VM Name. Must be lowercase. It should match with the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$ or it will raise an error." + } + }, + "installMethod": { + "type": "string", + "defaultValue": "From_Source", + "metadata": { + "description": "Method to install Horizon. From_Source: official Horizon repo on GitHub." + } + }, + "vmSize": { + "type": "string", + "defaultValue": "Standard_D1", + "allowedValues": [ + "Standard_A1", + "Standard_A2", + "Standard_A3", + "Standard_D1", + "Standard_D2", + "Standard_D3" + ], + "metadata": { + "description": "Size of VM" + } + } + }, + "variables": { + "imagePublisher": "Canonical", + "imageOffer": "UbuntuServer", + "OSDiskName": "HzOSDisk", + "imageSKU": "14.04.4-LTS", + "nicName": "HzNic", + "addressPrefix": "10.0.0.0/16", + "subnetName": "HzSubnet", + "subnetPrefix": "10.0.0.0/24", + "storageAccountType": "Standard_LRS", + "storageAccountName": "[concat(uniquestring(resourceGroup().id, 'horizon'))]", + "publicIPAddressName": "HzPublicIP", + "publicIPAddressType": "Dynamic", + "vmStorageAccountContainerName": "vhds", + "vmName": "[parameters('dnsLabelPrefix')]", + "virtualNetworkName": "HzVNET", + "vnetID": "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]", + "subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]", + "apiVersion": "2015-06-15" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "[variables('apiVersion')]", + "location": "[resourceGroup().location]", + "properties": { + "accountType": "[variables('storageAccountType')]" + } + }, + { + "apiVersion": "[variables('apiVersion')]", + "type": "Microsoft.Network/publicIPAddresses", + "name": "[variables('publicIPAddressName')]", + "location": "[resourceGroup().location]", + "properties": { + "publicIPAllocationMethod": "[variables('publicIPAddressType')]", + "dnsSettings": { + "domainNameLabel": "[parameters('dnsLabelPrefix')]" + } + } + }, + { + "apiVersion": "[variables('apiVersion')]", + "type": "Microsoft.Network/virtualNetworks", + "name": "[variables('virtualNetworkName')]", + "location": "[resourceGroup().location]", + "properties": { + "addressSpace": { + "addressPrefixes": [ + "[variables('addressPrefix')]" + ] + }, + "subnets": [ + { + "name": "[variables('subnetName')]", + "properties": { + "addressPrefix": "[variables('subnetPrefix')]" + } + } + ] + } + }, + { + "apiVersion": "[variables('apiVersion')]", + "type": "Microsoft.Network/networkInterfaces", + "name": "[variables('nicName')]", + "location": "[resourceGroup().location]", + "dependsOn": [ + "[concat('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]", + "[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]" + ], + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig1", + "properties": { + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "[resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName'))]" + }, + "subnet": { + "id": "[variables('subnetRef')]" + } + } + } + ] + } + }, + { + "apiVersion": "[variables('apiVersion')]", + "type": "Microsoft.Compute/virtualMachines", + "name": "[variables('vmName')]", + "location": "[resourceGroup().location]", + "dependsOn": [ + "[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]", + "[concat('Microsoft.Network/networkInterfaces/', variables('nicName'))]" + ], + "properties": { + "hardwareProfile": { + "vmSize": "[parameters('vmSize')]" + }, + "osProfile": { + "computerName": "[variables('vmName')]", + "adminUsername": "[parameters('adminUsername')]", + "adminPassword": "[parameters('adminPassword')]" + }, + "storageProfile": { + "imageReference": { + "publisher": "[variables('imagePublisher')]", + "offer": "[variables('imageOffer')]", + "sku": "[variables('imageSKU')]", + "version": "latest" + }, + "osDisk": { + "name": "osdisk", + "vhd": { + "uri": "[concat('http://',variables('storageAccountName'),'.blob.core.windows.net/',variables('vmStorageAccountContainerName'),'/',variables('OSDiskName'),'.vhd')]" + }, + "caching": "ReadWrite", + "createOption": "FromImage" + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "[resourceId('Microsoft.Network/networkInterfaces',variables('nicName'))]" + } + ] + }, + "diagnosticsProfile": { + "bootDiagnostics": { + "enabled": "true", + "storageUri": "[concat('http://',variables('storageAccountName'),'.blob.core.windows.net')]" + } + } + } + }, + { + "type": "Microsoft.Compute/virtualMachines/extensions", + "name": "[concat(variables('vmName'),'/newuserscript')]", + "location": "[resourceGroup().location]", + "apiVersion": "[variables('apiVersion')]", + "dependsOn": [ + "[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]" + ], + "properties": { + "publisher": "Microsoft.OSTCExtensions", + "type": "CustomScriptForLinux", + "typeHandlerVersion": "1.4", + "autoUpgradeMinorVersion": true, + "settings": { + "fileUris": [ + "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/horizon-blockchain-ubuntu/build_hz.sh" + ], + "commandToExecute": "[concat('sh build_hz.sh ', parameters('installMethod'))]" + } + } + } + ] +} diff --git a/horizon-blockchain-ubuntu/azuredeploy.parameters.json b/horizon-blockchain-ubuntu/azuredeploy.parameters.json new file mode 100644 index 000000000000..af5854f677c2 --- /dev/null +++ b/horizon-blockchain-ubuntu/azuredeploy.parameters.json @@ -0,0 +1,21 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "dnsLabelPrefix": { + "value": "GEN-UNIQUE-11" + }, + "adminUsername": { + "value": "azureuser" + }, + "adminPassword": { + "value": "GEN-PASSWORD" + }, + "installMethod": { + "value": "From_Source" + }, + "vmSize": { + "value": "Standard_D1" + } + } +} diff --git a/horizon-blockchain-ubuntu/build_hz.sh b/horizon-blockchain-ubuntu/build_hz.sh new file mode 100644 index 000000000000..e1de3c6b28a9 --- /dev/null +++ b/horizon-blockchain-ubuntu/build_hz.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +set -e + +################################################################# +# Build Horizon from latest release # +# Install all necessary packages for building Horizon # +################################################################# +sudo apt-get install -y software-properties-common +echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list +echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list +sudo apt-get update +echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections +sudo apt-get install -y --force-yes oracle-java8-installer + +cd /usr/local +sudo wget https://github.com/NeXTHorizon/hz-source/releases/download/hz-v5.4/hz-v5.4-node.zip +unzip hz-v5.4-node.zip + +################################################################ +# Configure to auto start at boot # +################################################################ + +file=/etc/init.d/Horizon +if [ ! -e "$file" ] +then + printf '%s\n%s\n' '#!/bin/sh' 'sudo nohup ./usr/local/hz-v5.4-node/run.sh &' | sudo tee /etc/init.d/Horizon + sudo chmod +x /etc/init.d/Horizon + sudo update-rc.d Horizon default +fi + +cd /usr/local/hz-v5.4-node +nohup ./run.sh & +echo "Horizon has been setup successfully and is running..." +exit 0 diff --git a/horizon-blockchain-ubuntu/metadata.json b/horizon-blockchain-ubuntu/metadata.json new file mode 100644 index 000000000000..0f67a444f641 --- /dev/null +++ b/horizon-blockchain-ubuntu/metadata.json @@ -0,0 +1,7 @@ +{ + "itemDisplayName": "Horizon Blockchain on Ubuntu", + "description": "This template deploys a Horizon node on a Ubuntu virtual machines.", + "summary": "Deploy Horizon on Ubuntu to take advantage of the services running on the blockchain", + "githubUsername": "sigwo", + "dateUpdated": "2016-03-26" +} From a1ee61ecf57ebb0c50fa40dfdace918bc2e9c7e1 Mon Sep 17 00:00:00 2001 From: sigwo Date: Sun, 27 Mar 2016 01:29:59 -0400 Subject: [PATCH 33/35] Update build_hz.sh --- horizon-blockchain-ubuntu/build_hz.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/horizon-blockchain-ubuntu/build_hz.sh b/horizon-blockchain-ubuntu/build_hz.sh index e1de3c6b28a9..04d6918c5a78 100644 --- a/horizon-blockchain-ubuntu/build_hz.sh +++ b/horizon-blockchain-ubuntu/build_hz.sh @@ -7,15 +7,15 @@ set -e # Install all necessary packages for building Horizon # ################################################################# sudo apt-get install -y software-properties-common -echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list -echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list +echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> sudo /etc/apt/sources.list +echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> sudo /etc/apt/sources.list sudo apt-get update echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections sudo apt-get install -y --force-yes oracle-java8-installer cd /usr/local sudo wget https://github.com/NeXTHorizon/hz-source/releases/download/hz-v5.4/hz-v5.4-node.zip -unzip hz-v5.4-node.zip +sudo unzip hz-v5.4-node.zip ################################################################ # Configure to auto start at boot # @@ -29,7 +29,7 @@ then sudo update-rc.d Horizon default fi -cd /usr/local/hz-v5.4-node -nohup ./run.sh & +cd /usr/local/hz-v5.4-node/ +sudo nohup ./run.sh & echo "Horizon has been setup successfully and is running..." exit 0 From 65e7b8ce80d421ecff1218b5cc0c86ce47960350 Mon Sep 17 00:00:00 2001 From: sigwo Date: Sun, 27 Mar 2016 06:23:45 +0000 Subject: [PATCH 34/35] Removed Horizon to separate branch --- horizon-blockchain-ubuntu/README.md | 34 --- horizon-blockchain-ubuntu/azuredeploy.json | 206 ------------------ .../azuredeploy.parameters.json | 21 -- horizon-blockchain-ubuntu/build_hz.sh | 35 --- horizon-blockchain-ubuntu/metadata.json | 7 - 5 files changed, 303 deletions(-) delete mode 100644 horizon-blockchain-ubuntu/README.md delete mode 100644 horizon-blockchain-ubuntu/azuredeploy.json delete mode 100644 horizon-blockchain-ubuntu/azuredeploy.parameters.json delete mode 100644 horizon-blockchain-ubuntu/build_hz.sh delete mode 100644 horizon-blockchain-ubuntu/metadata.json diff --git a/horizon-blockchain-ubuntu/README.md b/horizon-blockchain-ubuntu/README.md deleted file mode 100644 index 28a5b8c571b3..000000000000 --- a/horizon-blockchain-ubuntu/README.md +++ /dev/null @@ -1,34 +0,0 @@ -# Horizon Blockchain Node on Ubuntu VM - -This template delivers the Horizon network to your VM in about 20 minutes. Everything you need to get started using the Horizon blockchain from the command line is included. -You may build from source. Once installed, Horizon will begin syncing the public blockchain. -You may then connect via http to the VM IP address to interface with the blockchain and wallet. - - - - -# What is Horizon? - - -# Template Parameters - -When you click the Deploy to Azure icon above, you need to specify the following template parameters: - -* `adminUsername`: This is the account for connecting to your Horizon host. -* `adminPassword`: This is your password for the host. Azure requires passwords to have One upper case, one lower case, a special character, and a number. -* `dnsLabelPrefix`: This is used as both the VM name and DNS name of your public IP address. Please ensure an unique name. -* `installMethod`: This tells Azure to install Horizon from the latest release. -* `vmSize`: This is the size of the VM to use. Recommendations: Use the D series for installations from source. - -# Getting Started Tutorial - -* Click the `Deploy to Azure` icon above -* Complete the template parameters, choose your resource group, accept the terms and click Create -* Wait about 15 minutes for the VM to spin up and install the software -* Connect to the VM via SSH or http using the DNS name assigned to your Public IP -* If you wish to relaunch Horizon via SSH `cd hz/; nohup ./run.sh &` -* Horizon will run automatically on restart - -# Licensing - -Horizon is released under the terms of the MIT license. See `COPYING` for more information or see http://opensource.org/licenses/MIT. diff --git a/horizon-blockchain-ubuntu/azuredeploy.json b/horizon-blockchain-ubuntu/azuredeploy.json deleted file mode 100644 index 4e0ae9722a41..000000000000 --- a/horizon-blockchain-ubuntu/azuredeploy.json +++ /dev/null @@ -1,206 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "adminUsername": { - "type": "string", - "metadata": { - "description": "Username for the Virtual Machine." - } - }, - "adminPassword": { - "type": "securestring", - "metadata": { - "description": "Password for the Virtual Machine." - } - }, - "dnsLabelPrefix": { - "type": "string", - "metadata": { - "description": "Hostname assigned to the Public IP, also used as the VM Name. Must be lowercase. It should match with the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$ or it will raise an error." - } - }, - "installMethod": { - "type": "string", - "defaultValue": "From_Source", - "metadata": { - "description": "Method to install Horizon. From_Source: official Horizon repo on GitHub." - } - }, - "vmSize": { - "type": "string", - "defaultValue": "Standard_D1", - "allowedValues": [ - "Standard_A1", - "Standard_A2", - "Standard_A3", - "Standard_D1", - "Standard_D2", - "Standard_D3" - ], - "metadata": { - "description": "Size of VM" - } - } - }, - "variables": { - "imagePublisher": "Canonical", - "imageOffer": "UbuntuServer", - "OSDiskName": "HzOSDisk", - "imageSKU": "14.04.4-LTS", - "nicName": "HzNic", - "addressPrefix": "10.0.0.0/16", - "subnetName": "HzSubnet", - "subnetPrefix": "10.0.0.0/24", - "storageAccountType": "Standard_LRS", - "storageAccountName": "[concat(uniquestring(resourceGroup().id, 'horizon'))]", - "publicIPAddressName": "HzPublicIP", - "publicIPAddressType": "Dynamic", - "vmStorageAccountContainerName": "vhds", - "vmName": "[parameters('dnsLabelPrefix')]", - "virtualNetworkName": "HzVNET", - "vnetID": "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]", - "subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]", - "apiVersion": "2015-06-15" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "[variables('apiVersion')]", - "location": "[resourceGroup().location]", - "properties": { - "accountType": "[variables('storageAccountType')]" - } - }, - { - "apiVersion": "[variables('apiVersion')]", - "type": "Microsoft.Network/publicIPAddresses", - "name": "[variables('publicIPAddressName')]", - "location": "[resourceGroup().location]", - "properties": { - "publicIPAllocationMethod": "[variables('publicIPAddressType')]", - "dnsSettings": { - "domainNameLabel": "[parameters('dnsLabelPrefix')]" - } - } - }, - { - "apiVersion": "[variables('apiVersion')]", - "type": "Microsoft.Network/virtualNetworks", - "name": "[variables('virtualNetworkName')]", - "location": "[resourceGroup().location]", - "properties": { - "addressSpace": { - "addressPrefixes": [ - "[variables('addressPrefix')]" - ] - }, - "subnets": [ - { - "name": "[variables('subnetName')]", - "properties": { - "addressPrefix": "[variables('subnetPrefix')]" - } - } - ] - } - }, - { - "apiVersion": "[variables('apiVersion')]", - "type": "Microsoft.Network/networkInterfaces", - "name": "[variables('nicName')]", - "location": "[resourceGroup().location]", - "dependsOn": [ - "[concat('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]", - "[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]" - ], - "properties": { - "ipConfigurations": [ - { - "name": "ipconfig1", - "properties": { - "privateIPAllocationMethod": "Dynamic", - "publicIPAddress": { - "id": "[resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName'))]" - }, - "subnet": { - "id": "[variables('subnetRef')]" - } - } - } - ] - } - }, - { - "apiVersion": "[variables('apiVersion')]", - "type": "Microsoft.Compute/virtualMachines", - "name": "[variables('vmName')]", - "location": "[resourceGroup().location]", - "dependsOn": [ - "[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]", - "[concat('Microsoft.Network/networkInterfaces/', variables('nicName'))]" - ], - "properties": { - "hardwareProfile": { - "vmSize": "[parameters('vmSize')]" - }, - "osProfile": { - "computerName": "[variables('vmName')]", - "adminUsername": "[parameters('adminUsername')]", - "adminPassword": "[parameters('adminPassword')]" - }, - "storageProfile": { - "imageReference": { - "publisher": "[variables('imagePublisher')]", - "offer": "[variables('imageOffer')]", - "sku": "[variables('imageSKU')]", - "version": "latest" - }, - "osDisk": { - "name": "osdisk", - "vhd": { - "uri": "[concat('http://',variables('storageAccountName'),'.blob.core.windows.net/',variables('vmStorageAccountContainerName'),'/',variables('OSDiskName'),'.vhd')]" - }, - "caching": "ReadWrite", - "createOption": "FromImage" - } - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "[resourceId('Microsoft.Network/networkInterfaces',variables('nicName'))]" - } - ] - }, - "diagnosticsProfile": { - "bootDiagnostics": { - "enabled": "true", - "storageUri": "[concat('http://',variables('storageAccountName'),'.blob.core.windows.net')]" - } - } - } - }, - { - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "[concat(variables('vmName'),'/newuserscript')]", - "location": "[resourceGroup().location]", - "apiVersion": "[variables('apiVersion')]", - "dependsOn": [ - "[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]" - ], - "properties": { - "publisher": "Microsoft.OSTCExtensions", - "type": "CustomScriptForLinux", - "typeHandlerVersion": "1.4", - "autoUpgradeMinorVersion": true, - "settings": { - "fileUris": [ - "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/horizon-blockchain-ubuntu/build_hz.sh" - ], - "commandToExecute": "[concat('sh build_hz.sh ', parameters('installMethod'))]" - } - } - } - ] -} diff --git a/horizon-blockchain-ubuntu/azuredeploy.parameters.json b/horizon-blockchain-ubuntu/azuredeploy.parameters.json deleted file mode 100644 index af5854f677c2..000000000000 --- a/horizon-blockchain-ubuntu/azuredeploy.parameters.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "dnsLabelPrefix": { - "value": "GEN-UNIQUE-11" - }, - "adminUsername": { - "value": "azureuser" - }, - "adminPassword": { - "value": "GEN-PASSWORD" - }, - "installMethod": { - "value": "From_Source" - }, - "vmSize": { - "value": "Standard_D1" - } - } -} diff --git a/horizon-blockchain-ubuntu/build_hz.sh b/horizon-blockchain-ubuntu/build_hz.sh deleted file mode 100644 index 04d6918c5a78..000000000000 --- a/horizon-blockchain-ubuntu/build_hz.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash - -set -e - -################################################################# -# Build Horizon from latest release # -# Install all necessary packages for building Horizon # -################################################################# -sudo apt-get install -y software-properties-common -echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> sudo /etc/apt/sources.list -echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> sudo /etc/apt/sources.list -sudo apt-get update -echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections -sudo apt-get install -y --force-yes oracle-java8-installer - -cd /usr/local -sudo wget https://github.com/NeXTHorizon/hz-source/releases/download/hz-v5.4/hz-v5.4-node.zip -sudo unzip hz-v5.4-node.zip - -################################################################ -# Configure to auto start at boot # -################################################################ - -file=/etc/init.d/Horizon -if [ ! -e "$file" ] -then - printf '%s\n%s\n' '#!/bin/sh' 'sudo nohup ./usr/local/hz-v5.4-node/run.sh &' | sudo tee /etc/init.d/Horizon - sudo chmod +x /etc/init.d/Horizon - sudo update-rc.d Horizon default -fi - -cd /usr/local/hz-v5.4-node/ -sudo nohup ./run.sh & -echo "Horizon has been setup successfully and is running..." -exit 0 diff --git a/horizon-blockchain-ubuntu/metadata.json b/horizon-blockchain-ubuntu/metadata.json deleted file mode 100644 index 0f67a444f641..000000000000 --- a/horizon-blockchain-ubuntu/metadata.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "itemDisplayName": "Horizon Blockchain on Ubuntu", - "description": "This template deploys a Horizon node on a Ubuntu virtual machines.", - "summary": "Deploy Horizon on Ubuntu to take advantage of the services running on the blockchain", - "githubUsername": "sigwo", - "dateUpdated": "2016-03-26" -} From 7f34aeb2a586c37769383787f352c9c9974463ff Mon Sep 17 00:00:00 2001 From: sigwo Date: Sun, 27 Mar 2016 02:25:06 -0400 Subject: [PATCH 35/35] Update metadata.json --- bitswift-blockchain-ubuntu/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitswift-blockchain-ubuntu/metadata.json b/bitswift-blockchain-ubuntu/metadata.json index 420a58ca4bb6..55aa12fba8b9 100644 --- a/bitswift-blockchain-ubuntu/metadata.json +++ b/bitswift-blockchain-ubuntu/metadata.json @@ -3,5 +3,5 @@ "description": "This template deploys a Bitswift node on a Ubuntu virtual machines. Bitswift information can be found at https://bitcointalk.org/index.php?topic=922982.msg10131608#msg10131608", "summary": "Deploy Bitswift on Ubuntu to take advantage of the services running on the blockchain", "githubUsername": "sigwo", - "dateUpdated": "2016-03-24" + "dateUpdated": "2016-03-26" }