Tested with
- Ubuntu 16.04
- macOS Sierra
- Geth 1.7
-
Download and install Bootnode tool
-
On Ubuntu 16.04
apt-get install -y --no-install-recommends software-properties-common add-apt-repository -y ppa:ethereum/ethereum apt-get update apt-get install -y --no-install-recommends bootnode
-
On macOS Sierra (via Homebrew)
brew update brew upgrade brew tap ethereum/ethereum
Update ethereum.rb file at
/usr/local/Homebrew/Library/Taps/ethereum/homebrew-ethereum
Add linebin.install 'build/bin/bootnode'
indef install ENV["GOROOT"] = "#{HOMEBREW_PREFIX}/opt/go/libexec" [...] end
Then
brew install ethereum
-
-
Create binaries folder
mkdir bin
- Link bootnode to binaries folder
ln -s /usr/bin/bootnode ./bin
- Generate bootnode private key (bootnode.priv)
./bin/bootnode -v5 -verbosity 9 -genkey "bootnode.priv"
- Create bootnode public key file (bootnode.pub)
./bin/bootnode -v5 -nodekey bootnode.priv -writeaddress > bootnode.pub
./start.sh