mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 23:02:16 +00:00
Update README.md
This commit is contained in:
parent
be90fd1e0d
commit
96631f56b0
@ -1,53 +1,22 @@
|
|||||||
|
NOTE: Only Ubuntu 14.04 64bit is supported at this time.
|
||||||
|
|
||||||
### Dependencies
|
### Dependencies
|
||||||
|
|
||||||
Install the dependencies.
|
Install the dependencies and create a new user `tmuser`
|
||||||
[install_env.sh](https://raw.githubusercontent.com/tendermint/tendermint/master/INSTALL/install_env.sh):
|
|
||||||
|
|
||||||
#!/bin/bash
|
curl -L https://raw.githubusercontent.com/tendermint/tendermint/master/INSTALL/install_env.sh > install_env.sh
|
||||||
# Run this as super user
|
source install_env.sh
|
||||||
# This part is for installing go language and setting up a user account
|
cd /home/tmuser
|
||||||
apt-get update -y
|
|
||||||
apt-get upgrade -y
|
|
||||||
apt-get install -y make screen gcc git mercurial libc6-dev pkg-config libgmp-dev
|
|
||||||
useradd tmuser -d /home/tmuser
|
|
||||||
usermod -aG sudo tmuser
|
|
||||||
mkdir /home/tmuser
|
|
||||||
chown -R tmuser /home/tmuser
|
|
||||||
su tmuser
|
|
||||||
|
|
||||||
### Install Go
|
### Install Go
|
||||||
|
|
||||||
Install Go separately, from here: <http://golang.org/doc/install> or
|
|
||||||
Don't use `apt-get install golang`, it's still on an old version.
|
Don't use `apt-get install golang`, it's still on an old version.
|
||||||
[install_golang.sh](https://raw.githubusercontent.com/tendermint/tendermint/master/INSTALL/install_golang.sh):
|
|
||||||
|
|
||||||
#!/bin/bash
|
curl -L https://raw.githubusercontent.com/tendermint/tendermint/master/INSTALL/install_golang.sh > install_golang.sh
|
||||||
# Run this as tmuser user
|
source install_golang.sh
|
||||||
# This part is for installing go
|
|
||||||
|
|
||||||
if [ `whoami` != "root" ];
|
|
||||||
then
|
|
||||||
cd /home/tmuser
|
|
||||||
mkdir gocode
|
|
||||||
wget https://storage.googleapis.com/golang/go1.4.2.src.tar.gz
|
|
||||||
tar -xzvf go*.tar.gz
|
|
||||||
cd go/src
|
|
||||||
./make.bash
|
|
||||||
cd /home/tmuser
|
|
||||||
cp /etc/skel/.bashrc .
|
|
||||||
mkdir -p /home/tmuser/go/src
|
|
||||||
echo 'export GOROOT=/home/tmuser/go' >> /home/tmuser/.bashrc
|
|
||||||
echo 'export GOPATH=/home/tmuser/gocode' >> /home/tmuser/.bashrc
|
|
||||||
echo 'export PATH=$PATH:$GOROOT/bin' >> /home/tmuser/.bashrc
|
|
||||||
source /home/tmuser/.bashrc
|
|
||||||
else
|
|
||||||
echo "should not be root to run install_golang.sh"
|
|
||||||
fi
|
|
||||||
|
|
||||||
### Install/Update Tendermint
|
### Install/Update Tendermint
|
||||||
|
|
||||||
|
go get -u github.com/tendermint/tendermint/cmd/tendermint # get+update
|
||||||
go install github.com/tendermint/tendermint/cmd/tendermint # install
|
go install github.com/tendermint/tendermint/cmd/tendermint # install
|
||||||
go get -u github.com/tendermint/tendermint/cmd/tendermint # update
|
tendermint node
|
||||||
|
|
||||||
|
|
||||||
Check out the [Developer Quick Start](https://github.com/tendermint/tendermint/wiki/Developer-Quick-Start) to learn more.
|
|
||||||
|
@ -7,4 +7,5 @@ apt-get install -y make screen gcc git mercurial libc6-dev pkg-config libgmp-dev
|
|||||||
useradd tmuser -d /home/tmuser
|
useradd tmuser -d /home/tmuser
|
||||||
usermod -aG sudo tmuser
|
usermod -aG sudo tmuser
|
||||||
mkdir /home/tmuser
|
mkdir /home/tmuser
|
||||||
chown -R tmuser /home/tmuser
|
chown -R tmuser:tmuser /home/tmuser
|
||||||
|
su tmuser
|
||||||
|
@ -16,6 +16,7 @@ then
|
|||||||
echo 'export GOROOT=/home/tmuser/go' >> /home/tmuser/.bashrc
|
echo 'export GOROOT=/home/tmuser/go' >> /home/tmuser/.bashrc
|
||||||
echo 'export GOPATH=/home/tmuser/gocode' >> /home/tmuser/.bashrc
|
echo 'export GOPATH=/home/tmuser/gocode' >> /home/tmuser/.bashrc
|
||||||
echo 'export PATH=$PATH:$GOROOT/bin:$GOPATH/bin' >> /home/tmuser/.bashrc
|
echo 'export PATH=$PATH:$GOROOT/bin:$GOPATH/bin' >> /home/tmuser/.bashrc
|
||||||
|
source ~/.bashrc
|
||||||
else
|
else
|
||||||
echo "should not be root to run install_golang.sh"
|
echo "should not be root to run install_golang.sh"
|
||||||
fi
|
fi
|
||||||
|
23
README.md
23
README.md
@ -6,4 +6,25 @@
|
|||||||
|
|
||||||
Tendermint is blockchain consensus. No proof of work.
|
Tendermint is blockchain consensus. No proof of work.
|
||||||
|
|
||||||
Check out the [Developer Quick Start](https://github.com/tendermint/tendermint/wiki/Developer-Quick-Start)
|
### Install Tendermint
|
||||||
|
|
||||||
|
* See: https://github.com/tendermint/tendermint/tree/master/INSTALL
|
||||||
|
|
||||||
|
### Coding style
|
||||||
|
|
||||||
|
* Go
|
||||||
|
* Use gofmt. Consider vim-go or gosublime.
|
||||||
|
* Write godoc.
|
||||||
|
* Write tests.
|
||||||
|
* Tabs, not spaces
|
||||||
|
|
||||||
|
### First pull request
|
||||||
|
You can make your first pull request in an hour or so!
|
||||||
|
|
||||||
|
* Fix a bug: https://github.com/tendermint/tendermint/issues
|
||||||
|
* Write a unit test
|
||||||
|
* Pull requests that only add comments or documentation are still cool
|
||||||
|
|
||||||
|
## Welcome aboard!
|
||||||
|
|
||||||
|

|
||||||
|
Loading…
x
Reference in New Issue
Block a user