Monday, February 23, 2015

How to Install Mist

Please use the instructions at this page instead -- I was never able to get a return value from a contract using the setup described below.



I was able to install Ethereum's DApp browser, called Mist, by following these steps.

WARNING: When I installed Mist it broke my AlethZero installation -- I do not know how to get both working at the same time.
First, create an Ubuntu 14.04.1 VM using VirtualBox.
Before you proceed, take a snapshot of your VM.

    Install Prerequisites for Mist

    sudo apt-get install -y golang
    mkdir -p ~/go; echo "export GOPATH=$HOME/go" >> ~/.bashrc
    echo "export PATH=$PATH:$HOME/go/bin:/usr/local/go/bin" >> ~/.bashrc
    source ~/.bashrc

    sudo apt-get install -y libgmp3-dev libreadline6-dev

    sudo apt-get install -y mesa-common-dev libglu1-mesa-dev
    sudo apt-get install -y pkg-config
    sudo add-apt-repository -y ppa:beineri/opt-qt541-trusty
    sudo apt-get update -y
    sudo apt-get install -y qt54quickcontrols qt54webengine
    source /opt/qt54/bin/qt54-env.sh

    sudo apt-get install -y g++ 
    go get -u github.com/obscuren/qml
    cd $GOPATH/src/github.com/obscuren/qml && git checkout v1 
    go build
    sudo add-apt-repository -y ppa:mercurial-ppa/releases
    sudo apt-get install -y mercurial meld


    Install Mist & Ethereum-App

    go get -u github.com/ethereum/go-ethereum/cmd/mist

    We must use the "develop" branch so we have synchronous RPC support:
    cd $GOPATH/src/github.com/ethereum/go-ethereum 
    git checkout develop
    cd cmd/ethereum && go build


    Create a new file that launches Mist:
    gedit $GOPATH/bin/misted

    And put this text inside of the file:
    #!/usr/bin/env bash
    cd $GOPATH/src/github.com/ethereum/go-ethereum/cmd/mist && mist


    And make it executable:
    chmod +x $GOPATH/bin/misted

    Make sure Mist launches by typing this at the Terminal:
    misted


    Create a new file that launches the "ethereum" app:
    gedit $GOPATH/bin/ethereumed

    And put this text inside of the file:
    #!/usr/bin/env bash
    cd $GOPATH/src/github.com/ethereum/go-ethereum/cmd/
    ethereum
    ./ethereum -mine -rpc

    And make it executable:
    chmod +x $GOPATH/bin/ethereumed

    Make sure the "ethereum" app launches by typing this at the Terminal (there is no GUI with this app):
    ethereumed


    Take a snapshot of your VM. Save it as "Mist installed".

    No comments:

    Post a Comment