Installing ethminer on an AWS Linux instance

in ethminer •  7 years ago  (edited)

ethminer has worked fantastically for me so far (though, I've mostly used it with NVIDIA GPUs - far from it's ideal hardware configuration). Unlike the other miners that I've used, it automatically makes use of all available GPUs, without having to launch multiple instances of the program, which I think is quite brilliant.

So, here's how you go about installing it on your AWS Linux instance (or for that matter, on any Linux installation):

  1. SSH into your AWS Linux instance
    • or open a terminal in your Linux installation if you're installing this on your local machine
  2. Open the ethminer releases page in your browser: https://github.com/ethereum-mining/ethminer/releases
  3. Scroll down the page to find a stable version (a release that doesn't have a .dev string in it)
    • Currently, that happens to be ethminer 0.11.0
  4. Right click on the Linux release link and click Copy Link Address (if you're using Chrome, or click on the equivalent action for your browser)
  5. Switch to your SSH session (or terminal as appropriate), and download this file using wget
    • Type wget in your SSH/terminal prompt and paste the link you just copied
    • For the example above, it should look like:
      wget https://github.com/ethereum-mining/ethminer/releases/download/v0.11.0/ethminer-0.11.0-Linux.tar.gz
    • For reference, the command is: wget <url-to-download>
  6. Extract the archive that'e been downloaded using tar
    • For the example above (0.11.0 release), the command would be:
      tar -zxf ethminer-0.11.0-Linux.tar.gz
    • For reference, the command is: tar -zxf <path-to-tar.gz-file>
  7. Copy the ethminer binary to your /usr/local/bin directory (or any directory that's in your $PATH)
    • Type this into your SSH/terminal prompt ($):
      sudo cp bin/ethminer /usr/local/bin
  8. Delete the extracted directory (Just for cleanup. You can skip this step if you'd like to leave the extacted file around, though there's no good reason to retain it)
    • rm -rf bin
  9. Now you can run ethminer from any directory
  10. For example, here's how you run it to mine with a typical pool:
    • ethminer -G -S <statum-proxy-host:port> -O <pool-user>.<worker-name>:<worker-password>
    • Note that the -G parameter makes ethminer mine using available GPUs (actually, they've removed CPU mining support quite some time ago, so -G has to be specified)
  11. Run ethminer --help to get a (long) list of it's various parameters

Tips:

  • Make sure you run ethminer in a screen (or tmux, or something similar) session. If you don't, your ethminer process will be killed some time after you disconnect from your SSH session.
  • Before your first real run, it might be a good idea to run ethminer -G -M (benchmark mode) to make sure it can actually recognize and can make use of your GPUs, and to get a rough idea of the typical hash rate you can expect from your configuration.
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:  

Most importantly: is it profitable?

Bottomline, nope. It's definitely not profitable to mine on AWS. :D (except maybe some of the low difficulty CPU mineable altcoins)
But if you have a mining rig running Linux (and ideally, AMD GPUs), then you can use these steps to get ethminer runnning on it (though, I know it's very trivial for anyone even semi-familiar with Linux).

I'm writing another article describing my experiments with mining on AWS instances. Wrote this so that I could keep that article short and to the point.

Congratulations @codemangler! 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 - The results, the winners and the prizes

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

Congratulations @codemangler! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!