Ethereum Mining

Ethereum Mining

Commands


<strong>geth --rpc --fast --cache=1024</strong>

geth account list

geth console
web3.eth.getBalance("0xbd27102d2b3c5ec3c261bee0fc0fbfd879c2b261")

eth.getBalance("0xbd27102d2b3c5ec3c261bee0fc0fbfd879c2b261")
web3.fromWei(eth.getBalance(eth.coinbase), "ether")
web3.fromWei(web3.eth.getBalance(web3.eth.coinbase), "ether");
eth.getBalance(eth.coinbase)

setx GPU_FORCE_64BIT_PTR 0
setx GPU_MAX_HEAP_SIZE 100
setx GPU_USE_SYNC_OBJECTS 1
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_SINGLE_ALLOC_PERCENT 100
ethminer.exe --farm-recheck 200 -G -S eu1.ethpool.org:3333 -FS us1.ethpool.org:3333 -O <Your_Ethereum_Address>.<RigName&gt

 

eth.sendTransaction({from:eth.coinbase, to:"0xxxxxxxxxxxxxxxxxxxxxxxxxx", value: web3.toWei(0.05, "ether")}

BitCoin Mining – the new cyber frontier

BitCoin Mining – the new cyber frontier

562614_302873243132102_1122123397_n

***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:

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, (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:

Burn the Image


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

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


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

Setup SSH Key Pairs or RP

ssh-keygen -t dsa
ls -l .ssh/
ssh-copy-id -i ~/.ssh/id_dsa.pub pi@raspberrypi.local
ssh pi@raspberrypi.local
sudo vim /etc/ssh/sshd_config
#PasswordAuthentication no
sudo /etc/init.d/sshd restart
sudo halt

Install Screen or TMUXhttp://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:

sudo apt-get install screen
screen bash
screen -r
screen -list
screen -S [name]
screen -D -rr
halt

Setup Wifi Dongle


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>

Setup Start-up script to auto start minner – http://www.debian-administration.org/articles/28

/etc/rc.local
chmod +x /home/pi/start_minner.sh
cd home/pi/minner/bfgminer
sudo screen ./bfgminer

Minner

bfgminner ..

secure it

http://library.linode.com/securing-your-server

http://www.rackaid.com/resources/how-to-harden-or-secure-ssh-for-improved-security/

sysloghttp://www.aboutdebian.com/syslog.htm

Encrpt SD

CLAMAVhttp://www.clamav.net/lang/en/

Bitforce “Little” Single SC

CGMiner – http://techblog.sethleedy.name/?p=24276

BFGMiner – https://bitcointalk.org/?topic=78192&#8243;

BFG Minger GITHUB – https://github.com/luke-jr/bfgminer

https://bitcointalk.org/index.php

https://bitcointalk.org/index.php


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

Setup Reboot Script

Backup SD Card

dd if=/dev/diskx of=/path/to/image.img bs=1m

Example Video

Business Opportunities

Litecoin

Got my Rig online


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

&nbsp;

#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)

)

&nbsp;

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

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