User Tools

Site Tools


windows

Installing Cosmos SDK v 0.33.0 in a Windows 10 Virtual Machine

1.jpg

1. Download and install Oracle VM Virtualbox for Windows hosts at https://www.virtualbox.org/wiki/Downloads

2.jpg

2. Create new virtual machine with the type of Linux, and a version of Ubuntu 64 bit. Give it a name you will remember, and set a location that has plenty of drive space (preferably an SSD drive on your local computer).

3.jpg

3. Give the VM enough memory and hard drive space to run the blockchain. Memory should be at least 2048 mb or 2 gigs to install and run the software, preferably more. For hard drive space, give it as much space as you can afford in your C: drive or other internal hard drive. As a secondary option a network drive or USB drive may work, but will not perform as well.

4. Once finished creating the machine, right click start or run the virtual machine from within the VM manager application

4.jpg

5. A new window will pop up which is the terminal into the Linux machine. It will then prompt you for a start-up disk. At this point you should get the official ISO file for Ubuntu 18.04.2 at https://www.ubuntu.com/download/desktop if you do not already have it.

6.jpg

7.jpg

6. The Ubuntu installer will load similar to a Windows installer program. You can use all of the default settings as you go through, or adjust them as you see fit.

8.jpg 7. After the installation is complete, you will be presented with the Ubuntu desktop welcome screen. Click Next until you get to the basic desktop screen.

9.jpg

8. On the bottom left hand corner, click the icon to show a list of applications and search bar.

10.jpg

9. In the search bar at the top middle of the screen, begin typing “term” to find the terminal application.

11.jpg

10. After loading the terminal, right click on the icons on the left hand menu bar and remove all of the unnecessary ones. Make terminal a favorite icon so it always appears on the left.

11. At some point you will get a prompt from Ubuntu to update your software. This is not required but if you proceed it may take some time. Let any software installers finish before moving forward.

12.jpg

12. Using the terminal, type the following commands in this order, pausing so that each command has time to finish. As a general tip with Ubuntu, if you receive an error that you are missing some software or package, you can try to resolve by simply typing 'sudo apt-get install <missingSoftwarename>:

sudo apt-get update

sudo apt-get -y upgrade

cd /tmp

wget https://dl.google.com/go/go1.11.5.linux-amd64.tar.gz

sudo tar -xvf go1.11.5.linux-amd64.tar.gz

sudo mv go /usr/local

cd

nano .profile

14. At this point it will launch the Nano text editor. You will need to copy and paste the following at the bottom of the .profile text file.

export GOROOT=/usr/local/go

export GOPATH=$HOME/go

export PATH=$GOPATH/bin:$GOROOT/bin:$PATH

15. Once finished, use ctrl+x to close Nano. It will ask if you want to save, type 'y' to save, and click enter. You will return back to the command prompt.

source ~/.profile

go version

16. The above command should verify that Golang was installed correctly. Continue installing Cosmos SDK below.

mkdir -p $GOPATH/src/github.com/cosmos

cd $GOPATH/src/github.com/cosmos

git clone https://github.com/cosmos/cosmos-sdk

cd cosmos-sdk && git checkout v0.33.0

Note: You can replace v0.33.0 with any version, or use “checkout master” to get the latest release.

sudo apt-get -y install make

sudo apt-get -y install gcc

make tools install

Note: If you receive an error during this step, try the following:

make update_tools && make vendor-deps && make install

17. If the process completes without errors, you are ready to run the gaiacli or gaiad tools by checking the versions below.

gaiacli version --long

gaiad version --long

Once this is complete, you can go on to set up your wallet using the Gaia CLI Quick Guide and Helpful Commands or How to Delegate Atoms to CosmosPool.org

windows.txt · Last modified: 2019/03/28 10:34 by admin