How do we start mining Ether on a Debian / Ubuntu / GNU+Linux based computer?
Are there PPAs or special repositories?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communityHow do we start mining Ether on a Debian / Ubuntu / GNU+Linux based computer?
Are there PPAs or special repositories?
I wrote how to do GPU mining for Ethereum with Debian/Ubuntu here: https://www.meebey.net/posts/ethereum_gpu_mining_on_linux_howto/
TL;DR
Install/use Debian 8 or Ubuntu 16.0.4 then execute:
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ethereum/ethereum
sudo sed 's/jessie/vivid/' -i /etc/apt/sources.list.d/ethereum-ethereum-*.list
sudo apt-get update
sudo apt-get install ethereum ethminer
geth account new
Copy long character sequence within {}, that is your <YOUR_WALLET_ADDRESS>
. If you lose the passphrase, you lose your coins!
sudo apt-get install linux-headers-amd64 build-essential
chmod +x NVIDIA-Linux-x86_64-367.35.run
sudo NVIDIA-Linux-x86_64-367.35.run
ethminer -G -F http://yolo.ethclassic.faith:9999/0x<YOUR_WALLET_ADDRESS> --farm-recheck 200
echo done
sudo sed 's/jessie/vivid/' -i /etc/apt/sources.list.d/ethereum-ethereum-*.list
doesn't work. Produces: sed: -e expression #1, char 14 unterminated "s" command
. Fails with /s/...
also.
Quickstart
The setup that most people use is a combination of two PPAs, the Go Ethereum (geth) client for managing the work-fetching and accounts, and the C++ Ethminer.
All you need to do once both are installed is to run geth --rpc
and then in another terminal run ethminer -G
Tutorials
There are lots of great tutorials out there, my favorites are:
In addition, @linagee reccomends
https://github.com/ethereum/go-ethereum/wiki/Mining#gpu-mining
There are instructions to start mining with Linux on the wiki of the official Golang implementation. Note that to mine efficiently, you need a GPU miner, which requires an AMD or NVidia graphics chipset and OpenCL (AMD, NVidia).
For AMD, download ADL_SDK8.zip
from http://developer.amd.com/tools-and-sdks/graphics-development/display-library-adl-sdk/ and AMD-APP-SDK-v2.9-1.599.381-GA-linux64.sh
from http://developer.amd.com/tools-and-sdks/opencl-zone/amd-accelerated-parallel-processing then run the following commands as root:
./AMD-APP-SDK-v2.9-1.599.381-GA-linux64.sh
ln -s /opt/AMDAPPSDK-2.9-1 /opt/AMDAPP
ln -s /opt/AMDAPP/include/CL /usr/include
ln -s /opt/AMDAPP/lib/x86_64/* /usr/lib/
ldconfig
apt-get install fglrx-updates
aticonfig --adapter=all --initial
For NVidia, see https://forum.ethereum.org/discussion/comment/8889/#Comment_8889
Once you have OpenCL set up, you need the C++ implementation of Ethereum. On Ubuntu, it's available from a PPA. For other distributions, see the wiki.
You then need to have a coinbase account before you can start mining.
geth account new
geth --rpc --rpccorsdomain localhost 2>> geth.log &
ethminer -G // -G for GPU, -M for benchmark
If you use AMD graphics cards and Ubuntu 14.04 server, this script will set everything up for you (some instructions in the comments as well).
https://github.com/skmgoldin/AMDEthMiner/blob/master/setupminer.sh
Edit: just revisited this and it looks like blockapps isn't hosting the genesis block at that URL anymore. Find it somewhere else. :p