BitCoin Mining – the new cyber frontier

BitCoin Mining – the new cyber frontier



[vimeo 63502573]

thinking about getting into Bitcoins.. Just some notes for myself..

Explain Bitcoins, Silk road and Tor networks..  Should be the first question asked in IT interviews! (cause it shows you are interested in technology and not just memorising brain dumps. ) (also demonstrates you have a hi-tech mind)

Bit coins is a Peer to Peer currency developed like many technology to over-come the inherent problems of “money”. i.e. open source..

Just google it and you will find allot of info.. Its kinda like the old Gold rush days, but your pick and shovel is a sophisticated hardware and software..

These slides pretty good background into bitcoins:

[slideshare id=15497152&doc=theevolutionofe-moneydeepsec-121205021035-phpapp02]

The good old days of bitcoin mining you needed a massive amount of computer rigged together, but now days the technology has evolved to CHIPS.. Check out this crazy rig


But, i dont wana do that, the new ASIC Chips are about the size coffee mug and are more powerful than the above.. So order my equipment and startred these notes.  So the above rig can do 48 GHz, the new ASIC single chip can do 60 GHz..

So to put things in perspective as of this writing, the exchange rate for a single BITCOIN is at @ 15 USD..

[update] I just read this article, (  this guys is the first person to get a asic rig, he going to earn around $240 USD per day.. Of course this will go down, but dame good.. (No tax, not traceable)

So its  a race to the ASIC mining  kinda like the old gold rush days, people gambling, you could loose everything or make a million..  I wish, I got started right at the begging, but i am now keen to put a little investment into this and get it started. I prefer to invest in this rather than give my money to some Finance douche. little side projects are always fun..

As of 20.01.13 – The race is on to develop the first ASIC based mining rings..  These are hardware wired software into silicon, extremely fast and efficient to the point a single chip and can out-power a dozen or so powerful GPU computers. There is also FPGA devices that are available, but that is old technology. I have put my money on BitForce rig and here are the 3 contenders atm:

ASIC Mining Rigs


Burn the Image

[source language=”bash”]


diskutil unmountDisk /dev/diskN

dd bs=1m if=~/Downloads/2012-10-28-wheezy-raspbian/2012-12-16-wheezy-raspbian.img of=/dev/diskN

diskutil eject /dev/diskN


After booting up the Raspberry Pi with the SD card, I checked my router to find the DHCP IP address it gave the Pi.. As I am used a headless Pi. (i.e. I dont have a monitor) the next step is to ssh into it and configure it..   Setup RPi

[source language=”bash”]

echo raspberry | ssh pi@[pi_ip_address]
sudo raspi-config


Setup SSH Key Pairs or RP

[source language=”bash”]
ssh-keygen -t dsa
ls -l .ssh/
ssh-copy-id -i ~/.ssh/ [email protected]
ssh [email protected]
sudo vim /etc/ssh/sshd_config
#PasswordAuthentication no
sudo /etc/init.d/sshd restart
sudo halt

Install Screen or TMUX or or in order to keep the minner working after logging of a ssh session as my unit is running in headless mode and without console, i need to configure the following:

[source language=”bash”]
sudo apt-get install screen
screen bash
screen -r
screen -list
screen -S [name]
screen -D -rr

Setup Wifi Dongle

[source language=”bash”]

apt-get install wpasupplicant
wpa_passphrase "<Your Wifi SSID>" "<Your Wifi PASSWORD>"
sudo nano /etc/network/interfaces
auto lo

iface lo inet loopback
iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-scan-ssid 1
wpa-ap-scan 1
wpa-key-mgmt WPA-PSK
wpa-proto RSN WPA
wpa-pairwise CCMP TKIP
wpa-group CCMP TKIP
wpa-ssid "<Your Wifi SSID>"
wpa-psk <Your PSK Value>

iface default inet dhcp
sudo reboot
sudo ifconfig
iwlist wlan0 frequency
<span style="font-family: sans-serif;">dsmeg</span>
<span style="font-family: sans-serif;">lsusb</span>
<span style="font-family: sans-serif;">uname -r</span>

<span style="font-family: sans-serif;">find / -name "*8192*" -print</span>

<span style="font-family: sans-serif;">modprobe 8192cu </span>
<span style="font-family: sans-serif;">lsmod</span>

<span style="font-family: sans-serif;">ifconfig wlan0 up</span>
<span style="font-family: sans-serif;">ifconfig wlan0</span>

<span style="font-family: sans-serif;">iwlist wlan0 scan</span>

<span style="font-family: sans-serif;">auto wlan0</span>
<span style="font-family: sans-serif;">iface wlan0 inet dhcp</span>
<span style="font-family: sans-serif;">wpa-ssid <your SSID here></span>
<span style="font-family: sans-serif;">wpa-psk <your wlan-key here></span>

<span style="font-family: sans-serif;">service networking restart</span>

<span style="font-family: sans-serif;">/etc/network/interfaces, to connect to hidden network:</span>
<span style="font-family: sans-serif;">wpa-scan-ssid 1</span>

Setup Start-up script to auto start minner –

[sourcecode language=”bash”]
chmod +x /home/pi/
cd home/pi/minner/bfgminer
sudo screen ./bfgminer


bfgminner ..

secure it

syslog –

Encrpt SD


Bitforce “Little” Single SC

CGMiner –

BFGMiner –″


[source language=”bash”]

sudo aptitude update
apt-get install git git-core

sudo aptitude install autoconf libtool libncurses-dev yasm curl libcurl4-openssl-dev libjansson-dev pkg-config libudev-dev


git clone</em></em></em>
#./ –enable-cpumining
# you can have multiply version of the minner from github, i use the above switch for testing mining with the RPi CPU, which would take about 1000 years to get a single bitcoin!!.. good to test passwords and options and pools


ls -l /dev/ttyUSB*



Setup Reboot Script

Backup SD Card

[source language=”bash”]
dd if=/dev/diskx of=/path/to/image.img bs=1m

Example Video


Business Opportunities


Got my Rig online

[source language=”bash”]

sudo raspi-config

sudo apt-get update
sudo apt-get upgrade
sudo aptitude update
<code>sudo pacman -Syu</code>
sudo apt-get install raspberrypi-bootloader

apt-get install git git-core
sudo apt-get intall rpi-update
sudo aptitude install autoconf libtool libncurses-dev yasm curl libcurl4-openssl-dev libjansson-dev pkg-config libudev-dev

sudo aptitude install uthash-dev


#Optional Wget for stable versions, github contains stable version anyway)

(wget <a href=""></a>

tar jxfv filename

sudo rm –rf (remove directory and all files)



git clone




sudo modprobe ftdi_sio vendor=0x0403 product=0x6014
sudo chmod a+rw /dev/ttyUSB*
dmesg | grep -i bitforce
dmesg | grep -i vendor
ls -l /dev/ttyUSB*
cd /home/pi/miner/bfgminer
screen -d -m -S BFGMINER sudo ./bfgminer -o stratum+tcp:// -u -p
screen -ls
screen -r
Ctrl -A n
Ctrl -A d

nohup long-running-command &

Tutorials:Getting Started With CGminer/BFGminer –

BFGMiner on Raspberry Pi –;prev_next=prev#new

BFGMiner –

BitCoint Calculator –

Bitcoin Pool Comparison –

Bitcoin Automated Trading System

Leave a Reply