Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Part 1 running Ethereum node on Testnet
- # You need to have a latest virtual box installed on PC and latest Guest Additions
- https://www.virtualbox.org/wiki/Downloads
- # Download Latest version of Ubuntu 16.04
- # https://www.ubuntu.com/download/alternative-downloads
- # 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)
- #Install Ubuntu 16.04 VM on VirtualBox and skip ssh putty part, you don't need it, since you will use Desktop edition
- # Follow video below to install Ubuntu
- https://www.youtube.com/watch?v=Jwl3QXswnkI
- # Ethereum node deployment on Testnet Instructions:
- # Please note: my Ubuntu username is alex, you will need to replace alex with your username
- # All files will be stored on /home/alex/Desktop # example /home/your_user_name/Desktop
- sudo apt-get update
- sudo apt-get upgrade -y
- pwd
- /home/alex
- cd Desktop
- Please note original documentation also had screen package, we won't be using screen since it's for more advanced users
- sudo apt-get install git libleveldb-dev libssl-dev g++ vim -y
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
- 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
- sudo apt-get update
- sudo apt-get install mongodb-org -y
- sudo service mongod start
- # Python 3.6 install
- sudo apt-get install software-properties-common -y
- sudo add-apt-repository ppa:jonathonf/python-3.6
- sudo apt-get update
- sudo apt-get install python3.6 python3.6-dev -y
- #Pip 3.6 install
- sudo wget https://bootstrap.pypa.io/get-pip.py
- sudo python3.6 get-pip.py
- sudo pip3.6 install virtualenv
- pwd
- # Get Trinity Source Code
- git clone https://github.com/trinity-project/trinity-eth.git
- git clone https://github.com/trinity-project/trinity-gateway.git
- cd trinity-eth/
- virtualenv -p /usr/bin/python3.6 venv
- source venv/bin/activate
- pip3.6 install -r requirements
- # Open New terminal
- /home/alex/Desktop/
- cd trinity-gateway/
- virtualenv -p /usr/bin/python3.6 venv
- source venv/bin/activate
- pip3.6 install -r requirements
- pwd
- /home/alex/Desktop/trinity-gateway/
- cd gateway/
- vim config.py
- *Find* cg_public_ip_port = "localhost:8189" *in the localhost and set it as user’s public ip address.*
- press i # this will allow you to insert ip address
- once you inserted IP, press ESC, then type :wq # this will save the file
- *Eg: cg_public_ip_port = "8.8.8.8:8189"*
- To get your public ip address go to https://whatismyipaddress.com/ and grab IPv4 IP
- for example purpose I will use 8.8.8.8 but you will have to enter your IP address here.
- python3.6 start.py
- ###### Trinity Gateway Start Successfully! ######
- ```
- ### Install Trinity Routing Node Wallet
- /home/alex/Desktop/trinity-eth/
- cd wallet
- ##This demo is for Testnet Wallet
- ## Channel Nodes Interworking
- python3.6 prompt.py
- After the running of Trinity CLI wallet, the subsequent wallet and channel operations can be performed on the console.
- Input ‘help’ to the wallet console to view all trinity CLI wallet commands.
- Here are a few channel-related commands:
- # We will now create a wallet and save it on our Desktop
- create wallet /home/alex/Desktop/our_wallet.json
- # enter a secret password for your wallet
- channel enable
- channel show uri
- channel deposit_limit
- End of Part 1, Part 2 will be out later
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement