
***UPDATE 10.04.13 BITCOINS ARE NOW #184 USD, WHEN I WROTE THIS ARTICLE IT WAS 30USD
[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
[youtube=http://www.youtube.com/watch?v=eLt8Se3vVNg]
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, (http://bitcoinmagazine.com/working-avalon-asic-confirmed/) 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
Requirements:
- Buterflylabs SC
- Raspberry pi B
- Micro USB Power Cable
- SD Card
- White Case
- Edimax EW-7811Un 150Mbps 1T1R Nano Wireless USB Adapter
- Raspbian “wheezy” OS
Burn the Image
[source language=”bash”]
su
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
[/source]
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
[/source]
Setup SSH Key Pairs or RP
[source language=”bash”]
ssh-keygen -t dsa
ls -l .ssh/
ssh-copy-id -i ~/.ssh/id_dsa.pub [email protected]
ssh [email protected]
sudo vim /etc/ssh/sshd_config
#PasswordAuthentication no
sudo /etc/init.d/sshd restart
sudo halt
[/source]
Install Screen or TMUX– http://www.cyberciti.biz/tips/linux-screen-command-howto.html or http://justinlilly.com/dotfiles/tmux.html or http://www.opsbs.com/2011/04/terminal-multiplexing-with-ssh-agent-my-tmux-setup/ 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
halt
[/source]
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
lsusb
lsmod
iwconfig
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>
[/source]
Setup Start-up script to auto start minner – http://www.debian-administration.org/articles/28
[sourcecode language=”bash”]
/etc/rc.local
chmod +x /home/pi/start_minner.sh
cd home/pi/minner/bfgminer
sudo screen ./bfgminer
[/sourcecode]
Minner
[sourcecode]
bfgminner ..
[/sourcecode]
secure it
http://library.linode.com/securing-your-server
http://www.rackaid.com/resources/how-to-harden-or-secure-ssh-for-improved-security/
syslog – http://www.aboutdebian.com/syslog.htm
Encrpt SD
CLAMAV – http://www.clamav.net/lang/en/
Bitforce “Little” Single SC
CGMiner – http://techblog.sethleedy.name/?p=24276
BFGMiner – https://bitcointalk.org/?topic=78192″
BFG Minger GITHUB – https://github.com/luke-jr/bfgminer
https://bitcointalk.org/index.php
https://bitcointalk.org/index.php
[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
wget http://luke.dashjr.org/programs/bitcoin/files/bfgminer/2.10.3/bfgminer-2.10.3.tbz2
git clone https://github.com/luke-jr/bfgminer</em></em></em>
./autogen.sh
#./autogen.sh –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
./configure
make
ls -l /dev/ttyUSB*
./bfgminer
[/source]
Setup Reboot Script
Backup SD Card
[source language=”bash”]
dd if=/dev/diskx of=/path/to/image.img bs=1m
[/source]
Example Video
[youtube=http://www.youtube.com/watch?v=DgJRoQcz6RQ]
Business Opportunities
Litecoin
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
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="http://luke.dashjr.org/programs/bitcoin/files/bfgminer/stable/bfgminer-3.0.10.tbz2">http://luke.dashjr.org/programs/bitcoin/files/bfgminer/stable/bfgminer-3.0.10.tbz2</a>
tar jxfv filename
sudo rm –rf (remove directory and all files)
)
git clone https://github.com/luke-jr/bfgminer
./autogen.sh
./configure
make
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://stratum.btcguild.com:3333 -u -p
screen -ls
screen -r
Ctrl -A n
Ctrl -A d
nohup long-running-command &
bg
disown
[/source]
Tutorials:Getting Started With CGminer/BFGminer – https://forums.butterflylabs.com/showwiki.php?title=Tutorials:Getting+Started+With+CGminer+BFGminer
BFGMiner on Raspberry Pi – https://bitcointalk.org/index.php?topic=298904.0;prev_next=prev#new
BFGMiner – https://bitcointalk.org/index.php?PHPSESSID=hjupihaemk1q0nt9fq4609f8d1&topic=168174.0
BitCoint Calculator – http://www.bitcoinx.com/profit/
Bitcoin Pool Comparison – http://bitcoinchain.com/pools#start=1358341260&end=1382878740
Bitcoin Automated Trading System