Notes de paramétrage de postes de travail, et autres vicissitudes ...

Accueil > Matériel divers > Raspberry PI > raspberry - miner des dogecoin

raspberry - miner des dogecoin

mercredi 14 mai 2014, par Lucien-Henry

Mode opératoire pour miner sur Raspberry :
lien vers un pool de minage :
lien vers remarques :

   By using any of the Pools or registering an account on the website, you agree to be bound by the terms and conditions below. If you do not agree with the terms and conditions in this Agreement you may not use the Pool.
   The RAPIDHASH staff may modify this Agreement and any policies affecting the Site at any point of time. Such modification is effective immediately upon posting to the website and will be distribution via email, forum post and a link in chat. Your continued use of the Pool following any modification to this Agreement shall be deemed an acceptance of all modifications.
   The Pool rewards miners according to a pplns system with 1% fee. The fee may change at any time, but notice will be given before doing so. Any fee change will be communicated through the pools news page.
   The Pool is not an e-wallet or a bank for your coins. The Pool and it's operators are not responsible for any loss of coins which are stored on the Pool. It is your responsibility to configure your account so that the coins you mine are regularly transferred to your own secured offline wallet.
   The uptime of the pool or website is not guaranteed, maintenance and downtime may be required at times. Users are responsible for configuring their miners so that they will automatically reconnect, switch to all the pools we offer or a backup pool in the case of downtime.

Préparation et installation du raspi

sudo apt-get update
sudo apt-get install automake git
sudo apt-get install libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev
git clone
cd cpuminer
sudo ./
sudo ./configure CFLAGS="-O3"
sudo make

Sur le site, créer un compte (Username).
Puis dans l’onglet MyWorker créer un worker (Workername) qui aura son password (Workerpassword).

Ensuite on se loguer via :
./minerd --algo=scrypt --url=stratum+tcp:// --userpass=Username.Workername:Workerpassword --threads=1
Et ça donne :

pi@raspberrypi ~/cpuminer $ ./minerd --algo=scrypt --url=stratum+tcp:// --userpass=SSSSSSSs.RRRRRRRRR:XXXXXXXX --threads=1
[2014-05-14 22:59:36] 1 miner threads started, using 'scrypt' algorithm.
[2014-05-14 22:59:36] Starting Stratum on stratum+tcp://
[2014-05-14 22:59:50] thread 0: 4096 hashes, 0.33 khash/s
[2014-05-14 23:00:50] thread 0: 20028 hashes, 0.33 khash/s
[2014-05-14 23:01:50] thread 0: 20019 hashes, 0.33 khash/s

Maintenant, on va tenter de lancer cette commande dès le boot quoi ... Il faut se connecter en vinagre pour faciliter les choses avec leafpad ... ou tout taper via vi.

mkdir ~/cpuminer/script
leafpad ~/cpuminer/script/
/home/pi/cpuminer/minerd --algo=scrypt --url=stratum+tcp:// --userpass=Username.Workername:Workerpassword --threads=1&

chmod 777
Ca vaut la peine de constater que la commande fait tourner le processeur à fond dès que l’on la lance et que ça s’arrête quand on kille le terminal
Et comme un goret ont va lancer le script au boot :

cd ~/.config/autostart
cp tightvnc.desktop miner.desktop
leafpad miner.desktop
[Desktop Entry]

Et on reboote ...
Et on voit que le processeur tourne à fond. Un petit htop permet de voir que 2 thread minerd tournent. Le pied.

Voir en ligne :

SPIP | | Plan du site | Suivre la vie du site RSS 2.0
Habillage visuel © digitalnature sous Licence GPL