地球币中国社区

地球币中国社区

查看: 1623|回复: 0

LINUX下面搭建地球币钱包教程

[复制链接]
发表于 2019-1-28 15:36:09 | 显示全部楼层 |阅读模式
LINUX下面搭建地球币钱包教程。A guide to build and run EarthCoin (EAC) wallet on Ubuntu server part A: build and run the legacy EarthCoin wallet
  • Install the operation system Ubuntu server version "16.04.5" on your machine. If you use another version of Ubuntu, there probably will rise an issue with openssl libraries compatibility. Get the source for Ubuntu installation from http://releases.ubuntu.com/16.04/
    For example, "ubuntu-16.04.5-server-amd64".
  • After setup your Ubuntu server do an update of packages list and the system upgrade by a sequence of commands:
sudo apt-get updatesudo apt-get upgrade

3.Install dependencies for wallet compilation.

apt-get install build-essential libssl-dev libboost-all-dev libdb-dev libdb++-dev libminiupnpc-dev

4.Get the source code, do a small patch, build the wallet and copy the build wallet binary to a system path.

git clone https://github.com/Sandokaaan/earthcoin.git
cd earthcoin/src
sed -i 's/get<const CScriptID&>/get<CScriptID>/g' rpcrawtransaction.cpp make -f makefile.unix
strip earthcoind
sudo cp earthcoind /usr/bin/earthcoind

5. Create the configuration file by a sequence of commands:
cd ~/ ; mkdir .earthcoin

PIN=$( head /dev/urandom | tr -dc 0-9 | head -c 8 ; echo '' ); echo rpcuser= earthcoinrpc$PIN >
PW=$( head /dev/urandom | tr -dc A-Za-z0-9 | head -c 40 ; echo '' ); echo rpcpassword=$PW >>
~/.earthcoin/earthcoin.conf
printf "rpcallowip=127.0.0.1 \nrpcport=15678 \nport=35677 \ndaemon=1 \nserver=1 \nnoirc=1 \ngen=0 \ntestnet=0 \nlisten=1 \nmaxconnections=100 \n" >> ~/.earthcoin/earthcoin.conf


You can inspect the created config file using the command:
cat ~/.earthcoin/earthcoin.confYou can also add your favourited nodes, to which you want your wallet preferably be connected, by adding lines into the "earthcoin.conf" file:
addnode=<IP_ADDRESS_OF_SOME_NODE>
6. Now you can either run the wallet manually by the command:
earthcoind
Or, if you wish the wallet start automatically after the server boot you can create a start script. Enter the command
crontab -e
and, at the end of the file, add a line
@reboot earthcoind -daemonThen you can reboot your server by the command
sudo reboot
After the reboot you can check the wallet state by the command
earthcoind getinfo









LINUX下面搭建地球币钱包.pdf

461.59 KB, 下载次数: 1

LINUX下面搭建地球币钱包

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Powered by Discuz! X3.4

© 2015-2016 Comsenz Inc.

快速回复 返回顶部 返回列表