Pages:
Author

Topic: Super Tutorial Raspberry Pi+Raspbian+CGMiner+TightVNC+WIFI at boot (Read 18651 times)

newbie
Activity: 37
Merit: 0
jafc76, I figured this by myself reviewing readme file for cgminer Smiley
That's why I deleted my post. Thank you for you help!

PS: by the way, a glass of refreshing beer is sent to your btc address  Cheesy Thanks again for your useful post!

Wow!! Thank you very much xgtele!!! Cheers! Is a pleasure to help nice people!! Smiley
sr. member
Activity: 288
Merit: 250
jafc76, I figured this by myself reviewing readme file for cgminer Smiley
That's why I deleted my post. Thank you for you help!

PS: by the way, a glass of refreshing beer is sent to your btc address  Cheesy Thanks again for your useful post!
newbie
Activity: 37
Merit: 0
Xgtele, here the master is ckolivas but if you wanna use the erupters, change:

./configure --enable-bflsc

For

./configure --enable-icarus

I don't have any erupter but if I'm not wrong, with that should work
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Q: On linux I can see the /dev/ttyUSB* devices for my Icarus FPGAs, but
cgminer can't mine on them

A: Make sure you have the required priviledges to access the /dev/ttyUSB* devices:

 sudo ls -las /dev/ttyUSB*
will give output like:
 0 crw-rw---- 1 root dialout 188, 0 2012-09-11 13:49 /dev/ttyUSB0

This means your account must have the group 'dialout' or root privileges

To permanently give your account the 'dialout' group:
 sudo usermod -G dialout -a `whoami`
Then logout and back in again
You are providing instructions from CGMINER 3.1.1

The opening post uses the current cgminer from git WHICH DOES NOT USE ttyUSB

Don't confuse instructions from different versions please.
newbie
Activity: 37
Merit: 0

Wow Server! Thank you very much! You are the first person that paid a beer!!

Cheers!! Glad to find nice people like you!! Smiley

This is a good motivation to add a few things to the tutorial like the watchdog and permissions to the user to access the plugdev group.

Thanks again!
legendary
Activity: 892
Merit: 1002
1 BTC =1 BTC
Thanks man, great tut!

Cheers ;-)

sr. member
Activity: 288
Merit: 250
Awesome tutorial! I learned a lot  Smiley
hero member
Activity: 894
Merit: 501
Followed all the steps, until now the best tutorial about "Wi-Pi Mining" I read.


should add:

- vncwiever pwd is truncated to EIGHT places. I was hammering away my usual 20-digit pwd.
- followed all the steps, didn't work so far. probably something with my router which blocks prettey much everything. maybe include the Pi as a hotspot/wifi repeater as well?


where is this --> '   character on the us keyboard layout?

doesn't this 8 spaces password limitation make it vulnerable to hackers?
hero member
Activity: 894
Merit: 501
Great tutorial. Thanks for putting it together    Smiley



   - The last step is to autostart CGMiner every time we turn on the Raspberry Pi:
      -We need to edit autostart with this command: sudo nano /etc/xdg/lxsession/LXDE/autostart
      -At the end add the line: @/usr/bin/lxterminal --geometry=90x35 -e cgminer (The parameter "geometry" is to set the size of CGMiner, so adjust the parameter to your needs)
      -Reboot using: sudo reboot


Everything went smooth until this bit. When I reboot, cgminer won't start automatically. I'm using cgminer 3.1.1 with Erupter USBs. Might the older cgminer be why it doesn't work?

Anyway, I wrote this script with nano, called it auto_cgminer, and saved it in my 'code' folder,

Code:
cd /home/pi/cgminer-3.1.1/
./cgminer -S /dev/ttyUSB0 -S /dev/ttyUSB1 -S /dev/ttyUSB2 -S /dev/ttyUSB3  -S /dev/ttyUSB4 -S /dev/ttyUSB5 -S /dev/ttyUSB6 -S /dev/ttyUSB7 -S /dev/ttyUSB8 -S /dev/ttyUSB9 --config /home/pi/cgminer-3.1.1/cgminer.conf

then entered

 @/usr/bin/lxterminal --geometry=90x35 -e code/auto_cgminer

in stead of

 @/usr/bin/lxterminal --geometry=90x35 -e cgminer

into the /etc/xdg/lxsession/LXDE/autostart file. Now it gets mining straight away to config file specs on startup.


Now here I got stuck:
11- Install TightVNC on your computer
   - Write your Raspberry Pi IP
   - Will ask for the password of TightVNC
   - If everything is ok, you will see the Raspberry Pi desktop and CGMiner open waiting for the server details.
   - Write the URL
   - Write the username
   - Write the password
   - Now will start to mine, but we need to save the configuration file:
      - "S" to go to settings
      - "W" to write the config file
      - "Enter" to save the default "bfgminer.conf"
      - "Space" to clean the screen

I installed TightVNC onto my Ubuntu 11.10 computer, just as I had done as instructed here for the Pi. Then I don't know how to start it up so that I can do the second step, "Write your Raspberry Pi IP". Entering tightvnc or tightvncserver into terminal don't give me an option to enter the Pi's IP... What did I miss?
legendary
Activity: 2072
Merit: 1006
this space intentionally left blank
Followed all the steps, until now the best tutorial about "Wi-Pi Mining" I read.


should add:

- vncwiever pwd is truncated to EIGHT places. I was hammering away my usual 20-digit pwd.
- followed all the steps, didn't work so far. probably something with my router which blocks prettey much everything. maybe include the Pi as a hotspot/wifi repeater as well?


where is this --> '   character on the us keyboard layout?
sr. member
Activity: 379
Merit: 250
Cool. Thanks for your sharing.
I want to use Raspberry Pi to control my blade.
It also should be possible.
sr. member
Activity: 344
Merit: 250
Flixxo - Watch, Share, Earn!
How to update New cgminer ?

thx


in terminal:

cd cgminer
  git pull
       ./autogen.sh
       export LIBCURL_CFLAGS='-I/usr/include/curl'
        export LIBCURL_LIBS='-L/usr/lib -lcurl'
       ./configure --enable-bflsc
        make
        sudo make install
member
Activity: 66
Merit: 10
How to update New cgminer ?

thx
newbie
Activity: 37
Merit: 0
Q: On linux I can see the /dev/ttyUSB* devices for my Icarus FPGAs, but
cgminer can't mine on them

A: Make sure you have the required priviledges to access the /dev/ttyUSB* devices:

 sudo ls -las /dev/ttyUSB*
will give output like:
 0 crw-rw---- 1 root dialout 188, 0 2012-09-11 13:49 /dev/ttyUSB0

This means your account must have the group 'dialout' or root privileges

To permanently give your account the 'dialout' group:
 sudo usermod -G dialout -a `whoami`
Then logout and back in again


If you are using an Icarus FPGA, don't forget to configure CGMiner (Step 10 of the tutorial) with:   ./configure --enable-icarus



i personally prefer not using the gui. its a system hog

using "screen" command in console allows me to access the bfgminer thats running behind the scenes without stopping anything.

and cacti allows me to see charts via web Cheesy

Can you explain the steps? Would be nice if I can try that.
newbie
Activity: 57
Merit: 0
i personally prefer not using the gui. its a system hog

using "screen" command in console allows me to access the bfgminer thats running behind the scenes without stopping anything.

and cacti allows me to see charts via web Cheesy
hero member
Activity: 574
Merit: 501
Q: On linux I can see the /dev/ttyUSB* devices for my Icarus FPGAs, but
cgminer can't mine on them

A: Make sure you have the required priviledges to access the /dev/ttyUSB* devices:

 sudo ls -las /dev/ttyUSB*
will give output like:
 0 crw-rw---- 1 root dialout 188, 0 2012-09-11 13:49 /dev/ttyUSB0

This means your account must have the group 'dialout' or root privileges

To permanently give your account the 'dialout' group:
 sudo usermod -G dialout -a `whoami`
Then logout and back in again
newbie
Activity: 37
Merit: 0
pi@raspberrypi ~ $ dmesg | grep tty*
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0xd bcm2708.serial=0xb4c85aef smsc95xx.macaddr=B8:27:EB:C8:5A:EF sdhci-bcm2708.emmc_clock_freq=100000000 vc_mem.mem_base=0x1f000000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
[    0.000000] console [tty1] enabled
[    0.577003] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
[    0.887025] console [ttyAMA0] enabled
[    1.543292] Setting default values for core params
[    1.550245] Finished setting default values for core params
[    6.464775] usb 1-1.2: cp210x converter now attached to ttyUSB0

--------------------------------------------------------------------------------
cgminer version 3.2.2 - Started: [2013-06-19 15:35:51]
--------------------------------------------------------------------------------
 (5s):0.000 (avg):0.000h/s | A:0  R:0  HW:0  U:0.0/m  WU:0.0/m
 ST: 2  SS: 0  NB: 1  LW: 0  GF: 0  RF: 0
 Connected to btcguild.com diff 1 with LP as user plutbobo_1
 Block: 009372e7dbd46435...  Diff:19.3M  Started: [15:35:50]  Best share: 0
--------------------------------------------------------------------------------
 [P]ool management ettings [D]isplay options [Q]uit
--------------------------------------------------------------------------------

 [2013-06-19 15:35:49] No devices detected!
 [2013-06-19 15:35:49] Waiting for USB hotplug devices or press q to quit
 [2013-06-19 15:35:49] Probing for an alive pool
 [2013-06-19 15:35:50] Network diff set to 19.3M
 [2013-06-19 15:35:50] Long-polling activated for http://btcguild.com:8332/LP/
 [2013-06-19 15:35:56] USB init open device failed, err -3, you dont have privil
edge to access - AMU device 1:4
 [2013-06-19 15:35:56] Icarus detect (1:4) failed to initialise (incorrect devic
e?)
 [2013-06-19 15:36:01] USB init open device failed, err -3, you dont have privil
edge to access - AMU device 1:4
 [2013-06-19 15:36:01] Icarus detect (1:4) failed to initialise (incorrect devic
e?)
--------------------------------------------------------------------------------
Please help me, thank you!


If you follow all the steps I wrote should work well.

Do you have something connected to mine?
newbie
Activity: 3
Merit: 0
pi@raspberrypi ~ $ dmesg | grep tty*
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0xd bcm2708.serial=0xb4c85aef smsc95xx.macaddr=B8:27:EB:C8:5A:EF sdhci-bcm2708.emmc_clock_freq=100000000 vc_mem.mem_base=0x1f000000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
[    0.000000] console [tty1] enabled
[    0.577003] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
[    0.887025] console [ttyAMA0] enabled
[    1.543292] Setting default values for core params
[    1.550245] Finished setting default values for core params
[    6.464775] usb 1-1.2: cp210x converter now attached to ttyUSB0

--------------------------------------------------------------------------------
cgminer version 3.2.2 - Started: [2013-06-19 15:35:51]
--------------------------------------------------------------------------------
 (5s):0.000 (avg):0.000h/s | A:0  R:0  HW:0  U:0.0/m  WU:0.0/m
 ST: 2  SS: 0  NB: 1  LW: 0  GF: 0  RF: 0
 Connected to btcguild.com diff 1 with LP as user plutbobo_1
 Block: 009372e7dbd46435...  Diff:19.3M  Started: [15:35:50]  Best share: 0
--------------------------------------------------------------------------------
 [P]ool management ettings [D]isplay options [Q]uit
--------------------------------------------------------------------------------

 [2013-06-19 15:35:49] No devices detected!
 [2013-06-19 15:35:49] Waiting for USB hotplug devices or press q to quit
 [2013-06-19 15:35:49] Probing for an alive pool
 [2013-06-19 15:35:50] Network diff set to 19.3M
 [2013-06-19 15:35:50] Long-polling activated for http://btcguild.com:8332/LP/
 [2013-06-19 15:35:56] USB init open device failed, err -3, you dont have privil
edge to access - AMU device 1:4
 [2013-06-19 15:35:56] Icarus detect (1:4) failed to initialise (incorrect devic
e?)
 [2013-06-19 15:36:01] USB init open device failed, err -3, you dont have privil
edge to access - AMU device 1:4
 [2013-06-19 15:36:01] Icarus detect (1:4) failed to initialise (incorrect devic
e?)
--------------------------------------------------------------------------------
Please help me, thank you!
newbie
Activity: 37
Merit: 0
Awesome job, thank you.
My RaspberryPi is already configured and waiting for its ASIC to come...

One small suggestion - to make the guide even more clear you could add two initial steps of SD card formatting and saving the image file to it.


You can find that information here:

http://elinux.org/RPi_Easy_SD_Card_Setup

So I think that's not necessary.

I'm waiting an ASIC too.
member
Activity: 109
Merit: 10
Awesome job, thank you.
My RaspberryPi is already configured and waiting for its ASIC to come...

One small suggestion - to make the guide even more clear you could add two initial steps of SD card formatting and saving the image file to it.
Pages:
Jump to: