DECENT MINING SETUP & RESSOURCES SHORTCUTsteemCreated with Sketch.

in decent •  2 years ago

To all DECENT enthusiasts,

As a pioneer with Bitcoin the DECENT foundation was among my top picks for the coming years. On ICO release day I took all my BTC to participate in this great adventure. In the Crypto Currency World there are a few projects where I kept my eyes on. Another project from my home country I strongly encourage is Ethereum. And don't forget about the DAO. I have been an early CPU miner with Bitcoin and I used GPU on scrypt to contribute in Litecoin. Before Crypto Currency I used to compute for sience projects like Clean Water and Cancer Research and I hope the free computing ressources can be used for sience once again after all the Bitcoins have been mined.

If you found this page you already know about the importance of the DECENT system for our "free" market. So I encourage you to become a witness or seeder on DECENT.

If you are new to all of this and still want to play around you may hit me up and I'll point you to easier things for a start.


DECENT SUPPORT

https://decent.ladesk.com/

DECENT WIKI

https://wiki.decent.ch/doku.php?id=decent:howto#build_decent_from_source

DECENT GITHUB

https://github.com/DECENTfoundation/DECENT-Network

BLOCK EXPLORER

https://explorer.decent.ch/

DECENT DB

https://decent-db.com/

GRAPHENE CLI Wallet Cookbook

https://github.com/bitshares/bitshares-core/wiki/CLI-Wallet-Cookbook

RESSOURCES

https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04
http://www.hamvocke.com/blog/a-quick-and-easy-guide-to-tmux/
https://digitizor.com/create-swap-file-ubuntu-linux/


DECENT Mining/Validating/Witnessing Guide

I - SERVER SETUP

A dedicated server with Linux Ubuntu 16.04 LTS is most recommend for 24/7 operation.
I suggest securing the system with a firewall, close the root and create a new user.

1. Create a new user

adduser bob

2. Elevate him

usermod -aG sudo bob

3. Generate a new keyset

ssh-keygen

4- Bind the new keys

ssh-copy-id bob@your_server_ip

Copy the keys to your local drive. You'll need them to connect.

5. Change the config file

sudo nano /etc/ssh/sshd_config

Change Line PasswordAuthentication no

6. Finish with

sudo systemctl reload sshd

7. Login with your ssh key, user and password

ssh bob@your_server_ip

II - PREREQUISITES

1. Grab your tools

sudo apt-get update

sudo apt-get install build-essential autotools-dev automake autoconf libtool make cmake checkinstall realpath gcc g++ flex bison doxygen gettext git qt5-default libqt5svg5-dev libreadline-dev libcrypto++-dev libgmp-dev libdb-dev libdb++-dev libssl-dev libncurses5-dev libboost-all-dev libcurl4-openssl-dev python-dev libicu-dev libbz2-dev

2. Download and build Boost 1.60.0

mkdir -p ~/dev/DECENTfoundation/DECENT-Network-third-party
cd ~/dev/DECENTfoundation/DECENT-Network-third-party
rm -rf boost_1_60_0* boost-1.60.0*
wget https://sourceforge.net/projects/boost/files/boost/1.60.0/boost_1_60_0.tar.gz
tar xvf boost_1_60_0.tar.gz
mkdir boost-1.60.0_prefix
cd boost_1_60_0
export BOOST_ROOT=$(realpath ../boost-1.60.0_prefix)
./bootstrap.sh --prefix=$BOOST_ROOT
./b2 install
cd ..
rm -rf boost_1_60_0 boost_1_60_0.tar.gz

III - INSTALLATION

1. Clone the repo

mkdir -p ~/dev/DECENTfoundation
cd ~/dev/DECENTfoundation
#via ssh $
git clone git@github.com:DECENTfoundation/DECENT-Network.git
#via url $
git clone https://github.com/DECENTfoundation/DECENT-Network.git
cd DECENT-Network
git submodule update --init --recursive

2. Build and install Decent

mkdir -p ~/dev/DECENTfoundation/DECENT-Network-build
cd ~/dev/DECENTfoundation/DECENT-Network-build
cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug ~/dev/DECENTfoundation/DECENT-Network
cmake --build . --target all -- -j -l 3.0
cmake --build . --target install

IV - USE DECENT

You don't want your server to shut down the process when you lose connection or quit.

I use tmux. Though nohup is sufficient for infrequent access. Use it when you fire up decentd after miner setup.
nohup ./decentd &
disown

1. RUN decentd - On first run decentd will create .decent in the home directory.

~/dev/DECENTfoundation/DECENT-Network-build/artifacts/prefix/bin/decentd

Always close it with Ctrl+C

2. Get HELP

cd ~/dev/DECENTfoundation/DECENT-Network-build/artifacts/prefix/bin/
./decentd -h

3. RUN cli_wallet

~/dev/DECENTfoundation/DECENT-Network-build/artifacts/prefix/bin/cli_wallet

Always close it with Ctrl+D

4. USE cli_wallet

set_password xy
unlock xy

5. IMPORT your account

import_key decentgo_username your_private_key

6. CREATE 3 sets of keys for your new account

suggest_brain_key

write them down, don't use the ones below. ;)

1. new owner key

{
"brain_priv_key": "UNBUSH ROAR CHKALIK STRUE PLATTEN DEMOB COLETIT DECAYER SPERONE SPASMED ANATASE LAGGARD BESPETE AXOID SERAL CHEKI",
"wif_priv_key": "5J4brX9bydADigEtsXZhCZ1YLVXkq8frp4xcKAREQ3Gh3P2DE7e",
"pub_key": "DCT5VNJni7HypYi159qiwazZ1WZUt4p2v7NLQmFCJPDvjBpW2oG8a"
}

2. new active key

{
"brain_priv_key": "FUSION BLART JAIL FESTAL LAXNESS ROSTEL TITI VANADYL PUG BATATA KAIK ROSETY STUCCO TETE BEMUDDY WUDGE",
"wif_priv_key": "5HvsjRsokHSeeUdRkM88JgLzYJ6vnc2e35CzyZNRnmh1fvm91Jz",
"pub_key": "DCT7G7KeUnMPVKXN2y8M7BnyosLRE3LtSnNp7kbxtYd9xHiBoX6wd"
}

3. new public signing key

{
"brain_priv_key": "DECESS LABBA PLAN DEHUSK FISTY MOSSER SPURTER SCORIAE INDART UNDYE MASTER STEIGH SAFROLE FLURR THAPSIA JOB",
"wif_priv_key": "5JgMsecySgt2BQsmmEE9QnwAGuudC9fGeZJhreyPatcu2TVY9bs",
"pub_key": "DCT6D7TLeVJmPQWR73XHvEhTVHzTDoG6oTSUyvfGa58nuc5wL96UH"
}

7. CREATE your new account, the public_key starts with DCT

register_account new_username public_key1 public_key2 decentgo_username true

8. SEND some DCT to your new account

transfer decentgo_username target_username 3.00 DCT "memo" true

9. IMPORT the new account

import_key new_username your_private_key2

10. Close the Wallet and edit the config.ini inside /root/.decent/data/decentd/

private-key = ["DCTX","5Y"]

11. Launch again and create your miner

create_miner username "proposal URL" true

12. Change your signing key to 3rd keypair from suggest_brain_key

update_miner username "proposal URL" public_key3 true

13. Edit the config.ini again inside /root/.decent/data/decentd/

enable-stale-production = true
miner-id = "1.4.X"

Your Server is now ready to run a DECENT witness.
Be aware that you should not close your daemon at any time.

V - USEFUL COMMANDS

get_brain_key_info
dump_private_keys
get_account texxi
get_miner texxi
list_my_accounts
list_account_balances username
set_desired_miner_count username 99

Now get some support for your miner and join the community!

https://www.reddit.com/r/Decentplatform/
https://decent-project.slack.com/

You can vote for me and I will gladly return the favor. Please make sure your server runs stable and you're not missing any blocks. Good Luck!

vote_for_miner username texxi true true

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @texxi! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You made your First Vote
You published your First Post
You got a First Vote

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Congratulations @texxi! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You made your First Comment

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Congratulations @texxi! You have received a personal award!

1 Year on Steemit
Click on the badge to view your Board of Honor.

Do not miss the last post from @steemitboard:
SteemitBoard World Cup Contest - Semi Finals - Day 1


Participate in the SteemitBoard World Cup Contest!
Collect World Cup badges and win free SBD
Support the Gold Sponsors of the contest: @good-karma and @lukestokes


Do you like SteemitBoard's project? Then Vote for its witness and get one more award!