Bitcoin Forum
April 23, 2024, 03:53:19 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Help with Autostart Mining RasPi  (Read 773 times)
teletobi (OP)
Hero Member
*****
Offline Offline

Activity: 734
Merit: 500



View Profile
August 03, 2013, 10:41:56 PM
 #1

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.

Join the Elastic revolution!  Elastic - The Decentralized Supercomputer
ELASTIC WEBSITE | NEW ANNOUNCEMENT THREAD | ELASTIC SLACK | ELASTIC FORUM
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713844399
Hero Member
*
Offline Offline

Posts: 1713844399

View Profile Personal Message (Offline)

Ignore
1713844399
Reply with quote  #2

1713844399
Report to moderator
LogicalUnit
Sr. Member
****
Offline Offline

Activity: 299
Merit: 250


View Profile
August 05, 2013, 08:05:14 AM
 #2

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!
warlordluke
Newbie
*
Offline Offline

Activity: 44
Merit: 0



View Profile
August 05, 2013, 08:09:26 AM
 #3

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.
c789
Hero Member
*****
Offline Offline

Activity: 850
Merit: 1000



View Profile
August 05, 2013, 05:08:19 PM
 #4

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 Smiley

Comparison of Privacy-Centric Coins: https://moneroforcash.com/monero-vs-dash-vs-zcash-vs-bitcoinmixers.php also includes Verge and Pivx
dc81
Member
**
Offline Offline

Activity: 108
Merit: 100


View Profile
August 06, 2013, 04:08:01 PM
 #5

you can also put all that into a .sh file and add @reboot script.sh to your crontab

teletobi (OP)
Hero Member
*****
Offline Offline

Activity: 734
Merit: 500



View Profile
August 06, 2013, 08:58:12 PM
 #6

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.

Join the Elastic revolution!  Elastic - The Decentralized Supercomputer
ELASTIC WEBSITE | NEW ANNOUNCEMENT THREAD | ELASTIC SLACK | ELASTIC FORUM
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!