Travelflex Cryptocurrency Mining on CUDA in Ubuntu 16.04


Following one of the main trends of 2017, I decided to join the new world of cryptocurrency and bought 1000 TRF coins during the first wave of Travelflex ICO. I choose exactly this currency of out hundreds existing ones for three reasons:
  1. Travel industry is very promising, and the ability of fast money transfer without fees would be an awesome asset for travelers.
  2. Travelflex claims a record high transaction rate of up to 1400 tps (transactions per second). This rate level makes the TRF algorithm to be one of the fastest among all cryptocurrencies existing today.
  3. As a consequence of the reason 2, easy shopping in almost any store accepting VISA/MasterCard and very simple way to withdraw cash of a local fiat currency (e.g. Euro, or USD) at an ATM through using Travelflex plastic cards (issuing expected in 2018, Q3). Printable checks will be also available even before the cards, delivery start was scheduled to 2018, Q2.

Next logical step after buying your first coins would be to mine them in order to gain more coins (BTW, in case you aren't familiar with the cryptocurrency terminology you could start off by reading Travelflex FAQ). The Travelflex team published the instructions on how to start mining TRF. That is exactly what any cryptocurrency mining beginner as me would need to start with, so TRF team, thanks for your twitter post with the link to instructons. 0. Open a terminal (by default, it’s CTRL+ALT+T) and make sure that CUDA and graphic card drivers installed correctly:

CUDA check:

nvcc -V

The output should be something like (it will be different depending on the CUDA version):

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61

graphics card driver check:

  1. Check the dependencies by executing the commands line by line:
dpkg -l | grep libcurl4-openssl-dev
dpkg -l | grep libssl-dev
dpkg -l | grep libjansson-dev
dpkg -l | grep automake
dpkg -l | grep autotools-dev
dpkg -l | grep build-essential

empty output is expected for missing library.

Install missing libraries by executing (don’t forget replace missingLibs with the list of libs separated by space):

sudo apt-get install missingLibs
  1. Create a folder on you disk and clone the ccminer repository into it:
mkdir -p /path/to/yourDir && git clone /path/to/yourDir && cd /path/to/yourDir
  1. Check the directory where CUDA is located:
whereis cuda

Default CUDA directory is /usr/local/cuda. If it’s not the case, modify the file and replace



  1. Modify the file and uncomment the parameter nvcc_ARCH and set it according to your graphics card model, see the list here.

  2. Launch autogen


If you are using anaconda, modify your .bashrc (it should be located in you home folder): From its initial state:

export PATH="/home/dkisler/anaconda3/bin:$PATH"

to the final state:

export PATH="$PATH:/home/dkisler/anaconda3/bin"

Now we're good to go and configure installation

  1. If no errors occurred during configuration, go ahead and launch installer:
  1. Voilà! We are ready to start TRF mining. Well, almost ready :) Two last steps still remain - to adjust the ccminer’s settings json file ccminer.conf and
    and set the keys:

url: stratum+tcp://
user: you wallet’s ID

so the file ccminer.conf should look like

	"_comment1" : "Possible keys are the long options (ccminer --help)",
	"_comment2" : "todo: support /* comments */",
	"algo" : "lbry",
	"intensity": 22,
	"api-bind": "",
	"statsavg": 20,
	"max-log-rate": 60,
	"quiet" : false,
	"debug" : false,
	"protocol" : false,
	"cpu-priority" : 3,
	"url" : "stratum+tcp://",
	"user" : "TSXNrCjnZu7ZBjz8tnKBJzzxkk3qdWEaXH",
	"pass" : ""

Well done! Now we can go ahead and start mining:

./ccminer -a scrypt -o stratum+tcp:// -u YourWalletID

You can get the overview of all ccminer’s input parameters here.

Mining status messages in terminal

Mining status messages in terminal

Mining Status

Once mining is started, you can check some statistics (I guess, this page is still work-in-progress due to its limited functionality) here and look at the list of all miners:

The list of TRF miners

The list of TRF miners

I hope this article was helpful. Happy mining! And don’t forget to follow the TRF currency exchange rate and Travelflex announcements on forum.

comments powered by Disqus