Post
Topic
Board Mining software (miners)
Re: Super Tutorial Raspberry Pi+Raspbian+CGMiner+TightVNC+WIFI at boot
by
micalith
on 09/07/2013, 15:20:37 UTC
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?