Y00AOebLhlCX59D11qensmHJY7s Desember 2014 Created (c) by Princexells Seyka (Princelling Saki)

Sabtu, 27 Desember 2014

0 CGMINER run on startup LINUX only

Postingan kali ini adalah postingan dimana kita akan menyeting CGMINER bersama dengan pool yang telah kita punya secara otomatis. Setiap komputer ataupun raspberry restart / reboot / menyala dengan sendirinya maka CGMINER pun akan otomatis menyala kembali.

Untuk postingan tentang cara install cgminer di unbuntu atau di raspberry pi, silahkan anda lihat postingan sebelumnya yang sudah di jabarkan dengan jelas.

cara untuk auto start up di linux kita wajib untuk edit file :

sudo nano /etc/kbd/config

dan rubah POWERDOWN_TIME menjadi 0, kemudian rubah BLANK_TIME menjadi 0.

simpan dan lanjut ke file yang satu lagi :

sudo nano /etc/X11/xinit/xinitrc

kemudian tambahkan perintah :

xset s off         # don't activate screensaver
xset -dpms         # disable DPMS (Energy Star) features.
xset s noblank     # don't blank the video device

simpan dan lanjut lagi ke file yang terakhir :

sudo nano /etc/rc.local

lalu add perintah menjalankan cgminer sebelum exit 0 :

cd /direktoriCGMINER/
sudo ./cgminer -o <insert pool url> -u <username> -p <password>

itulah sekilas clue agar kita dapat mempermudah CGMINER berjalan lancar di linux. ^_^


Scrypt mining on a PC using GPUs can be very power intensive. With just one Radeon GPU, I was easily consuming over 200 watts of power to get about 333KH/s.

Using a Rapberry Pi is the a great choice when looking for a low power solution. With a Pi, this is a lot lower, normally in the 2 to 3 watt range.

I purchased a Gridseed ASIC These can hash about 360KH/s without overclocking and consume about 7 watts of power.

To power the Gridseed, I ordered this cable and hooked it up to an old PC power supply.

To power everything up:
1. Hookup the power cable to the 6 pin PCI-E power cable on the PC power supply
2. Hookup the USB cord to the ASIC, then into the Raspberry Pi USB port
3. Power on the Raspberry Pi

For this install, we are using the latest version of Raspbian found here.

Once your system comes up, you should be able to detect the Gridseed:

$ lsusb
Bus 001 Device 007: ID 0483:5740 STMicroelectronics STM32F407

Now that your device is connected and ready to go, let’s get the mining software.
There is a fork of cgminer, that is specifically designed for the Gridseed that we will use.

Let’s clone it and build!

Install git:

$ sudo apt-get install git

You may need these packages:

$ sudo apt-get install libncurses-dev libcurl4-openssl-dev libudev-dev

Clone cgminer:

$ git clone https://github.com/dtbartle/cgminer-gc3355.git

Build cgminer:

$ cd cgminer-gc3355
$ ./configure --enable-scrypt --enable-gridseed

This might take awhile to configure. Afterwards, you should see this output:

cgminer 3.7.2

Configuration Options Summary:

libcurl(GBT+getwork).: Enabled: -lcurl
curses.TUI...........: FOUND: -lncurses
scrypt...............: Enabled
OpenCL...............: Detection overrided. GPU mining support DISABLED
ADL..................: SDK NOT found, GPU monitoring support DISABLED

Avalon.ASICs.........: Disabled
BFL.ASICs............: Disabled
KnC.ASICs............: Disabled
BitForce.FPGAs.......: Disabled
BitFury.ASICs........: Disabled
Hashfast.ASICs.......: Disabled
GridSeed.ASICs.......: Enabled
Icarus.ASICs/FPGAs...: Disabled
Klondike.ASICs.......: Disabled
ModMiner.FPGAs.......: Disabled

Compilation............: make (or gmake)
CFLAGS...............: -g -O2
LDFLAGS..............: -lpthread
LDADD................: -lcurl compat/jansson-2.5/src/.libs/libjansson.a -lpthread -lm compat/libusb-1.0/libusb/.libs/libusb-1.0.a -ludev -lrt

Installation...........: make install (as root if needed, with 'su' or 'sudo')
prefix...............: /usr/local

This tells you that ASIC mining is enabled:
GridSeed.ASICs.......: Enabled

Now, we will compile cgminer, which should take awhile:

$ make

Use the cgminer binary to run against your favorite mining pool. You will need to use sudo, since it needs access to the USB device.
I am mining Dogecoin on nut2pools. Here is an example:

$ sudo ./cgminer --scrypt -o stratum+tcp://dogus.nut2pools.com:5585 -u XXX -p password --gridseed-options=baud=115200,freq=850,chips=5

You should see some output from cgminer, letting you know that is is all working:

cgminer version 3.7.2 - Started: [2014-06-02 05:53:47]
(5s):359.5K (avg):360.1Kh/s | A:320 R:0 HW:0 WU:4.6/m
ST: 2 SS: 0 NB: 2 LW: 11 GF: 0 RF: 0
Connected to dogus.nut2pools.com diff 64 with stratum as user XXX
Block: 6b81ca93... Diff:812 Started: [05:53:51] Best share: 234
[P]ool management [S]ettings [D]isplay options [Q]uit
GSD 0: 6D92285E4857 850 MHz | 360.0K/360.1Kh/s | A:320 R:0 HW:0 WU: 4.6/m

[2014-06-02 05:53:45] Started cgminer 3.7.2
[2014-06-02 05:53:46] GridSeed options: 'baud=115200,freq=850,chips=5'
[2014-06-02 05:53:46] Device found, firmware version 01140113, driver version v3.8.5.20140210.02
[2014-06-02 05:53:46] System reseting
[2014-06-02 05:53:46] Set GC3355 core frequency to 850 MHz
[2014-06-02 05:53:46] Probing for an alive pool
[2014-06-02 05:53:47] Pool 0 difficulty changed to 64
[2014-06-02 05:53:47] Network diff set to 731
[2014-06-02 05:53:51] Network diff set to 812
[2014-06-02 05:53:51] Stratum from pool 0 detected new block
[2014-06-02 05:53:54] Accepted 015cce8d Diff 188/64 GSD 0
[2014-06-02 05:54:10] Accepted 02ae8b33 Diff 95/64 GSD 0
[2014-06-02 05:54:19] Accepted 020687a1 Diff 126/64 GSD 0
[2014-06-02 05:54:21] Accepted 011872eb Diff 234/64 GSD 0
[2014-06-02 05:54:27] Accepted 02860798 Diff 101/64 GSD 0

Now that this is running, I am saving a lot more power. Here is how we ended up:
Raspberry Pi = 2 watts
PC Powersupply = 20 watts
Total = 22 watts

Previous usage = 200 watts

This is about 10 times less which will help my PG&E power bill.

Happy Mining!

0 Config PPTP VPN with Raspberry Pi

Terkadang kita sering diblock oleh internet sehat milik pemerintah yang seenaknya ngeblock situs-situs yang seharus nya tidak perlu diblock.

Nah dengan Raspberry Pi kita dapat mengkonfigurasi settingan IP kita dengan memanfaatkan PPTP VPN yang bisa didapatkan secara gratis ataupun secara berbayar. Tutorial kali ini akan bermanfaat sekali bila anda memiliki beberapa komputer yang terkoneksi dalam 1 jaringan dimana kita dapat memanfaatkan raspberry pi untuk mengcover semua koneksi menggunakan PPTP VPN tanpa menyeting satu-satu.

Langsung saja langkah pertama kita harus install PPTP for Linux :

[email protected] ~ $ sudo apt-get install -y pptp-linux

setelah terinstall, maka kita langsung konek ke PPTP kita :

[email protected] ~ $ sudo pptpsetup --create unitedserver --server 128.199.208.xxx --username [email protected] --password xxx --encrypt --start

lalu kita arahkan traffic internet ke PPTP kita :

[email protected] ~ $ sudo route add -net "" dev "ppp0"

selesai sudah, terakhir mari kita cek koneksi kita :

[email protected] ~ $ curl ipinfo.io/ip && curl ipinfo.io/org
AS133165 Baby Corp, Inc.

Nah selesai sudah maka anda akan bypass internet yg terblock oleh internet sehat ^_^