VnutZ Domain
Copyright © 1996 - 2019 [Matthew Vea] - All Rights Reserved

Featured Article

Configuring Ethminer in Ubuntu 18 Bionic Beaver

[index] [82 page views]

One of my Ubuntu machines recently stopped functioning properly so I opted to perform a do-release-upgrade to bring her up to the Bionic Beaver LTS release. While that fixed a number of issues, it introduced a new one - my ethminer ceased working which impacted my Ethereum production. The fixes weren't hard, but the documentation on the process was certainly shoddy.

She happens to be running a NVIDIA GeForce GTX 1070 with 8GB of RAM and the release upgrade forced a reinstallation of the graphics drivers. Those can be found from the nVidia website where at the time of this post, the current version is 418.56. Simply save the file, make it executable, and run it as sudo to complete the installation. Reboot as necessary.

chmod +x
sudo ./

You'll need to install the CUDA toolkit for the nVidia graphics cards. That's easily done from the apt repository:

sudo apt-get install nvidia-cuda-toolkit

The PPA repositories for ethereum used to have the ethminer binaries but that apparently ceased to be included under Bionic Beaver. You'll have to either grab a binary from the GitHub page or simply compile the tool yourself. I ended up opting for the latter. The following commands will:

  • clone the repository to a local "ethminer" folder
  • change into that local folder
  • grab any necessary submodules
  • create a "build" folder
  • change to that folder
  • create compilation instructions for using CUDA, skipping OpenCL, and accessing a Stratum/GetWork server
  • build and install the binaries

git clone ethminer
cd ethminer
git submodule update --init --recursive
mkdir build
cd build
sudo make install

From here, the system balked at me about missing various libraries such as JSON and C++ Boost libraries such as cannot open shared object file. Ultimately, these libraries were mitigated with the following apt repository installations:

sudo apt install libjsoncpp1 libjsonrpccpp*
sudo apt install libboost-program-options-dev

With these shared object libraries installed, ethminer was happy to run again but no longer accepted the previous command-line arguments. To mine with NanoPool required the following:

screen -dmS ethminer ethminer \
  -P getwork:// \
  -P exit

I use screen because it makes accessing a headless server to check on the miner's status that much easier. It's also extremely easy to set up a CoinBase account with an Ethereum address for receiving the 0.2ETH pool payments. With all those steps complete, the water-cooled nVidia card was quietly cranking away again.

More site content that might interest you:

There are athletes ... and then there are ATHLETES.

Try your hand at fate and use the site's continuously updating statistical analysis of the MegaMillions and PowerBall lotteries to choose "smarter" number. Remember, you don't have to win the jackpot to win money from the lottery!

Tired of social media sites mining all your data? Try a private, auto-deleting message bulletin board.