SIMPLICITY COIN UBUNTU 16.04 VPS MASTERNODE SETUPsteemCreated with Sketch.

in #kr7 years ago

========================================================================
SIMPLICITY COIN UBUNTU 16.04 VPS MASTERNODE SETUP
========================================================================

BUY A VPS 고정ip를 위해 가상서버를 구입합니다.

https://www.vultr.com/?ref=7307169

FOR THE VPS, JUST PURCHASE A $5 VPS WITH UBUNTU 16.04
5달러정도면 충분합니다.

NOW START THE SETUP
셋업 시작
=========================================================================
PASTE THESE LINES 1 BY ONE
한줄씩 붙여 넣습니다.

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install wget nano unrar unzip libboost-all-dev libevent-dev software-properties-common -y
sudo apt install -y protobuf-compiler libminiupnpc-dev libevent-dev libtool libssl-dev libboost-all-dev libprotobuf-dev libqrencode-dev autoconf build-essential git autotools-dev automake pkg-config bsdmainutils software-properties-common python3
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt update
sudo apt install libdb4.8-dev libdb4.8++-dev

OR 1 SHOT 또는 한방에 실행하기

sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install wget nano unrar unzip libboost-all-dev libevent-dev software-properties-common -y && sudo apt install -y protobuf-compiler libminiupnpc-dev libevent-dev libtool libssl-dev libboost-all-dev libprotobuf-dev libqrencode-dev autoconf build-essential git autotools-dev automake pkg-config bsdmainutils software-properties-common python3 && sudo add-apt-repository ppa:bitcoin/bitcoin && sudo apt update && sudo apt install libdb4.8-dev libdb4.8++-dev

#Configure swap to avoid running out of memory:
메모리 부족 시 에러발생하므로 가상메모리 설정합니다.

sudo fallocate -l 1500M /mnt/1500MB.swap
sudo dd if=/dev/zero of=/mnt/1500MB.swap bs=1024 count=1572864
sudo mkswap /mnt/1500MB.swap
sudo swapon /mnt/1500MB.swap
sudo chmod 600 /mnt/1500MB.swap
sudo echo '/mnt/1500MB.swap none swap sw 0 0' >> /etc/fstab

OR 1 SHOT 또는 한방에 실행하기

sudo fallocate -l 1500M /mnt/1500MB.swap && sudo dd if=/dev/zero of=/mnt/1500MB.swap bs=1024 count=1572864 && sudo mkswap /mnt/1500MB.swap && sudo swapon /mnt/1500MB.swap && sudo chmod 600 /mnt/1500MB.swap && sudo echo '/mnt/1500MB.swap none swap sw 0 0' >> /etc/fstab

#build the simplicityd wallet program
지갑 프로그램을 실행합니다.

git clone https://github.com/SimplicityDev2018/Simplicity && cd Simplicity/src/secp256k1/ && chmod +x autogen.sh && ./autogen.sh && ./configure && make && sudo make install && cd ../leveldb/ && chmod +x build_detect_platform && sudo ./build_detect_platform build_config.mk . && cd .. && sudo make -f makefile.unix

=============================================================
NOW IT WILL TAKE FEW MINUTES TO COMPLETE SETUP**
AFTER SETUP COMPLETE PASTE THE COMMANDS GIVEN BELOW**
시간 오래 걸립니다. 도중에 Y도 눌러주고 엔터도 치라고 나옵니다.
다 되면 아래 한줄 복사해서 붙여넣기 하고 엔터 칩니다.
=============================================================

LD_LIBRARY_PATH=/usr/local/lib && export LD_LIBRARY_PATH

데몬 실행합니다.
./simplicityd -daemon

============================================================
그러면 아래와 같이 메세지 나옵니다. 다시 그냥 엔터치고 다음 명령어 넣습니다.
IT WILL SHOW AN ERROR LIKE THIS---
Error: To use the "-daemon" option, you must set a rpcpassword in the configuration file:
/root/.simplicity/simplicity.conf
It is recommended you use the following random password:
rpcuser=YOU WILL GET YOURS IN THIS ERROR ON YOUR VPS
rpcpassword=YOU WILL GET YOURS IN THIS ERROR ON YOUR VPS
(you do not need to remember this password)
The username and password MUST NOT be the same.
============================================================

CREATE THE CONFIG FILE

설정파일 만들기입니다.

nano ~/.simplicity/simplicity.conf

=============================================================
PASTE YOUR RPC DETAILS HERE 여기다 개인별 설정을 넣습니다.
=============================================================

rpcallowip=127.0.0.1
rpcuser=<PASTE RPCUSER 아무거나-윈도우 설정파일과 같게>
rpcpassword=<PASTE RPCPASSWORD 아무거나-윈도우 설정파일과 같게>
rpcport=11958
port=<PORT, 보통 9999>
server=1
daemon=1
listen=1
staking=1
maxconnections=32
masternode=1
masternodeaddr=<IP고정 ip입니다. >:<PORT, 보통 9999>
masternodeprivkey=<YOUR PRIVATE KEY, 윈도우 지갑 콘솔에서 받은 키>

============================================================
NOW PRESS CTRL+O AND PRESS ENTER THEN PRESS CTRL+X

OR CTRL+X THEN Y AND ENTER

RUN YOUR SERVER 서버를 실행합니다

./simplicityd -daemon

======================================================================================
CHEERS !! YOU SERVER IS SETUP AND RUNNING NOW. IT WILL SHOW YOU "server starting"

NOW CONFIGURE YOU WINDOWS WALLET AS THE GUIDE BEFORE
윈도우 지갑 설정하는 방법은 아래와 같습니다.

https://docs.google.com/document/d/1ZZAdLSmJom03bJ_VcyNzxGj_Y7wuaLCtEjJK_gNO_Os/edit?usp=sharing

======================================================================================

IF YOU LIKE IT GIVE ME SOME COFFEE, MY SPL ADDRESS IS:
8VPqNZuCuQfGbHJ4PzsSVjuU29FwNy6mar

======================================================================================