Bitcoin Forum

Bitcoin => Mining support => Topic started by: teletobi on August 03, 2013, 10:41:56 PM



Title: Help with Autostart Mining RasPi
Post by: teletobi on August 03, 2013, 10:41:56 PM
Hello,

I finally got it with this Manual (http://learn.adafruit.com/piminer-raspberry-pi-bitcoin-miner/initial-setup-and-assembly) to mine with my PasPi.

But the Autostart Setup shown there doesn't work for me. They told me to put

cd /home/pi/PiMiner
python PiMiner.py &
cd ..
nohup ./cgminer-3.1.1/cgminer --config /home/pi/cgminer.conf -S /dev/ttyUSB0 -S /dev/ttyUSB1 >/dev/null 2>&1&

to rc.local

But when I reboot or unplug I have to start manually via SSH.

Any Ideas to fix this?
I'm running Occidentalis v0.2
I tried to run Minepeon, but it sadly didn't work for me. There was a problem with the Network I wasn't able to fix.


Title: Re: Help with Autostart Mining RasPi
Post by: LogicalUnit on August 05, 2013, 08:05:14 AM
I highly recommend using MinePeon, a RasPi distro specifically for BitCoin mining. You just install it to your SD card, plug it in, boot up, input pool settings, and you're good!


Title: Re: Help with Autostart Mining RasPi
Post by: warlordluke on August 05, 2013, 08:09:26 AM
As above, I would recommend MinePeon. It's pretty simple to set up and get running. They're saying that theres going to be a new update very soon with an overhaul of the web interface.

There's a thread in this sub forum if you want to have a look.


Title: Re: Help with Autostart Mining RasPi
Post by: c789 on August 05, 2013, 05:08:19 PM
Using the raspberian OS, I set mine to automatically login by editing /etc/inittab

Comment this line:
Code:
1:2345:respawn:/sbin/getty 115200 tty1
Add this line below it (here, pi is the user)
Code:
1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1

Now that you're automatically logged in, I'm guessing that your rc.local file should now start the mining process.

If you have security concerns, do NOT do what I just posted :)


Title: Re: Help with Autostart Mining RasPi
Post by: dc81 on August 06, 2013, 04:08:01 PM
you can also put all that into a .sh file and add @reboot script.sh to your crontab


Title: Re: Help with Autostart Mining RasPi
Post by: teletobi on August 06, 2013, 08:58:12 PM
I'd really would like to and tried to use minepeon, but it couldn't connect to the internet, don't know why. I tried many many times and hours and asked in the thread, but it didn't work. As time ran away I tried something else and it worked, don't know why again...
But I got another SD Card now and am trying again...

Thanks c789, trying this too.

I'm not at home (for Work at another Town) and the Router/Network is a bit weird here.