Skip to content

Instantly share code, notes, and snippets.

@RyanJeong
Created December 31, 2019 08:16
Show Gist options
  • Save RyanJeong/de32d1660904157031f561c9f60758f2 to your computer and use it in GitHub Desktop.
Save RyanJeong/de32d1660904157031f561c9f60758f2 to your computer and use it in GitHub Desktop.
Litecoin GPU Mining on Linux
  1. Install VGA driver and CUDA
  2. Edit the .bashrc file from the root user and add the following lines at its end.
$ vi /root/.bashrc

...

export LD_LIBRARY_PATH=/usr/local/cuda-9.1/lib64:$LD_LIBRARY_PATH
export PATH=/usr/local/cuda-9.1/bin:$PATH
  1. Reboot
  2. Install the required packages and configure the system to use an older version of GCC as default.
$ apt-get install libcurl4-openssl-dev libssl-dev libjansson-dev automake autotools-dev build-essential
$ apt-get install gcc-5 g++-5
$ update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
  1. Download, compile and install the CCMINER software.
$ git clone https://github.com/tpruvot/ccminer
$ cd ccminer
$ ./build.sh
$ install -sv ccminer /usr/local/bin/
  1. To start the Litecoin GPU mining use the following command, as an example:
$ ccminer -a scrypt -o stratum+tcp://ltc.ss.poolin.com:443 -u USER_NAME -p USER_PASSWORD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment