Advertisement
trinity_nodes

trinity_ethereum_node_deployment

Sep 23rd, 2018
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.48 KB | None | 0 0
  1. # Part 1 running Ethereum node on Testnet
  2.  
  3. # You need to have a latest virtual box installed on PC and latest Guest Additions
  4. https://www.virtualbox.org/wiki/Downloads
  5.  
  6. # Download Latest version of Ubuntu 16.04
  7. # https://www.ubuntu.com/download/alternative-downloads
  8. # Scroll down until you find Ubuntu 16.04.5 Desktop (64-bit), you have to have a torrent client installed before clicking this link. (https://www.qbittorrent.org/download.php)
  9.  
  10. #Install Ubuntu 16.04 VM on VirtualBox and skip ssh putty part, you don't need it, since you will use Desktop edition
  11. # Follow video below to install Ubuntu
  12. https://www.youtube.com/watch?v=Jwl3QXswnkI
  13.  
  14.  
  15. # Ethereum node deployment on Testnet Instructions:
  16. # Please note: my Ubuntu username is alex, you will need to replace alex with your username
  17. # All files will be stored on /home/alex/Desktop # example /home/your_user_name/Desktop
  18.  
  19. sudo apt-get update
  20. sudo apt-get upgrade -y
  21. pwd
  22. /home/alex
  23. cd Desktop
  24.  
  25. Please note original documentation also had screen package, we won't be using screen since it's for more advanced users
  26. sudo apt-get install git libleveldb-dev libssl-dev g++ vim -y
  27.  
  28. sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
  29.  
  30. echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
  31.  
  32. sudo apt-get update
  33.  
  34. sudo apt-get install mongodb-org -y
  35. sudo service mongod start
  36.  
  37. # Python 3.6 install
  38. sudo apt-get install software-properties-common -y
  39. sudo add-apt-repository ppa:jonathonf/python-3.6
  40. sudo apt-get update
  41. sudo apt-get install python3.6 python3.6-dev -y
  42.  
  43. #Pip 3.6 install
  44. sudo wget https://bootstrap.pypa.io/get-pip.py
  45. sudo python3.6 get-pip.py
  46. sudo pip3.6 install virtualenv
  47. pwd
  48.  
  49. # Get Trinity Source Code
  50. git clone https://github.com/trinity-project/trinity-eth.git
  51. git clone https://github.com/trinity-project/trinity-gateway.git
  52.  
  53. cd trinity-eth/
  54. virtualenv -p /usr/bin/python3.6 venv
  55. source venv/bin/activate
  56.  
  57. pip3.6 install -r requirements
  58.  
  59.  
  60. # Open New terminal
  61. /home/alex/Desktop/
  62. cd trinity-gateway/
  63. virtualenv -p /usr/bin/python3.6 venv
  64. source venv/bin/activate
  65. pip3.6 install -r requirements
  66. pwd
  67. /home/alex/Desktop/trinity-gateway/
  68. cd gateway/
  69. vim config.py
  70. *Find* cg_public_ip_port = "localhost:8189" *in the localhost and set it as user’s public ip address.*
  71. press i # this will allow you to insert ip address
  72. once you inserted IP, press ESC, then type :wq # this will save the file
  73. *Eg: cg_public_ip_port = "8.8.8.8:8189"*
  74. To get your public ip address go to https://whatismyipaddress.com/ and grab IPv4 IP
  75. for example purpose I will use 8.8.8.8 but you will have to enter your IP address here.
  76.  
  77. python3.6 start.py
  78.  
  79. ###### Trinity Gateway Start Successfully! ######
  80. ```
  81.  
  82. ### Install Trinity Routing Node Wallet
  83. /home/alex/Desktop/trinity-eth/
  84. cd wallet
  85.  
  86. ##This demo is for Testnet Wallet
  87. ## Channel Nodes Interworking
  88. python3.6 prompt.py
  89.  
  90. After the running of Trinity CLI wallet, the subsequent wallet and channel operations can be performed on the console.
  91. Input ‘help’ to the wallet console to view all trinity CLI wallet commands.
  92. Here are a few channel-related commands:
  93.  
  94. # We will now create a wallet and save it on our Desktop
  95. create wallet /home/alex/Desktop/our_wallet.json
  96. # enter a secret password for your wallet
  97.  
  98. channel enable
  99. channel show uri
  100. channel deposit_limit
  101.  
  102. End of Part 1, Part 2 will be out later
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement