Table of Contents

Bitcoin

Bitcoin
founder: stick
depends on:
interested: nephirus
ruza
pasky
kiki
software license: -
hardware license: -

~~META: status = active &relation firstimage = :project:bc_logo_135.png ~~

Our Bitcoin account addresses are:
1BRMLAB7nryYgFGrG8x9SYaokb8r2ZwAsX (hot wallet)
1BRMCWpKFe7bcJfYRgpBhBPgroBKEF6E35 (cold wallet)

BTC ATM

We have an Bitcoin ATM from GeneralBytes (first model of its kind) at the space where you can buy bitcoins. You can check it's status here

Bitcoin seminars

We meet irregularly for Bitcoin Seminar

who_stole_my_btc.py

Resources

(Czech) nPLaLvi_SKc

(English) Um63OQz3bjo

XQPSwA2Itbs (0:41:56 onwards)

ProgressBar Talk (Slovak): http://hackerspace.pod.cvut.cz/pgb_20110323_bitcoin_sk.mkv

You can learn more about Bitcoin on these sites:

Mining

CPU khash/sec software
Intel(R) Pentium(R) D CPU 3.40GHz 2x 1337 jgarzik's cpuminer
Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz 4x 2500 jgarzik's cpuminer
AMD Athlon™ 64 X2 Dual Core Processor 4800+ @ 2.5GHz 2x 1168 jgarzik's cpuminer
Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz (HT on) 8x 1450 jgarzik's cpuminer
GPU khash/sec software
nVidia GT216 [GeForce GT220] (rev a2) 10550 DiabloMiner,
poclbm
nVidia Quadro FX 570M 5000 DiabloMiner
nVidia G84 [GeForce 8600 GT] 6300 poclbm
nVidia G92 [GeForce 8800 GT] (rev a2) 28000 poclbm
nVidia G94 [GeForce 9600 GT] (rev a1) 16000 DiabloMiner
nVidia GF104 [GeForce GTX 460] (rev a1) 48000 poclbm
nVidia GF108 [GeForce GT 430] (rev a1) 12000 poclbm
nVidia GF110 [GeForce GTX 580] 120000 DiabloMiner
ATI Technologies Inc Radeon HD 5830
(Cypress LE)
261000 phoenix+phatk
ATI Technologies Inc Radeon HD 5830
(Cypress LE)
271500 phoenix+phatk (900/900)
ATI Technologies Inc Radeon HD 5830
(Cypress LE)
278000 phoenix+phatk (900/300)
ATI Technologies Inc Radeon HD 5830
(Cypress LE)
318000 phoenix+phatk (1035/300)
ATI Technologies Inc Radeon HD 5870
(Cypress LE)
406000 phoenix+phatk (900/300)

Mining Notes

How to run?

./DiabloMiner-Linux.sh -u <user> -p <pass> -o api.bitcoin.cz -r 8332
./poclbm.py -d 0 -u <user> --pass=<pass> -o api.bitcoin.cz -p 8332
./minerd --userpass <user>:<pass> --url http://api.bitcoin.cz:8332
./phoenix.py -u http://<user>:<pass>@api.bitcoin.cz:8332/ -k phatk DEVICE=0 AGGRESSION=12 -v FASTLOOP=false WORKSIZE=128 BFI_INT VECTORS

ATI Overclocking

aticonfig --od-enable
aticonfig --odsc=900,900 # was 800,1000 by default
aticonfig --odcc 

Problem compiling jgarzik's cpuminer

Makefile.am: installing `./INSTALL'
configure.ac:96: error: possibly undefined macro: AC_MSG_ERROR
    If this token and others are legitimate, please use m4_pattern_allow.
    See the Autoconf documentation.

libcurl.m4 is missing in your OS (i.e. apt-get install libcurl4-gnutls-dev)

Autorun phoenix after boot (Linux)

configure gdm autologin (you cannot use ~/.xinitrc and ~/.xsession) in your Window manager add to “Startup applications” “xterm -e screen -c /home/brm/.screenrc-phoenix”

~/.screenrc-phoenix

autodetach on
startup_message off

screen -t phoenix 0 bash /home/brm/BITCOIN/phoenix-1.4/miner.sh 

~/BITCOIN/phoenix-1.4/miner.sh

#!/bin/bash
. ~/.bashrc

export "DISPLAY=:0"
export LD_LIBRARY_PATH="/opt/AMD-APP-SDK-v2.4-lnx32/lib/x86/:$LD_LIBRARY_PATH"
ADRESAR="${HOME}/BITCOIN/phoenix-1.4/"

cd ${ADRESAR}

${ADRESAR}/phoenix.py -u http://brm@brmlab.cz_ati:zlatokopi@api.mining.cz:8332/ -k phatk DEVICE=0 VECTORS AGGRESSION=6 -v FASTLOOP WORKSIZE=128 BFI_INT

/etc/ld.so.conf.d/ati.conf (must be named *.conf)

/opt/AMD-APP-SDK-v2.4-lnx32/lib/x86/

run ldconfig

Memory underclocking for better performance, lower temperatures (Linux)

set 5830 to 900MHz core, 300MHz memory

Only GUI .deb tool for setting: http://sourceforge.net/projects/amdovdrvctrl/

generate own settings, save it. Mine: ~/a.ovdr

<?xml version="1.0" encoding="utf-8"?>
  <OVERDRIVE_PROFILE>
  <PERFORMANCE_LEVEL level="2" gpu="90000" mem="30000" voltage="1163"/>
  <PERFORMANCE_LEVEL level="1" gpu="60000" mem="30000" voltage="1063"/>
  <PERFORMANCE_LEVEL level="0" gpu="15700" mem="30000" voltage="950"/>
  <FAN_SETTING percentage="100"/>
  <FAN_CTRL enabled="no"/>
  <FAN_CTRL_CURVE type="0"/>
  <FAN_CTRL_POINT nr="0" temperature="2000" percentage="0"/>
  <FAN_CTRL_POINT nr="1" temperature="4000" percentage="2500"/>
  <FAN_CTRL_POINT nr="2" temperature="6000" percentage="5000"/>
  <FAN_CTRL_POINT nr="3" temperature="8000" percentage="7500"/>
  <FAN_CTRL_POINT nr="4" temperature="10000" percentage="10000"/>
  <MONITOR_SAMPLE_TIME interval="10"/>
  <COLOR_PROFILE enabled="no" longitude="-13.000000" latitude="52.000000" color_temp_day="0" color_temp_night="0" transition="30"/>
</OVERDRIVE_PROFILE>

How to use setting batch mode (three card rig): ~/minuj.sh

#!/bin/bash
AMDOverdriveCtrl -i 0 -b a.ovdr
sleep 1
AMDOverdriveCtrl -i 3 -b a.ovdr
sleep 1
AMDOverdriveCtrl -i 6 -b a.ovdr
sleep 1
cd /home/kiki/phoenix
export DISPLAY=:0.0; aticonfig --pplib-cmd "set fanspeed 0 100"
export DISPLAY=:0.1; aticonfig --pplib-cmd "set fanspeed 0 100"
export DISPLAY=:0.2; aticonfig --pplib-cmd "set fanspeed 0 100"
aticonfig --od-enable
#aticonfig --od-setclocks=300,900 --adapter=all
sleep 2
./phoenix.py -u http://name:password@api.bitcoin.cz:8332/ -k phatk DEVICE=1 BFI_INT VECTORS AGGRESSION=12 &
sleep 2
./phoenix.py -u http://name2:password2@api.bitcoin.cz:8332/ -k phatk DEVICE=2 BFI_INT VECTORS AGGRESSION=12 &
sleep 2
./phoenix.py -u http://name3:password3@api.bitcoin.cz:8332/ -k phatk DEVICE=3 BFI_INT VECTORS AGGRESSION=12 &

Verification

aticonfig --odgc --adapter=all
aticonfig --odgt --adapter=all
DANGER !

Bios modification to unlock high frequency.

prereq: dos boot disc,

atiflash http://www.techpowerup.com/downloads/1968/ATIFlash%203.86.html

radeon bios editor (rbe) http://www.techpowerup.com/downloads/Utilities/RBE/

tutorial http://www.techpowerup.com/downloads/Utilities/RBE/

example, not working on all, watch ^^^tutorial,:

tested: http://www.alza.cz/sapphire-hd-5830-xtreme-d237936.htm
boot to dos
card listing:
atiflash -i
acquire bios from first card:  
atiflash -s 0 bios0.rom 
on some windows machine (maybe under wine) run rbe,
load bios file, under "additional features" set upper limit GPU" (I set 1050)
save modified bios
go back to minning machine
atiflash -p 0 modbios.rom
then reboot to linux,
modify ^^^ a.ovdr, 
set <PERFORMANCE_LEVEL level="2" gpu="100000" mem="30000" voltage="1125"/> 
test for stability, watch for temperatures
my stable settings is gpu=103000, voltage 1163 (stock voltage)

MtGox YubiKey

YubiKey II is an USB device provided and used by MtGox as an OTP device to login into their webpage.

Using Yubikey on Linux

No driver needed. Plug-in your Yubikey.

kernel: usb 5-2: new low speed USB device using uhci_hcd and address 4
kernel: input: Yubico Yubico Yubikey II as /devices/pci0000:00/0000:00:1d.0/usb5/5-2/5-2:1.0/input/input13
kernel: generic-usb 0003:1050:0010.0003: input,hidraw0: USB HID v1.11 Keyboard [Yubico Yubico Yubikey II] on usb-0000:00:1d.0-2/input0

YubiKey serial num

One Time Password

fixed id AES encrypted OTP whole output string
6B or 48b fixed string 16B or 128b AES128 22B = 44 chars

http://jobo.files.wordpress.com/2011/07/yubikeys.pdf