Thursday, 8 February 2018

How to Mine Ethereum on a Windows PC Follow 16 Easy Steps



Ethereum is very hard to get mining on windows - in spite of the fact that with a touch of assistance and following the instructional exercise beneath you can get it up and running and begin your own ethereum mining venture in 15 mins. We will demonstrate to you best practices to begin mining Ethereum on your GPU and CPU with Windows 64 bit in this guide. You should download two projects and need a conventional GPU with more than 1GB of memory to get the most value for your money as far as mining as Ethereum takes a shot at a memory hard hashing strategy which GPU's are best at.

You can likewise mine Ethereum Classic (ETC) in the event that you begin your geth in Step 7 with the param - restrict dao-fork. Read this in the event that you need to comprehend what Ethereum Classic is.

Running a CPU you may have the capacity to produce 0.15 Mega Hashes while with a better than average GPU with enough memory you could be doing upwards 25 Mega Hashes (you can pick a GPU to mine ether here and utilize our guide on the most proficient method to pick a GPU to mine ether). So regarding all out productivity, considering electrical expenses, a GPU is unquestionably justified, despite all the trouble regardless of whether it costs you $200.

You can likewise have a go at purchasing a cloud mining contract with Hashflare or Genesis Mining.

Part 1 - Installing GETH, Syncing the Blockchain & creating your own address!

Step 1: The first thing you need to do is go to this link download Geth. Geth is the program that communicates with the Ethereum Network and acts as the a relay between your computer, its hardware and the rest of the ethereum network computers so if a block is mined by another computer your Geth program will pick it up and then pass on the new information onto your GPU or CPU for mining.



Step 2: You need to unzip the GETH file and move it to a location on your hard drive. In this case we'll move it to the hard drive, usually (C:) - which will make the next step easier. All you need to do is copy the file you have downloaded and unzipped and move it to the hard drive folder.



Step 3:Now you need to run the program you just downloaded. To do this you need to run Command Prompt. You can do this by searching in the search function in Windows for "CMD" and then clicking on it when it shows up.



Step 4: Command Prompt is now open - and can look terrifying to people who aren't familiar with it. The Command Prompt box usually has C:\Users\Username> showing in it - where Username is your username - so if you log into your computer with the username cryptocompare then the command prompt box will open with C:\Users\cryptocompare>. You need to tell the computer to look in another place Type cd / into the newly opened command prompt. You should now see "C:\>", You have just used the cd command or "change directory" command to make command prompt look at the C:/ drive.


Step 5: You need to tell your Geth program to create a new account. As you have installed it in your user directory in Step 2 then it is just a simple case of typing in "geth account new" and then pressing return/enter. This should look like this "C:\>geth account new". 


Step 6: After hitting the enter button in Step 5, you will be asked to enter a password - N.B. you will not be able to see what you are typing in so type it carefully. This is the password that locks your account and keeps your Private key safe - if you lose this password you will lose all your Ether attached to the wallet held by that Private key. Once you have entered your password and confirmed it by entering it a second time you will have created a new account! Congratulations your about a third of the way there.



Step 7: You need to tell your Geth Program to start communicating with the rest of the Ethereum network. You do this by typing in "geth --rpc" - this should look like "C:\>geth --rpc" (on the latest version you should try: geth --rpc --fast --cache=1024) Press enter and the screen should start downloading the blockchain for Ethereum - at this point you are synchronising with the rest of the Ethereum network. This can take a while depending on your internet speed and the current size of the blockchain, anywhere between 20 min and multiple hours. Sometimes your firewall can block this process - just click allow access. Keep this cmd open, you will need this to run in the background in order to be able to mine. Also make sure you start mining only after your blockchain is synchronised, not before. Due to The DAO hard fork you will have to specify if you want to mine on the hard fork chain or on the chain without the hard fork. To mine Ethereum (ETH) use geth --rpc --support-dao-fork in order to mine Ethereum Classic (ETC) use: geth --rpc --oppose-dao-fork



Part 2 - Installing the Mining Software and Starting to Mine

Step 8: Now you need to download Ethminer which makes your GPU or CPU run the hashing algorithm that is integral to securing the Ethereum network through proof of work. You can download this here and be sure to scroll down to the bottom of the page to get the right version - the latest and most up to date one is right at the end.


Step 9: Click on the download and click install. Your firewall can cause issues but just click allow if it does so - the same is true of windows that doesn't recognise or approve the software - tell windows its ok when asked. Click through the installation process until Ethminer is installed.


Step 10: You need to open up another command prompt as in step 4 - so your going to get two scary looking boxes. Simply click right click on your already open command prompt in the taskbar at the bottom of the page and click on command prompt in the menu that appears. A new command prompt should open with "C:\users\username>". This is the wrong place to look for etherminer so you need to tell it the right place to find it.


Step 11: Type "cd /" into the newly opened command prompt which should look like this "C:\users\username>cd /" and then press enter. You should now see "C:\>", You have just used the "cd" command or "change directory" command to make command prompt look at the C:/ drive - not your user file.



Step 12: Type in "cd prog" and then press the tab button. This should look like this C:\>cd prog and then press "tab" which will automatically complete the phrase for the closest fit found in the C: drive just like autotext does on your Iphone. After pressing "tab", you should see C:/> cd "Program Files" and press enter which should give you a new line saying "C:\Program Files>".

Step 13: Type in cd cpp and then press tab and then enter. This is taking you into the newly installed Ethereum Mining software folder. And this should look like this after pressing tab C:\Program Files>cd cpp-ethereum and pressing enter gives you C:\Program Files\cpp-ethereum>.

Step 14 GPU mining (only do this after your blockchain is synchronised): Type in ethminer -G and press enter and then you should start mining with your GPU after building a DAG file which can take around ten minutes. There can be problems at this point. For example the program might say that you have insufficient memory on your Graphics card to mine the with Ethereum's Ethash algorithm. If this is the case you can still mine with your CPU or go out and buy a new graphics card! You can see our graphics cards and compare their return on investments here and check out our guide on how to pick an ethereum mining graphics card here. We've also added a guide on how to build your ethereum mining rig.


If you get an error message press Ctrl and c together to cancel the process. Then you can either retry it - or alternatively move onto step 16 and mine with your CPU rather than your GPU.



Step 15 CPU mining: Type in ethminer and press "enter" and you will start mining with your CPU. Again you will need to create a DAG file the first time you do this which can take some time. But after that is complete your Geth program downloaded in step 1 should start talking to your ethminer program and you should start mining!

Step 16 Hashing Power benchmark: If you want to get an estimation of your hashing power you can run ethminer -M (for CPU mining) or ethminer -G -M (for GPU mining). The command will run and you should get a result similar to the image bellow.


Step 15 and 16 possible error: If you are not patient is "JSON-RPC problem. Probably couldn't connect. Retrying in 1..." As you can see in the screenshot bellow this happens when you don't have the blockchain synced yet.