-EZSTEEM SUITE 1.0- : The EZ way to setup your STEEM Miner/Node in a Linux VM [Windows Compatible]

in #allinone8 years ago (edited)

----EZSTEEM 1.0-----



BACKGROUND


Continuing from my previous guides:
https://steemit.com/node/@omotherhen/omotherhen-s-one-click-script-for-easy-node-setup-on-a-linux-vm-support-the-backbone-of-your-community

https://steemit.com/mining/@omotherhen/omotherhen-s-1-click-miner-scripts-for-no-effort-steem-linux-mining

I've decided to glue together all the bits and pieces of my previous scripts into one unified project, EZSTEEM. As a quickly growing project for an interactive all-in-one script, I and @gikitiki will now be working on EZSTEEM in tandem. EZSTEEM's objective is to simplify the deployment and operation of STEEM miners and STEEM nodes for any user, leveling the playing field to leave no STEEMIAN behind. Ongoing development will continue under the name of EZSTEEM, namely a simplified cli_wallet for all to use will be @gikitiki and my goal.


NOTICE

(If you already have Ubuntu 16.04 installed, skip to CHAPTER 2!)

WHAT YOU'LL BE USING


VMware Workstation 12.1.1 Player for Windows 64-bit operating systems
https://my.vmware.com/en/web/vmware/free#desktop_end_user_computing/vmware_workstation_player/12_0

Ubuntu 16.04 Server 64 Bit
http://releases.ubuntu.com/16.04/ubuntu-16.04-server-amd64.iso

A Windows 64-Bit Computer


CHAPTER ONE: SETUP A VM TO RUN THE MINING SOFTWARE


  • Download and install VMWare Workstation Player
  • Download Ubuntu 16.04 Server 64 Bit
  • Open VMware Player
  • Press Ctrl-N
  • For Installer Disk Image File, browse to where you downloaded Ubuntu 16.04 and double click on that file.
  • Click Next
  • Fill out the resulting boxes, the Username and Password will be used to log into Ubuntu.
  • Click next twice
  • Select "Store virtual disk as single file"
  • Click next
  • Press Customize Hardware
  • Make sure you enter at least 2GB of ram for the VM
    ![]
  • Make sure you specify the amount of threads you want the VM to use. If you have a processor with hyperthreading, Ex (An i7), you will have twice as many threads than physical cores.
  • Click Close
  • Click Finish
  • VMwarePlayer will do its thing for setting up your VM enviroment..
  • Whenever it prompts you to install VMware-tools, click OK
  • If it prompts you to update keyboard interrupt values, click OK
  • Wait until you're greeted with a login prompt

CHAPTER TWO: RUN THE SCRIPTS AND WATCH THE MONEY FLOW


  • Login with your previously setup Username/Password
  • Brainlessly type (no copy paste!) in the commands below, you have better things to worry about!
  • When prompted for a password, enter in the same password you used to login at first!

sudo apt-get -y install git
cd /var
sudo git clone https://github.com/omotherhen/EZSTEEM/
cd EZSTEEM
sudo bash EZSTEEM.sh

OPTION 1) Do a full install for mining Steem

  • This option does a full install and setup of EZSTEEM Miner, an auto configured miner for those who have not mined before
  • When asked for setting a directory, if you do not know just press ENTER, a default directory will be made
  • After the install is finished, your STEEM Miner will launch automatically and begin mining STEEM for you!
  • If the screen goes black, hit BACKSPACE. It's just a screensaver for command line!
  • And now watch the fireworks until you're greeted with a prompt to enter in the number of mining threads.
  • Enter in how many STEEM accounts you want to make, the more mining power you have, the more accounts you'll want so that you do not waste time waiting in queue. If you do not know, 4 accounts is a good start.
  • Enter in the names you'd like for each account
  • That's it! The script will do the rest of the work for you. You're done setting up your first Linux miner in a VM!

OPTION 2) (FOR CLONED MINERS ONLY!!) Configure your steem miner for the cloned machine

  • Use this option when in CHAPTER 3

OPTION 3) Do a full install for running a Steem Node

  • Choose this option if you want to setup a Steem node in one click!
  • When asked for setting a directory, if you do not know just press ENTER, a default directory will be made
  • After installation, your Steem node will automatically run!

OPTION 4) Recompile your Steem miner or Steem Node with the latest version of Steem

  • Use this option if you have cloned a machine in CHAPTER 3 and the miner is not running properly.
  • Use this option if a new steem update rolls out, and you want to recompile your miner/node to the latest stable version

OPTION 5) Redownload a blockchain and bootstrap your Steem Miner or Steem Node

  • Use this option after option 4 if your miner/node does not sync properly with the blockchain

OPTION 6) Start mining or start your node

  • After a reboot/recompile/shutting down steem, use this option to start up your node/miner again

OPTION 7) Set EZSTEEM to automatically run when user logs in

  • Use this option if you want to run EZSTEEM on reboot, strongly recommended!

OPTION 0) Exit the script

  • Exits EZSTEEM

CHAPTER 3: DEPLOY YOUR IMAGE ACROSS MULTIPLE COMPUTERS


ON THE SOURCE COMPUTER

  • Back on windows, open up File Explorer
  • Enter this into the explorer bar and hit Enter C:\Users%USERNAME%\Documents\Virtual Machines
  • Copy the Ubuntu 64-bit folder to a USB device to transfer it on another computer
  • ON THE DESTINATION COMPUTER

    • Put the Ubuntu 64-bit folder that you copied earlier on the computer
    • Download and install VMware Player on the computer
    • Open VMware Player
    • Press CTRL+O
    • Navigate to the folder you copied the Ubuntu 64-bit folder to and double click on the resulting file
    • Right click on the following VM that pops up and click on settings
    • Set the memory and processors to the desired values for this computer just like before
    • Click OK
    • Start the VM by double clicking on the name of it
    • Enter in the following command
      cd /var/EZSTEEM && sudo bash EZSTEEM.sh
    • Choose option 2!
    • Enter in how many threads you set the VM to, and you're done!
    • Keep repeating Chapter 3 to however many computers you'd like
    • If the CPU in the cloned computer is much different, the miner may not work
    • In case, you will have to recompile the miner and possibly refresh the blockchain

    NOTE


    • Whenever you power down a VM, shutdown the mining software within it first by pressing CTRL-C and waiting for it to finish
    • Then you can click 'X' on the VM window and shutdown
    • To startup EZSTEEM again, enter in this command : cd /var/EZSTEEM && sudo bash EZSTEEM.sh
    • Then you're off the races once again!

    AND FINALLY.....


    Please leave feedback in the comments, I'll be happy to update my scripts/guide for more functionality based on your feedback!
    If this guide helped you, please vote for me as a witness and follow me on Steemit! Have any problems/questions? Ask in the comment section or in the Steem Slack!

    #steem #linux #ezsteem #vm #steemit #guide #miner #allinone #node #script #opensource #github #ui #cli #easy #steemithelp

Sort:  

Thanks for this! It's very easy to configure your mining accounts since the code does it for you.

I'm trying to sync up the blockchain and it was going well until this:

g Blockchain --- Got block: #3430000 time: 2016-07-22T23:46:27
173992ms th_a application.cpp:419 handle_block ] Syncing Blockchain --- Got block: #3440000 time: 2016-07-23T08:10:48
188611ms th_a application.cpp:419 handle_block ] Syncing Blockchain --- Got block: #3450000 time: 2016-07-23T16:35:48
213065ms th_a application.cpp:419 handle_block ] Syncing Blockchain --- Got block: #3460000 time: 2016-07-24T01:05:09
461285ms p2p tcp_socket.cpp:162 bind ] Exception binding outgoing connection to desired local endpoint: bind: Bad file descriptor

Any idea what that is all about? Thanks for looking!

EDIT:

I shut down and then restarted my VM. Chose 6, it checked the blockchain, then It BEGAN TO MINE! Yayyyy! Thanks! Only about 5400 hash per second, so we'll see if I ever get anything from this, but at least it is Working!

EDIT 2:

I set up ezsteem on a Ubantu VM on Microsoft Azure and got it to mine, thanks! ​

Question​ -- I have some credits on Azure, that's one reason I set this up there instead of my own machine. I don't want my own machine running 24/7. But when I closed putty on my machine, which is the ssh way I was talking to the Azure VM, I noticed on my Azure dashboard that the CPU usage went to 0 for the VM that is doing the mining. SO, is there a way to have the VM keep mining without me having to have my machine running putty 24/7?

Maybe the nohup command? "Nohup enables a program to continue running after the user that started it logs out." If @omotherhen could add another choice to the menu that allowed the user to log out, that would really help! I also see there are ways to orphan or disown a job, and that might be the way to go too.

Nohup mentioned here: http://www.minecraftforum.net/forums/support/server-support/server-administration/1897017-logging-out-of-putty-shuts-down-server
Orphan or disown a job mentioned here: http://stackoverflow.com/questions/6012557/does-quitting-putty-close-the-running-command

@kenny-crane
If you used the default installation path of /var/EZSTEEM, try this command:

screen -dmSL myTest /var/EZSTEEM/steem/programs/steemd/steemd

the -dmSL means : detach with a new screen, allow a session name (myTest in this case, you can use whatever) and log stderr and stdout at ~/screenlog.0

You should now be able to exit your PuTTY session leaving it running in the background.

When you log back in again, use this command to bring it to the foreground.

screen -x myTest

You can also check the log using your favorite text editor or just watch it with tail

tail -f ~screenlog.0

Dude, you fucking rock!

Thanks venuspcs!

Hi mate, thanks very much for doing the post its been a massive help!

is there any way i can enter the account details without creating a new account?

if there is a way too do that it would be great, thanks again mate

Hi @mrhankeh,
If you want to use your own account/key manually you can view/edit the key by doing this command:
cd /var/EZSTEEM/steem/programs/steemd/witness_node_data_dir && sudo nano config.ini
In the file, search for the tag witness. Set your witness and miner to the same account and enter the private key with the miner. eg

# name of witness controlled by this node (e.g. initwitness )
# witness =
witness = "YourAccount"

# name of miner and its private key (e.g. ["account","WIF PRIVATE KEY"] )
# miner =
miner = ["YourAccount","5K847LgAEW6qsm6BwhorGRgNotARealPrvtKeyownLjTwQLzzKQ"]

thank you i will give it a try.

Your guides are so EZ to follow! They're great :3

It's really easy and helpful. Thanks a lot.

Can you explain how config.ini works ?
We have:

witness = accountName (Which account ?)
miner = [accountName, privateKey] (Which private key ?)

Thanks

witness = artakan
miner = ["artakan ",5WIFkey"] <--- look in your wallet/permissions
if you follow the tools of OP this will be done for you

dont forget to remove the # from each of those lines as that # comments all lines out.

very good

This is really nice. Im gonna share my tutorials too next week. Follow me for more updates.

Great post, in option 1 where do I input my key ?

Right into the terminal :) Press 1 then enter

hehe no dude , my wif key ?

Your WIF key is automatically generated for you :) Generally it's a good idea to have a different key for your miners. But if you want to use your own account/key manually you can view/edit the key by doing this command:
cd /var/EZSTEEM/steem/programs/steemd/witness_node_data_dir && sudo nano config.ini

Where is the key within the config file? Trying to change my account owner key.

nice upgrade mate!

Coin Marketplace

STEEM 0.28
TRX 0.11
JST 0.034
BTC 66077.75
ETH 3167.77
USDT 1.00
SBD 4.01