Advertisement
Guest User

trinity_ETH_node_TestNet

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